Also new to all this but have done a lot of reading up, even considering enrolling for proper C tuition.
So rather than starting a new thread with a similar question., thought it would perhaps make sense if I posted in this one, sorry for the hi jack Eclectric, hope you don’t mind?
Anyhow, as mentioned, I’ve done a lot of reading and even more trial and error (even fried a Mega, connected to the 5v power supply whilst uploading a sketch, spiked so bad it even fried the Multi volt power supply).
This is where I am now. Not sure which way to go and perhaps some useful assistance could direct me in the right way. Yes I should have perhaps asked for help prior, but the fact is, I did and got me… Well that’s a long story and I don’t want to whine.
Ok, so 1st this is the setup that I have:
A 4 axis cnc (home built) machine with the normal X, Y and Z axis’s and the 4th a rotational axis fixed in a paralleled fashion to the Y axis.
X, Y and Z are fitted with Nema23 1.8 deg (200 steps) 3n/m torque stepper motors and the 4th (B) axis same Nema23 but with just 1n/m holding torque.
These all have the Wantai DQ542MA stepper drivers that are 12v with up to 4,2A of output.
I have a Multi volt power supply (second one) with 48, 12 and 5v outlets.
The Arduino mega 2560 is the board that is connected to all this (was supposed to).
What I did was to obtain a Modbus sketch specifically written for cnc machining, (one that had various bugs and issues), fixed it and managed to upload it to the Arduino. Comms between the laptop and the arduino, no issues, not any that can be identified yet. Modbus turns the arduino into a slave whilst the modbus master is Mach3.
Now here is the issue, prior to this I was about to use grbl with a G code sender of sorts to get the cad drawing to the cnc to cut the piece. Did some research and was advised to rather use modbus option as it was quicker, more accurate and so on and so in, but this inherently meant more complex too.
The issue I have is the brain that needs to be compiled in Mach3 in order for it to sync with Modbus (master and slave). Not easy and not a lot of help is available.
The question really is this, should I stick with Modbus and Mach3, change and use grbl, or should I consider other software all together?
Any advice would really be appreciated!