bengeisler / TcLog

Flexible logging functionality for TwinCAT 3.
MIT License
54 stars 10 forks source link

AppendAny and AppendVariable for Int values not producing correct value #14

Closed chrisbeardy closed 1 year ago

chrisbeardy commented 1 year ago

I am having an issue appending int values using AppendAny. I think perhaps the pointer values are not lining up?

For example -18000 (is) is appearing as 115.

bengeisler commented 1 year ago

Hi, thanks for bringing this up! I'll look into it.

bengeisler commented 1 year ago

The problem seems to be with the ANY_TO_STRING function from Beckhoff that doesn't show the expected behavior. Surprisingly, all information about it on the web is gone :smile: I already had a custom AnyToString function for other data types, it seems that I have to use it for all data types.

bengeisler commented 1 year ago

That was a really good catch 👍 Please use the updated library version 0.3.1 on Twinpack or under releases.