home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1
/
HamRadio.cdr
/
control
/
catm100
/
cat.do
next >
Wrap
Text File
|
1991-09-07
|
3KB
|
99 lines
10 '==============================
20 'CAT CONTROL FOR YAESU FT-757GX
30 ' BY Kjell W. Strom, SM6CPI
40 '
50 ' November 5,1984
60 '==============================
100 DEFINT F,H:H=16
105 GOSUB 3000
110 OPEN "COM:78N2E"FOR OUTPUT AS #1
120 T$=""
130 FOR I=0 TO 9
140 FOR J=0 TO 9
150 T$=T$+CHR$(I*H+J)
160 NEXT:NEXT
200 CLS
210 PRINT" [1] Split [2] MR/VFO"
220 PRINT" [3] V=>M [4] Dial Lock"
230 PRINT" [5] VFO A/B [6] M=>V"
240 PRINT" [7] 500 Khz Up [8] 500 Khz Down"
250 PRINT" [9] Clarifier [10] Frequency"
260 PRINT"[11] V=>/<=M [12] Quit"
300 INPUT" What is your Choice";C
310 IF C<1 OR C>12 THEN 300
320 M$=CHR$(C)
330 IF C=10 THEN 1000
340 IF C=12 THEN 2000
500 PRINT #1, CHR$(0);CHR$(0);CHR$(0);CHR$(0);M$;
510 GOTO 200
1000 ' FREQUENCY CONTROL
1010 CLS:PRINT
1020 INPUT" Frequency Mhz";A
1030 IF A<.5 OR A>29.99999 THEN 1010
1040 GOSUB 1700
1050 CLS:PRINT A," MHZ"
1060 PRINT" New Frequency [F] Other [O]"
1070 PRINT" Fine Tuning:"
1080 PRINT"[A] 100 <<-<Khz>+>> 100[']"
1090 'PRINT
1100 PRINT"10 5 1 .1 .01 .01 .1 1 5 10"
1110 PRINT"[Z] [X] [C] [V] [B] [N] [M] [,] [.] [/]";
1120 C$=INKEY$:IF C$="" THEN 1120
1130 IF C$="B" OR C$="b" THEN A=A-.00001:GOTO 1300
1140 IF C$="N" OR C$="n" THEN A=A+.00001:GOTO 1300
1150 IF C$="V" OR C$="v" THEN A=A-.0001:GOTO 1300
1160 IF C$="M" OR C$="m" THEN A=A+.0001:GOTO 1300
1170 IF C$="C" OR C$="c" THEN A=A-.001:GOTO 1300
1180 IF C$="," THEN A=A+.001:GOTO 1300
1190 IF C$="X" OR C$="x" THEN A=A-.005:GOTO 1300
1200 IF C$="." THEN A=A+.005:GOTO 1300
1210 IF C$="Z" OR C$="z" THEN A=A-.01:GOTO 1300
1220 IF C$="/" THEN A=A+.01:GOTO 1300
1230 IF C$="A" OR C$="A" THEN A= A-.1:GOTO 1300
1240 IF C$="'" THEN A=A+.1:GOTO 1300
1250 IF C$="F" OR C$="f" THEN 1010
1260 IF C$="O" OR C$="o" THEN 200
1300 IF A <.5 OR A> 29.99999 THEN 1050
1310 GOSUB 1700
1320 GOTO 1050
1700 'HEX/DEC & OUTPUT
1710 A$=MID$(STR$(A),2)
1720 IF A=INT(A) THEN A$=A$+"."
1730 A$="000"+A$+"00000"
1740 FOR I=1 TO LEN(A$)
1750 DP$=MID$(A$,I,1)
1760 IF DP$="." THEN DP=I:GOTO 1800
1770 NEXT
1800 A$=MID$(A$,DP-3,3)+MID$(A$,DP+1,5)
1810 F1=VAL(MID$(A$,1,2))
1820 F2=VAL(MID$(A$,3,2))
1830 F3=VAL(MID$(A$,5,2))
1840 F4=VAL(MID$(A$,7,2))
1850 G1$=MID$(T$,F1+1,1)
1860 G2$=MID$(T$,F2+1,1)
1870 G3$=MID$(T$,F3+1,1)
1880 G4$=MID$(T$,F4+1,1)
1890 PRINT#1,G4$;G3$;G2$;G1$;M$;
1900 RETURN
2000 INPUT" Are you sure";C$
2010 IF C$="Y" OR C$="y" THEN CLOSE1:MENU
2020 GOTO 200
2030 END
3000 'TITLE SCREEN
3010 H1$=" C A T p r o g r a m f o r"
3020 H2$=" Y A E S U F T - 7 5 7 G X"
3030 H3$=" By Kjell W. Strom SM6CPI"
3040 CLS:PRINT:PRINT
3050 FOR I=1 TO LEN(H1$)
3060 PRINT MID$(H1$,I,1);
3070 NEXT
3080 PRINT:PRINT
3090 FOR I= 1 TO LEN(H2$)
3100 PRINT MID$(H2$,I,1);
3110 NEXT
3120 PRINT:PRINT:PRINT
3130 FOR I=1 TO LEN(H3$)
3140 PRINT MID$(H3$,I,1);
3150 NEXT
3160 RETURN