5-156
5.6 Standard Comparison Functions
5.6.1 Comparison
GT(_E), GE(_E), EQ(_E), LE(_E), LT(_E), NE(_E)
Operation Error
No operation error occurs in the execution of the GT(_E), GE(_E), EQ(_E), LE(_E), LT(_E),
and NE(_E) functions.
Program Example
The program which performs comparison operation between the values input to and , and
outputs the operation result from .
(a) Function without EN/ENO (GT)
[Structured ladder]
[ST]
g_bool1:= (g_int1) > (g_int2);
(b) Function with EN/ENO (GT_E)
[Structured ladder]
[ST]
g_bool3 := GT_E (g_bool1, g_int1, g_int2, g_bool2);
s1
s2
d