First cycle flag in Rapid
Comments
-
Did you ever find anything to do with first cycle? I have a few things I need to do in first cycle only too.0
-
Try an event routine for Power On to run a one instruction routine that sets a PERS boolean, e.g. bFirstCycleOnly, variable TRUE.
PROC rPowerON
!
bFirstCycleOnly: =TRUE;
!
ENDPROC
Be sure to change state of the PERS to FALSE in your production code.
As an idea in production code
PROC rFirstCycle()
!
IF bFirstCycleOnly THEN
Stuff
bFirstCycleOnly: =FALSE ;
ELSE
Return;
ENDIF
!
ENDPROC
1
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