
131
Steps
1. Select the upper line of the register instruction line to be added.
2. Select instruction
→
assignment instruction.
3. In the first input box, select the type from the "Global Variable" drop-down box.
4. Enter the value in the second input box.
5. Click the "OK" button in the operation bar to complete the assignment-adding of the
global variable instruction.
Program example
LBL[1]
UFRAME_NUM=1
UTOOL_NUM=1
L_VEL = 500
L_ACC = 80
LBL [888]
J P[1]
J P[2]
‘
Is the default
motion parameter
J P[3]
J P[4]
GOTO LBL[888]
LBL[888]
CNT =
1
J_VEL = 100
J_ACC = 100
J_DEC = 100
‘
Global motion parameters, work downwards, P[1~4]
use the above motion parameters
J P[1]
J P[2]
J P[3]
J P[4]
GOTO LBL[888]
LBL[888]
CNT =
1
J_VEL = 100
J_ACC = 100
J_DEC = 100
‘
Global motion parameters, work downwards, P[1, 3] use the above motion parameters
J P[1]
J P[2] VEL = 50 ACC = 50 DEC = 50 CNT =
0 ‘
P[2] Use own motion parameters
J P[3] VEL = 50
’
P[3] uses its own VEL parameters, because other parameters have not been set, so the
global ACC and DEC above are still used
GOTO LBL[888]