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

Par Niclas Hedhman commented on PLC4X-45:
-----------------------------------------

FTR, since ModBus didn't specify floating point, there are several different 
ways vendors have introduced floating points to their products. What I have 
come across are; IEEE 32bit floats, fixed decimal in 16bit integers, different 
register specifying how many decimal points in 16 bit integer, inverted value 
(i.e. 1/X) times 10^N, one 16bit register for integer part and one for the 
decimal part.

One would hope that the PLC4X base package follows the ModBus spec very 
closely, BUT that custom formats can be registered and/or implemented by the 
user, not only for floating point.

> [Modbus] Make the modbus driver support reading and writing of all or at 
> least most plc4x datatypes
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PLC4X-45
>                 URL: https://issues.apache.org/jira/browse/PLC4X-45
>             Project: Apache PLC4X
>          Issue Type: Improvement
>          Components: Driver-Modbus
>            Reporter: Christofer Dutz
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently it seems as if the Modbus driver only supports reading BOOLEAN, 
> INT, SHORT and BYTE ... however we need to make it possible to also support 
> others as the developer might combine neighboring fields.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to