Fnc129 - Int / Floating Point To Integer Conversion - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
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
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 [
[
+1,
D
D
Command
input
FNC129
DINT
Instruction for inverse conversion
The inverse conversion is executed by DFLT (FNC 49) instruction.
492
→ 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
+1,
S
S
D
INT
+1,
S
].
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
] is converted into a binary integer, and transferred to
S
+1,
S
S
Binary floating
point
→ For FLT (FNC 49) instruction, refer to Section 12.10.
] is converted into a binary integer, and transferred to
S
+1,
S
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.
+1,
D
D
32-bit binary integer
The decimal part is cut.
Continuous
Operation
Pulse (Single)
Operation
Data Type
Charac-
Pointer
ter String
" "
P
.
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents