1 OVERVIEW
1.5 Precautions on Programming
55
1
1.5
Precautions on Programming
Errors common to instructions
The following table lists the conditions under which an error occurs when the instruction is executed.
*1 For a contact instruction, an error is not detected but the operation result becomes no continuity.
Checking the ranges of instruction runtime devices and labels
Checking the ranges of devices and labels
When a device or label is specified in an instruction, no range check is performed, so a program needs to be created so that
the operation result falls within the range of the relevant device or label.
If a range exceeding that of the relevant device or label is specified, no error is detected but data is written to other device or
label areas.
However, an error (error code: 2820) occurs if data is written to outside the areas.
The same applies if the label assigned to a device is specified in an instruction in the program.
Ex.
When a global device is specified and W0 is assigned after D1023 in the device/label memory
Error content
Error code
An I/O number which is out of range (other than 000H to FFFH and 3E0H to 3E3H) is specified.
2800H
An I/O number which corresponds to no module is specified.
2801H
An I/O number of the module that cannot be specified by using the instruction is specified.
2803H
A network number which is out of range (1 to 239) is specified.
2804H
A network number which does not exist is specified.
2805H
• The device or label specified by the instruction exceeds the available range.
• The file register is accessed while the file register is not set in the file setting of a CPU parameter or the file register to be used in
the program is not set.
2820H
• The range of the buffer memory of the module specified by the instruction is exceeded.
• The module specified by the instruction does not have buffer memory.
2823H
(1) The transfer destination is in the range corresponding to D1023 to D1032. Even though the range D1024 to D1032 does not exist, the data are written and
the data in W0 to W0007 are overwritten.
D1023 K10
D0
BMOV
(1)
D0
·
D1022
D1023
W0
·
W0007
W03FF
·
(1)
Device assignment image in
the device/label memory
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......