new to webcontrol, need help connect analog and digital input

QUANG

New Member
Hi every one ...i would like someone can help me how to connect (wiring) a smoke alarm, motion sensor,  window and door sensor and water leak or garage door to the AUX input. draw me a diagram connecting that is great and i don't know i can use those sensor from the canadian tier store. give me recommend where i can buy one. thank every one.
 
QUANG said:
Hi every one ...i would like someone can help me how to connect (wiring) a smoke alarm, motion sensor,  window and door sensor and water leak or garage door to the AUX input. draw me a diagram connecting that is great and i don't know i can use those sensor from the canadian tier store. give me recommend where i can buy one. thank every one.
Do you have any of those sensor you mentioned, or looking for recommendation for those sensors?  As long as they have TTL output or analog output, they can connect to the WebControl AUX input port.
 
thank for reply... i am  looking for recommendation for those sensors, fire alarm, motion sensor, window and door sensor. so i can connect to analog input to use my house a system security. i really thank you could help me a link to those sensor so i know exactly to buy. i did a search and i could not find out those sensor for webcontrol. thank my friend
 
thank for sending a link sample, i will get that and try connect to the board. and by the way should i have to wire any resistor in between for each sensor. 
also when the webcontrol 32 will be on ebay for sale and if i order couple webcontrols and can i use my own logo?
 
It is not a bad idea to have a 1K resistor,
Anyone interested in purchasing WC32 beta boards can write to us a private message.  We do provide WC32 gui code when customer request it, if you purchase larger qty, we will also help you to get those logo uploaded.
 
that is good to heard and willing to... when have a chance and know to used some basic commend from the board. 
nee your help instruction send out email when temp stringer TTL output ( already done setup yahoo and Test button it was send to Gmail was successfully  but fail send email alert when stringer, i did same your instruction example from manual section send email, and webcontrol had 5 temp & humidity. and both t3-t2 went down below 20 and up 20 degrees. below what i paste into PLC engine.
 
 To send email 1 when T3 – T2 >= 20 degrees you would use: 
START 
 SUB T3 T2 RAM1 
 TSTGE RAM1 200 
EMAIL EM1 
END 
 
and i did try the second example.
START 
 SET RAM2 0 
 LOOP: 
 SUB T3 T2 RAM1 
 TSTGE RAM1 200 RAM1 
 GOTO SEND 
 SET RAM2 0 
 GOTO LOOP 
 END 
 
 SEND: 
 BNZ RAM2 LOOP 
 SET RAM2 1 
 EMAIL EM1 
 GOTO LOOP
 
in the network setup pape. i set the gateway same my router default gateway 192.168.0.1 and Static IP Address is 192.168.0.254 and all option below are the same default and set Port Forwarding from the router 192.168.0.254 port 80, no conflict. and when i brown same home network to login 192.168.0.254 is fail.  2)same home network 192.168.0.254:80 was successful. 3) browsing outside home network (from my phone data) 192.168.0.254 0r 192.168.0.254:80 was fail to login. 4) login my ip address 99.228.56.265:80 from phone data and it was allow me to login webcontrol.
really need your help correct me what i did wrong. thank CAI Webcontrol and some nice one out there. also can you help look on my diagram i draw connect sensor to TTL input does it right or wrong connection.
 
post-19557-0-55701000-1383100178_thumb.jpg
 
If you have tested manual send email and it works, your network configuration should be fine.
Now, to debug the reason why email is not send, could you please try to change RAM1 to a not being used VAR, say VAR8 is not being used for anything, then
START 
 SUB T3 T2 VAR8 
 TSTGE VAR8 200 
EMAIL EM1 
END 
 
This way, you will see from browser what temperature difference is in the PLC execution.  That should be displayed on VAR8.
 
Hi Cai...thank your reply. i used your code and Vars display in System Status channel 8 and changed to Vars6 and display channel 6, than tried T2 T3 jump up & down or equal Status Vars jumping and no email alert send. anyway i didnot know what is that mean.  i would like you can help me a example code that for me to sturdy, ex:  when T2 370 turn on all Op1 to Op8 and send 2 different email alert. 
Also i have a problem how to connect all the sensors to AUX inputs you was recommend 3 links sensor earlier, and can you help me a instruction 2 digital input and one for analog input. if you help  me a example code when senor stringer turn on OP that is nice for me to sturdy.
 
and i have another need help, i want to used a Push Button and don't know what type can you help me a link i can buy and i do need to know how to connect to analog input or digital input. i really thank very much and you have a nice day.
i have a webcontrol for a while and play with code and connect sensor to AUx until now i still blind what right i need your help.
 
Hi,
 
Normally, you want to take an action when temperature reaching above certain degree or below certain degree.,  I assume you set temp sensor to F, not C, so that if T2 is 370, you actually mean when temperature goes below 37F?
 
What device do you have connected to OP1 and OP8? When we write code, we also consider what kind of load. 
 
Another factor we want to know is at what temperature you want to turn off OP1 and OP8?  You can turn on heater, at the same time, you will need to implement logic for when to turn off the heater, or everything will be overheated.
 
You mentioned you have not been able to send email out yet.  Did you try to setup a Yahoo email account to send email by pressing the test button in the gui?
 
You also need to plan which digital input and analog input being used for your sensors. Then you wire them up,  After that, you should be able to see those sensor status changing each time any sensor is triggered.  You may have to go to "general" tab to check the "polling" checkbox and save, that will enable constantly pulling IO status and showing them on the screen.  Once you finished your code and debug, you can uncheck that checkbox, so that leave all the CPU to run the PLC logic.
 
Take a step at a time, you will be able to get there.  We will work with you, so that you can master it in this process.
 
Back
Top