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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings