Mitsubishi MELSEC QS Series Programming Manual page 159

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

(3) Program abort information is stored in the individual information (SD16 to SD26).
Device
SD16
SD17
SD18
SD19
SD20
SD21
SD22
SD23
SD24
SD25
SD26
(4) If the abort code is designated using digit designation of a bit device, the data of the
designated digit in the designated bit device is obtained from the device memory as abort
code. If the designated number of bits is less than 16 bits, empty bits are filled with 0.
Example
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
the corresponding error code is stored into SD0.
• The designated instruction name is incorrect.
• The number of the arguments used in the instruction is incorrect.(Error code: 4003)
• A device that cannot be used in an argument is designated.
Program Example
(1) The program below shows that, when X0 turns ON, the CPU module enters the stop error
state and the abort code is stored in SD16.
[Ladder Mode]
Abort code (The first argument of the S.QSABORT instruction is stored.)
Empty (Fixed at 0)
XF
X7
K2X0
0
1
1
1
1
Filled with 0s
H0078
8.1 Forced Control Stop Instruction (S.QSABORT)
Meaning
X0
0
0
0
(Error code: 4002)
(Error code: 4004)
S.QSABORT
8
8-3

Advertisement

Table of Contents
loading

Table of Contents