Re: Big and littleendian fields in one mspec

2020-04-12 Thread Christofer Dutz
Hi Lukasz, I think it really gets tricky when using BE and having some byte-odd-sizes ... I remember in the Firmata protocol there were some bitmasks and then 10 bit uint as BE ... not it really got tricky as the specs were written from a point of view: You read 16 bits BE and then the first6

Need help)

2020-04-12 Thread Oles Bovsunivsky
Hi PLC4X team) Could you help me?) When I try read data from plc s7_300 (Vipa), I see this -> [0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] - This must be 5 How I can get 5 ?) My code: { String connectionString = "s7://192.168.0.5/0/2"; try (PlcConnection plcConnection = new

Re: Big and littleendian fields in one mspec

2020-04-12 Thread Niclas Hedhman
For us who were around and shaping the protocols in the 1980s, and people before us (and before standards like RS-232), a lot of the "specifications" came out of "observation of implementation we managed to get to work", rather than "implement this spec". A lot was due to extreme memory