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

Alvaro del Castillo commented on PLC4X-45:
------------------------------------------

[~niclas] I totally agree with you that we must identify the different formats 
that vendors have introduced for floating points in their products and add 
support for them. But probably we should do it after the modbus driver 
refactoring to adopt [MSpec 
approach|https://plc4x.apache.org/developers/code-gen/protocol/mspec.html].

[~cdutz] is discussing the float modelling in the [mailing 
list|https://mail-archives.apache.org/mod_mbox/plc4x-dev/201912.mbox/browser]. 
IMHO I would continue this discussion in the mailing list trying to find the 
most important floating points formats used in the industry in order to support 
them.

As a reference, in 
[libmodbus|https://github.com/stephane/libmodbus/blob/master/src/modbus-data.c#L121]
 they have added some of this formats already and we can follow them.

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