| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | RE: [ECS] 4.1.008 BETA upload Martin Terry Tue, 7 Sep 1999 14:05:54 -0700 |
I'd love to have LOGIC functions myself. :) -----Original Message----- From: Scott Danks [mailto:sdanks@ci.tulsa.ok.us] Sent: Tuesday, September 07, 1999 1:53 PM To: ecs-list@netbloc.com Subject: Re: [ECS] 4.1.008 BETA upload Mark; Couple of questions: Over the weekend, I wired the doors to the interface card that I have, and using the port I/O calls, I was able to setup an event that shows me when the doors are closed and locked. Under State-Holder, would it be too much to add Locked/Unlocked? Or is this something I can do with the custom definitions? Also, is there a function that will allow you to do logical and/or functions on a variable? Something like: Do door_var and 8 This would set a flag if the variable contained a 1 in the 8's place. As it is now, I am using several lines like: Do Door_var Set Interface_1_a BEGINIF door_var Is GE 8 then Front_Door Set Closed Do door_var subtract 8 ENDIF Else Front_Door Set Open BEGINIF door_var Is GE 4 then Front_Deadbolt Set Closed Do door_var Subtract 4 ENDIF Else Front_Deadbolt Set Open Or if anyone else is doing the same type of thing, Let me know.... Scott.
I'd love to have LOGIC functions myself. :)
-----Original Message-----
From: Scott Danks [mailto:sdanks@ci.tulsa.ok.us]
Sent: Tuesday, September 07, 1999 1:53 PM
To: ecs-list@netbloc.com
Subject: Re: [ECS] 4.1.008 BETA upload
Mark;
Couple of questions:
Over the weekend, I wired the doors to the interface card that I have, and using the port I/O calls, I was able to setup an event that shows me when the doors are closed and locked.
Under State-Holder, would it be too much to add Locked/Unlocked? Or is this something I can do with the custom definitions?
Also, is there a function that will allow you to do logical and/or functions on a variable? Something like:
Do door var and 8
This would set a flag if the variable contained a 1 in the 8's place.
As it is now, I am using several lines like:
Do Door var Set Interface 1 a
BEGINIF door var Is GE 8
then Front Door Set Closed
Do door var subtract 8
ENDIF
Else Front Door Set Open
BEGINIF door var Is GE 4
then Front Deadbolt Set Closed
Do door var Subtract 4
ENDIF
Else Front Deadbolt Set Open
Or if anyone else is doing the same type of thing, Let me know....
Scott.