483
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109
17.1 FNC102 – ZPUSH/Batch Store of Index Register
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High-Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
Program example
In the program shown below, the contents of the index registers Z0 to Z7 and V0 to V7 before execution of subroutine
program are batch-stored in D0 and later when index registers are used in the subroutine after the pointer P0.
X005
M8002
Label
P 0
M8000
RUN monitor
M8000
K 5
D 0RST
FNC102
ZPUSH
D 0
END
FNC103
ZPOP
FNC 02
SRET
FNC 12
MOVP
X005
K10
FNC 12
MOVP
X000 V0
Y000
FNC 06
FEND
X000
FNC 01
CALL
P 0
Program using index
registers
X006
K 5
FNC 12
MOVP
X006
K10
FNC 12
MOVP
X030
T0
D100V0
V 0
V 0
V 0
V 0
V 0