Re: [S7] Verification of the "Date-Types"?

2019-10-15 Thread Julian Feinauer
Hi all, what Tim describes is in the regular repo. We had to indroduce this "hack" as we did not find any working documentation of the hex codes. So I agree with you that it would be better to do it the "right" way but as we needed these types we simply took the "easy" way. But in fact, for user

Re: [S7] Verification of the "Date-Types"?

2019-10-15 Thread Christofer Dutz
Hi Tim, So depending on the TYPE constant used in the address (the actual String "enum name") you ask for raw bytes? Is this in your PI fork, or is this in PLC4X main repo? I was thinking that this probably is not the way a S7 works ... cause if a HMI asks for this data I doubt they built it th

Re: [S7] Verification of the "Date-Types"?

2019-10-15 Thread Tim Mitsch
Hey I extended the implementation because S7-1500 family returns a not known datatype for those date-types, and there was a need to read those types. So I acquire a set of bytes and extract the date information from that. If that causes problems with the simulator we should have a deeper look in

[S7] Verification of the "Date-Types"?

2019-10-14 Thread Christofer Dutz
Hi all, While working on the PLC Simulator I stumbled into one pit … when receiving a read request and deserializing this, I was confused why a read request for one BYTE was received as a DATE_TIME. A quick look showed me, that there are multiple types with the same code. I thought that this wo