Selecting Update Data To Return; Read Flags Data; Read Meter Data; Coding Examples - Yaesu FT-990 Operating Manual

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

Advertisement

display, is duplicated by either
VFO
data, or by one
of the memories, unless currently operating on a
retuned memory
(H
TUNE
displ~yed}.
Selecting Update
Data
to
R eturn
The 1st and 4th
parameters
of the .Status Upda le
command allow si;llection of different portions of
the Status data to
be
returned,
as follows ("U"is
the
1st parameter, ,,.CH"is the 4th):
Parameter
Data~
Returned
"
c
omment
U=()
Ali
i ;50S bytes
seGRbM
note
below
1·Byte:
~Memory
Curreot,
or
IM
Numb~r-1
1
.Last-Select~
d
Memory
_
16-BytB' structt:Jre for
U=2
current Operation
IJeither
a
VFO
or
Meml
See
the
Table·
Two
t
6-Byte
onpreviqus
U=3
I
~structures
(32 bytes)
p(\ge
for
VfOs
A,&-B
U='4and
1
6,-B~te
structure
for
CH">O
-
S9h
m~;~morv
numbe!r
GH
Note
thatea.rly
F'r-9.90
fim1ware
revi,si<it)S (prior
to
rev.
1.3}
were only capable of returning
all
1,508
bytes. Early sets can be
upgraded
by
contacting
your
dea ler. Software
written
for e@rly versions is
compatible
with current versions if
the 1st parame·
ter
t>f
the
Update command
is
always 0.
The
4th
Update
parameter
(CH)
is
signiiicant
only when the 1s
t
parameter
is 4.
Raad
Flags
Data
The
Read
Flags corntnand
retrieves
only the
three
Flag
Bytes
(and tw.o
Model ID
bytes).
The
Flag
Bytes
are described on the
preceding
p~ge.
The lD bytes
can
be used
in
a program to
distin-
gu_ish
the
Ff-990
from other
models, wh
ich
ha.ve
different, unique
values
rel1Jrned
in
this
situation.
The~constant
values of 09h
and 90h are
returned
by
the
M"-990,
as
shown
here:
I
Fiag!lite1
I
Fiag
awn I
Flag
Byte
3 !IO.Byte
1 (09h\ltOB)' I
e2t90hll
Read Meter Data
Sendin~
the
Read
Meter command causes
the
compu ter
to
retu
rn
a ·digl
U.zed
1 ne ter
deflection
indication,
between
0
and OFFh (in p ractice,
around
OFOh maximum).
Four
copies o
f
this value
CAT System Computer Control
are
returned, along with
one·
padding byte (QF7h},
as
follows:
I
Meter
Bi'to
I
M!iir
avte
I
M
eter
!lv\lJ
I
Weier
Byte
I
OF7h
During reception, the signal strength deflection
is
ret
1
1
rned,
During
lransmi!>Sion,
the parameter
r-epresented
by the
reading returned
depends
on
the setting of
U
1e
M ETER
switch.
Coding
Examples
Although
Yaesu Musen
Company cannot offer
to
provid!!
complete CAT
control
programs (owing
to the
La.rge
variety of incompatible computers
u.~ed
by
our customers), following
a.re
few
exam-
ples
o
f
critical
CAT i/o functions,
in
Basjc.
Note
that all
variations
of
Basic
may
not support some
of Ute
commands, in which ca,se lllternale
algo-
rithms
may have
to be deVeloped
to
duplicate the
functions of those shown.
SendiiJg a
Commtmd
After "opening"
the computer-'s
serial port for
4800-baud,
8
data
bits and, 2
stop
bits with no
pa.rily,
ll~
S
i/o
devic:e/12,
any CAT command may be
sent.
However,
if you determine that your com-
p4
ter
may
nc-ed·extra time to process datneturned
from the
transceiver, you should
send
the
Pqcing
command
first~
Here
is
an example of Ute
Pacing
command setti ng a 2-rru; delay:
PRINT #2,
CHRS(O
)
:CHR$(0)
:CI!RS(O)
:CHR$(2) ;
CHR$(&HE)
:
Notice
that
the instruction opcode
is
sent
l;tSt,
with the.
first
(MSB)
parameter
sent
just
bef9re it,
and the
LSB
parameter
(or dummies)
sent first.
This
means
tha
t
the
pa rameters are sent in
the
rever~e
order fi'Om
that
in
whidt they appear in the
CAT
Commands table. Also
.
n
ote that
in
this a11d
the following examples,
we
are
senqing zeros as
dummy bytes:
this
is not necessary,
however.
If
you decide to send commands
through a
5-byte
array, the
.values
o.f lhe d ununy parameters
n~d
not
be cle.ared.
Using
the same
example as
on page
31', the
fol·
lowing
co)nmand could
be
used
to
set
the
fre·
qL,Lency
of the display to
14.25000
MHz:
PR!HT
12,
CHR$(&H
OO):
CHI!$(&H50);
C HRt
(&1142):
CH~S
{&ItO!.);
CHR$ (&ItA);
Notice
here
that
thaBCD
values
can
be
sent just
by preceding
the deciJl1a1
digits
wi
th
"&H''
in
this
!!«an1ple. However,
in
an
·
a
'
c tual
pn~g~am
you may
prefer
to
convert
the decimal
frequency
variable
in
-----------------------------------------------------------~~43

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents