Variable Text and Axcess
ryanww
Posts: 196
I am just curious how to use variable text. I have a Axcent 3 and a CA10. I know I can assign buttons to have a variable text code, but cannot find any information online on how to program it. Is it something like a redirect string, or send string to it?
Any help would be appreciated.
Thanks, Ryan
Any help would be appreciated.
Thanks, Ryan
0
Comments
You can also find this info using the software history tool in Studio -- it's probably good to get real familiar with this. Even though I know this, my first reference is typically f a PDF file.
SEND_COMMAND TP,"'!T?,1,'(DATE)"
but it is not sending anything to the button. It is just blank. I have a feeling that (DATE) isn't really a string output. I know that I can use it in an if statment which I have done with time.
Thanks, Ryan
The Software History listings within NetLinx Studio are invaluable
as they list the technical details for every hardware device along with the
specific information and protocol for sending commands and strings.
Thanks, Ryan
First thing, your string expression "'!T?,1,'(DATE)" is faulty. You have an extra single quote mark following the second comma. This works:
SEND_COMMAND TP,"'!T?,1,DATE"
"DATE" is a keyword for an intrinsic function which returns a string. For most cases, you can use the "DATE" function in an expression as you would use a variable. Of course, you ca not assign a value to it.
In Netlinx Studio, you can access help for a keyword by highlighting the keyword in your code and hitting F1. Try this with "DATE"
Also, in your command, "TP" must hold the value of the device number of your touch panel, perhaps128.