CNC knowledge base

CNC programming

G-codes and M-codes, CAM programming, machine axes and coordinate systems. This section has 9 articles: G-Code Basics, M-Codes, CAM Programming, CNC Machine Axes and Coordinate Systems, Fanuc Alarm Codes, Siemens SINUMERIK Alarms and more.

9knowledge articles

G-Code Basics: CNC Program Structure and Common G Commands

G-code is the programming language of CNC machines, with its fundamentals defined in ISO 6983: a program consists of blocks of address words (N, G, X, Y, Z, F, S, T, M), and G commands set the motion type and modes. Key…

M-Codes: CNC Machine Miscellaneous Functions and Their Meaning

M-codes are the miscellaneous (machine) functions of a CNC program that control spindle rotation, coolant, tool changes, program stops and program end. The most common are M03/M04/M05 (spindle), M06 (tool change)…

CAM Programming: From 3D Model to CNC Program

CAM (computer-aided manufacturing) programming is the process of creating toolpaths from a 3D CAD model with software, simulating them and converting them through a post-processor into G-code for a specific machine. CAM…

CNC Machine Axes and Coordinate Systems

CNC machine axes are defined by ISO 841 using a right-handed Cartesian system: Z is parallel to the spindle, X is usually the longest horizontal axis, Y is perpendicular to both, and A, B and C are rotary axes about X…

Fanuc Alarm Codes: Structure, Common Alarms and What to Check

A Fanuc alarm is a control message that the program or machine cannot continue; on Series 0i-D, 0i-F and 30i controls the code consists of a type prefix (PS, SV, OT, DS and others) and a number, such as PS0010 or…

Siemens SINUMERIK Alarms: Number Ranges, Common Alarms and Clearing

SINUMERIK alarms are control messages whose number range identifies the source: 010000–019999 channel, 020000–029999 axis and spindle, and 400000–799999 PLC and machine builder alarms. Each alarm has a clearing…

Drilling Canned Cycles G73–G89: G81, G83, G84 and Boring Cycles on Fanuc Mills

Drilling canned cycles (G73–G89) are Fanuc-style milling commands that perform a complete hole operation in one block: G81 simple drilling, G83 deep-hole peck drilling, G84 tapping, and G85–G89 and G76 boring. The block…

Fanuc Lathe Cycles G70–G76: Roughing, Finishing and Threading

Fanuc lathe cycles G70–G76 calculate passes automatically from a contour described once or from a few parameters: G71 and G72 for longitudinal and facing roughing, G73 for pattern repeating, G70 for finishing, G74 and…

Siemens SINUMERIK Cycles: Overview of Drilling, Milling and Turning Cycles

SINUMERIK cycles are standard subroutines on Siemens controls, called by name with parameters, such as CYCLE83 for deep-hole drilling, POCKET3 for a rectangular pocket or CYCLE95 for contour stock removal in turning…