4 g words (preparatory functions) – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 301

Advertising
background image

Introduction to Programming

Chapter 10

10-23

In a metric part program for a linear axis, a feedrate of 100 millimeters per
minute (mmpm) typically would be written as F100.; (depending on the
active word format).

For details on programming feedrates using the different feedrate modes
and special pre-assigned feedrates, see chapter 12.

Important: Feedrates programmed in any of the feedrate modes (G94 or
G95) can be overridden by use of the <FEEDRATE OVERRIDE> switch.
For details, see chapter 12.

The preparatory function is designated by a G word consisting of address
G followed by a two-digit value. In some cases, the G word has an
additional decimal digit. Because many of these are set by industry
standards, they are usually referred to as G codes. The G codes are
classified as modal and non-modal.

Modal

the G code remains in effect until another G code in the same G code group
is programmed.

Non-modal

the G code is in effect only in the block in which it is programmed.

Important: When programming more than one G code from the same
group in a block, the control interprets the G codes in the block as they
occur sequentially from left to right. Any mode that changes in a block
affects only the interpretation of the values to the right of the G code.
Characters to the left of the G code use the old operating mode.

When the control executes an M02 or M30, the modal M and G codes can
be reset to their default values. Whether or not this occurs is determined
by your system installer through AMP. These default values also become
active at power up, E-STOP reset, or control reset. Your system installer
determines these default G codes in AMP.

Important: You can also express G codes in terms of a parametric
expression (for example G[#12+6]). For details, see chapter 20.

How the modal G codes are executed is explained in Example 10.9, using
G00 and G01, both classified into the same G code group.

10.5.4
G Words
(Preparatory Functions)

Advertising