Third party software and hardware support forums. > Modbus
Arduino Uno that works with Modbus
BenBouwer:
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
TOTALLYRC:
Nice to see more Arduino stuff. If I get a chance I will try this out on my lathe since I want to add 2 pots.
BenBouwer:
Find attached pictures of:
Brain Setup
Brain View Register 18
Brain View Register 19
ModBus Configuration
Brain View Register 20 and 22 will be similar to Brain View Register 18
Brain View Register 21 and 23 will be similar to Brain View Register 19
You must write your own Brains for the rest of the Registers
BenBouwer:
Please be carefull.
The program was not tested on a real machine!
Modbus must not be used for critical inputs or outputs.
See Mach3 manual.
duongfx:
I will try this,thank to Ben
But i do not see ModbusRtu.h include
Navigation
[0] Message Index
[#] Next page
Go to full version