CAI Networks WebControl PLC User Manual page 40

Programmable logic controller
Table of Contents

Advertisement

panel orientation each hour, etc. The "PERIOD" subroutine will turn on night light
hooked up to OP1 after 18:00 hours and turn it off at 5AM. The "DAILY" subroutine
will start the water sprinkler at 6:30AM for four zones. The "MONTHLY" routing will
check the "salt low" sensor AIP3 on the water softener and send email notice 2. The
"YEARLY" routing will ring the New Year's bell connected to OP6 on each and every
New Year's Day for the whole day!
START
CALLSUB HOURLY
CALLSUB PERIOD
CALLSUB DAILY
CALLSUB MONTHLY
CALLSUB YEARLY
END
HOURLY:
TSTNE RAM1 CH
GOTO T1
RET
T1:
SET RAM1 CH
SUB AIP1 AIP2 RAM2
TSTGT RAM2 10
EMAIL EM1
RET
PERIOD:
TSTGE CH 18 RAM2
NOP
TSTLE CH 5 RAM3
NOP
OR RAM2 RAM3 OP1
RET
DAILY:
TSTEQ CH 7
SET RAM5 0
TSTEQ CH 6
BZ NOTYET
TSTGT CM 30
CALLSUB WATERING
NOTYET:
RET
MONTHLY:
TSTNE RAM4 CMONTH
GOTO T2
Copyright(c) 2008,-2013 CAI Networks, Inc.
TM
WebControl
PLC User Guide Version 3.02.17f
37

Advertisement

Table of Contents
loading

Table of Contents