TSL Automation Solutions Logo

Section 15.4.17 · Chapter 15: Using Macros

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)

Need PM Designer itself?

V4 for current PK, PT, ITV and PM panels, V2 for older models. Free, sent by email.

Source.Section 15.4.17 of the PM Designer Software User Manual, Edition 2.0, © Cermate Technologies Inc. (www.cermate.com, service@cermate.com). Reproduced online, with the manual's own figures, by TSL Automation Solutions, authorised Cermate distributor, for users of Cermate HMI panels. PM Designer and PanelMaster are trademarks of Cermate Technologies Inc.

Text and figures are the manufacturer's and may describe features your panel or software version does not have. For a plain-language introduction read the PM Designer guide; for help with a specific panel contact TSL Automation.