Macro Instruction Argument Device (Vd) - Mitsubishi Electric L02SCPU User's Manual And Reference

Melsec-l series, cpu module
Table of Contents

Advertisement

5.12.3

Macro instruction argument device (VD)

The macro instruction argument device (VD) is used with ladders registered as macros. When a VD setting is
specified, the value is converted to the specified device when the macro instruction is executed. With the macro
instruction argument device, VD0 to VD9 can be used in one macro registration ladder.
Among the devices used in the ladders registered as macros, specify a device used for VD. When using macro
instructions in the program, specify devices that correspond to the macro instruction argument devices used in the
macro registration ladders in ascending order.
Program
M.MAX
D0
D1 R0
Passing to VD2
Passing to VD1
Passing to VD0
Command with the name of
the ladder registered as a macro
Program that actually runs in the CPU module
>
D0
D1
< =
D0
D1
Ladder registered as a macro
(registration name: MAX)
>
VD0
VD1
MOV
< =
VD0
VD1
MOV
MOV
D0
R0
MOV
D1
R0
CHAPTER 5 DEVICES
VD0
VD2
VD1
VD2
341
5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents