RobotStudio event

Clock function behavior

Hi everyone !

I use clock to evaluate cycle time (CLKReset CLKStart and CLKStop, CLKRead) then I put the info in a txt file. The clock still running when the program stop (like a autostop), so if on friday my operator stop his robot and restart it on the monday i've got an entry with a huge amount of time.

I want to log a complete cycle time (including the stop) and a working time (only the run time of the robot)

Anyone have an idea ?
Tagged:

Comments

  • soup
    soup ✭✭✭
    Read up about Event Routines. You could pause a timer in a stop event and restart in a restart event.
  • I find that we can do something on a Stop or Qstop but in which one collision detection or autosop (soft type) will be ? Thanks !
  • soup
    soup ✭✭✭
    Baseline example of event routine use:
    • Start event: set StopEvent bool FALSE
    • Both Stop and QuickStop events: call the same routine(s) to stop some IO and set StopEvent bool TRUE signalling that the event got called
    • Restart event: if StopEvent bool is true prompt the user to ask to restart those IO and set StopEvent bool FALSE either way
    • PowerOn event: set world zones