Issue
The text on the programmable (prog) object updates correctly, but the associated graphic does not reflect the change.
Product Line
Satchwell BAS & SigmaEnvironment
- Sigma – All versions
- BAS2000/2800 – All versions
Cause
The controller only updates server graphics when the object changes state or exceeds the set tolerance.
If prog objects are written with the same condition but different return texts, the correct text may not display until the entire graphic is refreshed.
Example of problematic code:
10 If P0|1 on then return true "Object 1 on"
20 If P0|2 on then return true "Object 2 on"
30 If P0|3 on then return true "Object 3 on"
In this case, the graphic may not update unless the object state changes.
Resolution
To ensure the graphic updates correctly, modify the programmable object so that it changes state, prompting the controller to refresh the graphic.
This may require creating a dedicated object specifically for graphic updates.
Recommended approach using a timer to force state change:
10 If not time left then goto 50
20 If P0|1 on then return true "Object 1 on"
30 If P0|2 on then return true "Object 2 on"
40 If P0|3 on then return true "Object 3 on"
50 Set timer 10
60 If P0|1 on then return false "Object 1 on"
70 If P0|2 on then return false "Object 2 on"
80 If P0|3 on then return false "Object 3 on"
This logic ensures the object state toggles, triggering the graphic to update accordingly.