bbsux
Active Member
I'm going to be using my webcontrol for quite a few things. but they are all going to be similar enough that I should be able to edit the code if you guys can help me get it sorted out.
First I I have a intermittant problem with tree roots in my sewer, so I want to use a water sensor hooked to a digital input to drive a motorized ball valve to shut off my water main and send me an email if it has been triggered.
Then I want to have my washer and dryer notify me when they are done (but they are the older kind with no leds. Just the round mechanical timer BUT it does have 120vac that stays on the entire cycle, that I plan to use to run a 120vac relay to connect to the digital inputs on the webcontrol.) then Send me an e-mail when complete.
Then I would also like to be notified by email if my mail has been delivered. I plan on having a mercury tilt switch on the mailbox door, which will drive the input and send me an e-mail.
I see this plc code but its setup for analog signals how do I set it up for digital and having a bounce in there as well?:
START
TSTLT T1 500
CALLSUB COLD1
TSTGT T1 510
SET RAM1 0
TSTLT T1 550
CALLSUB COLD2
TSTGT T1 560
SET RAM2 0
END
COLD1:
TESTEQ RAM1 1
RET
EMAIL EM1
SET RAM1 1
RET
COLD2:
TESTEQ RAM2 1
RET
EMAIL EM2
SET RAM2 1
RET
thanks
First I I have a intermittant problem with tree roots in my sewer, so I want to use a water sensor hooked to a digital input to drive a motorized ball valve to shut off my water main and send me an email if it has been triggered.
Then I want to have my washer and dryer notify me when they are done (but they are the older kind with no leds. Just the round mechanical timer BUT it does have 120vac that stays on the entire cycle, that I plan to use to run a 120vac relay to connect to the digital inputs on the webcontrol.) then Send me an e-mail when complete.
Then I would also like to be notified by email if my mail has been delivered. I plan on having a mercury tilt switch on the mailbox door, which will drive the input and send me an e-mail.
I see this plc code but its setup for analog signals how do I set it up for digital and having a bounce in there as well?:
START
TSTLT T1 500
CALLSUB COLD1
TSTGT T1 510
SET RAM1 0
TSTLT T1 550
CALLSUB COLD2
TSTGT T1 560
SET RAM2 0
END
COLD1:
TESTEQ RAM1 1
RET
EMAIL EM1
SET RAM1 1
RET
COLD2:
TESTEQ RAM2 1
RET
EMAIL EM2
SET RAM2 1
RET
thanks