Command examples – Elecraft KX3 Programmers Reference User Manual
Page 5
5
Command Examples
Macros
Macros – strings containing one or more control commands – can be used to automate K3/KX3 front panel switch
sequences. Table 2 lists some examples. See Creating and Using Macros (page 6) for complete instructions.
Table 2 Sample Macros. These can be altered or combined as needed (see the Command Reference section).
Label
Description
Command string
SPLIT+2
CW DX split starting point: A>B twice, enter
SPLIT, move VFO B up 2 kHz, RIT/XIT off
SWT13;SWT13;FT1;UPB5;RT0;XT0;
1
EQ MIC1
Boost 100-Hz TX EQ band by 8 dB; others “flat”
TE+00+08+00+00+00+00+00+00;
WEAKSIG
Diversity mode, main/sub preamps on, 200-Hz
bandwidth, no IF shift
DV1;PA1;PA$1;BW0020;IS 9999;
CLEANUP
Turn off split/RIT/XIT; unlink VFOs; open squelch
FT0;RT0;XT0;LN0;SQ000;
WWV 10
30 m, AM mode, VFO A to 10.0 MHz, 3 kHz AF
bandwidth (requires 6 kHz IF crystal filter)
FA00010000000;MD5;FA00010000000;
BW0300;
2
OLDIES
Switch to AM radio station at 1550 kHz; 4 kHz BW,
attn. on, preamp off
FA00001550000;MD5;FA00001550000;
BW0400;IS 9999;RA01;PA0;
LCD BRT
Set the MAIN:LCD BRT menu parameter to 6
MN003;MP005;MN255;
3
MEM32
Load frequency memory #32 into VFOs A and B
MC032;
LOCKA&B
Lock both VFOs
LK1;LK$1;
PWRTEST
Send “BT” at 100 W, 10 W, and 1 W, then restore
power to 100 W (“=” embeds a BT prosign)
PC100;KYW =;PC010;KYW =;
PC001;KYW =;PC100;
TUN 10W
Set power to 10 W and enter TUNE mode
PC010;SWH16;
AMP ON
Turn on an external amplifier and set K3 drive to 65
W (see CONFIG:DIGOUT1, Owner’s Manual)
MN019;MP001;MN255;PC065;
599FAST
Send “5NN” at 40 WPM, “TEST ” at 30 WPM
KS040;KYW5NN ;KS025;KYWTEST ;
MUTE AF
Set main and sub AF GAIN to zero
AG000;AG$000;
MON OFF
Set monitor volume to zero (present mode)
ML000;
SCANNOW
(K3 only)
Stores VFO A & B in per-band quick-memory M4
and starts scan (> 2 second hold starts “live” scan);
VFO B frequency must be > VFO A
SWT15;SWT39;SWT23;SWT39;SWH41;
4
STEPPIR
Send frequency info to a device attached to the
serial port, such as an antenna controller or ATU
IF;
5
1
SWT13 is a switch-emulation command that has the same effect as tapping
A > B
. The KX3 has different SWT codes. FT1
enters split mode. The number 5 in UPB5 is not a value in kHz, but an index into the table of step sizes (in this case 2 kHz); see
the DN command in the command reference for full details. RT0 and XT0 turn off RIT and XIT.
2
The first FA command in this macro may cause a band change. MD (mode) is sent after it, so the mode change will apply to
the new band. The second FA command is only required if auto-offset-on-mode-change is in effect. (In
CONFIG: CW WGHT
,
tapping
5
alternates between
V F O N O R
and
V F O O F S
. In the latter case, the VFO frequency is adjusted when switching
between CW and any other mode.)
3
MN accesses menu entries. MP can then be used (in some cases) to read or set the parameter value. In the LCD BRT macro,
MP005 sets
L C D B R T
to
6
. You can determine a menu entry’s parameter range by manually setting the parameter to the
lowest/highest values, typing “MP;” each time in the command test box at the top of the Command Tester screen.
4
This example uses per-band memory M4 (SWT39), but any of M1-M4 could be used, or quick memories 0-9 (see SWT/SWH
command). If scanning is started with a macro, the last switch emulation command in the macro must be SWH41 (
S C A N
).
5
IF is a GET command (general transceiver info, including VFO A’s frequency and mode). When the K3 encounters a GET
command in a macro, it sends the response to any device attached to the serial port, just as if a computer had requested it.
Multiple GET commands could be placed in a macro if necessary; examples include FA and FB (VFO A and B frequencies).