Skip to main content

Code Comprehension & Navigation

The extension parses operations, tools, offsets, and probing cycles into the sidebar for easy navigation. It reads the NC code line by line and extracts the relevant information.

Assumptions

The extension makes the following assumptions about the code:

  • T blocks represent tools (see Require M6 for tool changes setting to change M6 requirement) Valid offsets are G54, G55, G56, G57, G58, G59, and G54.1 PXXX. Given that G52 and G53 are not modal, they are ignored.
  • S blocks represent spindle speed
  • Operations are defined as a comment line (encased in parentheses) preceded by an empty line
  • Tools and offsets are inherited from the previous operation (i.e. modal). They are marked with Inherited from {operation name} in the sidebar
  • Any code encased in parentheses is a comment
  • Any text following the ; character is a comment
  • Any line that starts with a % character is a header

Current Limitations

  • The extension does not currently support subprograms
  • Inherited spindle speeds do not currently consider M03, M04, and M05 commands
  • Only tested with Haas and Fanuc code
  • Only supporting Renishaw probing cycles at this time