[
https://issues.apache.org/jira/browse/PLC4X-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495746#comment-17495746
]
Christofer Dutz commented on PLC4X-335:
---------------------------------------
No ... it was that if I read one BOOL, one BYTE, USINT or SINT, that in the
DataIo definition only 8 bits were consumed instead of the 16 bits it should
have been. This resulted in the API outputting two items as there were 8 bits
left after reading one item. The first always being "false" or "0".
> Using single-byte modbus types resulted in unexpected behaviour
> ---------------------------------------------------------------
>
> Key: PLC4X-335
> URL: https://issues.apache.org/jira/browse/PLC4X-335
> Project: Apache PLC4X
> Issue Type: Bug
> Components: Driver-Modbus
> Affects Versions: 0.9.0
> Reporter: Christofer Dutz
> Assignee: Christofer Dutz
> Priority: Major
> Fix For: 0.10.0
>
>
> When reading single-byte values via Modbus, the driver unexpectedly created
> lists.
> This was due to the fact, that in the DataIo module these types were aligned
> to 8bits and not 16bits as it's the case in Modbus.
> By increasing the reserved field for BIT to 15 bit and by adding a reserved
> byte to the BYTE, USINT and SINT types we're able to fix this issue.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)