Download Print this page

Chapter 2 Precautions On Programming - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

2
PRECAUTIONS ON PROGRAMMING
2.1
Errors Common to Instructions
The following table lists the conditions under which an error occurs when the instruction is executed.
*1
Error content
An I/O number which corresponds to no module is specified.
• An I/O number which is out of range (0 to 1777(Octal number)) is specified.
• The device or label specified by the instruction exceeds the available range.
The range of the buffer memory of the module specified by the instruction is exceeded.
*1 For a contact instruction, an error is not detected but the operation result becomes no continuity.
2.2
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, range check is performed. If a range exceeding that of the relevant
device or label is specified, an error occurs.
The same applies when a label assigned to a device is specified in an instruction in the program.
Create such a program that the operation result falls within the range of the relevant device or label.
Ex.
When a global device is specified
BMOV
D0
(1) The transfer destination is in the range corresponding to D1023 to D1032. Because D1024 to D1032 do not exist, the data are written only to D1023.
2 PRECAUTIONS ON PROGRAMMING
38
2.1 Errors Common to Instructions
Device assignment image in
D1023 K10
the device/label memory
(1)
D0
D1022
Data are written to these areas.
D1023
W0
W0007
W03FF
Error code
(SD0/SD8067)
2801H
2820H
2823H

Hide quick links:

Advertisement

loading