Hi,sorry for my bad english...
im want solve my problem with mach3 to arduino via Modbus from usb port....
Im want use for send a istruction for use an port pwm....
im not undestand how config mach3 to output a code,variable,data or other function
the mission is use this system(Modbus) for comand a additional spindle :
when on my gcode im write S3000M103 ,arduino output at 50% and rotation Cw
when on my gcode im write S6000M103 ,arduino output at 100% and rotation Cw
when on my gcode im write S3000M103 ,arduino output at 50% and rotation CCw
when on my gcode im write S6000M103 ,arduino output at 100% and rotation CCw
when on my gcode im write M105 ,arduino stop a motor
im know if im make a macro (M103) inside this are a istruction for modbus to send at arduino S3000 and another istruction for M103...
if the system read on Gcode S3000 M103 >> macro M103 >> data Modbus to arduino on variable 3000 and variable 103....>> when arduino "read" 3000 and 103 ,the arduino code make the "action" programmed for run the additional spindle at 3000 rpm...
This im think if the system work,but im not very sure of that...is possible help me ??