Closed birkenfeld closed 1 year ago
So this is an error coming from the PLC (as opposed to an ads-rs internal bug in #8).
It will be hard to debug without knowing what exactly is requested there. Can you share the relevant part of the code (the immediate cause is in your get_ads_symbols
function)?
It might also just be that the PLC disallows reading the value of certain symbols. In that case you'll have to catch that error and handle it instead of panicking by calling unwrap
or similar...
(cc @alex-boring if you weren't subscribed automatically)
That error is on me, I fixed the issue on my side. Thanks for the hints. You can close this one out!
Great! I'll release the current master as 0.4.2 then.
Using
ads = { git = "https://github.com/birkenfeld/ads-rs.git" }
in theCargo.toml
file and the same large project I am getting a new error message, and it is printing my first lines (just for my test setup). Would you like me to open a new Issue for that error message?Originally posted by @alex-boring in https://github.com/birkenfeld/ads-rs/issues/8#issuecomment-1254264293