Night rider (Customer) asked a question.

How to create a Modbus Driver in Arduino IDE

I am trying to use EA3 S3ML HMI with a P1AM-100 ProOpen CPU and P1-08TRS relay or output module. I would like the HMI to use the CPU to control the outputs, allow the user to input times between on and off cycles and use a counter to keep track of the amount of current cycles. I am a little confused about connecting the HMI and P1AM-100 perform the above listed functions. Any help would be much appreciated.