Equal

Tests if one value is EQUAL TO another one (on integer, real, bool, and message variables).
lrso_eq1_CAM5
Arguments
IN1
DINT - BOOL - MESSAGE - REAL
Both inputs must have the same format.
IN2
DINT - BOOL - MESSAGE - REAL
Q
BOOL
TRUE if IN1 = IN2
Example
(* FBD example with "Is Equal to" Operators *)
lrso_eq2_CAM5
(* ST Equivalence: *)
aresult := (10 = 25); (* aresult is FALSE *)
mresult := ('ab' = 'ab'); (* mresult is TRUE *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal