1
General Mach Discussion / Arduino - Mach 3 - Gcode M6 T0101
« on: March 25, 2022, 10:01:41 AM »
Hi there,
I have read the posts I could find on the forums concerning arduino and mach 3 and connecting this using modbus.
http://www.machsupport.com/forum/index.php/topic,22982.0.html
This post from Zafar has been really helpful in connecting arduino as a slave to mach3 and using it with 2 x potentiometers for FRO and Spindle override
I want to do something similar with an Automatic Tool Changer.
the only thing I need is it should send an integer value between 1 to 12 to the arduino every time it encounters the M6 Gcode and based on what tool was selected.
ex. M6 T0101 - should send "1" to the arduino.
I have no idea how to modify the code to do this. Is there anyone who has done this before??
I have read the posts I could find on the forums concerning arduino and mach 3 and connecting this using modbus.
http://www.machsupport.com/forum/index.php/topic,22982.0.html
This post from Zafar has been really helpful in connecting arduino as a slave to mach3 and using it with 2 x potentiometers for FRO and Spindle override
I want to do something similar with an Automatic Tool Changer.
the only thing I need is it should send an integer value between 1 to 12 to the arduino every time it encounters the M6 Gcode and based on what tool was selected.
ex. M6 T0101 - should send "1" to the arduino.
I have no idea how to modify the code to do this. Is there anyone who has done this before??