Protocol Encoding; Examples - Planar UltraRes X RS232 Series User Manual

Table of Contents

Advertisement

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.
4.2

Protocol Encoding

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).
4.3

Examples

Note: [CR] is the ASCII carriage return character (0x0D).
Command
brightness = 100 [CR]
brightness = 100;
200=100 [CR]
brightness+ [CR]
brightness- [CR]
gain = 101 102 103 [CR]
gain(current red)+
gain(zone.1, all) = 104,105,106
Planar UltraRes X Series RS232 User Manual
020-1397-00B
7
=
50" are all the same).
Response
BRIGHTNESS:100 [CR]
BRIGHTNESS:100;
200:100 [CR]
BRIGHTNESS:101 [CR]
BRIGHTNESS:100 [CR]
GAIN:101 102 103 [CR]
GAIN(CURRENT RED):102
GAIN(ZONE.1 ALL):104 105 106
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
Decrements the current Brightness
value
Example command with multiple
operators (sets Red Gain to 101,
Green Gain to 102 and Blue Gain to
103, on the current zone)
Increments the Red Gain on the
current zone
Example command with multiple
modifiers, multiple operators and
different separators between the
modifiers and operators (sets Red
Gain to 104, Green Gain to 105 and
Blue Gain to 106, on Zone 1)
Page | 7

Advertisement

Table of Contents
loading

Table of Contents