Re: [MODBUS][DISCUSS] Improving handling of datatypes ...

2020-09-06 Thread Christofer Dutz
Hi all, well I doubt that we could really centrally handle this. If you have an idea how to unify this, I'd be happy for a suggestion. I guess most will have to be handled in the individual drivers themselves. But I really would like all drivers to support the same base-set of datatypes. Chris

Re: [MODBUS][DISCUSS] Improving handling of datatypes ...

2020-09-06 Thread Cesar Garcia
Hello, I think it can be applied from several points of view, the one typified as you indicate (HREGISTER: REAL) or (HREGISTER [2]), each one has its advantage. To be able to handle the types indifferently (specifically between Modbus and S7), I modify the field of the Modbus driver so that it

Re: [MODBUS][DISCUSS] Improving handling of datatypes ...

2020-09-06 Thread Ben Hutcheson
Hi, I ran into this issue this morning when using the hello-world-write example and trying to write to a Modbus connection. It looks like it assumed the input value is a string whereas the Modbus protocol doesn't have support for it yet. I was thinking about expanding