G-codes are used to command specific actions for the machine: such as simple machine moves or drilling functions. They also command more complex features which can involve optional live tooling and the C Axis.
Each G-code has a group number. Each group of codes contains commands for a specific subject. For example, Group 1 G-codes command point-to point moves of the machine axes, Group 7 are specific to the Cutter Compensation feature.
Each group has a dominant G-code; referred to as the default G-code. A default G-code means they are the one in each group the machine uses unless another G-code from the group is specified. For example programming an X, Z move like this, X-2. Z-4. will position the machine using G00.
Note: Proper programming technique is to preface all moves with a G-code.
Default G-codes for each group are shown on the Current Commands screen under All Active Codes. If another G-code from the group is commanded (active), that G-code is displayed on the All Active Codes screen.
G-code commands are either modal or non-modal. A modal G-code stays in effect until the end of the program or until you command another G-code from the same group. A non-modal G-code affects only the line it is in; it does not affect the next program line. Group 00 codes are non-modal; the other groups are modal.
Note: The Haas Intuitive Programming System (IPS) is a programming mode that either hides G-codes or completely bypasses the use of G-codes.