Hi,
this post would be best in the Mach4 General Discussion Board, it will get more response.
Using the Mach4 Modbus plugin generates Registers into which you may place data or alternately read data
from the Modbus device.
You will need to write Lua scripts that place the required data into the outgoing data registers and read in incoming
data registers.
It is common to write macros, named m100, m101 etc and then whenever you need to execute code just MDI m100 for example.
Craig