6 POSITIONING CONTROL

(5) Motion SFC program

Motion SFC program for which executes speed-switching control using repetition instructions is shown below.

Specification of speed-switching points using repetition instructions

Speed-switching control using repetition instructions

[F10]

SET M2042

 

[G10] PX000*M2435*M2455

[K501] VSTART INC-2

Axis 2, 230000PLS

Axis 3, 100000PLS

Speed 10000PLS/s

VINC

Axis 2, 40000PLS

Speed 40000PLS/s

FOR-TIMES

K 2

VINC

Axis 2, 30000PLS

Speed 20000PLS/s

VINC

Axis 2, 50000PLS

Speed 40000PLS/s

NEXT

VEND

[G20] !PX000

Turn on all axes servo ON command.

Wait until PX000, Axis 2 servo ready and Axis 3 servo ready turn on.

Starts speed-switching control

2 axes linear interpolation control (incremental data method) Axis used . . . . . . . . . . . . . . . . Axis 2, Axis 3

Travel value to . .

. . . . . . . Axis 2 . . .

230000

stop position

Axis 3 . . .

100000

Positioning speed .

. . 10000[PLS/s]

 

Speed-switching point, speed setting

 

Indicated axis . . .

Axis 2

 

Travel value to speed-switching point . . .

40000[PLS]

Speed to speed-switching point . . .. . . . . . . 40000[PLS/s] Number of repetitions 2

Speed-switching point, speed setting

Indicated axis No.

Axis 2

Speed-switching point

30000

50000

Speed to speed-switching point

20000

40000

(Unit : Point [PLS]/speed [PLS/s]) End repetition region

End speed-switching control

Wait until PX000 turn off after speed switching control completion.

END

(Note): Example of the above Motion SFC program is started using the automatic start or PLC program.

6 - 119