
Page 87
O
PERATING
M
ANUAL
CAT System Computer Control
C
ONSTRUCTING
AND
S
ENDING
CAT C
OMMANDS
Example #1
: Set Main VFO-A to 14.25000 MHz;
r
First determine the opcode for the desired instruc-
tion by referring to the
CAT
Commands Table. A
good idea would be to store these opcodes within
the program, so they can be looked up when the
user requests the corresponding command.
r
Here the instruction is “Set Main VFO Frequency,”
so the opcode (last byte of the block) is
0A
H.
Note
- “H” s following each byte value indicate hexa-
decimal (base 16) values.
r
Build the four argument byte values from the de-
sired frequency by breaking it into 2-digit blocks
(BCD “packed decimal” format). Note that a lead-
ing zero is always required in the hundreds-of-MHz
place (and another in the tens-of-MHz if below 10
MHz).
r
Breaking 14.250.00 MHz into its BCD component,
we arrive at:
r
Inserting the 4-byte BCD-coded frequency (00, 50,
42, 01), the resulting 5-byte block should now look
like this (again, in hex format):
r
Send these five bytes to the transceiver, in the or-
der shown in the table above - from left-to-right:
00
50
42
01
0A
H.
Example #2
: Activate a RX Clarifier Offset of +3.5 kHz.
r
Clarifier settings are controlled from opcode
09
H.
The first four parameter bytes determine the type
of offset, direction, and frequency displacement.
r
According to the example, the first byte would be
50
(500 Hz), the second
03
(3000Hz), followed by
00
H (for +offset),
81
H (TX CLAR on) and then
opcode
09
H. Remember that the 1st and 2nd bytes
are in BCD format.
r
Completing the command byte sequence, we would
send, in sequence,
50
H,
03
H,
00
H,
81
H,
09
H, to
effect the Tx Clarifier offset.
You should be getting a feel for the
CAT
command
structuring sequence, let's move to the next step; read-
ing transceiver operational data.
Byte 1
00
Byte 2
50
Byte 3
42
Byte 4
01
Byte 5
0A
H
DATA/ARGUMENT BYTES
OPCODE
Byte 1
50
H
Byte 2
03
H
Byte 3
00
H
Byte 4
81
H
Byte 5
09
H
DATA/ARGUMENT BYTES
OPCODE
10’s
Hz
0
100’s
Hz
0
1’s
kHz
0
10’s
kHz
5
100’s
kHz
2
1’s
MHz
4
10’s
MHz
1
100’s
MHz
0
50
Byte 2
42
Byte 3
01
Byte 4
00
Byte 1
Содержание MARK-V FT-100MP
Страница 119: ......