21
General Mach Discussion / Re: Arduino - Mach 3 - Gcode M6 T0101
« on: March 26, 2022, 02:32:37 AM »
Thank you Zafar, this is really good information and much appreciated!
The delays in my sketch might be a bit of a problem. As I use delays to turn the stepper motors a step each time.
I will try to implement a timer method, I will study this as I have not done it yet I have only used delays and millis before.
What else do I need to add to the sketch? As I'm using an Adruino Mega I can use Pins 18 and 19 which are TX1 and RX1 respectively for the receiving and sending of the signals? But then I'd need to use a RS232 to USB adapter? Or did I perhaps not understand well? So then I do not need the USB 2.0 Cable Type A/B ? Can I attach my code for you to have a look at?
The delays in my sketch might be a bit of a problem. As I use delays to turn the stepper motors a step each time.
I will try to implement a timer method, I will study this as I have not done it yet I have only used delays and millis before.
What else do I need to add to the sketch? As I'm using an Adruino Mega I can use Pins 18 and 19 which are TX1 and RX1 respectively for the receiving and sending of the signals? But then I'd need to use a RS232 to USB adapter? Or did I perhaps not understand well? So then I do not need the USB 2.0 Cable Type A/B ? Can I attach my code for you to have a look at?