18.17 Fnc129 - Int / Floating Point To Integer Conversion - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.17 FNC129 – INT / Floating Point to Integer Conversion
Outline
This instruction converts binary floating point data into a binary integer which is a normal data format inside PLCs
(binary floating point → binary integer).
1. Instruction format
FNC 129
D
INT
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (INT and INTP)
Binary floating point stored in [
Command
input
FNC129
Instruction for inverse conversion
The inverse conversion is executed by FLT (FNC 49) instruction.
2. 32-bit operation (DINT and DINTP)
Binary floating point stored in [
D
].
Command
input
FNC129
DINT
Instruction for inverse conversion
The inverse conversion is executed by DFLT (FNC 49) instruction.
518
→ For program examples of floating point operations, refer to Section 12.10.
Mnemonic
16-bit Instruction
P
INT
5 steps
INTP
Data register number storing binary floating point data to be converted into a binary
integer
Data register number storing a converted binary integer
Digit Specification
/FX
3U
S
+1,
S
S
D
INT
S
+1,
S
D
18.17 FNC129 – INT / Floating Point to Integer Conversion
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
PLCs.
3UC
] is converted into a binary integer, and transferred to
+1,
S
S
Binary floating
point
→ For FLT (FNC 49) instruction, refer to Section 12.10.
S
] is converted into a binary integer, and transferred to [
S
+1,
S
Binary floating
point
→ For FLT (FNC 49) instruction, refer to Section 12.10.
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DINT
9 steps
DINTP
Real number (binary)
16- or 32-bit binary
Others
Con-
Real
Index
stant
Number
V
Z Modify K H
E
D
16-bit binary integer
The decimal part is cut.
D
+1,
D
32-bit binary integer
The decimal part is cut.
Continuous
Operation
Pulse (Single)
Operation
Data Type
Charac-
Pointer
ter String
" "
P
D
.
D
+1,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents