Mitsubishi Electric MELSEC-Q/L Programming Manual page 595

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

Advertisement

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 data format in the device specified by (S1) is not 0 or 1.
A value other than 0 to 9 exists in the each digit of (S1)+1 and (S1)+2.
The data format in the device specified by (S1)+3 is not 0 or 1.
The exponent data in the device specified by (S1)+4 is not within the range
from 0 to 38.
The decimal fraction digit specified by (S2) is not within the range between 0
and 7.
4101
The range of the device specified by (S1) exceeds that of the corresponding
device.
Program example
• The following program converts the BCD type floating decimal point format data being stored in devices starting from D0 to
32-bit floating decimal point type real number data based on the decimal fraction digit being stored at D10, and stores the
result at D100 and D101 when X0 goes ON.
[Ladder Mode]
[Operation]
1
D0
D1
4567
H
1234567
D2
0123
H
1
D3
3
D4
3
D10
D101
(BCD 7 digits)
H
1. 2 3 4 5 6 7
Q00J/
QnH
QnPH
Q00/
Q01
[List Mode]
Step
Instruction
D100
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
QnPRH
QnU
LCPU
Device
7
593

Advertisement

Table of Contents
loading

Table of Contents