Download Print this page

Index Register Operation Instruction - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

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

Advertisement

8.11

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)
FBD/LD
EN
ENO
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
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(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. (Page 548 Returning all data of the index register)
• 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.
8 APPLICATION INSTRUCTION
546
8.11 Index Register Operation Instruction
Word
T, ST, C, D, W,
U\G
SD, SW, R
Structured text
ENO:=ZPUSH(EN,d);
ENO:=ZPUSHP(EN,d);
Range
Data type
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$

Hide quick links:

Advertisement

loading