5010
« on: October 11, 2011, 10:51:34 PM »
OK thinky aboput this some more here is what you face. Mach is a CNC machine controller. IT is also a buffered system as the gcode is preplanned and stacked up in the que to run. MACH cannot prep the macro to load into the buffere because the CB subsystem is a seperate function so it has to run the buffer empty then call the macro function and then load the buffer again.
Once the buffer is full and running you also cannot just interject something into the que at random for MACH to process
I don't think this can be made seemless as you would need to be able to include as many outputs as you need. Perhaps a high speed PLC running under MACH3 would be the answer it would be plenty fast enough to handle the ouput functions based on mach3 instructions.
BUT you would have to develope a plugin to allow mach3 to talk directly to the PLC without the need of a macro. THE gcode/macro function is the problem. It has always been there.BUT that is not really a problem in NORMAL CNC machining.
What you really need is a high speed motion controller like galil that can handle all the high speed I/O on ITS side.
Good Luck, (;-) TP