Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
how to bypass one instrcution in program!
How to temprary bypass one line in robot program by using teachpandent?
For example:
MoveJ P1,Vmax,fine,tool1;
MoveJ P2,Vmax,fine,tool1;
I need temprary jump first line and run second line,when i need i can put line 1 back to program so i don't want lose P1 point.
I trid to put "!" on front of the line change the line to comment,but I couldn't.
If anyone know how to do it pls let me know<
Thanks a lot!!!!!
0
Comments
-
Hi
Why don't you just use a IF instruction like bellow
where you control if P1 should be executed with a bool bJumpFirstLineIF bJumpFirstLine THEN
MoveJ P2,Vmax,fine,tool1;
ELSE
MoveJ P1,Vmax,fine,tool1;
MoveJ P2,Vmax,fine,tool1;
ENDIF
Per Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi Jefftoron
Even easier is
IF FALSE MoveJ P1, vmax, fine, tool1;
Then you just need to change FALSE into TRUE to re-enable the line.
Bye
Claudio
0 -
thx a lot!0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 365 IRC5
- 84 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 854 RAPID Programming
- 37 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings