
98
Remarks: program call supports multi-level nesting, 10 levels and above.
Steps
1. Select the previous line of the instruction line which needs to be inserted
2. Select instruction→Flow instruction→CALL.
3. Click to Select Subprogram button.
4. Select the subroutine and confirm.
5. Click the OK button in the operation column to add the CALL instruction.
Figure 21-3 CALL Instruction
19.4.2 GOTO LBL[]
Description
:
GOTO instruction is mainly used to jump the program to the designated label position (LBL). To
use the GOTO word, the LBL label must be defined in the program, and GOTO and LBL must be
in the same block.
Description
GOTO instruction and LBL instruction need to be used together to realize the program’s jumping.
GOTO will jump to the line designated by LBL.
Steps
1. Select the previous line of the instruction line which needs to be inserted.
2. Select instruction→Process instruction→LBL
,
enter the Label Number
LBL[Label’s name]
GOTO LBL[Label’s name]
LBL[1]
J P[1] VEL=50
J P[2] VEL=50 ‘Cyclic movement between two points
GOTO LBEL[1]