Reading Returned Data - Yaesu FT-990 Operating Manual

Yaesu ft-990 transceiver operating manual
Hide thumbs Also See for FT-990:
Table of Contents

Advertisement

CAT System Computer Control
the program to an ASCII string, and then to convert
the string to characters through a lookup table.
If
you send a parameter that is out of range for
the intended function, or not among the specified
legal values for that function, the Ff-990 should do
nothing. Therefore, you may wish to alternate your
sending regular commands or command groups
with Read Flags and short-form Update commands,
allowing the transceiver to let the computer know
if
everything sent so far has been accepted and
acted upon as expected.
Bear in mind that some commands specify "bi-
nary", as opposed to BCD-formatted parameters.
You can send binary parameters without going
through the character /hex string conversion proc-
ess. For example, the CH parameter in the Com-
mand table is binary. You could have the Ff-990
recall memory 50 (decimal) by the following:
PRINT #2, CHR$(0);CHR$(0);CHR$(0);CHR$(49);CHR$(2);
Reading Returned Data
The reading process is easily done through a
loop, storing incoming data into an array, which
can then be processed after the entire array has
been read. To read the meter:
FOR I=1 TO 5
MDATA(I)
=
ASC(INPUT$(1,#2))
NEXT I
Recall from above that the meter data consists of
four identical bytes, followed by a filler byte, so we
really only need to see one byte to get all of the
information this command offers. Nevertheless,
we must read all five bytes (or 1, 16 or 1,508, in the
case of the Update data). After reading all of the
data, we can select the bytes of interest to us from
the array (MDATA, in the above example).
page44-------------------------------------------------------------

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents