Re: Generifying the field handlers?

2020-01-02 Thread Łukasz Dywicki
Hey Chris, The IEC link looks like a nice set of base types which we can expect from all major brands. As it is existing international standard in my perception it is definitely a good candidate for separate module. :-) Because both you and Julian and already mentioned complex types it makes sense

Re: Generifying the field handlers?

2020-01-02 Thread Łukasz Dywicki
I believe that there are a couple of more things which could be placed there. We have same type names between different PLCs (BOOL, UINT, SINT, and so on), however these are distinct between modules having no common parent type. The AdsDataType has very little in common with S7 TransportSize

Re: Generifying the field handlers?

2019-12-28 Thread Cesar Garcia
Hi everyone, I think that the second option, using some type of standard definition for "plc4x-types", may facilitate the development of protocols. As an example the definition of Scalar types in [1]. Best regards, 1.

Re: Generifying the field handlers?

2019-12-28 Thread Christofer Dutz
Just had a second look, So it seems for all the bit, bit-string, (unsigned) integer and (unsigned) float values this would make sense ... with the string, character, date, time and time-date fields I guess every implementation will have to come up with a mapping, however I doubt that for these

Generifying the field handlers?

2019-12-28 Thread Christofer Dutz
Hi all, while porting the code to use the PlcValue objects I did notice when updating all existing PlcFieldHandlers that the code looks sort of almost the same. While I would say the S7FieldHandler is by far the most advanced one (actually checking the data has the right type and doing range