GitHub user chrisdutz added a comment to the discussion: How do I configure the 
PLC memory address to start at 0 instead of 1 when using PLC4j Modbus-TCP?

Hi,

According to the Modbus spec there technically is no Register 0 or coil 0 ... 
however many vendors don't implement their protocol-stack correcly according to 
this spec. 

If you read Coil 1, all addresses are sent over the wire as x-1 ... so 1 
becomes 0 ... please try if simply adding 1 to all your addresses gives you the 
results you're looking for.

GitHub link: 
https://github.com/apache/plc4x/discussions/1330#discussioncomment-8070157

----
This is an automatically sent email for dev@plc4x.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@plc4x.apache.org

Reply via email to