An example of non-modal g-code execution follows – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 302

Advertising
background image

Introduction to Programming

Chapter 10

10-24

Example 10.9

Programming Modal G codes

G00 X1. Z2.;

G00 mode is effective

Z3. ;

G00 mode is effective

G01 X2. Z1. ;

G01 mode is made effective

X3. Z3. ;

G01 mode is in effect

G00 X1.Z2. ;

G00 mode becomes effective again

G01 G00 Z3, ;

G00 mode is in effect

G01 G91 Z2 ;

G01 and G91 both in effect

An example of non-modal G-code execution follows:

Example 10.10

Programming Non-Modal G Codes

G00 X1. Z21 ;

G00 mode is effective

G28 X2.;

G28 mode, this block only

X2. Z1. ;

G00 mode is effective

G04 P2. X4. ;

G04 active followed by move in G00

Example 10.11

Changing Modes Mid-Block

N10G90X10G91Y10;

X10 is absolute (G90) Y10 is incremental (G91)

N20X20;

X20 is incremental (G91)

N30X30G90Y10;

X30 is incremental (G91), Y10 is absolute (G90)

Table 10.E breaks down the G codes into their groups. For example, G
codes in group 01 are modal only with other G codes in group 01. G codes
in the 00 group are non-modal and are effective only in the block in which
they are programmed.

Advertising