6 POSITIONING CONTROL

(3) Operation timing

Operation timing for the servo program No.0 is shown below.

V

10000

Servo Program No.0

 

t

PLC ready flag (M2000)

All axes servo ON command (M2042)

All axes servo ON accept flag (M2049)

Axis 4 servo ready (M2475)

Start command (PX000)

Servo program start

Axis 4 start accept flag (M2004)

(4) Servo program

Servo program No.0 for positioning control is shown below.

<K 0>

 

 

 

 

1 axis linear positioning control

 

 

 

 

INC-1

 

 

 

 

 

 

 

 

Axis

4,

80000

 

Axis used . . . . . . . . . . . Axis 4

Speed

 

 

10000

 

Travel value to . . . . . . . . 80000

stop position

Command speed . . . . . . 10000

(5) Motion SFC program

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

1 axis linear positioning control

1 axis linear positioning control

[F10]

SET M2042

 

 

Turn on all axes servo ON command.

 

 

 

[G10]

 

 

 

Wait until PX000 and Axis 4 servo ready turn on.

 

 

 

PX000*M2475

 

 

[K0]

 

 

 

 

1 axis linear positioning control

 

 

 

 

INC-1

 

 

 

 

 

 

 

 

Axis

4,

80000PLS

 

Axis used . . . . . . . . . . Axis 4

 

Speed

 

10000PLS/s

 

Travel value to . . . . . . . 80000[PLS]

 

 

 

 

 

stop position

 

 

 

 

[G20]

 

 

 

 

Command speed . . . . . 10000[PLS/s]

 

 

 

!PX000

 

 

 

Wait until PX000 turn off after linear positioning

 

 

 

 

completion.

END

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

6 - 21