libplctag / libplctag.NET

A .NET wrapper for libplctag.
https://libplctag.github.io/
Mozilla Public License 2.0
197 stars 49 forks source link

Issue 178 : Boolean readings do not work with C# #335

Closed corentingallet closed 1 year ago

corentingallet commented 1 year ago

Always returns False. Issue : https://github.com/libplctag/libplctag.NET/issues/178

timyhac commented 1 year ago

Is this just a code simplification, or have you found a situation where it isn't returning the expected result?

As you can appreciate, the mapping between PLC data representations and their interpretations is complex, so it would be useful if you could share what you've discovered.

timyhac commented 1 year ago

Hi @corentingallet - did you have any comments on the above?

corentingallet commented 1 year ago

Hello, Yes, I will answer soon. We're still testing the code on different devices.

timyhac commented 1 year ago

Hi @corentingallet - did you have any comments on the above?

corentingallet commented 1 year ago

I tested it (with success) on an Allen Bradley / Rockwell PLC (Logix5561 ; ControlLogix) and an Omron (but I don't remember the exact type). I'm still trying to find other real examples.