Mitsubishi Electronics Q172HCPU Baby Accessories User Manual


 
6 - 133
6 POSITIONING CONTROL
(5) Motion SFC program
Motion SFC program for which executes the servo program is shown below.
SET M2042
CPSTART2
Axis 1
Axis 2
Speed 10000PLS/s
ABS-2
Axis 1, 20000PLS
Axis 2, 10000PLS
ABS
Axis 1, 30000PLS
Axis 2, 20000PLS
Center 1, 30000PLS
Center 2, 10000PLS
ABS-2
Axis 1, 40000PLS
Axis 2, 25000PLS
Speed 15000PLS/s
ABS-2
Axis 1, 50000PLS
Axis 2, 40000PLS
CPEND
PX000*M2415*M2435
END
Set P1
Speed-switching during instruction execution
!PX000
SET M2040=PX010
RST M2040=!PX010
Speed change
Speed-switching during
instruction execution
Turn on all axes servo ON command.
Wait until PX000, Axis 1 servo ready and Axis 2 servo
ready turn on.
Set P4
Set P2
Set P3
Wait until PX000 turn off after constant-speed control
completion.
[F10]
[G10]
[K310]
[G20]
[F20]
Speed-switching point specified flag turn on when
PX010 turn on.
Speed-switching point specified flag turn off when
PX010 turn off.
(Note): Example of the above Motion SFC program is started using the automatic start or PLC program.