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