Mitsubishi Electric MELSEC-Q/L Programming Manual page 104

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Cautions
■Performing indexing between the FOR and NEXT instructions
Pulses can be output between the FOR and NEXT instructions by use of the edge relay (V). However, pulse output using the
PLS/PLF/pulse (P) instruction is not allowed.
When edge relay is used
M0Z1 provides normal pulse output.
SM400
X0Z1
V0Z1
SM400
The ON/OFF data of X0Z1 is stored by the edge relay V0Z1.
For example, the ON/OFF data of X0 is stored by V0, and that of X1 by V1.
■Performing indexing with the CALL instruction
Pulses can be output with the CALL instruction by use of the edge relay (V). However, pulse output using the PLS/PLF/pulse
(P) instruction is not allowed.
When edge relay is used
M0Z1 provides normal pulse output.
SM400
SM400
X0Z1
V0Z1
P0
3 CONFIGURATION OF INSTRUCTIONS
102
3.3 Indexing
MOV
K0
Z1
FOR
K10
M0Z1
INC
Z1
NEXT
MOV
K0
Z1
CALL
P0
MOV
K1
Z1
CALL
P0
FEND
M0Z1
RET
When edge relay is not used
M0Z1 does not provide normal pulse output.
SM400
MOV
X0Z1
SM400
When edge relay is not used
M0Z1 does not provide normal pulse output.
SM400
MOV
SM400
MOV
X0Z1
P0
K0
Z1
FOR
K10
PLS
M0Z1
INC
Z1
NEXT
K0
Z1
CALL
P0
K1
Z1
CALL
P0
FEND
PLS
M0Z1
RET

Advertisement

Table of Contents
loading

Table of Contents