5 return to alternate home (g30) – Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 410

Advertising
background image

Axis Motion

Chapter 14

14-34

If an attempt is made to execute a G27 before the axes have been homed
the control will go to cycle stop and the following error message will be
displayed:

“MACHINE HOME REQUIRED OR G28”

The G30 command is similar to the G28, with the main difference being
that the axis or axes move to an alternate home position instead of machine
home. The command format determines whether the axes return to a
second, third, or fourth alternate home position. Any axis programmed in
the G30 block must have been homed prior to G30 execution.

The alternate home positions, in reference to the machine coordinate
system, are predefined for each axis in AMP by the system installer.

To use the G30 command follow this format:

G30 X__ Y__ Z__ ;

or

(second alternate home position)

G30 P2 X__ Y__ Z__ ;

G30 P3 X__ Y__ Z__ ; (third alternate home position)

G30 P4 X__ Y__ Z__ ; (fourth alternate home position)

Important: The control generates the error “P VALUE OUT OF RANGE”
if the P value is illegal. For example, a P1 or P5 would be illegal and
generate the error.

The axis words in the above block establish the intermediate point in the
same manner as the G28 code. That is, the axes will move to the
intermediate point defined in the G30 block prior to moving to the
alternate home position. When intermediate values are programmed in a
G28 block they replace G30 intermediate point values and vice-versa. This
intermediate point is used by the G29 automatic return code.

Only those axes included in the G30 block are sent to the alternate home
position. For example:

G30 X5.6

The control moves the X axis to second home after moving to
5.6 on the X axis. The Z and Y axes are not moved.

G30 P3 X1.0 Z4.0

The control moves the X and Z axes to third home after moving
to 1.0 on the X axis and 4.0 on the Z axis. The Y axis is not
moved.

A typical application for the G30 command would be if the automatic tool
changer were located at a position other than machine home.

14.3.5
Return to Alternate Home
(G30)

Advertising