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.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 327 IRC5
- 65 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 821 RAPID Programming
- 8 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings