Protocol Encoding; Examples - Planar QE Series User Manual

Table of Contents

Advertisement

Protocol Encoding

Examples

Note:
Command
brightness = 100 [CR]
brightness = 100;
200=100 [CR]
brightness+ [CR]
• OPERAND indicates the data to be sent with the message. In some cases, there
can be multiple operands. See the "Operands" column in the table.
• Enumerated operands can be written either with their named value or their
numeric value (see "Examples" on page 7).
• String operands are written with quotation marks at the beginning and end.
Example: "this is a string operand". Special characters, [CR], [LF], " and \ can be
included in a string by escaping them with the \ character (see "Examples" on
page 7).
• Integer (or signed integer / unsigned integer) are always numeric values.
• Fixed point operands are numeric values with fractional parts. They use
decimal point notation.
• Note that enumerated and integer values can be written either in decimal or
hexadecimal. For example, a decimal value of '50' can be written in
hexadecimal as '0x32' .
• TERM is the termination character for the command. This can either be the
ASCII carriage return character (0x0D), the ASCII line feed character (0x0A) or a
semicolon. The response will use the same termination character.
• All parts of the command structure are case insensitive (e.g. "BRIGHTNESS",
"brightness" and BrIgHtNeSs" are all the same). Responses will always be in
capital letters.
• Excessive white space is allowed (e.g. "BRIGHTNESS=50", "BRIGHTNESS = 50"
and "BRIGHTNESS
• Modifiers and operands can be separated by commas, spaces or both (e.g.
"GAIN=100,100,100", "GAIN=100 100 100" and "GAIN=100, 100, 100" are all the
same). Responses will always separate with one space between modifiers and
operands).
[CR] is the ASCII carriage return character (0x0D).
BRIGHTNESS:100 [CR]
BRIGHTNESS:100;
200:100 [CR]
BRIGHTNESS:101 [CR]
Planar QE Series RS232 User Manual
=
50" are all the same).
Response
Protocol Encoding
Notes
Sets the Brightness value to 100
Also sets the Brightness value to 100,
but uses the ';' termination character
instead of [CR]. The response uses the
same termination character.
"200" is the numeric command code for
"BRIGHTNESS"
Increments the current Brightness
value
7

Advertisement

Table of Contents
loading

Table of Contents