Hi,
you may not need a motion controller, all your output is going out of MODBUS and all feedback from the machine
is coming in from MODBUS. No motion control required??
You are inviting a lot of programming effort to write the Lua code neccessary to convert the MODBUS registers back into Machs DROs. You'll be
able to transmit coordinates to the PLC, again MODBUS registers, but not Gcode, Gcode is an alphanumeric data string, and I'm sure you could do that too, it would
be a major time commitment.
All in all the programming commitment both in Mach4 and also in the PLC count against what you want to do....not that its impossible.
Compare:
PLC $500
PC $400
Mach4Hobby $200
ESS (maybe??) $200
Programming cost???
TOTAL $1100 minimum, maybe $1300 for hardware PLUS the cost of programming
PC Ethercat Master $1600
(includes Mach4Hobby, Kingstar runtime license, IvtervalZero runtime license, a medium modern PC (ex lease at a guess) and whiz-bang Ethernet card for Ethercat)
The cost saving of the PLC/Mach4Hobby is going to be swallowed and more by the programming cost, whereas using a PC Ethercat Master requires no extra programming.
The whole point of using Ethercat is to have an Ethercat Master....trying to do without it is counterproductive. You'd be better off with plain Step/Dir servos not Ethercat at all.
Craig