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 ?
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:
0
Comments
-
Read up about Event Routines. You could pause a timer in a stop event and restart in a restart event.
0 -
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 !
0 -
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
0 - Start event: set StopEvent bool FALSE
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 339 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 832 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings