Skip to content
Discussion options

You must be logged in to vote

If you are using read_by_name, or the get_symbol then it may cache the symbol info e.g. https://github.com/stlehmann/pyads/blob/54a34185ed963f8d9928a1877ab2d99fd38c9ef1/src/pyads/connection.py#L514C5-L536C82 for as long as the connection class instance is the same. If you restart the script (or recreate the connection class I believe) then this should refresh. I always just monitor for symbol changes and just restart my scripts if one changes as I'm not 100% sure of the recreating the connection class behaviour. You can monitor for symbol changes using something like the following:

self._plc.add_device_notification(
                (int("0xF100", 16), int("0x0000", 16)),  # ADSIGRP_DEVICE…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stlehmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #477 on November 28, 2025 15:11.