Cai Webcontrol as true thermostat

WebControl has many versions of firmware. If your tried:
setvar.cgi command and got reply saying page not found, you might have a board with firmware prior to support setvar command. What is your firmware version number on GUI display?
 
Hello, thanks for your reply, yes that's right a remote computer or mobile phone (nokia E5) with internet access to view the status of the inputs and control the outputs.

I have the webcontrol board working fine from within my home network
You probably need to sign up with some kind of dynamic DNS services for your dynamic IP address.
I never used it myself, but you can try this: http://www.dnsexit.com/ or http://www.no-ip.com/
I think you will need to have the router with firmware support dynamic DNS, then you can access your home WebControl through the router enabled services.
 
DNS.org is another service. You will have to port forward your webcontrol port with your router (watch yourself here as some Internet providers will not let you use port 80). Go to http://portforward.com/ for more info.
 
Hi fwd03 !

Thanks for your answer.
My firmware no. is v03.01.04. I am able to control the TTL outputs and read inputs,
but not set the VAR.
There is a comment in the FAQ.....
"Command line browser wget can be used to do manually control. The above lines maybe need in double quotes to work."
I am not shure that I understand what they mean ?
 
Hello all,

I'm trying to set up the thermostat differently for saturday and sunday, but have no luck.

Basically on Saturday and Sunday I want to configure temperature different from the rest of the week.

Please see below the program I have, so far, but the weekend section is not working

START
TSTLT CT 5:0:0
CALLSUB THERMO05
TSTLT CT 8:0:0
CALLSUB THERM58
TSTLT CT 17:0:0
CALLSUB THERM0817
TSTLT CT 23:59:59
CALLSUB THERM1723
TSTLT CDAY 'SAT'
CALLSUB WEEKEND
TSTLT CDAY 'SUN'
CALLSUB WEEKEND
SKIPHEATR:
TSTEQ TS1 0
SET OP2 0
TSTEQ OP2 1
CALLSUB MAILON
TSTEQ OP2 0
CALLSUB MAILOFF
TSTEQ OP1[1000] 1
SET OP1 0
TSTGT IP1 0
CALLSUB DOORMAIL
NOP
TSTEQ TS1 0
CALLSUB MAILER
TSTEQ TS1 1
CALLSUB SETVAR3
END

THERMO05:
TSTLT T1 690
SET OP2 1
TSTGT T1 700
SET OP2 0
RET

THERM58:
TSTLT CT 5:0:0
RET

TSTLT T1 715
SET OP2 1
TSTGT T1 725
SET OP2 0
RET

THERM0817:
TSTLT CT 8:0:0
RET

TSTLT T1 710
SET OP2 1
TSTGT T1 715
SET OP2 0
RET

THERM1723:
TSTLT CT 17:0:0
RET

TSTLT T1 715
SET OP2 1
TSTGT T1 728
SET OP2 0
RET

WEEKEND:
TSTLT CT 08:0:0
RET

TSTLT T1 715
SET OP2 1
TSTGT T1 728
SET OP2 0
RET


MAILON:
SET VAR2 0
TSTEQ VAR1 0
GOTO MAILON1
RET

MAILON1:
EMAIL EM2
SET VAR1 1
RET

MAILOFF:
SET VAR1 0
TSTEQ VAR2 0
GOTO MAILOFF1
RET

MAILOFF1:
EMAIL EM3
SET VAR2 1
RET

DOORMAIL:
EMAIL EM1
RET

MAILER:
SET VAR4 0
TSTEQ VAR3 0
CALLSUB MAILER1
GOTO SKIPHEATR
RET

MAILER1:
EMAIL EM4
SET VAR3 1
RET

SETVAR3:
TSTEQ TS1 1
SET VAR3 0
RET
 
Hi fwd03 !

Thanks for your answer.
My firmware no. is v03.01.04. I am able to control the TTL outputs and read inputs,
but not set the VAR.
There is a comment in the FAQ.....
"Command line browser wget can be used to do manually control. The above lines maybe need in double quotes to work."
I am not shure that I understand what they mean ?

