Mitsubishi Electric MELSEC-Q/L Programming Manual page 680

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 block number specified in (S) does not exist.
4101
There is no file register for the specified block No.
Program example
• The following program compares R0 of block No. 0 and R0 of block No. 1.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operation]
Block No. 0
R0
-3216
R1
5001
R2
128
R3
-7981
R4
9610
R5
0
7 APPLICATION INSTRUCTIONS
678
7.14 File Register Switching Instructions
Device
D0
-3216
Y41 turns ON since D0<D1
Q00/
Q01
Designates block No. 0
Executes reading R0 of block No.0
Designates block No. 1
Executes reading R0 of block No.1
Compares the read values
Block No. 1
756
9330
-1762
D1
756
3911
-5
-3781
QnH
QnPH
QnPRH
R0
R1
R2
R3
R4
R5
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents