Without setting RAM1 or VAR1 1 after sending an email the board keeps on sending emails (more or less one every two seconds) as long as IP5 is high.
(I'm using a VAR now because I can check this through the GUI)
If IP5 stays high after 5min the board sends another mail but this is ok.
This seems to work as well:
START
LOOP:
TSTEQ IP5[100] 1
CALLSUB TURNON
TSTEQ VAR2[300000] 1
CALLSUB TURNOFF
GOTO LOOP
END
TURNON:
SET VAR2 1
X10 1 0 1
TSTEQ VAR1 0
EMAIL EM2
DELAY 500
SET VAR1 1
RET
TURNOFF:
SET VAR2 0
X10 1 0 0
SET VAR1 0
RET
It sends 1 email if IP5...
This seems to work:
START
LOOP:
TSTEQ IP5[100] 1
CALLSUB TURNON
TSTEQ OP1[300000] 1
CALLSUB TURNOFF
GOTO LOOP
END
TURNON:
SET OP1 1
X10 1 0 1
TSTEQ RAM1 0
EMAIL EM2
DELAY 500
SET RAM1 1
RET
TURNOFF:
SET OP1 0
X10 1 0 0
SET RAM1 0
RET
I don't know if it is the...
Yes,
This works for OPx but does not work for X10 commands unless you set them both low maybe?
TSTEQ IP1 [100] 1
X10 1 0 1
TSTEQ IP1[100] 1
SET OP1 1
TSTEQ OP1[60000] 1
X10 1 0 0
TSTEQ OP1[60000] 1
SET OP1 0
The interval time between on and off would be 15 minutes and the device would be started by a digital input pulse high. During this interval one email is sent.
The X10 device is not always on the same period as OP3 but I could use another not used OPx to check the status.
I’ve been thinking of using a VAR to set X10 off bit I’m not so familiar with variables:
START
CALLSUB INIT_OUT
TSTLT CYEAR 2015
GOTO START
LOOP:
CALLSUB CHECK_DIS
TSTEQ...
ALARM:
SET OP1[900000] 1
SET OP3[45000] 1
X10 1 0 1
EMAIL EM1
RET
So when IP1 is high sub-routine ALARM will set OP1 (lights) high for 15 minutes OP3 (siren ) high for 45 seconds and send an ON signal through a transmitter to the X10 receiver that can’t be set off after e.g.15 minutes...
I’m currently using my webcontoller as alarm unit.
When an IP gets high an OP is set high for some time and an email is being sent.
Now I would like some wireless devices to be triggered by X10 commands.
Is het possible to use a non-blocking delay e.g. 5 minutes with the command X10 1 0 1 just...
Dear friends,
Sorry for not answering earlier but I had not the opportunity to go on the internet the last ten days.
I won’t have access to my webcontroller the coming two weeks as well.
From October on I will go on testing the PLC instructions.
For the time being the system is running on an...
Dear,
I see.
At 23h and until 24h CH is greater then 21h so X10 is on, and greater then 23h so X10 has to stop.
This should work from 21h till 24h?
TSTGE CH 21
CALLSUB RELAY2
TSTLT CH 21
CALLSUB RESET2
I tried your code again but both the...
Thanks
I understand.
But for some reason ANDB RAM1 3 results always in a 1 because the X10 devices keep on swapping all the time.
I tried this
TSTGE CH 21
CALLSUB RELAY2
TSTGE CH 23
CALLSUB RESET2
TSTLT CH 21
CALLSUB RESET2
and it...
Thanks
Ok I understand.
TSTGE CH 20
ORB RAM1 1 RAM1 results in RAM1 =1 if the current hour is greater or equal 20h
TSTLT CH 2
ORB RAM1 2 RAM1 results in RAM1 again =1 if the current hour is lower then 23h
ANDB RAM1 3 ?
How can this result in a 1
Isn’t it always 0
CZ RESET2 This...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.