Index Register Operation Instruction; Saving All Data Of The Index Register - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

7.9

Index register operation instruction

Saving all data of the index register

ZPUSH(P)
These instructions save the contents of index registers and long index registers in the devices specified by (d) and later.
Ladder diagram
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d)
Head device number for saving the data of index registers and
long index registers
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(d)
Processing details
• These instructions save the contents of index registers and long index registers in the devices specified by (d) and later.
• When the contents of index registers are saved, "1" is added to (d).
• These instructions save the contents of index registers and long index registers for 24 words regardless of the assignment
of the number of the registers. Thus, when the number of index registers is 0, the contents of long index registers are saved
for 12 points.
• The ZPOP(P) instructions are used to return the data. The ZPUSH(P) and ZPOP(P) instructions are used in pairs, and by
using the same device in (d) a nesting structure can be adopted. (
• When a nesting structure is adopted, the areas to be used are added to (d) and later every time the ZPUSH(P) instructions
are used. Check the number of index registers and long index registers by SD300 and SD302, and secure the areas for the
number of instructions to be used in advance.
• The following shows the areas of (d) and later to be used.
(d)+0
Number of times of batch-storage
+1
Z0
+2
Z1
+24
Z23
+25
Z0
+26
Z1
7 APPLICATION INSTRUCTION
466
7.9 Index register operation instruction
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
1st nesting (24 words for one nesting)
2nd nesting
Structured text
ENO:=ZPUSH(EN,d);
ENO:=ZPUSHP(EN,d);
Range
Double word Indirect
U\G
Z
LC
LZ
Page 468 Returning all data of the index register)
Data type
Data type (label)
16-bit signed binary
ANY16
Constant
specification
K, H
E
Others
$

Advertisement

Table of Contents
loading

Table of Contents