Mitsubishi Electric MELSEC Q Series Programming Manual page 69

Structured. fundamentals
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Precautions
■Using the index setting for arguments of instruction/application function/function/function
block
When "Use ZZ" is checked in "Indexing Setting for ZR Device" setting in the <<Device>> tab of the PLC parameter, and Z
device is used for the argument of instruction/application function/function/function block, the expression is converted to "ZZ"
at the compilation.
This may cause unintended device accesses.
When "Use ZZ" is checked, use ZZ devices for arguments of instruction/application function/function/function block.
■Applying the index setting within the FOR to NEXT instruction loop
The pulses can be output by using edge relays (V) within the FOR to NEXT instruction loop.
Note that the pulses cannot be output by the PLS, PLF, or pulse (P) instruction.
When using an edge relay
M0Z1 pulse is output normally.
SM400
MOV
EN
ENO
0
s
d
FOR
EN
ENO
10
n
X0Z1
EGP
EN
ENO
d
SM400
INC
EN
ENO
d
NEXT
EN
ENO
• The ON/OFF information of X0Z1 is stored to the edge relay V0Z1. For example, the ON/OFF data of X0 is
stored to V0 and the ON/OFF data of X1 is stored to V1.
• Z0 and Z1 cannot be used when labels are used for array indexes within the FOR to NEXT instruction loop.
Z1
OUT
EN
ENO
V0Z1
d
M0Z1
Z1
When not using an edge relay
M0Z1 pulse is not output normally.
SM400
MOV
EN
ENO
0
s
d
Z1
FOR
EN
ENO
10
n
X0Z1
PLS
EN
ENO
d
M0Z1
SM400
INC
EN
ENO
d
Z1
NEXT
EN
ENO
4 PROGRAM CONFIGURATION
4
67
4.6 Index Setting

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec f seriesMelsec l series

Table of Contents