Mitsubishi Electric MELSEC-Q/L Programming Manual page 818

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
4101
The points specified in n exceed those of the corresponding device specified
in (S) or (D).
The file register is not specified for either (S) or (D).
Program example
• The following program outputs the lower four bits of data in R66 to R69 to Y30 through Y3F in units of 4 points.
[Ladder Mode]
Before execution
(source of transfer)
b15
b4
b3
b0
R66
1
1 1 0 1
R67
0
0 0 0 0
R68
1
0 0 1 1
R69
0
1 1 0 1
Ignored
• The following program outputs the data in X20 to X2F to R100 to R103 in units of 4 points.
[Ladder Mode]
X2F
X2C
X2B
Before
1
0
0 0
0 1 1 1
execution
7 APPLICATION INSTRUCTIONS
816
7.19 Other Instructions
After execution
(destination of transfer)
1
1
0
1
0
0
0
0
0
0
1
1
1
1
0
1
X28
X27
X24
X23
X20
0 1 1 0
0 1 0 0
After execution
(destination of transfer)
b15
0
0
0 0
0 0 0 0
0
0
0 0
0 0 0 0
0
0
0 0
0 0 0 0
0
0
0 0
0 0 0 0
Filled with 0s
Q00J/
Q00/
Q01
[List Mode]
Step
Instruction
Y33 to Y30
Y37 to Y34
Y3B to Y38
Y3F to Y3C
[List Mode]
Step
Instruction
b4
b3
b0
0 0 0 0
0 1 0 0
R100
0 0 0 0
0 1 1 0
R101
0 0 0 0
0 1 1 1
R102
0 0 0 0
1 0 0 0
R103
QnH
QnPH
QnPRH
Device
Device
4 points
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents