7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
451
7
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• The following program stores the average value of 16-bit data stored from D0 to D2 into D10, when M0 is turned on.
• 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.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
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).
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
(BIN)
(BIN)
(BIN)
D1
D10
D0
D2
550
(BIN)
105
555
990
Step
Instruction
Device
(BIN)
(BIN)
(BIN)
D11,D10
D1,D0
D3,D2
D5,D4
2101176
(BIN)
623541
4753647
926342