10
- 109
10.12 Other Devices
10.12.5 Macro instruction argument device (VD)
10
DEVICE EXPLANATION
10.12.5 Macro instruction argument device (VD)
(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 is performed when the macro instruction is executed.
(2) Designating macro instruction argument devices
Specify the devices transferred from sequence programs to macro registration
ladders as macro instruction argument devices among the devices used in the
ladders registered as macro with GX Developer.
Designate devices that correspond to the macro argument devices used in the macro
registration ladders in ascending order, when using macro instructions in a sequence
program.
Figure 10.93 Designating the macro instruction argument device
Transfer to VD2
VD0
MOV
VD2
VD0
>
VD1
D0
M.MAX
D1 R0
Transfer to VD1
Transfer to VD0
VD1
MOV
VD2
VD0
<=
VD1
Name of ladder registered as a macro
Actual sequence program executed at CPU module
Sequence program
D0
MOV
R0
D0
>
D1
D1
MOV
R0
D0
<=
D1
Ladder registered as a macro
(registration name: MAX)