EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 494

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.12 Floating Point
492
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 16-bit operation (INT, INTP)
The binary floating decimal point of the device specified by is converted into BIN integer, and is
transferred to the device specified by .
Instruction of reverse converting operation
Reverse converting operation of the operation of this instruction is FLT.
As for FLT instruction, refer to 7.5.10.
2. 32-bit operation (DINT, DINTP)
The binary floating decimal point of the device specified by is converted into BIN integer, and is
transferred to the device specified by .
Instruction of reverse converting operation
Reverse converting operation of the operation of this instruction is DFLT(FNC49) instruction.
As for FLT instruction, refer to 7.5.10.
Related devices
As for the manner of using the zero, borrow, and carry flag, refer to the FX Structured Programming
Manual (Device & Common).
Cautions
1) Fractions below the decimal point are discarded in operation.
2) 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 FX
3G PLC Ver. 1.10 or later.
4) Applicable devices are limited.
S1: FX
3U, FX3UC and FX3G PLCs only are applicable.
S2: FX
3U, FX3UC PLCs only are applicable.
Device Name Content
M8020 Zero To be turned ON when the operation result is 0.
M8021 Borrow To be turned ON when less than 1 is discarded in convertion.
M8022 Carry
To be turned ON when the operation result overflows by exceeding the range of -32, 768 to 32,
767 (in 16-bit operation), or -2, 147, 483, 648 to 2, 147, 483, 647 (in 32-bit operation).
(Operation result is not reflected.)
Command
input
INT
EN ENO
d
s
Binary floating
decimal point
To discard below the decimal
point of 16-bit BIN integer.
+1,
ds s
Label 1
*1
The device for storing
the converted data.
*1.To define the device for storing the data
to be converted into BIN integer.
Binary floating
decimal point
To discard below the decimal
point of 32-bit BIN integer.
+1,
s s
+1,
d d
DINT
EN ENO
d
s
Command
input
Label 1
*1
Label 2
*2
*1. To define the device for storing the data to be converted into BIN integer.
*2. To define the device for storing the converted data.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals