libplctag / libplctag.NET

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

Error with SetInt8() and SetUInt8() #181

Closed joao147 closed 3 years ago

joao147 commented 3 years ago

I'm integrating Omron-nj-nx series on a SCADA and using Tag(it isn't Tag<M, T>) to read/write all Get/Set all types are working perfectly, expect set to Sint(byte). image

timyhac commented 3 years ago

Hi @joao147 thanks for the feedback.

Are you able to confirm this by using the native API? Something like the Run() method in this example: https://github.com/libplctag/libplctag.NET/blob/master/src/Examples/CSharp%20NativeImport/NativeImportExample.cs#L9

joao147 commented 3 years ago

Hello @timyhac thank you to answer really quickly,

I tried as you said, but continue return error 29. The thing that I think really strange is GetInt8 and GetUInt8 are work correct. image

timyhac commented 3 years ago

Thanks for confirming. This means that it's an issue with the core project, or i guess an issue with your device. Are you able file a bug on the core project?

joao147 commented 3 years ago

Ok, I tried to use a old wrapper that we have here from core project and receive the same error, just telling you, I going to open a issue on core project, maybe they know if an error with my device or core project. Thank for listening.

timyhac commented 3 years ago

Thanks @joao147