Pm designer operation manual, Program control – B&B Electronics WOP-2121V-N4AE - Manual User Manual
Page 434

4
14
PM Designer Operation Manual
14-25
CHAPTER 14 USING MACROS
14.4.8. Program Control
JMP
Format
JMP P1
Function
Unconditionally jumps to the program point specified by label P1.
P1 (CS)
The label of the program point.
Example 1
IF
$U10
==
0
JMP SKIP
/* Skip the command "$U20 = $U10 / 2". */
ENDIF
$U20
=
$U10
/
2
SKIP
:
$U10
=
1
Format
P1:
Function
This is not an executable command. The P1 is the label of the program point where it is
positioned.
P1 (CS)
The character string as the label of the program point. Remember to have the character '
:' after
the label.
Example 1
IF
$U10
==
0
JMP SKIP
/* Skip the command "$U20 = $U10 / 2" */
ENDIF
$U20
=
$U10
/
2
SKIP
:
$U10
=
1
JMP ==
Format
JMP(P1,P2 == P3)
Data Type
U/S/UD/SD/F
Function
Jumps to the program point specified by label P1 when P2 is equal to P3.
P1 (CS)
The label of the program point.
P2,P3 (I/E/C/AE) The
operands.
JMP !=
Format
JMP(P1,P2 != P3)
Data Type
U/S/UD/SD/F
Function
Jumps to the program point specified by label P1 when P2 is not equal to P3.
P1 (CS)
The label of the program point.
P2,P3 (I/E/C/AE) The
operands.
JMP >
Format
JMP(P1,P2 > P3)
Data Type
U/S/UD/SD/F
Function
Jumps to the program point specified by label P1 when P2 is greater than P3.
P1 (CS)
The label of the program point.
P2,P3 (I/E/C/AE) The
operands.