Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: check double check Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: December 13 2012 at 07:40 | IP Logged Quote krommetje

Hey Guys....

Again need your help:

I have an outdoor shutter which is controlled by PH.
This shutter sends an Acknowledgement when closed or opened to my K8000, an open shutter means DI5 is off, when the shutter is closed means DI5 is on.
The shutter itself is controlled by a SW10 shutter switch, which can be ON or OFF (dimmed can also be but not in this example) When PH sends a command to close the shutter a GV is updated (K4STATE=3) and when opening the shutter K4STATE will be 2.

so here's in short:

K4 is the shutter switch (on/off)
DI5 is the reedcontact of the shutter itself (on/off)
K4STATE is the GV maintained by the macros (2 or 3)

Now... I want to compare seperate status of all 3 "devices". If the shutter is closed then all 3 devices got to have it's corresponding state and also when open. If one of the 3 statuscodes is "out of sync" so to speak, then an alarm has to be given, a mail of TTS or whatever. I have been working on a macro but I would like to start again with your help (maybe some form of educational thread can be setup here?)

Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum