Appendix b • programming guide, Host/matrix data format – Extron Electronics Matrix 200 User Manual
Page 90

Extron • Matrix 200 • User’s Manual
Appendix B • Programming Guide
1. The Simple Instruction Set can be any ASCII character that is recognized by
the Matrix 200 as a command. Simple commands could come from a terminal or
any other controlling device. After the Matrix 200 receives the command, it will
execute it and send an appropriate response to the controlling device.
2. The Advanced Instruction Set consists of more complex instruction strings.
Advanced instructions are used when a complete command cannot be defined
with one character. Each instruction string begins with a command and ends with
an End Of Transmission code (EOT). Advanced commands could come from
any controlling device capable of composing a command and sending it as a
string. The Matrix 200 will execute any legal command string and send a
response string back to the host.
Because of this “open recognition”, commands from the two instruction sets can
be intermixed. Both instruction sets are listed and defined on pages that follow.
_______ RS-232/RS-422 control can also be established from a computer using the
Windows® operating system and Extron’s software. This is covered separately in
Chapter 5.
Host/Matrix Data Format
Data exchange between the Matrix 200 RS-232/RS-422 Controller and the
external control host is based on a proprietary format and protocol. The
communications is byte-oriented. All bytes fall into one of three categories:
Communication control
00 thru 1F hex
Matrix 200 command codes
20 thru 7F hex
Specific data
80 thru FF hex
Bits 0 thru 6 may be binary encoded, or they may represent numbers 00 thru 7F
hex (decimal 0 thru 127).
Binary/hex/decimal Conversion Table
The table below shows how to convert data bytes from one numbering system to
another. In Matrix 200 communications, all data bytes are identified by having
bit 7 = 1, therefore it is not included in the computations.
Bit #s in byte:
7
6
5
4
3
2
1
0
Decimal value =
n/a
64
32
16
8
4
2
1
Dec.
Hex
Add the decimal values above for equivalents.
0
80/00h
n/a
0
0
0
0
0
0
0
1
81/01h
n/a
0
0
0
0
0
0
1
2
82/02h
n/a
0
0
0
0
0
1
0
3
83/03h
n/a
0
0
0
0
0
1
1
4
84/04h
n/a
0
0
0
0
1
0
0
5
85/05h
n/a
0
0
0
0
1
0
1
6
86/06h
n/a
0
0
0
0
1
1
0
7
87/07h
n/a
0
0
0
0
1
1
1
8
88/08h
n/a
0
0
0
1
0
0
0
9
89/09h
n/a
0
0
0
1
0
0
1
10
8A/0Ah
n/a
0
0
0
1
0
1
0
11
8B/0Bh
n/a
0
0
0
1
0
1
1
12
8C/0Ch
n/a
0
0
0
1
1
0
0
13
8D/0Dh
n/a
0
0
0
1
1
0
1
14
8E/0Eh
n/a
0
0
0
1
1
1
0
15
8F/0Fh
n/a
0
0
0
1
1
1
1
16
90/10h
n/a
0
0
1
0
0
0
0
↕↕↕↕↕
32
A0/20h
n/a
0
1
0
0
0
0
0
↕↕↕↕↕
64
C0/40h
n/a
1
0
0
0
0
0
0
↕↕↕↕↕
99
E3/63h
n/a
1
1
0
0
0
1
1
100
E4/64h
n/a
1
1
0
0
1
0
0
↕↕↕↕↕
127
FF/7F
n/a
1
1
1
1
1
1
1
B-2