
Introduction to Programming
Chapter 10
10-24
Example 10.9
Programming Modal G codes
G00 X1. Z2.; G00 mode iseffective
Z3. ;
G00 modeiseffective
G01 X2. Z1. ;
G01 modeismade effective
X3. Z3. ;
G01 modeisin effect
G00 X1.Z2. ;
G00 modebecomeseffectiveagain
G01 G00 Z3, ;
G00 modeisin 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 modeiseffective
G28 X2.;
G28 mode,thisblockonly
X2. Z1. ;
G00 modeiseffective
G04 P2. X4. ;
G04activefollowedbymoveinG00
Example 10.11
Changing Modes Mid-Block
N10G90X10G91Y10;
X10 isabsolute(G90)Y10 is incremental(G91)
N20X20;
X20isi ncremental(G91)
N30X30G90Y10;
X30isincremental(G91),Y10isabsolute (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.
Comentarios a estos manuales