The TagRefresh function block asks a tag to refresh data from its data source.
Monitor the progress of the tag command.
Report whether the tag command succeeded or failed.
REQ BOOL R_EDGE Input A rising edge starts the Refresh tag command.
TAGNAME STRING Input The name of the tag to send the Refresh tag command to.
BUSY BOOL Output Set to TRUE while the Refresh tag command is in progress.
DONE BOOL Output Set to TRUE for 1 execution after the Refresh tag command has completed.
ERROR BOOL Output Set to TRUE if the Refresh tag command failed.
ERRORMSG WSTRING Output If ERROR is TRUE, the reason why the Refresh tag command failed.
Once the Refresh tag command begins, additional requests from the input signal REQ are ignored until the tag command completes.
The BUSY signal is TRUE while the tag command is in progress. The DONE signal is TRUE for 1 execution after the completion of the tag command.
A FALSE to TRUE transition of a digital data point tag used to trigger a function block.
The function block requesting a tag to refresh its data.
Example logic to check the status of the function block.
To learn about the Refresh tag command.
To learn about other tag command function blocks.