home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
hamradio
/
kenwood1.zip
/
TS940.DOC
< prev
Wrap
Text File
|
1990-09-10
|
4KB
|
105 lines
Subject: TS940 control program (TS940.ASC)
From: WK2S at WB2COY packet radio BBS in Poughkeepsie, NY
Date: September 10, 1990
TS940.ASC is a BASIC language program for controlling a Kenwood
TS-940S and various other Kenwood transceivers (TS440, TS711, TS811 and
maybe some others.)
For use with the TS-940S, you need to install an IF-10B interface
unit in the 940, and you need an IF-232C level converter between
your radio and your computer.
TS-940S
+----------+ IBM PC
| IF-10B | <---------> IF-232C <-----> serial
+----------+ port
The program is run as any other BASIC program on your PC. Serial
communications port 1 is used by the program; if you use port 2,
change the port number in line 20.
Program functions
-----------------
The program displays a representation of the TS-940 tuning dial
and shows the frequency and mode in the upper left corner. The
status of the RIT and XIT is displayed in the middle of the top
line along with the offset value.
F1 key - sets VFO A (enter the desired frequency in MHz)
F2 key - sets VFO B
F3 key - refreshes the tuning dial display (this is often necessary
when switching between the LIST and tuning dial display.)
F5 key - loads a file of frequencies which you can set into the
current VFO (see F9 LIST function).
F9 key - display a LIST of frequencies from a frequency file.
When the list is displayed, use the Up and Down arrow keys
to position the cursor (reverse lettering) and press Enter
to load the highlighted frequency into the current VFO.
The Esc key is used to return you to the frequency dial
display.
F10 key - saves the current frequency in the LIST of frequencies
that can be selected by the F9 key. When you press F10,
you are prompted for a "Description ===>" that you can fill
in to remind you of why you've saved a particular frequency.
Frequency LIST file
-------------------
You can create a file containing a list of frequencies. The F5 key
allows you to load the file, and the F9 key displays the list
from which you can select a desired frequency.
Each line in the file should begin with the frequency (in MHz) followed
by one (or more) spaces and an optional comment. For example,
10.000 WWV in Colorado
A sample frequency file, FREQ.SWL, is supplied in this package.
Program description
-------------------
The program is somewhat useful "as is"; however, I encourage you to
modify it to suit your needs.
Line 100 - tells BASIC that the subroutine at line 5000 should be
called for each character received from your radio.
Line 5000 - is the beginning of the subroutine that get control for
each character from the TS-940. The TS-940 sends lines of data to
your program. Each line is ended by a semi-colon (;). This subroutine
looks for a semicolon and sets a variable, L, when the semi-colon is
found.
Line 1000 - is the beginning of the programming loop where the
program spends most of its time.
Line 1005 sends the 'AI;' command to the TS-940; this command tells
the radio to send the computer a status line whenever the frequency
or mode of the radio changes.
When the end of a line from the TS-940 is detected (L=1 in line 1100),
the subroutines at 6000 and 9000 are called.
Line 6000 - is the beginning of the subroutine that extracts information
from the data received from the TS-940
Line 9000 - displays the data received from the TS-940 and the
tuning dial.