Download Print this page

Advertisement

C
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 0AH.
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:
10's
100's
1's
10's
Hz
Hz
kHz
kHz
0
0
0
5
00
50
Byte 1
Byte 2
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):
Byte 1
Byte 2
Byte 3
00
50
DATA/ARGUMENT BYTES
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 0AH.
MARK-V FT-1000MP Operating Manual
CAT System Computer Contro
ONSTRUCTING AND
100's
1's
10's
100's
kHz
MHz
MHz
MHz
2
4
1
0
42
01
Byte 3
Byte 4
Byte 4
Byte 5
42
01
0AH
OPCODE
S
CAT C
ENDING
OMMANDS
Example #2: Activate a RX Clarifier Offset of +3.5 kHz.
r Clarifier settings are controlled from opcode 09H.
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
00H (for +offset), 81H (TX CLAR on) and then
opcode 09H. Remember that the 1st and 2nd bytes
are in BCD format.
r Completing the command byte sequence, we would
send, in sequence, 50H, 03H, 00H, 81H, 09H, to
effect the Tx Clarifier offset.
Byte 1
Byte 2
50H
03H
DATA/ARGUMENT BYTES
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 3
Byte 4
Byte 5
00H
81H
09H
OPCODE
page 87

Advertisement

COMING SOON

Comments to this Manuals

Symbols: 0
Latest comments: