The Supported Codes and Parser Capabilities section describes the full functionality of the G-code interpreter
in NCPlayer, including supported command formats, modal groups, macro programming, arithmetic, conditions,
loops, and advanced functions.
The parser is designed to work with FANUC-style programs
(specifically 0i-MB) but is also compatible with other controllers when properly configured.
1. Supported G/M Code Formats
G-codes:
Standard modal groups:
G0 — rapid positioning.
G1 — linear interpolation.
G2 / G3 — circular interpolation CW/CCW with support for:
R parameter (arc radius).
I, J, K parameters (arc center in ABS or INC mode).
G17, G18, G19 planes.
G17 / G18 / G19 — plane selection.
G20 / G21 — unit selection (inch/mm).
G40 / G41 / G42 — cutter radius compensation.
G43 / G44 — tool length compensation.
G49 — cancel tool length compensation.
G54 – G59 — work coordinate systems (including extended G54.1 Px).
G90 / G91 — absolute / incremental mode.
G98 / G99 — return in drilling cycles (initial point / R-plane).
Drilling cycles:G73, G74, G76,
G80, G81, G82, G83 with support for
X, Y, Z, R, Q, F parameters.
Special codes: G65 (custom macro simple call with arguments).
M-codes:
Spindle control: M3, M4, M5.
Coolant control: M7, M8, M9.
Program stops: M0, M1, M2, M30.
Subprogram handling: M98 (call), M99 (return).
2. Macro Programming Support
Local variables: #1 – #33 (reset on M99 if the parameter is enabled).
Common variables: #100 – #199.
Global variables: #500 – #531.
System variables: according to FANUC (e.g., #5001 for current X position).