Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 58

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Checking the range of file register
When a file register is specified in an instruction, a range check is performed, so a program needs to be created so that the
operation result falls within the range of the relevant file register.
If a range exceeding that of the file register (ZR) is specified, an error (error code: 2820) occurs.
If a range exceeding that of the file register of the block number used by the file register (R) is specified, an error (error code:
2820) occurs.
Ex.
When a file register (ZR) is specified
BMOV
D0
BMOV
D0
(1) The transfer destination is in the range of file register MAIN1. Data is written to ZR0 and ZR1.
(2) The transfer destination is out of the range of file register MAIN1. An error occurs because the area range of file register MAIN1 is exceeded.
Ex.
When a file register (R) is specified
BMOV
D0
BMOV
D0
(1) The transfer destination is in the range of the R device of block number 0. Data is written to R0 and R1.
(2) The transfer destination is out of the range of the R device of block number 0. An error occurs because the area range of the R device of block number 0.
1 OVERVIEW
56
1.5 Precautions on Programming
Device assignment image in
ZR0
K2
the device/label memory
(1)
ZR65500
K50
(2)
Device assignment image in
RSET
K0
the device/label memory
R0
K2
(1)
R32760
K50
(2)
ZR0
·
File register file: MAIN1
ZR65535
ZR0
·
File register file: MAIN2
ZR50000
R0
·
Block No.0
R32767
R0
·
Block No.1
R32767

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents