Hello
I"m am happily using CAI WCs in our data closets around campus to monitor temperatures. They have been great and the cheapest temperature alerting by far (I do really like itwatchdogs products but still much to expensive for what I need). We have a simple plc code that alerts at one temperature and then escalates one more time when above 80 degrees. One of our new closets is going to have a generator associated with it and I wanted to see about incorporating two items into the existing temperature program, well I guess it would be four things - generator exercising, generator finished exercising, generator on with load and generator off (from load). We have done this in the past with other products using CSs so I figured it would be doable usings WC inputs. The following is my plc program with the added monitoring for the generator. My issue is with email alerts after the generator has finished exercising and finished from running with load. I believe my ram values make it so I will keep getting emailed since the IP1 returns to 0. I was hoping someone could help me adjust the plc code to correct this issue.
thanks,
Jim
The items in parenthesis are just for my benefit while figuring out the process. Not intended for production.
START
SET RAM2 0 (send 76temp)
SET RAM3 0 (send 80 temp)
SET RAM4 0 (send generator exercise on)
SET RAM5 0 (send generator exercise off)
SET RAM6 0 (send generator load on)
SET RAM7 0 (send generator load off)
SET RAM8 0 (send humidity)
LOOP:
TSTGE T1 760
CALLSUB SEND76T1
TSTGE T1 800
CALLSUB SEND80T1
TSTLE T1 750
CALLSUB SEND74T1
TSTGE H1 70
CALLSUB SENDHUM4
TSTLT H1 65
SET RAM8 0
TSTEQ IP1 1
CALLSUB GENEX
TSTEQ IP1 0
CALLSUB GENEXOFF
TSTEQ IP2 1
CALLSUB GENLOAD
TSTEQ IP2 0
CALLSUB GENLOADOFF
GOTO LOOP
END
SEND76T1:
TSTEQ RAM2 0
EMAIL EM1
SET RAM2 1
RET
SENDHUM4:
TSTEQ RAM8 0
EMAIL EM2
SET RAM8 1
RET
SEND80T1:
TSTEQ RAM3 0
EMAIL EM1
SET RAM3 1
RET
SEND74T1:
TSTEQ RAM2 1
EMAIL EM3
SET RAM2 0
SET RAM3 0
RET
GENEX:
TSTEQ RAM4 1
EMAIL EM4
SET RAM4 1
RET
GENEXOFF:
TSTEQ RAM5 0
EMAIL EM5
SET RAM5 1
RET
GENLOAD:
TSTEQ RAM6 0
EMAIL EM6
SET RAM6 1
RET
GENLOADOFF:
TSTEQ RAM7 0
EMAIL EM7
SET RAM7 1
RET
I"m am happily using CAI WCs in our data closets around campus to monitor temperatures. They have been great and the cheapest temperature alerting by far (I do really like itwatchdogs products but still much to expensive for what I need). We have a simple plc code that alerts at one temperature and then escalates one more time when above 80 degrees. One of our new closets is going to have a generator associated with it and I wanted to see about incorporating two items into the existing temperature program, well I guess it would be four things - generator exercising, generator finished exercising, generator on with load and generator off (from load). We have done this in the past with other products using CSs so I figured it would be doable usings WC inputs. The following is my plc program with the added monitoring for the generator. My issue is with email alerts after the generator has finished exercising and finished from running with load. I believe my ram values make it so I will keep getting emailed since the IP1 returns to 0. I was hoping someone could help me adjust the plc code to correct this issue.
thanks,
Jim
The items in parenthesis are just for my benefit while figuring out the process. Not intended for production.
START
SET RAM2 0 (send 76temp)
SET RAM3 0 (send 80 temp)
SET RAM4 0 (send generator exercise on)
SET RAM5 0 (send generator exercise off)
SET RAM6 0 (send generator load on)
SET RAM7 0 (send generator load off)
SET RAM8 0 (send humidity)
LOOP:
TSTGE T1 760
CALLSUB SEND76T1
TSTGE T1 800
CALLSUB SEND80T1
TSTLE T1 750
CALLSUB SEND74T1
TSTGE H1 70
CALLSUB SENDHUM4
TSTLT H1 65
SET RAM8 0
TSTEQ IP1 1
CALLSUB GENEX
TSTEQ IP1 0
CALLSUB GENEXOFF
TSTEQ IP2 1
CALLSUB GENLOAD
TSTEQ IP2 0
CALLSUB GENLOADOFF
GOTO LOOP
END
SEND76T1:
TSTEQ RAM2 0
EMAIL EM1
SET RAM2 1
RET
SENDHUM4:
TSTEQ RAM8 0
EMAIL EM2
SET RAM8 1
RET
SEND80T1:
TSTEQ RAM3 0
EMAIL EM1
SET RAM3 1
RET
SEND74T1:
TSTEQ RAM2 1
EMAIL EM3
SET RAM2 0
SET RAM3 0
RET
GENEX:
TSTEQ RAM4 1
EMAIL EM4
SET RAM4 1
RET
GENEXOFF:
TSTEQ RAM5 0
EMAIL EM5
SET RAM5 1
RET
GENLOAD:
TSTEQ RAM6 0
EMAIL EM6
SET RAM6 1
RET
GENLOADOFF:
TSTEQ RAM7 0
EMAIL EM7
SET RAM7 1
RET