Hello,
setvar command was requested by Lou after the firmwre version 3.1.6. For HW rev 2.0.2 board, the minimum firmware requirement is 3.1.7, or all the HW rev 2.2.2 firmwares.
 
Siafu,

You need to re-arrage the PLC code. Please remember, PLC logic is execute from top to bottom one line at a time, once it went through "END", it will from "START" again - like a big loop.

Currently, you have:

TSTLT CDAY 'SAT'
CALLSUB WEEKEND
TSTLT CDAY 'SUN'
CALLSUB WEEKEND
after daily time checking. That is a wrong sequence. If you want to have Sat and Sun as two exceptions, then you need to check them first in your logic.
If I remeber correctly, you also have logic in this PLC code to check the TTL input state. You may want to move those logic to the top, also.
 
Hello Cai,

I moved them up, and changed the days to MON and TUE for testing, but still not controlling.

Please see full code below.

START
TSTLT CDAY 'MON'
CALLSUB WEEKEND
TSTLT CDAY 'TUE'
CALLSUB WEEKEND
TSTLT CT 5:0:0
CALLSUB THERMO05
TSTLT CT 8:0:0
CALLSUB THERM58
TSTLT CT 17:0:0
CALLSUB THERM0817
TSTLT CT 23:59:59
CALLSUB THERM1723
SKIPHEATR:
TSTEQ TS1 0
SET OP2 0
TSTEQ OP2 1
CALLSUB MAILON
TSTEQ OP2 0
CALLSUB MAILOFF
TSTEQ OP1[1000] 1
SET OP1 0
TSTGT IP1 0
CALLSUB DOORMAIL
NOP
TSTEQ TS1 0
CALLSUB MAILER
TSTEQ TS1 1
CALLSUB SETVAR3
END

THERMO05:
TSTLT T1 690
SET OP2 1
TSTGT T1 700
SET OP2 0
RET

THERM58:
TSTLT CT 5:0:0
RET

TSTLT T1 715
SET OP2 1
TSTGT T1 725
SET OP2 0
RET

THERM0817:
TSTLT CT 8:0:0
RET

TSTLT T1 710
SET OP2 1
TSTGT T1 715
SET OP2 0
RET

THERM1723:
TSTLT CT 17:0:0
RET

TSTLT T1 715
SET OP2 1
TSTGT T1 728
SET OP2 0
RET

WEEKEND:
TSTLT CT 7:0:0
RET

TSTLT T1 725
SET OP2 1
TSTGT T1 728
SET OP2 0
RET

MAILON:
SET VAR2 0
TSTEQ VAR1 0
GOTO MAILON1
RET

MAILON1:
EMAIL EM2
SET VAR1 1
RET

MAILOFF:
SET VAR1 0
TSTEQ VAR2 0
GOTO MAILOFF1
RET

MAILOFF1:
EMAIL EM3
SET VAR2 1
RET

DOORMAIL:
EMAIL EM1
RET

MAILER:
SET VAR4 0
TSTEQ VAR3 0
CALLSUB MAILER1
GOTO SKIPHEATR
RET

MAILER1:
EMAIL EM4
SET VAR3 1
RET

SETVAR3:
TSTEQ TS1 1
SET VAR3 0
RET
 
Hi Siafu,

In the subroutine WEEKEND: you will not let control going back by RET, since you don't want them check the weekdays' time again. Otherwise, it will fall into regular days schedule routines. What do you want to accomplish for the weekend? Not based on time at all? You need to write down exactly what you want to do, one thing per line. That will be your pseudo code. Make sure your logic working fine in English first, then translate them into PLC logic code.

Have fun!
 
Hi Cai,

Thank you for your email, and your help, as always.

Basically on the Saturday and Sunday "Weekend" I need the heat temperature control to be a bit different, as more people are at home.

On Saturday morning at midnight the heat temperature can be the same as weekedays

But at 7:00 AM then the heat would turn on at 725 and turn off at 728 (for example, I will make final adjustments when this is working)

Then basically stay the same until midnight (Sunday) where it would drop down again as per the same as weekday at midnight.

Then Sunday at 7:00 AM, do the same as Saturday, again until midnight, where it would do the same as every midnight, weekdays)

How can I make this happen for the Weekend (Sat and Sun?
 
Don't forget humidity scaling to reduce humidifier settings as the outdoor temperature drops in order to prevent condensation on windows from causing rot/mold problems. :) Robert Shaw is the only thermostat maker that I know of that does this, and it's REALLY nice in cold climates.
 
Hi Cai, Thank you for your email, and your help, as always. Basically on the Saturday and Sunday "Weekend" I need the heat temperature control to be a bit different, as more people are at home. On Saturday morning at midnight the heat temperature can be the same as weekedays But at 7:00 AM then the heat would turn on at 725 and turn off at 728 (for example, I will make final adjustments when this is working) Then basically stay the same until midnight (Sunday) where it would drop down again as per the same as weekday at midnight. Then Sunday at 7:00 AM, do the same as Saturday, again until midnight, where it would do the same as every midnight, weekdays) How can I make this happen for the Weekend (Sat and Sun?

Based on what you said, you want to add a checking for 7AM, in that 7AM routine, you want to check if that is SAT or SUN, if match then heat to 725 and off at 728. Then you will skip rest checking, instead of continue on the main logic.

START
TSTLT CT 5:0:0
CALLSUB THERMO05
TSTLT CT 7:0:0
CALLSUB THERMO07
TSTLT CT 8:0:0
CALLSUB THERM58
TSTLT CT 17:0:0
CALLSUB THERM0817
TSTLT CT 23:59:59
CALLSUB THERM1723
SKIPHEATR:
TSTEQ TS1 0
SET OP2 0
SKIP_WDAY:
TSTEQ OP2 1
CALLSUB MAILON
TSTEQ OP2 0
CALLSUB MAILOFF
TSTEQ OP1[1000] 1
SET OP1 0
TSTGT IP1 0
CALLSUB DOORMAIL
NOP
TSTEQ TS1 0
CALLSUB MAILER
TSTEQ TS1 1
CALLSUB SETVAR3
END

THERMO05:
TSTLT T1 690
SET OP2 1
TSTGT T1 700
SET OP2 0
RET

THERM58:
TSTLT CT 5:0:0
RET
TSTLT T1 715
SET OP2 1
TSTGT T1 725
SET OP2 0
RET

THERM0817:
TSTLT CT 8:0:0
RET
TSTLT T1 710
SET OP2 1
TSTGT T1 715
SET OP2 0
RET

THERM1723:
TSTLT CT 17:0:0
RET
TSTLT T1 715
SET OP2 1
TSTGT T1 728
SET OP2 0
RET

THERMO07:
TSTEQ CDAY SAT
goto WEEKEND
TSTEQ CDAY SUN
goto WEEKEND
RET
WEEKEND:
TSTLT T1 725
SET OP2 1
TSTGT T1 728
SET OP2 0
goto SKIP_WDAY
RET

MAILON:
SET VAR2 0
TSTEQ VAR1 0
GOTO MAILON1
RET

MAILON1:
EMAIL EM2
SET VAR1 1
RET

MAILOFF:
SET VAR1 0
TSTEQ VAR2 0
GOTO MAILOFF1
RET

MAILOFF1:
EMAIL EM3
SET VAR2 1
RET

DOORMAIL:
EMAIL EM1
RET

MAILER:
SET VAR4 0
TSTEQ VAR3 0
CALLSUB MAILER1
GOTO SKIPHEATR
RET

MAILER1:
EMAIL EM4
SET VAR3 1
RET

SETVAR3:
TSTEQ TS1 1
SET VAR3 0
RET
 
Don't forget humidity scaling to reduce humidifier settings as the outdoor temperature drops in order to prevent condensation on windows from causing rot/mold problems.
What's the odds of seeing a sample of the programming for this?
 
Back
Top