Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register
Comfort Automation/ Security System Forums > Products > UCM > Querying flag state using RS232

Querying flag state using RS232
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Thursday Oct 2nd, 2008 07:46 pm
   PM  Quote  Reply 
1st Post
Tas
Member
 

Joined: Monday Feb 11th, 2008
Location: London, United Kingdom
Posts: 39
Status: 
Offline

  back to top

Searched all the manuals and can't see a way to do this.



 Posted: Thursday Oct 2nd, 2008 09:40 pm
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

Use the Do Action command (DA)
Action 132, 2. flag returns the state of the flag ie 0 or 1
Above is WRONG, Action 132, flag, 2 returns the state of the Flag ie 0 or 1
eg DA840302 means check Flag 3 (84 in hexadecimal is 132)
RAnn is the reply which is the flag state eg RA00 or RA01


Last edited on Friday Oct 31st, 2008 03:18 am by slychiu



 Posted: Thursday Oct 2nd, 2008 10:48 pm
   PM  Quote  Reply 
3rd Post
Tas
Member
 

Joined: Monday Feb 11th, 2008
Location: London, United Kingdom
Posts: 39
Status: 
Offline

  back to top

This is great. I will try that.

Many Thanks,

Tas



 Posted: Thursday Oct 30th, 2008 09:40 pm
   PM  Quote  Reply 
4th Post
Tas
Member
 

Joined: Monday Feb 11th, 2008
Location: London, United Kingdom
Posts: 39
Status: 
Offline

  back to top

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



 Posted: Friday Oct 31st, 2008 03:17 am
   PM  Quote  Reply 
5th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

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




 Posted: Monday Jan 5th, 2009 05:22 pm
   PM  Quote  Reply 
6th Post
Tas
Member
 

Joined: Monday Feb 11th, 2008
Location: London, United Kingdom
Posts: 39
Status: 
Offline

  back to top

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



 Posted: Tuesday Jan 6th, 2009 01:13 am
   PM  Quote  Reply 
7th Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 1200
Status: 
Offline

  back to top

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



 Current time is 02:13 pm
Comfort Automation/ Security System Forums > Products > UCM > Querying flag state using RS232
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems