Macro Instruction Argument Device (Vd) - Mitsubishi Electric MELSEC-Q Series User Manual

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

Advertisement

10 DEVICES

10.11.3 Macro instruction argument device (VD)

Sequence program
10 - 49
(1) Definition
Macro instruction argument devices are used with ladders registered as macros.
When a VD
setting is designated for a ladder registered as a macro,
conversion to the designated device occurs when the macro instruction is
executed.
(2) Designating macro instruction argument devices
Macro instruction argument devices are designated for those devices set as VD
in ladders registered as macro instructions in macro registration at a peripheral
device.
When using macro instructions in a sequence program, designate devices to
correspond to the instruction argument devices used with the ladders registered
as macros, in ascending order.
M.MAX
D0
D1 R0
Name of ladder registered as a macro
Actual sequence program executed at QCPU
>
<=
REMARK
1)
: With the macro instruction argument device, VD0 to VD9 can be used in one
ladder registered as a macro instruction.
2) The GX Developer read mode provides an option to view a program in macro
instruction format.(Choose "View" - "Macro Instruction format display" to view
macro instructions.)
Ladder registered as a macro (registration name: MAX)
>
Transfer to VD2
Transfer to VD1
Transfer to VD0
<=
D0
D1
MOV
D0
D0
D1
MOV
D1
MELSEC-Q
VD0
VD1
MOV
VD0
VD0
MOV
VD1
VD1
R0
R0
VD2
VD2
10 - 49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qcpuMelsec q00jcpuMelsec q00cpuMelsec q01cpu

Table of Contents