Mitsubishi MELSEC Q Series Programming Manual page 290

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

INTD(P),DINTD(P)
(2) The range of 64-bit floating decimal point type real numbers that can be designated at
+3,
S
(3) The integer value stored at
(4) The converted data is the value rounded 64-bit floating-point real number to the first digit
after the decimal point.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The value of the specified device is not in the following range:
0, 2
• The value of the designated device is
• The 64-bit floating decimal point type data designated by
was used was outside the
• The 64-bit floating decimal point type data designated by
was used was outside the
Program Example
(1) The following program converts the 64-bit floating decimal point type real number at D20 to
D23 with BIN 16-bit data, and stores the result at D0.
[Ladder Mode]
[Operation]
D23 D22
25915.6796
64-bit floating-point real number
D23 D22
33562.3211
64-bit floating-point real number
(2) The following program converts the 64-bit floating decimal point type real number at D20 to
D23 with BIN 32-bit data and stores the result at D0 and D1.
[Ladder Mode]
[Operation]
D23 D22
574968.321
64-bit floating-point real number
D23 D22
2147483649.22
64-bit floating-point real number
6-88
+2,
+1 or
is from
S
S
S
+1 and
D
-1022
| value of specified device |
31768 to 32767 range.
2147483648 to 2147483647 range.
D21
D20
Conversion to integer
25916
BIN value
D21
D20
Conversion to integer
An operation erroe occurs because the specified data is larger than -32768.
D21
D20
Conversion to integer
D21
D20
Conversion to integer
An operation erroe occurs because the
specified data is larger than 2147483647.
2147483648 to 2147483647.
is stored as BIN 32 bits.
D
1024
2
0.
[List Mode]
Step
Instruction
D0
[List Mode]
Step
Instruction
D1
D0
574968
BIN value
(Error code: 4140)
(Error code: 4140)
when the INTD instruction
S
(Error code: 4100)
when the DINTD instruction
S
(Error code: 4100)
Device
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents