Mitsubishi Electric MELSEC-Q/L Programming Manual page 767

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 device specified in (S) is not an input (X) device.
The number of digits specified in n is outside the range from 1 to 8.
Program example
• The following program fetches data of the 5 or fewer digits from the numerical keypad connected to X20 to X28, and stores
it to the area from D0 to D2 when X0 is turned ON.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operation]
"
1
2
Numerical keypad
(Strobe signal)
Clears the previous input data
Sets the number of digits to be input
Resets the data input completion fag
Device
Input module
X20
"
3
4
5
X21
X22
X23
X24
X25
X26
X27
X28
Q00J/
QnH
QnPH
Q00/
Q01
b15 b12
b11
b8
b7 b4
b3
b0
5
D0
2
3
4
5
D1
H
H
H
H
0
0
0
1
D2
H
H
H
H
7 APPLICATION INSTRUCTIONS
QnPRH
QnU
LCPU
765
7.19 Other Instructions
7

Advertisement

Table of Contents
loading

Table of Contents