Download Print this page

Saving The Selected Data Of The Index Register And Long Index Register - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

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

Advertisement

Saving the selected data of the index register and long index
register
ZPUSH(P)
These instructions save the contents of index registers and long index registers within the range specified by (s) in the devices
specified by (d) and later.
Ladder diagram
(s)
(d)
FBD/LD
EN
ENO
s
d
("ZPUSH_2", "ZPUSHP_2" enters .)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Type of the index register or long index register to be saved
(d)
Head device number for saving the data of index registers
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Processing details
• These instructions save the contents of index registers and long index registers within the range specified by (s) in the
devices specified by (d) and later. The type of the index register or long index register saved is stored in the end of the
saved data.
• When the contents of the index registers and long index registers are saved, "1" is added to (d).
• The following shows values specified by (s) and the index register or long index register to be saved.
(s) value
0
1
2
• The selected data of index register/long index register return instructions (ZPOP(P) instructions) are used to return the
data. The selected data of index register/long index register save instructions (ZPUSH(P) instructions) and the selected
data of index register/long index register return instructions (ZPOP(P) instructions) can be used in pairs and to adopt a
nesting structure. (Page 551 Returning the selected data of the index register and long index register)
• When a nesting structure is adopted, the areas to be used are added to (d) and later every time the selected data of index
register/long index register save instructions (ZPUSH(P) instructions) are executed. 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.
Word
T, ST, C, D, W,
U\G
SD, SW, R
Z or LZ to be saved
Z, LZ (whole range)
Z (whole range)
LZ (whole range)
Structured text
ENO:=ZPUSH_2(EN,s,d);
ENO:=ZPUSHP_2(EN,s,d);
Range
Data type
0 to 2
16-bit unsigned binary
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
8.11 Index Register Operation Instruction
Data type (label)
ANY16
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8
549

Hide quick links:

Advertisement

loading