Equal

For integer, REAL, TIME, DATE, and STRING variables, compares the first input to the second to determine equality.
For TON, TP, TOF, BLINK, and StepName.t in SFC chart, equality testing of TIME variables is not recommended.
lrso_eq1_CAM5
Arguments
i1
BOOL - SINT - USINT - BYTE - INT - UINT - WORD - DINT - UDINT - DWORD - LINT - ULINT - LWORD - REAL - LREAL - TIME - DATE - STRING
Both inputs must have the same format.
i2
BOOL - SINT - USINT - BYTE - INT - UINT - WORD - DINT - UDINT - DWORD - LINT - ULINT - LWORD - REAL - LREAL - TIME - DATE - STRING
o1
BOOL
TRUE if i1 = i2
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