7 Applied Instructions
7.12 Floating Point
450
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 32-bit operation (DECMP, DECMPP)
The compared value specified by and the comparison source specified by are compared as
floating decimal point data, and depending on the result of greater, smaller, or equal, any bit of devices ( ,
+1, and +2) specified by is turned ON.
• When constants (K, H) are specified in the devices specified by , , the values are automatically
converted from BIN and handled as binary floating decimal point data.
Cautions
1. Number of devices occupied
occupies 3 points.
Be careful not to overlap with the devices used in other applications.
2. Specification of input and output variables
When handling 32-bit data in structured program, you cannot specify 16-bit device directly unlike the simple
project. When handling 32-bit data, please use the label. However, the 32-bit counter is a 32-bit long device,
and can be specified directly. When specifying the device, use the global label.
3. The instruction is provided in the FX3G PLC Ver. 1.10 or later.
4. Applicable devices are limited.
S1: FX3U, FX3UC and FX3G PLCs only are applicable.
S2: FX
3U, FX3UC PLCs only are applicable.
S3: FX
3U, FX3UC PLCs only are applicable.
However, index decoration is not applicable.
ON when
ON when
ON when
To define the device for storing binary floating
decimal point data (data 1) to be compared.
*1.
To define the device for storing binary floating
decimal point data (data 2) to be compared.
*2.
Command
If the command input is OFF and DECMP instruction cannot be executed, the device specified by holds
the state before the command input is turned OFF.
+1
+2
DECMP
EN
s1
s2
ENO
d
d
d
d
d
Label 1
*1
Label 2
*2
Head bit device
for output of result
s1 s2
>
s2
=
s1
s1
s2
<