[ 
https://issues.apache.org/jira/browse/PLC4X-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495634#comment-17495634
 ] 

Łukasz Dywicki commented on PLC4X-335:
--------------------------------------

If I understand correctly this issue is about remaining data which made 
miss-alignment of remaining buffer data. From openHAB end I remember that it is 
possible to define an "offset" while reading small types (bit/int/uint8), it 
also makes it possible to read ie. component spanning over MSB and LSB of 2 
registers. How does this part look now for us - do we have now a byte_mfb and 
byte_lsb? :)

> 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)

Reply via email to