I have been tinkering with the Arduino platform for a while to control solenoids that are driving dispensers of liquids along a tool path.... So far I have had this system working independently of Mach3... So I have the g-code start and as the tool head is moving I start the arduino to actuate the solenoids.
This works well for some things, but I would like to be able to send output signals from the g-code itself... probably by using M codes.
I am currently using a k2cnc with 3 axis servo setup... with a 4 axis in the future when money allows.
So the parallel port is currently driving the mill.
I have been reading on the forum about so many things that are possible and I am looking for advice as to where I should focus my efforts.
Can I have serial output from Mach3 while g-code is running without interfering with Mach3's normal operations through the parallel interface?
I know that the spindle on/off (which is pin 16 on my K2CNC) and the coolant on/off (pin 1 - according to K2) are free to drive things through the use of MCodes... but it would be great to be able to have more than two free "outputs".
Thanks for any advice... I am really loving this forum... so many generous and knowledgeable folks.