CAI Webcontrol coding and state machines

salesguy

Member
Hi. I'm new to working with the webcontrol device and PLC programming. I was wondering if there are folks with some coding examples or experience using this device beyond what the manual has?

I wanted to implement state machine functions for monitoring inputs much like an alarm or firing system would, with the result being a flashing light or email alert, once an AUX input persists for a certain number of ms.

So far I've integrated it with our GE SIMON XT alarm, by simply wiring in parallel with the beeper - so I get an email alert when a door or window opens. Something I might want to know if i'm not home.

I also have it wired into my garage door opener remote to a relay to the webcontrol TTL output, so i can switch the garage open and I didn't have to run any hard wires in the garage.

Other useful things might be a water meter alert, whole house power meter, etc.
 
What kind of state machine do you want to implement? If you can draw a flow chart, that will be a lot easy to implement.
I do have garage door controlled by WebControl. simple wire a parr relay N/O contacts in parallel to the push button.
 
What kind of state machine do you want to implement? If you can draw a flow chart, that will be a lot easy to implement.
I do have garage door controlled by WebControl. simple wire a parr relay N/O contacts in parallel to the push button.

I'd like to do this as well but unfortunately, my garage door uses a "smart" wall console. Shorting the two wires does not open the door. Its a Genie IntelliG 1200 and the wall button has 3 buttons over a circuit board. How can I tell what it is doing and emulate that? I'm pretty new to electronics and trying to solder on that board might not be a great idea for me. I'd rather attach my CAI/relay setup to the the wire and emulate whatever the open/close button does on the wire (since you have have more than one of these smart consoles on the same "wire" this should be possible). Also, could I see your PLC logic for the CAI? I'm trying to create my own but would love more examples. Thanks!!!!
 
I forgot where did I get this program originally, probably from CAI support or someone else. it does three things, when RFID input on IP1 is logic 1 for 1 second, which means a RFID tag presented at receiver, it will turn on op1 which is a relay output to short the garage door opener push button. The 2nd logic is to turn the outdoor light on at 7PM and off at 5AM. Outdoor lights is connected to relay baord, and the op3 is connected to the relay board for that. Another thing is each day at 11PM to issue a X10 command to turn on a heater on the X10 outlet and to turn it off at 7AM.

START
CALLSUB LIGHTS
TSTEQ VAR8 0
CALLSUB SET_OP1
CALLSUB CHK4LOW
TSTEQ OP1[1000] 1
SET OP1 0
TSTEQ CH 23
CALLSUB HEATON
HEAT1:
TSTEQ CH 7
CALLSUB HEATOFF
HEAT2:
SET CYEAR RAM1
END
CHK4LOW:
TSTEQ IP1 0
SET VAR8 0
RET
SET_OP1:
TSTEQ IP1 1 VAR8
SET OP1 1
RET
LIGHTS:
TSTGE CH 19 RAM1
NOP
TSTLE CH 5 RAM2
NOP
OR RAM1 RAM2 OP3
RET
HEATON:
TSTEQ RAM3 1
GOTO HEAT1
X10 1 15 ON
SET RAM3 1
RET
HEATOFF:
TSTEQ RAM3 0
GOTO HEAT2
X10 1 15 OFF
SET RAM3 0
RET

X10 is at house code B and device code 16. It has been running for over a year now. I am using an old notebook 12V power supply connected with two regulator chips, one is 9V for webcontrol board, and another one is 5V for the relay board.
 
Ah, most of that will work for me except I dont have a RFID relay board (YET!) and just use a magnetic switch to detect position of garage door. I want to auto-close and/or web control close it when necessary. I'll work with that and see if I can modify it for my purposes.

What RFID setup do you have?
 
I'd like to do this as well but unfortunately, my garage door uses a "smart" wall console. Shorting the two wires does not open the door. Its a Genie IntelliG 1200 and the wall button has 3 buttons over a circuit board. How can I tell what it is doing and emulate that? I'm pretty new to electronics and trying to solder on that board might not be a great idea for me. I'd rather attach my CAI/relay setup to the the wire and emulate whatever the open/close button does on the wire (since you have have more than one of these smart consoles on the same "wire" this should be possible). Also, could I see your PLC logic for the CAI? I'm trying to create my own but would love more examples. Thanks!!!!

The simple solution to your "smart" control is to leave it alone. Take your RF remote and solder to it. Soldering isn't that hard. . . you can do it! This is how mine is wired up since I neglected to run wires to the openers when the house was under construction. And if you mess it up, you can always buy another rf remote for not that much money.
 
Back
Top