Issue
Programming assistance.
Environment
Sigma Programming
Cause
Assistance with creating a programmable object is required.
Resolution
It is required that the H&V plant, which is normally controlled by a Time Schedule, can be overridden by a switch which has two momentary contacts, Plant start / Plant stop.
- Time schedule on - Plant can be stopped, or returned to time schedule control. If the plant is left overridden off, it will automatically revert to time schedule control next day.
- Time schedule off - Plant can be started and will run for a fixed period of time, or returned back to time schedule control.
10 IF POINT 0|1 ON THEN XInt = 1
20 IF POINT 0|2 ON THEN XInt = 2
30 IF POINT 0|33 OFF THEN GOTO 90
40 IF XInt = 2 THEN YInt = 1
50 IF XInt = 1 THEN YInt = 0
60 XInt = 0
70 IF YInt = 0 THEN RETURN TRUE 'Plant On'
80 RETURN FALSE 'Plant Off'
90 YInt = 0
100 IF XInt = 1 THEN SET TIMER 3600
110 IF XInt = 2 THEN SET TIMER 0
120 XInt = 0
130 IF TIME LEFT THEN RETURN TRUE 'Plant On'
140 RETURN FALSE 'Plant Off'
Point 1 Override On status
Point 2 Override Off status
Point 33 Time schedule