Mitsubishi Electric MELSEC-Q/L Programming Manual page 453

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 value specified in n is other than 0 to 32767.
4101
The points specified in n exceed those of the corresponding device specified
in (S).
Program example
• The following program stores the average value of 16-bit data stored from D0 to D2 into D10, when M0 is turned on.
[Ladder Mode]
[Operation]
D0
105
(BIN)
D1
555
(BIN)
D10
D2
990
(BIN)
• The following program stores the average value of 32-bit data stored from D0 to D5 into D10 and D11, when M0 is turned
on.
[Ladder Mode]
[Operation]
(BIN)
D1,D0
623541
D3,D2
4753647
(BIN)
D5,D4
926342
(BIN)
550
(BIN)
D11,D10
2101176
(BIN)
Q00J/
QnH
QnPH
Q00/
Q01
[List Mode]
Step
Instruction
[List Mode]
Step
Instruction
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
QnPRH
QnU
LCPU
Device
Device
7
451

Advertisement

Table of Contents
loading

Table of Contents