8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
481
8
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).
• 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
(1): Even if the command input X0 turns off before the DECMP instruction is fully executed, (d) to (d)+2 hold the status.
Error code
(SD0/SD8067)
Description
2820H
The device range specified by (d) exceeds the corresponding device range.
3402H
The specified device value is denormalized number, NaN (not a number), or
.
DEZCP
(s1)
(s2)
(s3)
(d)
(d)
X0
(d+1)
(d+2)
Turns on in the case of [(s1)+1, (s1)] > [(s3)+1, (s3)]
Turns on in the case of [(s1)+1, (s1)]
≤
[(s3)+1, (s3)]
≤
[(s2)+1, (s2)]
Turns on in the case of
[(s3)+1, (s3)] > [(s2)+1, (s2)]
(1)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......