Mitsubishi FX3G Series Programming Manual page 478

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
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.
M8002
X005
X005
X000 V0
X000
Label
M8000
P 0
RUN monitor
X006
X006
X030
M8000
476
Series
FNC 12
MOVP
FNC 12
MOVP
FNC 01
CALL
FNC102
ZPUSH
FNC 12
MOVP
FNC 12
MOVP
FNC103
ZPOP
17.1 FNC102 – ZPUSH/Batch Store of Index Register
RST
D 0
K 5
V 0
K10
V 0
Y000
P 0
FNC 06
FEND
D 0
K 5
V 0
Program using index
K10
V 0
registers
T0
D100V0
V 0
FNC 02
SRET
END
17 Data Transfer 2 – FNC100 to FNC109

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents