Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 483

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions compare the comparison values (s1) and (s2) with the comparison source (s3) as floating point data,
and one of the bits among (d), (d)+1, and (d)+2 turns on according to the result (smaller, within the range or larger).
X0
DEZCP
(s1)
(d)
Turns on in the case of [(s1)+1, (s1)] > [(s3)+1, (s3)]
(d+1)
Turns on in the case of [(s1)+1, (s1)] ≤ [(s3)+1, (s3)] ≤ [(s2)+1, (s2)]
(d+2)
Turns on in the case of
(1)
(1): Even if the command input X0 turns off before the DECMP instruction is fully executed, (d) to (d)+2 hold the status.
• When the constant (K or H) is specified the device specified by (s1), (s2) and (s3), these instructions convert the binary
value into single-precision real number automatically.
Precautions
• Three devices ((d), (d)+1, and (d)+2) specified by (d) are occupied. Note that these devices are not used for any other
purpose.
• The size relationship of the comparison data should be [(s1)+1, (s1)]  [(s2)+1, (s2)]. If the relationship is [(s1)+1, (s1)] >
[(s2)+1, (s2)], the value of [(s2)+1, (s2)] is regarded as the same as that of [(s1)+1, (s1)], and is compared.
Operation error
Error code
Description
(SD0/SD8067)
2820H
The device range specified by (d) exceeds the corresponding device range.
The specified device value is denormalized number, NaN (not a number), or .
3402H
(s2)
(s3)
(d)
[(s3)+1, (s3)] > [(s2)+1, (s2)]
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
481

Hide quick links:

Advertisement

loading