Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 472

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

Advertisement

• The following shows the areas of (d) and later used for the instructions (when Z0 to 13 and LZ0 to 4 are used).
ZPUSH
K0
D0
(Save the whole range
of Z and LZ)
ZPUSH
K2
D0
(Save the whole range
of LZ)
Precautions
• When a nesting structure is not adopted, clear (d) before executing the ZPUSH(P) instructions.
• When a nesting structure is adopted, clear (d) before executing the first ZPUSH(P) instructions.
• When the ZPOP(P) instructions are used to return the data of index registers, use the ZPOP(P) instructions corresponding
to the ZPUSH(P) instructions that were used for saving the data.
ZPUSH(P) (One setting data)  ZPOP(P) (One setting data)
ZPUSH(P) (Two setting data)  ZPOP(P) (Two setting data)
• Do not change the values of (d)+1 and (d)+2 because they are used by the system. Do not change the values of the Z and
LZ save types stored in the devices specified by (d) and later because they are used by the system.
• Secure the areas so that the save destination specified by (d) does not exceed the device range.
Operation error
Error code
Description
(SD0/SD8067)
2820
The range of points used in (d) or later exceeds the range of the target device/label area.
3405
A value other than 0 to 2 is specified in (s).
When the number of index registers is 0, "1" is specified in (s).
When the number of long index registers is 0, "2" is specified in (s).
7 APPLICATION INSTRUCTION
470
7.9 Index register operation instruction
Number of times of batch-storage
(d)
(d)+1
Reserved by the system
(2 words)
(d)+2
Z0
(d)+3
Z1
(d)+4
Z13
(d)+16
(d)+17
LZ0
(d)+18
(d)+19
LZ1
(d)+20
(d)+25
LZ4
(d)+26
Z, LZ save type = 0
(d)+27
(d)+28
LZ0
(d)+29
(d)+36
LZ4
(d)+37
Z, LZ save type = 2
(d)+38
1st nesting
(25 words for one nesting)
2nd nesting
(11 words for two nesting)
3rd nesting

Advertisement

Table of Contents
loading

Table of Contents