Mitsubishi Electric MELSEC FX3U Programming Manual page 504

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
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
502
RST
D 0
FNC 12
K 5
V 0
MOVP
FNC 12
K10
V 0
MOVP
Y000
FNC 01
P 0
CALL
FNC 06
FEND
FNC102
D 0
ZPUSH
FNC 12
K 5
V 0
MOVP
FNC 12
K10
V 0
MOVP
T0
D100V0
FNC103
V 0
ZPOP
FNC 02
SRET
END
17 Data Transfer 2 – FNC100 to FNC109
17.1 FNC102 – ZPUSH/Batch Store of Index Register
Program using index
registers

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents