Cher Yves,
I understand your class would be a big step forward for me, if I could get it to work. I am too new to PHP (and programming) to make sense of it myself. For example, I don't even know what the most basic script would be to send one hard-coded request to a modbus PLC on a fixed ip, and then insert the response in a table or log file.
Your code looks beautiful, but that makes it harder for a newbie to discover the underlying raw action.
My other problem is that the device I am eager to interface with has a couple of proprietary semi-modbus functions, described on
sealevel.com/software/seamax/mbbd_s
...
Any idea on how these could best be included in your class ?
Looking forward to your assistance,
Salutations de Bahrain, Peter