Alright, I did some research about using Modbus and Mach4. That documentation is terrible...
Modbus is industry standard, right? And there is not a single proper tutorial of how to implement that into Mach4. Is there a other way of sending data to a simple PLC? RS232, RS485, Ethernet, IC2, SPI, anything?