What's new
What's new

OSP3000 Cycle Time Logging

TrollTuner

Aluminum
Joined
Jul 11, 2015
Location
SW Missouri
OSP300 Cycle Time Logging

Is there a simple way to record to a text file the following items?
  • Last Cycle Time (Displayed on the main screen)
  • Program Name
  • Date / Timestamp

Hoping it could be a snippet of code that the post adds to the end of the program.

My renishaw does this with measurements and makes it easy to inspect or switch back.

Or should I just setup and use MTconnect etc.

Genos 560
Thanks.


Some Okuma Blue surface mount LEDs.
GenosBeacon.JPG
 
Last edited:
You may be able to call up the variable that posts to the MacMAn utility.
Or you could just print out from the MacMan page.
 
In the OSP300 programming manual, at the end there are codes for time.
VPMNT = minute counter for hours
VRMNT = minute counter
VPHUR = hour counter for date
VRHUR = hour counter
VQDAT = day counter

VDTIM [a,b] = Hour meter (run hour)
 
In the OSP300 programming manual, at the end there are codes for time.
VPMNT = minute counter for hours
VRMNT = minute counter
VPHUR = hour counter for date
VRHUR = hour counter
VQDAT = day counter

VDTIM [a,b] = Hour meter (run hour)
Not sure what book or machine you have but my book does not have those codes nor does my lb3000exII myw like them.....
8073b03623c27eb7999487dea326fb32.jpg


Sent from my SM-G930T using Tapatalk
 
Not sure what book or machine you have but my book does not have those codes nor does my lb3000exII myw like them.....
8073b03623c27eb7999487dea326fb32.jpg


Sent from my SM-G930T using Tapatalk
I do have:
VTIME [1] year
VTIME [2] month
VTIME [3] day
VTIME [4] hour
VTIME [5] min
VTIME [6] sec

Sent from my SM-G930T using Tapatalk
 
Would love one for osp300

hy ninja :) i can help you with custom build stuff to suit your needs ...

please describe what you need :)

please include :
... production/parts type : series / uniques
... desired stuff to be monitored

or say whatever you wanna say, and i will suggest an approach as best as i can :)

I do have:
VTIME [1] year
VTIME [2] month
VTIME [3] day
VTIME [4] hour
VTIME [5] min
VTIME [6] sec

as i can see you know this variables :)

Not sure what book or machine you have but my book does not have those codes nor does my lb3000exII myw like them.....

there are some things : osp300 is a control cross multiple machines, and each machine has its own particularities :)

well, so far so good

but there are issues, because some general functions are not implemented in the same manner across different machines

there is this battle between lathe_team and mill_team from Okuma ... those 2 teams shoud speack one 2 each other more often

for example vpmnt is recognized by the osp300 generation, but not on the lb3000 :)

this is only one difference ... and there are many others :)
 
hy ninja :) i can help you with custom build stuff to suit your needs ...

please describe what you need :)

please include :
... production/parts type : series / uniques
... desired stuff to be monitored

or say whatever you wanna say, and i will suggest an approach as best as i can :)



as i can see you know this variables :)



there are some things : osp300 is a control cross multiple machines, and each machine has its own particularities :)

well, so far so good

but there are issues, because some general functions are not implemented in the same manner across different machines

there is this battle between lathe_team and mill_team from Okuma ... those 2 teams shoud speack one 2 each other more often

for example vpmnt is recognized by the osp300 generation, but not on the lb3000 :)

this is only one difference ... and there are many others :)
Really I'm just wanting something very similar to what he was wanting something that will start a timer stop a timer record that and send it to a text file I've tried using vtime with no luck if I wanted to know what time it was I would look at the clock I want the time at start and time at Finish but the variable will be the time in between

Sent from my SM-G930T using Tapatalk
 
Really I'm just wanting something very similar to what he was wanting something that will start a timer stop a timer record that and send it to a text file I've tried using vtime with no luck if I wanted to know what time it was I would look at the clock I want the time at start and time at Finish but the variable will be the time in between

hy ninja :) so lets say that there is a program which normally runs in 30 seconds :)

and somehow, somebody will stop that program in the middle and leave it like that for 3 hours

when it comes back, he continues the program

thus, program duration is still 30 seconds, but in reality it had a pause of 3hours :)

in this case, i can help you log that 03:00:30 :)


if that guy, when it comes back, does not continue the program, but reset + restart it, and he will run the program normal, than log will record only 30 seconds ... is this ok ?



in other words, a simple tik-tok timer can not say if the duration that had been record has interventions in it :)

... is this what you wish for ? kindly !
 
Yes this is what I would like thank you ...


hey ninja :) lets begin

start the timer @ program start
stop the timer @ program end + log data


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


record moment of program start
record moment of program end, compute duration between these 2 moments + log data


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


Code:
    V1=VDIN[1001]
  ( program core )
    FWRITC log.txt;A
    V1=VDIN[1001]-V1
    PUT 'seconds : '
    PUT V1
    WRITE C
    CLOSE C
    M02
thus, a simple tic-toc :) kindly !
 
this is a more elegant way to write it, thus keeping the main code clean and exteriorizing the procedure :

Code:
    CALL OTIC LV01 = 1
  ( program core )
    CALL OTIC LV01 = 0
M02

you may put this wherever you wish, for example inside a file called res-tic-v1.ssb ( resource file for tic-toc timer, variant 1 ) :

Code:
OTIC ( tic - toc timer; LV01 : 1/on, 0/off )


    IF [ LV01 EQ 0 ] NJUMP
           V1 = VDIN [ 1001 ]
           GOTO NEND
    NJUMP FWRITC log.txt;A
          V1 = VDIN [ 1001 ] - V1
          PUT 'seconds : '
          PUT V1
          WRITE C
          CLOSE C
    NEND


RTS
 
now lets add actual start & end timestamp to the log

Code:
OTIC ( tic - toc timer; LV01 : 1/on, 0/off )

    FWRITC log.txt;A
    CALL OTIME
    IF [ LV01 EQ 0 ] NJUMP
          V1 = VDIN [ 1001 ]
          GOTO NEND
    NJUMP WRITE C
          V1 = VDIN [ 1001 ] - V1
          PUT 'seconds : '
          PUT V1
          WRITE C
          PUT ' '
    NEND
    WRITE C
    CLOSE C

RTS

 ( . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . )


OTIME ( timestamp )

  PUT '    '
  PUT VTIME [ 3 ] , 2
  PUT ' . '
  PUT VTIME [ 2 ] , 2
  PUT ' . '
  PUT VTIME [ 1 ] , 4
  PUT '    '
  PUT VTIME [ 4 ] , 2
  PUT ' . '
  PUT VTIME [ 5 ] , 2
  PUT ' . '
  PUT VTIME [ 6 ] , 2


RTS

i can not test this code right now, but it should be pretty close :)
 
i am glad :) one question ninja : that guy that went away for 3 hours, where did he go ? and why he paused the cnc instead of reseting it ?
 








 
Back
Top