User`s manual

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: 76543210
Decimal value = n/a 64 32 16 8421
Dec. Hex Add the decimal values above for equivalents.
0 80/00h n/a 0000000
1 81/01h n/a 0000001
2 82/02h n/a 0000010
3 83/03h n/a 0000011
4 84/04h n/a 0000100
5 85/05h n/a 0000101
6 86/06h n/a 0000110
7 87/07h n/a 0000111
8 88/08h n/a 0001000
9 89/09h n/a 0001001
10 8A/0Ah n/a 0001010
11 8B/0Bh n/a 0001011
12 8C/0Ch n/a 0001100
13 8D/0Dh n/a 0001101
14 8E/0Eh n/a 0001110
15 8F/0Fh n/a 0001111
16 90/10h n/a 0010000
32 A0/20h n/a 0100000
64 C0/40h n/a 1000000
99 E3/63h n/a 1100011
100 E4/64h n/a 1100100
127 FF/7F n/a 1111111
B-2