Yaskawa YASNAC PC NC Programming Manual User Manual

Page 59

Advertising
background image

3 - 9

YASNAC PCNC Programming Manual

Chapter 3: Movement Control Commands

(a) Correcting workpiece coordinate system shift distance by microprogram

The workpiece coordinate system shift distance (and the external workpiece coordinate
system correction amount) can be read by entering a system variable in the right side of
the operation expression. It is possible to change these values by entering a system vari-
able in the left side of the operation expression.

Example of programming

#116 = #2501;

G54 (Pl) X-axis workpiece coordinate shift distance is entered to common variable #1
16.

#2511 = #4;

G54 (J2) X-axis workpiece coordinate system shift distance is cleared and the contents
of local variable #4 are set. For the correspondence between the system variables and
the workpiece coordinate system shift distances, refer to Tables 4.41, 4.42, and 4.43.

(b) Correcting workpiece coordinate system shift distance by external data input

The workpiece coordinate system shift distance can be corrected by the external data input
signal.

The shift correction amount is added to the present shift distances for G54 (J1) to G59
(J27) and the sum of externally input shift correction amount and the present shift distance
is used as anew shift distance. In this case, the workpiece coordinate shift distance is not
directly changed but the external workpiece coordinate system shift distance is changed.

Workpiece coordinate system shift distance in actual operation

= External workpiece coordinate system correction amount

+ Workpiece coordinate system shift distance

Concerning the angle of rotation, the workpiece coordinate system shift distance should be
corrected directly.

(c) Correcting the workpiece coordinate system shift distance by programming (G10)

It is possible to correct the workpiece coordinate system shift distance by using the G10.

By specifying” G10 Q2 (or L2) Pm Jn X

• • •

Y

• • •

Z

• • •

(*a

• • •

b

• • •

);’’, the workpiece

coordinate system shift distance of the specified workpiece coordinate system is corrected.
A combination of Pm and Jn specifies the workpiece coordinate system for which the shift
distance should be corrected.

The correspondence between a P number and G code is:

P1 = G54, P2 = G55, etc.

Jn: Selects J1 - J27.

(Example) If “P2 J3” is specified, it is equal to “G55 J3”.

If J is omitted or “J0” is specified, it is assumed that “J1” is specified.

Advertising