kuegerls - 2025-05-23

Hi everyone,

is there a way to programmatically clear the cache of the Data Source Manager in CODESYS so that variable values are re-synchronized from the OPC UA server (Symbol Configuration with OPCUA features)?

Alternatively, is it possible to trigger a manual synchronization of data source variables from within the application code at runtime?

Here’s the situation:
A variable is first written by the OPC UA client to the server in one state of a state machine and changes to another state – so the initial communication works.
Later, the server changes the variable value, but the client does not receive or reflect the updated value, unless the variable is actively written again.

I’m looking for a way to force the client (data source manager) to re-read or refresh the variable state from the server, possibly by clearing the internal cache or triggering a sync.

Any ideas or suggestions would be greatly appreciated!

Thanks!