Posts: 279
Threads: 36
Joined: Aug 2006
Reputation:
0
07-30-2007, 06:55 AM
(This post was last modified: 08-02-2007, 12:15 PM by slychiu.)
Hi,
When I query an output status eg O?89, I am returned with either OP8900 or OP8901 using Hyperterm.
If I query the status of an output using a Response with Get Value, I am returned a value of OK
Please explain why I am not getting either OP8900 or OP8901
Thanks
That action (Get ouput state) is meant for conditional programming and not meant for querying.
Posts: 279
Threads: 36
Joined: Aug 2006
Reputation:
0
Hi,
How can I create a response that will return the status of an output ?
I am doing a touch screen interface and I want to report the status of numerous outputs.
Thanks
Doesn\'t the O? command work like you mentioned earlier? I would suggest that you change your program such that it would be able to handle the replies.
Posts: 279
Threads: 36
Joined: Aug 2006
Reputation:
0
07-30-2007, 08:01 AM
(This post was last modified: 08-02-2007, 12:16 PM by slychiu.)
Hi,
The O? only works for single commands, I want to do a group using R! prefix.
Any ideas or alternatives for a group query.
Thanks again
You could make use of the Y? or y? commands instead then.
Posts: 279
Threads: 36
Joined: Aug 2006
Reputation:
0
Hi,
I tried that.
I expected a flood of status feedbacks but all I got was OK.
Thanks
Could it be due to the version of the UCM/main board?
Posts: 279
Threads: 36
Joined: Aug 2006
Reputation:
0
Hi,
I am using the UCM/Ethernet. What version no is compatible ?
Thanks
Posts: 3,493
Threads: 476
Joined: Aug 2006
Reputation:
0
Not all UCM/Ethernet and Comfort versions support the Y? and y? commands. These were introduced at various stages over the years
Can you use the V? command (gives you Comfort version) and U? (UCM Version) and let us know what the replies are
The R! command causes Responses to be executed. Get Value of Ouput within the Response returns the value of the output to the next Action in the Response.
eg
Get Output 1
If value > 0 then...
Else
...
Endif
You can see from the above example , that it does not cause a OP reply on the UCM
Instead You can use the DA command (DO Action). DA4D 01 is Do Action 77 , 01 which means Get Output 1
This replies with RA followed by the value returned by the action, ie the value of Output 1
eg
DA4D10 (Get Output 16 - values are in hexadecimal)
RA01 (Return Value 1, meaning Output 16 is on)
I am not exactly sure what you want to achieve but I hope this is what you require