Hi Guys
Below is a very basic program which suits my needs
On the site where I work there are 8 boilers
Some of the boilers lock out because they all try to fire up at the same time
So I am putting a time delay in between the boilers firing up to prevent boilers locking out
I am a qualified electrician so I know what precautions and I need to take
Using basic commands is it possible to condense the program code
thanks for reading the post
novolts
Below is a very basic program which suits my needs
On the site where I work there are 8 boilers
Some of the boilers lock out because they all try to fire up at the same time
So I am putting a time delay in between the boilers firing up to prevent boilers locking out
I am a qualified electrician so I know what precautions and I need to take
Using basic commands is it possible to condense the program code
Code:
main:
if pinC.2 = 1 then gosub Heaton
goto main ; else loop back to start
Heaton:
high C.1 ;Boiler Number 1 on
pause 5000 ;wait 5 seconds
high C.0 ;Boiler Number 2 on
pause 5000 ;wait 5 seconds
high C.7 ;Boiler Number 3 on
pause 5000 ;wait 5 seconds
high C.6 ;Boiler Number 4 on
pause 5000 ;wait 5 seconds
high B.7 ;Boiler number 5 on
pause 5000 ;wait 5 seconds
high B.6 ;Boiler number 6 on
pause 5000 ;wait 5 seconds
high B.5 ;Boiler number 7 on
pause 5000 ;wait 5 seconds
high B.4 ;Boiler number 8 on
pause 1000
low C.2
end
novolts
Last edited by a moderator: