Chapter 7
106
UM10372_PCNC440_Manual_0221A
PROgRAMMiNg
7.2.7.3 Error Handling
This secon describes error handling in PathPilot. This operang system somemes ignores things
it does not understand. If a command does not work as expected or does nothing, check if it was
typed correctly. The operang system does not check for excessively high-machining feeds or
speeds. Nor does it detect situaons where a legal command does something unfortunate, such as
machining a xture.
7.2.7.4 Modality and Modal Commands
G-codes and M-codes are, generally speaking, modal. Modal commands cause the machining
system to change from one mode to another. The mode stays acve unl another command changes
it implicitly or explicitly. For example, if coolant is turned on (M07 or M08) it stays on unl it is
explicitly turned o in the program (M09). A few G-codes and M-codes are non-modal. These codes
have eect only on the lines on which they occur. For example, dwell (G04) is non-modal.
7.2.7.5 Modal Groups
Modal commands are arranged in sets called modal groups, and only one member of a modal group
may be in force at any given me. In general, a modal group contains commands for which it is
logically impossible for two members to be in eect at the same me – for example inch units (G20)
vs. millimeter units (G21). A machining system may be in many modes at the same me, with one
mode from each modal group being in eect.
Modal Groups for G-codes
Group 1 =
{G00, G01, G02, G03, G33, G38.x, G73, G76, G80, G81, G82, G85, G86, G87, G88, G89} moon
Group 2 = {G17, G18, G19, G17.1, G17.2, G17.3} plane selecon
Group 3 = {G90, G91} distance mode
Group 4 = {G90.1, G91.1} arc IJK distance mode
Group 5 = {G93, G94} feed rate mode
Group 6 = {G20, G21} units
Group 7 = {G40, G41, G42, G41.1, G42.1} cuer radius compensaon
Group 8 = {G43, G43.1, G49} tool length oset
Group 10 = {G98, G99} return mode in canned cycles
Group 12 = {G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3} coordinate system selecon
Group 13 = {G61, G61.1, G64} path control mode
Group 14 = {G96, G97} spindle speed mode
Group 15 = {G07, G08} lathe diameter mode