ReRead
- Last UpdatedJul 18, 2023
- 1 minute read
ReRead is deprecated in this version of Plant SCADA.
Tags are now subscribed at the start of a function and updated tag values are sent to the subscribing function. Tag subscriptions are made at the update rate of:
-
the graphics page if called from a page
-
the default subscription rate as determined by [Code]TimeData if called from Cicode (default 250ms)
-
the update rate requested of a task created using TaskNewEx
-
the update rate requested of a subscription created using TagSubscribe.
You will want to verify that the subscription update rate matches the requirements of your system.
After removing ReRead from looping code you may need to extend the period of the Sleep function. This is to replace the pause ReRead created while it read all the tag values.
Syntax
ReRead(Mode)
Mode:
The mode of the read:
0 - Read only if data is stale.
1 - Read anyway.
Return Value
No value (void).