216
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Floating point band comparisons (single precision)
EZCP(P)
• One of (D), (D)+1, and (D)+2 turns on depending on the results (small, within the band, large) after the lower limit values
"(S1) and (S1)+1" and the upper limit values "(S2) and (S2)+1" are compared with the comparison data "(S3) and (S3)+1".
• When the contact turns off, "(D) to (D)+2" hold the conditions immediately before the contact turns on and off.
• The three points starting from the device specified by (D) are used. Therefore, do not overlap any device used by others.
• Set values smaller than the upper limit values (S2), (S2)+1 as the lower limit values (S1), (S1)+1. If the lower limit values
(S1), (S1)+1 are larger than the upper limit values (S2), (S2)+1, the upper limit values (S2), (S2)+1 will be handled as the
same values as the lower limit values (S1), (S1)+1.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
• QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
(S1): Start number of the devices where the lower limit value is stored (real number)
(S2): Start number of the devices where the upper limit value is stored (real number)
(S3): Data to be compared or start number of the device where the data to be compared is stored (real number)
(D): Start bit device number to which the comparison result is output (Bit)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
E
Others
Bit Word Bit Word
(S1)
(S2)
(S3)
(D)
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The range of three points from the device specified by (D) exceeds the range
of the corresponding device.
4140 The specified device value is -0, a subnormal number, NaN (not a number),
or .
Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
EZCPP
EZCP
EZCP
EZCPP
S1
S2
S2
S3
S3
D
D
S1
Command
Command
EZCP
Contact
S1 S2 S3 D
D
D
D+2
+1
S1 S3
S1
[
[
[
[
[
]
]S2S3
S1
S1
+1
+1
]
]
+1
+1
]+1
>,
,
,
,
,[
[]+1
]+1
,
,>S2S3
Turns on when
Turns on when
Turns on when
S2
S2
S3
S3
S3
≤≤