- Posts: 8
- Thank you received: 0
How to build ATC Carousel in linuxcnc ?
I have my DIY Gantry CNC Mill with Carousel tool
Spindle ATC Columbo Iso25 and BOB with DB25 (LPT)
Carousel with 10 tool and sensor index with B Axis
I can configure Step and it working but i want upgrade to ATC machine
Please guide me build it with linuxcnc
Thank you !
Please Log in to join the conversation.
linuxcnc.org/docs/2.7/html/man/man9/carousel.9.html
To see an example of how to use it you can open the LinuxCNC config-picker and look in the sample configs. Open sim/axis/vismach.vmc_toolchange/vmc_index to see a demo config. You can run it on your actual machain controller, it won't try to access any hardware. It has an animated 3D model of VMC to demonstrate it working.
It uses a line in the INI file to re-map the M6 command:
This calls the "toolchange.ngc" file (the other files mentioned are standard library files). The toolchange.ngc file is a G-code routine that controls the machine movements needed or the toolchange. Note that it is quite careful to make sure that it waits for confirmation before moving on, and makes a lot of use of the (abort, ) G-code "magic comment" to deal with problems.
You say that you have the carousel configured as a B-axis. You could keep it like that, an move it in G-code, or use the carousel component to control it.
If you keep it as a B-axis you will probably need to use the index switch as a home switch and add it to the home sequence. The B-axis will appear in the GUI, and you will be able to jog it. Which might actually be useful, though not terribly neat.
Please Log in to join the conversation.
- eneias_eringer
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 0
I use subroutines like Andypugh post !!
Please Log in to join the conversation.
I can't config output port for Arm in/out, sensor Arm in/out, Carousel index, Tool released/clamp, sensor tool released/clamp
Thank you !
Please Log in to join the conversation.
Please Log in to join the conversation.
eneias_eringer wrote: Look at my!!!
I use subroutines like Andypugh post !!
I've seen it many times before
It is my expectation

Can you share your configuration?
Please Log in to join the conversation.
andypugh wrote: The point is, it's G-code. You can set up any sequence you need.
Can you give me an example of that ?
Thank you !
Please Log in to join the conversation.
mhdsi wrote: Can you give me an example of that ?
The file posted earlier was an example. Without knowing anything at all about your machine it's hard to think of any useful second example.
Please Log in to join the conversation.
andypugh wrote:
mhdsi wrote: Can you give me an example of that ?
The file posted earlier was an example. Without knowing anything at all about your machine it's hard to think of any useful second example.
Hi Andypugh
I can build M6 macro on Mach3
I understand all the process of tool changer, and understand your example
what I need's how to configure port because i can't config output port for Arm in/out, sensor Arm in/out, Carousel index, Tool released/clamp, sensor tool released/clamp
I use linux just days
Thank you !
Please Log in to join the conversation.
mhdsi wrote: what I need's how to configure port because i can't config output port for Arm in/out, sensor Arm in/out, Carousel index, Tool released/clamp, sensor tool released/clamp
Those are using G-code digital inputs ans ouputs:
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m62-m65
Those are connected to hardware by one of the HAL files in the config. If you ran the demo then you will now have all the files in your ~/linuxcnc/configs folder, but the HAL file for the changer looks like this:
github.com/LinuxCNC/linuxcnc/blob/master...toolchange_index.hal
If you are using a B-axis then you will have more G-code and less HAL to control things.
Please Log in to join the conversation.
