Command structure – Extron Electronics Matrix 100 Switcher User Manual

Page 48

Advertising
background image

Extron • Matrix 100 • User’s Manual

Appendix A • RS-232 Matrix Programmer’s Guide

Binary/hex/decimal Conversion Table

The table below shows how to convert data bytes from one numbering system
to another. In Matrix 100 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

etc.
32 A0/20h

n/a

0

1

0

0

0

0

0

etc.
64 C0/40h

n/a

1

0

0

0

0

0

0

etc.
99 E3/63h

n/a

1

1

0

0

0

1

1

100 E4/64h

n/a

1

1

0

0

1

0

0

etc.
127 FF/7F

n/a

1

1

1

1

1

1

1

Command Structure

All commands follow the same pattern:

1.

Command Specifier

2.

Data (if any)

3.

End of Transmission Mark

Command Specifier

The command specifier consists of one byte for short commands or two bytes
for long commands. The first byte is the Command Code (CMD) in the range 20
hex thru 7F hex. The second byte of long commands is called the Subcommand
(SCMD) and is treated as data (ranging from 80 hex to FF hex). A list of
supported commands and detailed explanation are given later in this section.

Data

If present, data quantify the commands. Their format is command-specific. Data
is the useful part of the information exchange - i.e., the reason for sending and
receiving commands. Data is in hexadecimal values, and bit 7 is always a "1",
that is, the data bytes include 80h, plus 7 bits of information.

End of Transmission

This is always (80h 80h 04h).

A-2

Advertising