Macro Instruction Argument Device (Vd) - Mitsubishi Electric melsec q00ujcpu User Manual

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

9.12.4 Macro instruction argument device (VD)

(1) Definition
The macro instruction argument device (VD) is used with ladders registered as macros.
When a VD
executed.
(2) Specification method
Among the devices used in the ladders registered as macros in GX Developer, specify a device used for VD.
When using macro instructions in the sequence program, specify devices that correspond to the macro instruction
argument devices used in the macro registration ladders in ascending order.
Sequence program
Command with the name of the ladder registered as a macro
With the macro instruction argument device, VD0 to VD9 can be used in one macro registration ladder.
The GX Developer read mode provides an option to view a program in macro instruction format.
To change the display, select [View]
9 - 80
setting is specified, the value is converted to the specified device when the macro instruction is
M.MAX
D0
D1 R0
Passing to VD2
Passing to VD1
Passing to VD0
Sequence program that actually runs in the CPU module
>
D0
D1
<=
D0
D1
Figure 9.93 Macro instruction argument device specification
Figure 9.94 Setting for macro instruction display
Ladder registered as a macro (registration name: MAX)
>
VD0
VD1
<=
VD0
VD1
MOV
D0
R0
MOV
D1
R0
[Display macro instruction format].
Macro instruction display switching
MOV
VD0
VD2
MOV
VD1
VD2

Advertisement

Table of Contents
loading

Table of Contents