Standard Comparison Functions; Comparison - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

5.6

Standard Comparison Functions

Comparison

GT_E, GE_E, EQ_E, LE_E, LT_E, NE_E
High
Basic
Process
performance
Structured ladder/FBD
GT_E
EN
ENO
s1
s2
to
s28
The following function(s) can go in the dotted squares.
GT_E, GE_E, EQ_E, LE_E, LT_E, NE_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Performs comparison operation between the values input to variables (s1) to (s28), and outputs the operation result from
(d) in bit type as that of variables (s1) to (s28).
GT_E
Performs comparison of [(s1)>(s2)]&[(s2)>(s3)]&  & [(s)
• Outputs TRUE if all of comparisons satisfy (s)
• Outputs FALSE if any of comparisons satisfies (s)
GE_E
Performs comparison of [(s1)  (s2)]&[(s2)  (s3)]&&[(s)
• Outputs TRUE if all of comparisons satisfy (s)
• Outputs FALSE if any of comparisons satisfies (s)
EQ_E
Performs comparison of [(s1) = (s2)]&[(s2) = (s3)]&&[(s)
• Outputs TRUE if all of comparisons satisfy (s)
• Outputs FALSE if any of comparisons satisfies (s)
LE_E
Performs comparison of [(s1)  (s2)]&[(s2)  (s3)]&&[(s)
• Outputs TRUE if all comparisons satisfy (s)
• Outputs FALSE if any of comparisons satisfies (s)
LT_E
Performs comparison of [(s1) < (s2)]&[(s2) < (s3)]&&[(s)
• Outputs TRUE if all comparisons satisfy (s)
• Outputs FALSE if any of comparisons satisfies (s)
NE_E
Performs comparison of [(s1)  (s2)].
• Outputs TRUE if (s1)  (s2).
• Outputs FALSE if (s1) = (s2).
5 APPLICATION FUNCTIONS
152
5.6 Standard Comparison Functions
LCPU
Redundant Universal
ST
Not supported
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s1 to s28(_IN)
(s1 and s2 only for
NE(_E))
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output (TRUE: True value, FALSE: False value)
(n-1)
> (s)
.
(n-1)
(n)
 (s)
(n-1)
(n-1)
 (s)
.
(n-1)
(n)
< (s)
(n-1)
(n-1)
= (s)
.
(n-1)
(n)
 (s)
(n-1)
(n-1)
 (s)
.
(n-1)
(n)
> (s)
(n-1)
(n-1)
< (s)
.
(n-1)
(n)
 (s)
(n-1)
>(s)
].
(n)
.
(n)
 (s)
].
(n)
.
(n)
= (s)
].
(n)
.
(n)
 (s)
].
(n)
.
(n)
< (s)
].
(n)
.
(n)
Data type
Bit
ANY_SIMPLE
Bit
Bit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents