![]() |
|
Querying flag state using RS232 - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Products (https://www.comfortforums.com/forum-3.html) +--- Forum: UCMs (https://www.comfortforums.com/forum-146.html) +--- Thread: Querying flag state using RS232 (/thread-1185.html) |
- Tas - 10-02-2008 Searched all the manuals and can\'t see a way to do this. - slychiu - 10-02-2008 Use the Do Action command (DA) Action 132, 2. flag returns the state of the flag ie 0 or 1 [color=\"red\"][size=\"3\"]Above is WRONG, Action 132, flag, 2 returns the state of the Flag ie 0 or 1[/size] [/color]eg DA840302 means check Flag 3 (84 in hexadecimal is 132) RAnn is the reply which is the flag state eg RA00 or RA01 - Tas - 10-02-2008 This is great. I will try that. Many Thanks, Tas - Tas - 10-30-2008 I\'ve have been trying what you suggest but can\'t get it to work. The response I get back from the \"DA840203\" command alternates between RAC2 and RAC0 which isn\'t what I expected. Any idea what I might be doing wrong? Thanks, Tas - slychiu - 10-31-2008 Sorry, my mistake. The correct syntax is action 132, flag, 02 for check Flag Actipn 132, flag, 01 for Set Flag Action 132, flag, 00 for clear flag In your case to check Flag 3, you need DA840302, not DA840203 - Tas - 01-05-2009 Thanks, I\'ve used the commands as you described and got it working but I\'m getting different responses than those you describe. For example flag 5 returns RA00 for unset, and RA10 for set Flag 6 on the other hand returns RA00 for unset and RA20 for set. Any idea what\'s happening here? Many Thanks, Tas - admin - 01-06-2009 The value returned by action 132 is 0 for flag =0 and > 0 if the flag is set Hance RA10 and RA20 both mean that the flag is set, RA00 means the flag is unset |