Pm designer operation manual, Comparison – B&B Electronics WOP-2121V-N4AE - Manual User Manual
Page 448

4
14
PM Designer Operation Manual
14-39
CHAPTER 14 USING MACROS
14.4.16. Comparison
==
Format
P1
= P2 == P3
Data Type
U/S/UD/SD/F/B
Function
Sets bit P1 to 1 if P2 is equal to P3, otherwise sets P1 to 0.
P1 (I/E)
The bit location to save the result.
P2,P3 (I/E/C/AE) The
operands.
Example 1
$U3.3
= (
$U10
+
$U20
) ==
25.75
(F)
!=
Format
P1
= P2 != P3
Data Type
U/S/UD/SD/F/B
Function
Sets bit P1 to 1 if P2 is not equal to P3, otherwise sets P1 to 0.
P1 (I/E)
The bit location to save the result.
P2,P3 (I/E/C/AE) The
operands.
Example 1
$U3.3
= (
$U10
+
$U20
) !=
-700
(S)
>
Format
P1
= P2 > P3
Data Type
U/S/UD/SD/F
Function
Sets bit P1 to 1 if P2 is greater than P3, otherwise sets P1 to 0.
P1 (I/E)
The bit location to save the result.
P2,P3 (I/E/C/AE) The
operands.
Example 1
$U3.3
= (
$U10
+
$U20
) >
$U30
(UD)
>=
Format
P1
= P2 >= P3
Data Type
U/S/UD/SD/F
Function
Sets bit P1 to 1 if P2 is greater than or equal to P3, otherwise sets P1 to 0.
P1 (I/E)
The bit location to save the result.
P2,P3 (I/E/C/AE) The
operands.
Example 1
$U3.3
= (
$U10
+
$U20
) >=
25.75
(F)
<
Format
P1
= P2 < P3
Data Type
U/S/UD/SD/F
Function
Sets bit P1 to 1 if P2 is less than P3, otherwise sets P1 to 0.
P1 (I/E)
The bit location to save the result.
P2,P3 (I/E/C/AE) The
operands.
Example 1
$U3.3
= (
$U10
+
$U20
) <
25.75
(F)
<=
Format
P1
= P2 <= P3
Data Type
U/S/UD/SD/F
Function
Sets bit P1 to 1 if P2 is less than or equal to P3, otherwise sets P1 to 0.
P1 (I/E)
The bit location to save the result.
P2,P3 (I/E/C/AE) The
operands.
Example 1
$U3.3
= (
$U10
+
$U20
) <=
25.75
(F)