Getting Started
Select FANUC G-code in Format. Click Import and choose a .txt, .nc, .tap, or other supported text program. Use the Program selector to choose an O-number program when the file contains multiple programs. Check the selected program before interpreting the displayed toolpath.
Editing and Exporting
Use Edit to inspect or modify the source program. Click Export to save the complete edited source. Clear removes the current program and toolpath. Editing macro parameters such as G65 U/V requires a new simulation parse; verify the selected O program after editing.
Searching Code
Press Ctrl+F or use the search field. Search for N100, G65, #21, or IF [#21 EQ 0]. Search ignores spaces and letter case. Enter or the down arrow advances; Shift+Enter or the up arrow moves backward. The counter shows current match / total matches. The search does not change G-code.
Edit, Trace and Source Navigation
Edit displays the source text. Trace displays executable source lines and the current motion block. Click a code line to locate its executed motion where available. In 2D, click a toolpath segment to jump back to the corresponding source line. Macro events may repeat the same source line in loops.
Playback and Single Block
Use Play/Pause to animate, Previous/Next to move by executed motion block, Top or Reset to rewind, and the timeline slider to seek. Adjust Speed to change animation speed. Space toggles playback; Left/Right arrow moves one motion block when not typing in a field.
2D Toolpath Inspection
Select 2D. Wheel to zoom; double-click to zoom toward a point. Use Zoom +, Zoom −, Fit and Focus Tool. Click a path segment to inspect its corresponding G-code. Grid controls the background grid; G00 toggles rapid moves (red dashed lines). Isolate can focus a selected operation; Show All restores the full path.
3D Preview
Select 3D. Left-drag to orbit; middle-drag, right-drag or Shift-drag to pan; mouse wheel to zoom toward the pointer. Use Isometric, Top, Bottom, Front, Side, Fit and Focus Tool. Set stock X/Y, Thickness and Tool Ø to match the job. Left inset X and Bottom inset Y shift the simulated physical stock start relative to program X0/Y0; the default is 3 mm each. These are preview-only settings and do not change G-code, G54, or cutter compensation. Edge boundaries use adaptive fine sampling of swept cutter paths to improve corner shape. The Remove cut-out material checkbox is OFF by default: a separated center piece stays visibly on the support table. Turn it ON to automatically hide disconnected regions estimated from full-depth cutter paths; the cutting groove remains visible when OFF. The checkbox is a visualization option, not a change to G-code or machining. It uses approximate connectivity, so verify the preview against the drawing. Full-depth cutter-swept grooves use dark brown; removed islands use the background color. This is a preview-only topology estimate, not exact CAD solid subtraction. 3D Display offers Solid Only (default), Solid + Toolpath (orange cutting paths and red dashed rapid paths), and Toolpath Only. Color Preset offers Professional Slate (default) and Classic Light. Expand Customize 3D colors to choose surface, core, wall, floor, toolpath, rapid and background colors; changes are saved locally when supported. Show mesh lines (diagnostic) overlays the calculation grid. Toolpath colors show programmed tool-center motion, not a compensated swept cutter. 3D material removal and tool diameter are estimates, not verified machine behavior. For curved toolpaths, the preview uses chord-error-controlled arc segments (target 0.075 mm with a per-arc safety cap), not exact analytic solid subtraction; very tight features may still differ from actual cutter engagement.
Macro B Variable Watch
Expand Macro B Inspector below the code area. Enter variable numbers separated by commas, e.g. #21, #22, #27, #28. Values are precomputed snapshots at the selected simulated motion; they are not live values from a FANUC controller.
IF / GOTO and WHILE
Most recent executed IF / WHILE decisions shows TRUE or FALSE for the current execution context. TRUE on IF [#21 EQ 0] GOTO 100 means the branch is taken to N100; FALSE means execution continues. WHILE/END can execute the same source line multiple times. Use Macro Execution Trace to inspect assignments, branches and loop events.
Macro Execution Trace
In Macro B Inspector, use Previous and Next to inspect macro events in execution order; All events opens the event list. Selecting an event highlights its source line in Trace and shows its variable snapshot. A non-motion event may position the view at a subsequent motion, while the snapshot belongs to the selected macro event.
Window Layout
Drag the vertical divider to resize the code and canvas areas; double-click to restore the 510px default width. Drag the horizontal divider between code and Macro B Inspector to resize their heights; double-click to reset. The horizontal divider is hidden when the inspector is collapsed. Layout preferences are stored on this device when available.
Keyboard Shortcuts
Ctrl+F: search; Enter / Shift+Enter: next / previous search match; Space: play/pause; Left / Right: previous / next motion block; F: fit toolpath; J: center active tool. Shortcuts do not override typing inside inputs or the editor.
Milling / Turning and Safety
Settings offers Milling and Turning. This release previews Milling XY/G17; Turning is selectable but not simulated. Offsets, compensation, interlocks, tool geometry and full FANUC controller semantics may differ by machine. Never use this preview alone to approve machining. Verify programs using the actual control, machine configuration, dry run and appropriate safety procedures.
GLASS_SQ Example
Select O0501 to follow the main-program call chain, or O0503/O0504 to inspect one macro. Machine Setup creates a separate logical work area for each executed G54–G59 or G54.1 P1–P48 coordinate system. Auto Layout positions these areas artificially; it does NOT establish machine offsets or physical table locations. Machine Coordinates uses entered offsets; blank axes default to 0 for layout, while blank fields remain Unset in the editor. Different work systems can represent the same physical table. 3D stock removal remains a single-stock preview and is NOT independently validated for multiple areas. With G65 V0 U0, IF [#22 EQ 0] GOTO 50 skips inner roughing, and IF [#21 EQ 0] GOTO 100 skips outer roughing. With V2 U2, both conditions are FALSE and roughing is executed. Watch #21 and #22 and inspect Macro Execution Trace. In corner-relief loops, #27 is the pass counter and #28 is the calculated pass depth.
Macro Loop Inspector
Open Macro B Inspector and choose a WHILE, SET, or END event in Macro Execution Trace. Macro Loop Inspector shows the source WHILE line, current pass and total passes, and variable values at the beginning and end of that pass. Changed values are highlighted. Click Previous Pass or Next Pass to jump between iterations; the corresponding source WHILE event is highlighted in Trace. For GLASS_SQ, watch #27 (pass counter) and #28 (depth). The inspector uses precomputed simulated events, not a connected controller. Nested loops are associated with their innermost active WHILE event.
Macro Variable History
Expand Macro B Inspector and locate Macro Variable History. Enter one macro variable number such as #28, then press Enter or click Refresh. The chart plots recorded SET assignments in execution order. The list shows the source line, assigned value, and loop pass where available. Click a chart point or list row to jump to that exact executed macro event in Trace. Changing the selected O program or editing the source requires re-parsing; click Refresh if the history has not updated. If a variable was only passed as a G65 argument and never assigned with a SET instruction, no history points will appear. The chart is not a time axis or a controller measurement.