(Single Precision) - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

INT, INTP, DINT, DINTP
[Operation]
D20
Conversion to real number
15923
BIN value
(2) The following program converts the BIN 32-bit data at D20 and D21 to a 64-bit floating decimal point type real number,
and stores the result at D0 to D3.
[Ladder Mode]
[Operation]
D21
D20
Conversion to real number
16543521
BIN value
6.3.5
INT, INTP
Conversion from floating-point data to BIN 16-bit data

(Single precision)

DINT, DINTP
Conversion from floating-point data to BIN 32-bit data
(Single precision)
6.3.5
INT, INTP, DINT, DINTP
INT, DINT
INTP, DINTP
: 32-bit floating decimal point data to be converted to BIN value or head number of the devices where the floating decimal point data is stored (real number)
S
: Head number of the devices where the converted BIN value will be stored (BIN 16/32 bits)
D
Internal Devices
Setting
Data
Bit
Word
––
S
D
*1:
Available only in multiple Universal model QCPU and LCPU
Function
INT
(1) Converts the 32-bit floating decimal point real number designated at
number designated at
D
(2) The range of 32-bit floating decimal point type real numbers that can be designated at
32767.
(3) Stores integer values stored at
(4) After conversion, the first digit after the decimal point of the real number is rounded off.
238
D3 D2
D1
D0
15923
64-bit floating-point
real number
[List Mode]
Step
D3 D2
D1
D0
16543521
64-bit floating-point
real number
Command
Command
J
\
R, ZR
Bit
––
.
S
+1
S
32-bit floating-point
real number
as BIN 16-bit values.
D
Instruction
Device
Ver.
High
Basic
performance
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
indicates an instruction symbol of
P
U
\G
Word
into BIN 16-bit data and stores it at the device
S
D
BIN16-bit
Process
Redundant Universal
LCPU
INT/DINT.
S
D
S
D
Constants
Zn
Other
E
*1
––
––
––
+1 or
is from -32768 to
S
S

Advertisement

Table of Contents
loading

Table of Contents