


Small believe about modbus Modbus is usually software process not hardware, so you can make use of it not really just ower rs232 or rs485 but also let say uart usart.ĭoesnt matter the quantity of cable connections the hardware protocol uses, basicaly it comes down to one comunication range for half duplpex and two for full duplex. You will end up with capability of mach3 to read input flag on arduino.īut if this will work for you after that adding complete modbus library for proper comunications shouldnt become any issue. This will not really make use of any modbus library it is certainly just proof of working.

The final image shows you the screen where you can verify the conversation. Please note that the controller is not for stepper motor, it is just for servo motors but I do think it's not too hard to adapt it for steppers.Press switch to change axis, push for 1s second to enabledisable. Shortly I will post another video milling something and if there is sufficient interest I will release the pluging. You can see the first test here: Īs you can see the motors do not move perfectly because I used DC motors with low resolution encoders (16 steps per revolution) and the control is based on a PID algorithm so it will always have some error between desired position and current position (about 5 steps) but it has an advantage: it will never lose steps permanently as the PID algorithm is constantly correcting the error. I know it is a really long time since I started this topic and I'm back to show the resolts of my efforts on making the plugin.Īfter some months working on it on my free time I moved from PIC to arduino as it is less time consuming and some days ago I finally got my CNC working with the system I created.

I'm not sure if my English is understandable, but sorry for any mistake! If it's posible, what should I learn and what softwares should I use to make it? I have C programming knowledge and use Code::Blocks.Īny tutorial or guide would be appreciated. This way I can control my CNC from my leptop which has no parallel port. My question is: is it possible to create a plugin that makes Mach3 send a certain character to the serial port each time it sends a pulse to the parallel port? for example: each time it sends a pulse to the parallel port to rotate clockwise the motor X, it sends also a character (for example "a") to the serial port, so the controller board connected to the serial port can get that character and rotate the motor. I know that it's possible to create a plugin and instal it on Mach3. I've searched it on google but did not found what I want. The controller is connected to an old computer through a parallel port, but now I realy would like to use my leptop to control it through the serial port (USB to Serial adapter). About two years ago I built a CNC and a PIC based controller board.
