Closed maxxie85 closed 5 months ago
Hi maxxie85, I have added the Version 6.1.203 to nuget.org
https://www.nuget.org/packages/Beckhoff.TwinCAT.Ads/6.1.203
That should solve your problem. Be aware there was a breaking change compared to version 6.0.194 on Pointer/Interface values in Versions >= 6.1.125:
BreakingChange: Implementation and Support of TwinCAT.TypeSystem.UInt32Ptr and TwinCAT.TypeSystem.UInt64Ptr as values instead of raw 'uint' and 'ulong' as Pointer Value representation
This change was the reason for your ArgumentOutOfRangeException and should be fixed now. These UIntXXPtr types are allowing the NULL check also.
Hi Ralf,
Thank you for the update. The IsNull
property if perfect.
In our PLC projects we rely quite heavy on the OOP extensions in TwinCAT. However I'm facing a challenge which I still don't have a perfect solution for.
For example I have the following FB, which contains 2 variables that will be set during an Initialize() call. However depending on the physical configuration they will be set conditionally, so they may be null.
In our HMI application I have an engineering screen that scans all the symbols from the SymbolLoader, and finds known ISymbol implementations, like
IDigitalInput
. However in the HMI I need to check if they are null, of when looking at them in TcXaeShell they are eitherIs there a method in TwinCAT.Ads to allow evaluation if it's null. I used to call TryReadValue and evaluate the result. And this worked in TwinCAT.ADS 6.0.194, because I would then get some big value, or 0. However in the latest release 6.1.197 i'm getting the following exception