6 POSITIONING CONTROL

[Program]

Program executes manual pulse generator operation is shown as the following conditions.

(1) System configuration

Manual pulse generator operation of Axis 1 and Axis 2.

Motion CPU control module

Q61P

Q02H

Q172H

Q172

QX41

 

CPU

CPU

LX

 

 

 

 

 

 

 

 

 

 

Manual pulse generator P1

Manual pulse generator enable flag

 

 

 

 

 

 

 

 

 

 

 

 

Manual pulse generator P2

(M2051 : P1, M2052 : P2)

 

 

 

 

 

 

AMP

 

 

 

AMP

AMP

 

AMP

Axis

Axis

Axis

Axis

1 M

 

 

2 M

3 M

 

4 M

(2)Manual pulse generator operation conditions

(a)Manual pulse generator operation axis................Axis 1, Axis 2

(b)Manual pulse generator 1- pulse input magnification............ 100

(c)Manual pulse generator operation enable ...........M2051 (Axis 1)/ M2052 (Axis 2) ON

(d)Manual pulse generator operation end ................M2051 (Axis 1)/ M2052 (Axis 2) OFF

(3)Motion SFC program

Motion SFC program for manual pulse generator operation is shown below.

Manual pulse generator

Manual pulse generator

[F10] SET M2042

[G10] PX000*M2415*M2435

[F20] D720=100 D721=100 D714L=H00000001 D716L=H00000002 SET M2051

SET M2052

[G20] !PX000

[F30] RST M2051 RST M2052

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

Manual pulse generator 1- pulse input magnification for Axis 1, Axis 2.

Control Axis 1 by P1. Control Axis 2 by P2.

Manual pulse generator enable flag ON for Axis 1, Axis 2.

Wait until PX000 turn off after manual pulse generator operation end.

Manual pulse generator enable flag OFF for Axis 1, Axis 2.

(Note): Turn the manual pulse generator enable flag off for P1, P2, so that the operation may not continued for safety.

END

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

6 - 187