Skip to content

Improved auto tool changer support #437

@scottlaird

Description

@scottlaird

Description

I would like cncjs to be able to support the following auto tool changer scenario:

Given a gcode file that looks roughly like this:

T1 M6
... (milling goes here)
T3 M6
...
T4 M6
...
T1 M6
...

And assuming a CNC with an ATC and an appropriate tool change macro, cncjs should be able to:

  1. Handle the first tool change line by loading the tool from slot Display circular arcs with G02 (clockwise) and G03 (counterclockwise) in the 3D GCode viewer #1 (slot number extracted from T~ command, slot location calculated by macro).
  2. Handle the second tool change by unloading the tool into slot Display circular arcs with G02 (clockwise) and G03 (counterclockwise) in the 3D GCode viewer #1, remembering where it came from the in first tool change, and then loading the tool from slot Dev #3.
  3. Handle the third and fourth tool changes as expected.

This still isn't enough to give a great ATC experience--at a minimum, we need to figure out what to do with any tool that is in the changer before the start of milling, and we need to be able to handle aborting halfway through milling without getting completely lost WRT tools, but this is a start.

Versions

  • CNCjs: 1.9.x
  • Node.js: 6.x
  • NPM: 5.x

How Do You Install CNCjs?

  • NPM
  • Download the CNCjs Desktop Application

CNC Controller

  • Grbl
  • Smoothieware
  • TinyG/g2core

Hardware

  • Raspberry Pi
  • Desktop or Laptop
  • Mobile Device

Operating System

  • Not Applicable
  • Windows
  • Mac
  • Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions