6 POSITIONING CONTROL

(c) Servo program

Servo program No.0 for constant speed control is shown below.

<K 0>

CPSTART2

Axis

1

 

Axis

2

10000

Speed

 

FIN acceleration/

100

deceleration

 

ABS-2

 

 

Axis

1,

200000

Axis

2,

200000

M-code

 

10

ABS-2

 

 

Axis

1,

300000

Axis

2,

250000

M-code

 

11

ABS-2

 

 

Axis

1,

350000

Axis

2,

300000

M-code

 

12

ABS-2

1,

400000

Axis

Axis

2,

400000

CPEND

 

 

Start constant-speed control

 

Axis used . . . . . . . . .

Axis 1, Axis 2

Positioning speed . . .

10000[PLS/s]

FIN acceleration/ . . .

. . 100[ms]

 

deceleration

 

 

2 axes linear interpolation control

 

Axis used . . . . . .

Axis 1, Axis 2

Address of . . . . .

Axis 1 . . .

200000[PLS]

stop position

Axis 2 . . .

200000[PLS]

M-code output . . . . . .

10

 

2 axes linear interpolation control

 

Axis used . . . . . .

Axis 1, Axis 2

Address of . . . . .

Axis 1 . . .

300000[PLS]

stop position

Axis 2 . . .

250000[PLS]

M-code output . . . . .

. 11

 

2 axes linear interpolation control

 

Axis used . . . . . .

Axis 1, Axis 2

Address of . . . . .

Axis 1 . . .

350000[PLS]

stop position

Axis 2 . . .

300000[PLS]

M-code output . . . . .

. 12

 

2 axes linear interpolation control

 

Axis used . . . . . .

Axis 1, Axis 2

Address of

Axis 1 . . .

400000[PLS]

stop position

Axis 2 . . .

400000[PLS]

End constant- speed control

(Note): Example of the Motion SFC program for positioning control is shown next page.

6 - 155