2 MOTION DEDICATED PLC INSTRUCTION
2.2 Motion Dedicated PLC Instruction
63
2
■Program which changes the positioning speed to 200000 for Axis 1 of the Motion CPU (CPU
No.2), when M0 that sets Axis No. as indirect setting method turned ON, and then changes the
positioning speed to 50000 for Axis 2, M1 turned ON
Axis 2 CHGV
instruction
execution
command
Axis 2 CHGV
instruction
execution
command
Axis 1 CHGV
instruction
execution
command
Axis 1 CHGV
instruction
execution
command
Axis 2 speed
change
command
Axis 1 speed
change
command
Axis 1
CHGV
instruction
execution
command
Axis 2
CHGV
instruction
execution
command
Axis 2
speed
change
command
MP.CHGV H3E1 @W0 D4 M100 D100
Only 1
scan ON
after start
SM402
SET M10
$MOVP "J1" D0
DMOVP K200000 D4
Axis No.1
for indirect
setting
Axis No.2
for indirect
setting
Axis 1
speed
change
command
M0
MOVP K0 Z0
Axis No.
offset
Change
speed
setting
RST M0
SET M11
DMOVP K50000 D4
M1
MOVP K2 Z0
Axis No.
offset
Change
speed
setting
RST M1
Axis 1
CHGV
instruction
execution
command
M10
RST M10
M10
Axis No.
indirect
setting
device
address
setting
ADRSET D0Z0 W0
M11
$MOVP "J2" D2
RST M10