6 - 63 6 - 63
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.3.4 Conversion from floating decimal point data to BIN 16- and 32-bit data
(INT, INTP, DINT, DINTP)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
E
Other
S
D
[Instruction Symbol] [Execution Condition]
indicates INT or DINT
P
Command
Command
S D
S D
INT, DINT
INTP, DINTP
[Set Data]
Set Data Meaning Data Type
S
Head device number storing floating decimal point data that will be
converted to BIN value
Real number
D
Head device number to store BIN value after conversion BIN 16/32 bits
[Functions]
INT
(1) Converts the floating decimal point real number designated at
S
into BIN 16-bit data and
stores it at the device number designated at
D
.
BIN 16 bits
Floating decimal point type real number
+1
S
S
D
(2) The range of floating decimal point type real numbers that can be designated at
S
+1 or
S
is
from -32768 to 32767.
(3) Stores integer values stored at
D
as BIN 16-bit values.
(4) After conversion, the first digit after the decimal point of the real number is rounded off.
DINT
(1) Converts floating decimal point type real number designated by
S
to BIN 32-bit data, and
stores the result at the device number designated by
D
.
BIN 32 bits
The lower 16 bitsThe upper 16 bits
Floating decimal point
type real number
+1
S
+1
DS D
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com