
387
Appendix
4. How to Use TAG and GOTO
Description
If you want to repeat the same operations in the program or skip steps when a given condition is met, use
a GOTO command together with a TAG command. TAG can be specified in a step either before or after
the one containing a GOTO command.
Example of Use 1
Repeat the same operations.
Example of Use 2
Skip steps.
Rep
eated
These operations are repeated.
Jum
p
These operations are ignored.
388
Appendix
5. Back-and-Forth Operation between 2 Points (for Linear Axes)
Description
Move the actuator back and forth repeatedly between two points.
Flow Chart
Application Program Position
Data
The actuator moves back and forth between P1 and
P2 infinitely.
Axis 1 is used.
Specify TAG in the first of the repeated steps and
specify GOTO in the last of the repeated steps.
Start
Home return
Move to P1
Move to P2
Axis 1 returns home.
Set the speed to 100 mm/sec.
Move to P1
Move to P2
391
Summary of Contents for X-SEL PX
Page 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Page 2: ......
Page 8: ......
Page 14: ......
Page 410: ...383 Appendix 386 ...
Page 452: ...425 Appendix 5 428 ...
Page 559: ......