Modbus Arduino slave for Mach3 by Ben Bouwer
The purpose of this scetch is to link the Arduino digital and analog pins to Mach3 using the Modbus Protocol.
To keep things simple I used a register for each pin in the arduino.
Each register can be a Digital input, Digital output, Analog input or PWM output register
Choose what you want each Arduino Pin to be (Digital input, Digital output, Analog input, PWM output or MPG input):
See attached Arduino Scetch
Unzip it
Place it in a folder within the Arduino folder the same name as the file
Arduino/Mach3_Modbus_Slave_Version_6_Point_5/Mach3_Modbus_Slave_Version_6_Point_5.ino