
Examples of Operation Commands
18 RS232 Control
Types of Responses
Response from the tile can be Symbolic (mostly text), Numeric (mostly numbers), or
Data.Whenever a command is sent to an individual ID, wait for the response before
sending a second command.
Note: Remember: tiles only respond when they are individually addressed. If you want to
know a status or a value in six different tiles, you must ask the question six times, and you
must wait for the response from each tile before sending the question to the next one.
Symbolic Response Examples
Command and Response
Examples
Explanation
opA1 auto.lamp ? [CR]
Would get the Symbolic response
OPA1AUTO.LAMP=DISABLE
Text in responses are all caps, regardless of what you sent.
Numeric Response Examples
Command and Response
Examples
Explanation
op A1 auto.lamp ? [CR]
Would get the Numeric response
OPA11037=0
Notice that you can send commands as text and get the
response as numeric. 1037 is the Operation Number for
auto.lamp, and 0 means Disabled. It works the other way,
too. Ask the question with all numbers and get a text
response, if ascii.response is set to Symbolic.
Data Response Examples
Command and Respond
Examples
Explanation
op A1 auto.lamp ? [CR]
Would get the Data response
0
You get only the answer and only in numeric form. This is
used mainly when a sequence of commands is sent and
the data is acted upon by the program. For instance, the
program might query each tile as to its lamp state, on or
off, then send a Lamp On command to just those tiles that
are off.
Komentáře k této Příručce