6 POSITIONING CONTROL

(4) Servo program

Servo program No.510 for constant-speed control is shown below.

<K 510>

 

 

 

 

 

 

 

Start constant-speed control

 

 

 

 

 

 

 

 

 

 

 

CPSTART2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Axis

2

 

 

 

 

 

 

Axis used . . . . . . . . . Axis 2, Axis 3

 

 

 

 

 

Axis

3

 

10000

 

 

 

 

Positioning speed . . . 10000

Speed

 

 

 

 

 

Pass point setting

 

 

ABS-2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Axis

2,

40000

 

 

 

 

 

 

 

 

 

 

 

Axis

3,

20000

 

 

Number of repetitions 4

 

 

FOR-TIMES

 

 

K 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Pass point setting

 

 

INC-2

 

 

 

 

 

 

 

 

 

 

 

 

 

Positioning

 

2 axes linear

 

Radius-specified

 

 

 

 

 

 

 

 

Axis

2,

30000

 

 

 

 

 

Axis

3,

0

 

 

 

method

 

 

interpolation

 

circular interpolation

INC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

20000

 

 

 

Travel

 

Axis 2

 

30000

 

20000

Axis

2,

 

 

 

 

 

 

 

 

 

value

 

Axis 3

 

0

 

20000

Axis

3,

20000

 

 

 

 

 

 

Radius

 

 

20000

 

 

End repetition region

 

 

NEXT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CPEND

 

 

 

 

 

 

End constant-speed control

 

 

 

 

 

 

 

 

 

 

(5) Motion SFC program

Motion SFC program for which executes the servo program is shown below.

Constant-speed control

 

Constant-speed control

[F10]

SET M2042

 

 

 

[G10]

PX000*M2435*M2455

 

[K510] CPSTART2

 

 

Axis

2

 

 

Axis

3

 

 

Speed

 

10000PLS/s

 

ABS-2

 

 

 

Axis

2,

40000PLS

 

Axis

3,

20000PLS

 

FOR-TIMES

 

 

 

 

K 4

 

INC-2

 

 

 

Axis

2,

30000PLS

 

Axis

3,

0PLS

 

INC

 

 

 

Axis

2,

20000PLS

 

Axis

3,

20000PLS

 

Radius

 

20000PLS

 

NEXT

 

 

 

CPEND

 

 

[G20]

!PX000

 

Turn on all axes servo ON command.

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

Start constant-speed control

Axis used . . . . . . . . . . Axis 2, Axis 3

Positioning speed . . . 10000[PLS/s]

2 axes linear interpolation control (Absolute data method)

Axis used . . . . . . .

Axis 2, Axis 3

End address

Axis 2 . . . 40000[PLS]

 

 

 

 

Axis 3 . . . 200000[PLS]

Number of repetitions 4

 

Pass point setting

 

 

Positioning

2 axes linear

Radius-specified

method

interpolation

circular interpolation

 

 

 

 

 

Travel

Axis 2

30000[PLS]

20000[PLS]

value

 

Axis 3

0[PLS]

20000[PLS]

End repetition region

End constant-speed control

Wait until PX000 turns off after constant-speed control completion.

END

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

6 - 128