Yaskawa YASNAC PC NC Programming Manual User Manual

Page 56

Advertising
background image

3 - 6

YASNAC PCNC Programming Manual

Chapter 3: Movement Control Commands

By specifying “G54 (G55, G56, G57, G58, or G59) J1 (J2 • • • • • • • J27)”, the subse-
quent programs are executed in the selected workpiece coordinate system. Address P
can be used instead of address J, by changing the setting for the following parameter.
G54”, “G54 J1”, and “G54 J0” have the same meaning.

By specifying “G53 (or G90) G00 X • • • Y • • • Z • • • (*a • • • b • • •);”, it is possible
to specify temporary shift of a coordinate system in the machine coordinate system.

By specifying “G52;” the workpiece coordinate system selected currently is canceled
and the base coordinate system is called.

If workpiece coordinate system shift distance is changed after the workpiece coordi-
nate system is selected by the execution of G54 to G59, whether or not the new shift
distance is made valid without specifying G54 to G59 again can be selected by the set-
ting for parameter (pm4021 D0).

(3) Rotation of Workpiece Coordinate System

By entering the address calling rotation of a workpiece coordinate system in the G54 to G59
block, rotation of the workpiece coordinate system is executed at the same time when the
workpiece coordinate system is called.

Example of Programming

G92 X0 Y0 Z0;

?

The base coordinate system is set.

G54; (G68 X0 Y0 R

• • •

)

?

A workpiece coordinate system is set by G54. At the same time, the

workpiece coordinate system is rotated around (0, 0) it by the angle

specified following address R.

G55; (G69)

(G68 X0 Y0 R

• • •

)

?

The workpiece coordinate system set by G54 is canceled and a new

workpiece coordinate system is set according to the shift distance and

rotation angle specified in the G55 block.

G52; (G69)

?

G52 returns the coordinate system to the one set by G92. Rotation of a

coordinate system is canceled at the same time.

M30;

Note:

The commands in ( ) indicate the program which uses the coordinate rotation function.

pm4012 D7 = 0

Address J

pm4012 D7 = 1

Address P

Advertising