Mitsubishi Electric MELSEC Q Series Structured Programming Manual page 77

Fundamentals
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(6) Precautions
(a) 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.
(b) 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 (
[When using an edge relay]
(M0Z1 pulse is output normally.)
SM400
MOV
EN
ENO
0
s
FOR
EN
ENO
10
n
X0Z1
EGP
EN
ENO
SM400
INC
EN
ENO
NEXT
EN
ENO
Remark
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.
d
Z1
OUT
EN
ENO
d
V0Z1
d
M0Z1
d
Z1
P) instruction.
[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.6 Index Setting
4
4-53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l seriesMelsec-f

Table of Contents