Mitsubishi MELSEC Q Series Programming Manual page 774

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

ZPUSH(P),ZPOP(P)
• When using a High Performance model QCPU/Process CPU/Redundant CPU
• When using Universal model QCPU/LCPU
ZPOP
(1) Recovers the contents saved in the area starting from the device designated by
index register. (When the saved content is read out to the index register,
of saves made) is decreased by 1.)
Operation Error
(1) 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 range for the number of points to be used at
exceeds the corresponding device range.
• The contents of
Program Example
(1) The following program saves the contents of the index register to the fields following D0
before calling the subroutine following P0 that uses the index register.
[Ladder Mode]
7-400
+0
D
Number of saves
+1
Z0
+2
Z1
1st nesting
(18 words for the 1st nesting)
+16
Z15
+17
Reserved by the
system (2 words)
+18
+19
Z0
+20
Z1
2nd nesting
+0
D
Number of saves
+1
Z0
+2
Z1
1st nesting
(22 words for the 1st nesting)
+20
Z19
+21
Reserved by the
system (2 words)
+22
+23
Z0
+24
Z1
2nd nesting
+ 0 (number of saves made) is 0 in the ZPOP(P) instruction.
D
and later by the ZPUSH(P) instruction
D
[List Mode]
Step
Instruction
to the
D
+ 0 (the number
D
(Error code: 4101)
(Error code: 4100)
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents