Mitsubishi Electric MELSEC-Q/L Programming Manual page 593

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• The 7th digit of the significant digits being stored at (D)+1 and (D)+2 is rounded off to make a 6-digit number.
S 1
+1
S1
D
. 2 3456789
1
D
D
D
3
S2
D
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4100
The decimal fraction digit specified by (S2) is not within the range between 0
and 7.
The 32-bit floating point real number specified by (S1) is not within the
following range:
-126
128
 | Device | < 2
0, 2
4101
The range of the device specified by (D) exceeds that of the corresponding
device.
The range of the device specified by (D) exceeds that of the corresponding
device.
The specified device value is -0, unnormalized number, nonnumeric, and .
4140
Program example
• The following program breaks down the 32-bit floating decimal point type real number data stored at D0 and D1 into BCD
according to the decimal fraction digits as designated by R10, and stores the results into the area starting from D100 when
X0 is turned ON.
[Ladder Mode]
[Operation]
D1
D0
0.987654
3
R10
0
+1
1234570
H
+2
+3
1
123456789
+4
3
1234570
D100
1
D101
9876540
H
D102
D103
1
4
D104
Rounded off
Q00J/
QnH
Q00/
Q01
[List Mode]
Step
Instruction
7.11 Character String Processing Instructions
QnPH
QnPRH
QnU
Device
7 APPLICATION INSTRUCTIONS
LCPU
7
591

Advertisement

Table of Contents
loading

Table of Contents