Saturday, August 3, 2013

K-3 Rotating Macros

With the Elecraft K-3 you have the ability to write macros and load them into the transceiver using the Download and Configuration Utility.  "Macro" is short for "macroinstruction."  It is a set of individual instructions grouped together into one large instruction that can tell a computer (or the K-3) to do several things.  Once you load the macro to the K-3 you can then define a front panel button to execute the macro.

For some time I have been using two macros that I have configured to use the "PF1" and "PF2" buttons on the K-3's front panel.  One of them would automatically set the "A" and "B" VFO's to the same frequency, turn on the SHIFT, and move the "B" VFO up 2 kHz.  That way, if someone says "UP2" you can just hit 1 button and it will all be done in a flash.  I programmed the "PF1" button to shift UP 1 and "PF2" to shift UP 2 kHz.  It worked great.

Recently I became aware of some "special" coding of these macros which allowed them to perform more than just the one single set of instructions.  The "special" coding, in essence, would on the first push of the button execute the first part of the macro.  Then, the remainder of the macro would re-program the button to perform another function on the second push. 

I found many examples of macros in the K3 Configuration Utility Help file (Tab Pages | Command Tester/K3 Macros | Macro Buttons) as well as on KE7X's "Macro Repository" page HERE.  In the above referenced Help item there is the following statement:

A command memory may include commands to assign macros to buttons. This results in one button executing different command macros on successive button presses.
Think of it like a button that on the first push turns ON a lamp and on the next push, turns it OFF.  The Help file then gives references to posts by KU4AF HERE and K1HTV HERE that give details on how to do this.

I took what I saw in the above references and adapted it to my use and for loading into the "PF1" and "PF2" buttons.  The result was two separate "sets" of macros for the "PF1" and "PF2" buttons.  I could also have programmed the M1-M4 memory buttons but I wanted to keep those for accessing the Voice and CW Memories.

What I decided to do was to set up one macro to put the radio into Split and after that was completed, re-program the same button to perform a "Cleanup" on the next button push.  This "Cleanup" takes the radio out of Split mode and puts all the settings back to normal.  The second button would be programmed to put the radio into SSB, CW, DATA A (PSK-31), and RTTY modes on each successive button push.  To do this I had to set up 6 macros in the K-3 Configuration Utility.  Two of the macros are programmed into the "PF1" button  and 4 of them into the "PF2" button.  Those 6 macros perform as follows - PF1 is now the Split ON/OFF button and PF2 is the Change Mode button.  You can jump to the headings of "PF1 - - -"and "PF2 - - -" below in this Post to see each of those.

PF1 - - -
      Once these macros have been loaded, the "PF1" button now performs like this,

Press PF1 - the K-3 goes into Split Mode
Press PF1 again - the K-3 goes back to normal

     I have also changed what the K-3 does when it goes into Split Mode.  Now when I press PF-1 the first time it turns on the SUB receiver, puts the VFO A information into VFO B, goes into Split Mode, moves VFO B up 3 kHz (so this button can be used for both CW and SSB splits - you just have to move the VFO B knob to where you need to be), turns off the RIT and XIT, and LOCKS the VFO A knob so you can't accidentally move it and lose the DX station.  Pressing PF1 again will put everything back to normal.  It is so COOL!  You can move into Split Mode and back out with just a single button push plus you get all the other settings done at the same time with just one button!  AWESOME! 

     The big changes here are that the PF1 button now automatically turns on the SUB Receiver and LOCKS the "A" VFO so you can't accidentally lose the DX station.  A minor changes is that VFO B is now 3 kHz UP instead of just 1 or 2.  That way, if it is a CW station saying UP1, you just have to tune VFO B down 2 kHz.  If it is an SSB station saying UP5, then you just move the "B" VFO up 2 kHz.  That way this Split button works for both CW and SSB.  Heck, it even works for RTTY stations going split.

     Below are the details of the changes to the PF1 button.  First is a description of what is being done and then the Macro Label and actual Macro Commands are shown.  Anyone can simply Copy and Paste these from this Post into their K-3 Configuration Utility so the setup of these features is FAST!

CW Split starting point (UP 3)
This is a split variation contributed by Dave, N1LQ. Dave chose a compromise between the +2 and +5 versions. A quick twist of VFO B puts Dave up or down depending on CW or SSB.
SB1; turns the sub receiver on
SWT13; taps A>B once to copy VFO A frequency to VFO B
SWT13; taps A>B again to copy all other settings to VFO B
FT1; enters Split mode.
UPB6; moves VFO B up 3 kHz
RT0; turns RIT off
XT0; turns XIT off
LK1; locks VFO A to prevent changes to the receiver listening to the DX station in the heat of the pileup
     The following steps re-program the PF1 button to Macro #2
MN110; enters the CONFIG Menu
SWT12; taps the (2) button to choose Macro #2
SWH45; holds the PF1 button
SWT14; taps the Menu button

Macro Label #1 - Split+3
SB1;SWT13;SWT13;FT1;UPB6;RT0;
XT0;LK1;MN110;SWT12;SWH45;SWT14;

Cleanup
This is a "cleanup" macro contributed by Dave, N1LQ
SB0; turns the sub receiver off
FT0; turns split mode off
RT0; turns RIT off
XT0; turns XIT off
LN0; unlinks the VFOs
SQ000; turns squelch off
SWT13; taps A>B to copy VFO A frequency to VFO B
SWT13; taps A>B again to copy all other settings from VFO A to B
LK0; unlocks VFO A
     The following steps re-program the PF1 button to Macro #1
MN110; enters the CONFIG Menu
SWT11; taps the (1) button to choose Macro #1
SWH45; holds the PF1 button
SWT14; taps the Menu button

Macro Label #2 - Cleanup
SB0;FT0;RT0;XT0;LN0;SQ000;SWT13;SWT13;LK0;MN110;SWT11;SWH45;SWT14;


PF2 - - - 
     Next is the change I made to the PF2 button.  Instead of just toggling ON and OFF like the PF1 button (turn ON Split Mode - turn OFF Split Mode), this PF2 button now switches the K-3 between USB, CW, Data-A (PSK-31), and RTTY modes in that order.

Press PF2 - the K-3 goes into USB Mode
Press PF2 again - the K-3 goes into CW Mode
Press PF2 again - the K-3 goes into DATA-A Mode (PSK-31 and other such modes)
Press PF2 again - the K-3 goes into RTTY Mode
Press PF2 again - the K-3 goes into USB Mode
. . . and so on

     This looks like a lot of work but it should make things VERY simple to switch from USB to CW to PSK-31 to RTTY and back.  But, remember - you do NOT need to use these buttons.  If you find that doing it the old way works better for you, then leave this alone. 

     Now that I have programmed my K-3 to do these functions, I'll be checking it out to see if I need to fine tune any of the parameters.  If anything needs to be changes, it's a simple thing to do.

Below is the detail for the four steps for the PF2 button:

Set SSB Parameters
MD2; selects USB mode
MN053; selects MIC SEL menu
DN; DN; moves the MIC SEL parameter down to Front Panel
UP; moves the MIC SEL up to Rear Panel (use this only if you are using the Rear MIC IN jack)
MG024; sets MIC Gain to "24" (insert appropriate numbers for your setup)
CP017; sets Speech Compression to "17" (insert appropriate numbers for your setup)
LK0; unlocks VFO A
BW0270; sets Bandwidth to 2.70 kHz.
     The following steps re-program the PF2 button to Macro #4
MN110; enters the CONFIG Menu
SWT24; taps the (4) button to choose Macro #4
SWH47; holds the PF2 button
SWT14; taps the Menu button

Macro Label #3 - USB-PF2
MD2;MN053;DN;DN;UP;MG024;CP017;LK0;BW0270;MN110;SWT24;SWH47;SWT14;


Set CW Parameters
MD3; selects CWmode
LK0; unlocks VFO A
BW0040; sets Bandwidth to 400 Hz.
KS022; sets Keyer Speed to 22 WPM
     The following steps re-program the PF2 button to Macro #5
MN110; enters the CONFIG Menu
SWT27; taps the (5) button to choose Macro #5
SWH47; holds the PF2 button
SWT14; taps the Menu button

Macro Label #4 - CW-PF2
MD3;LK0;BW0040;KS022;MN110;SWT27;SWH47;SWT14;


Set DATA-A Parameters
MD6; selects DATA mode
DT0; selects Data-A sub-mode
MN053; selects MIC SEL menu
UP;UP; moves the MIC SEL parameter to Line In
BW0400; sets the Bandwidth to 4.0 kHz.
LK1; locks VFO A
     The following steps re-program the PF2 button to Macro #6
MN110; enters the CONFIG Menu
SWT29; taps the (6) button to choose Macro #6
SWH47; holds the PF2 button
SWT14; taps the Menu button

Macro Label #5 - DTA-PF2
MD6;DT0;MN053;UP;UP;BW0400;LK1;MN110;SWT29;SWH47;SWT14;


Set RTTY ParametersMD6; selects DATA mode
DT2; selects FSK D sub-mode
BW0050; sets the Bandwidth to 500 Hz.
LK0; unlocks VFO A
     The following steps re-program the PF2 button to Macro #3
MN110; enters the CONFIG Menu
SWT13; taps the (3) button to choose Macro #3
SWH47; holds the PF2 button
SWT14; taps the Menu button

Macro Label #6 - RTT-PF2
MD6;DT2;BW0050;LK0;MN110;SWT13;SWH47;SWT14;

Below are the 6 Macros that need to be loaded into the K-3 Configuration Utility.  
This can be done by Copy & Paste from this Post.

The  text labeled "Macro Label" goes into that field in the utility and the line underneath that is the actual macro text which goes into that field.

Macro Label #1 - Split+3
SB1;SWT13;SWT13;FT1;UPB6;RT0;XT0;LK1;MN110;SWT12;SWH45;SWT14;

Macro Label #2 - Cleanup
SB0;FT0;RT0;XT0;LN0;SQ000;SWT13;SWT13;LK0;MN110;SWT11;SWH45;SWT14;

Macro Label #3 - USB-PF2
MD2;MN053;DN;DN;UP;MG024;CP017;LK0;BW0270;MN110;SWT24;SWH47;SWT14;

Macro Label #4 - CW-PF2
MD3;LK0;BW0040;KS022;MN110;SWT27;SWH47;SWT14;

Macro Label #5 - DTA-PF2
MD6;DT0;MN053;UP;UP;BW0400;LK1;MN110;SWT29;SWH47;SWT14;

Macro Label #6 - RTT-PF2
MD6;DT2;BW0050;LK0;MN110;SWT13;SWH47;SWT14;
 
After these Macros have been downloaded to the K-3, do the following on the K-3 itself:
On the K-3 go to CONFIG:MACRO
Press "1"
HOLD the PF1 key until "PF1 SET" appears
Tap the "Menu" key

Then go to CONFIG:MACRO
Press "3"
HOLD the PF2 key until "PF2 SET" appears
Tap the "Menu" key

These steps assign the "Split" Macros to "PF1" and the "Mode Change" Macros to "PF2."  If you want to assign these steps to other buttons, you need to change some of the settings (like the SWT or SWH commands that emulate button pushes) in the above coding.

If you have other things you want to put into macros or you want to put some of the above programming into other buttons, you can find a list of all the button commands in the "K-3 Programmers Reference" which is available on the Elecraft web site.  I did not come up with these ideas, I just took what others have done and modified it to fit my particular use.

Friday, August 2, 2013

Logger32 Window for Control Of Alpha 87a

After doing the repair work on the Alpha 87a and hooking up the computer to talk to the amplifier, I remembered that my logging program, Logger32, has the ability to communicate to the Alpha 87a.  So, I enabled that window and was immediately in control of the amp.  As you can see in the photo, the amp is ON, in OPERATE, and HI POWER.  The AlphaMax feature is OFF.  The Fwd bar graph is indicating 1478 watts (according to the LP-100 wattmeter) and no reflected power is shown.

Logger32 Alpha 87a Control Window
One great feature of this window is that you can enable the "Auto Track Frequency" function.  According to Logger32's Help File, this feature:
. . . when turned on causes Logger32 to automatically supply the active radio's active VFO frequency to the amplifier, which uses that information to change bands and select settings for its TUNE and LOAD capacitors from user- or factory-preset values stored in internal 87A memory for each of five band segments on each band covered by the amplifier. Although the 87A is capable of changing bands automatically on its own by sensing the frequency of RF drive power from the transceiver connected to it, quicker band- and segment-changes that put less stress on the internal PIN-diode QSK system of the 87A and eliminate the loss of the first dash or dots on cw (while the amplifier takes itself off-line and retunes in response to sensing the newly selected operating frequency from input RF) are made possible by having Logger32 supply the transceiver's new frequency across the serial interface.
And, it works like a champ. Even with the 87a in STANDBY, when I change the frequency on the K-3, the Alpha tracks that change (courtesy of the "Auto Track Frequency" feature of Logger32) and the amp is immediately ready to transmit at full power. Awesome! It looks like I can click on a spot and hit transmit at full power without even the 1-1/2 second delay for the Alpha to tune to the new operating frequency or without the need to put any RF on the band to initiate tuning. But, the best thing is that it helps reduce the stress on the PIN diode QSK system in the amp.

One other big advantage of this window is that I can now see the status of the amplifier without turning around.  At my station the amp is pretty much behind me and it can "Fault" and go offline so quietly that I do not know when I'm no longer transmitting at full power.  Now I can see the power output and control the Standby/Operate switch right from the computer.  Plus, I can shut the amp OFF and even turn it ON from the Logger32 Control Window.  That's Just Sooo Cool!

Repairing the Alpha 87a - Round Two

I was floating along on a cloud after the successful repair of the Fault 1 problem (see Post below) but 12 days later, when attempting to power on the Alpha 87a, I got a "soft fault" designated as a No. 20 Fault Code.  The manual describes this as "Filament current greater than 3.5 amp. Possible shorted filament."  Bummer!  Did that mean I was going to have to replace one or both of the 3CX800A7's in the amp?  Eimac versions of those are now selling for $1,050 EACH but Alpha has just introduced their own line of tubes and I could get those for $400 each.  Still, that's a BIG expense.

Underneath View of Alpha 87a Tube Compartment
But, to look into the situation further, I did a Google Search for "Alpha 87a Fault 20" and found THIS page on Alpha's "Ask the Ham" web site which gave me hope.  Comments there from Alpha indicated that Fault 20 had not (in over 10 years) meant a bad tube.  It was related to connectors that needed to be cleaned.  Full instructions for doing this were included on the "Ask the Ham" site and included use of a product from Caig Laboratories called "Deoxit" which was available from Radio Shack.  Of course, my local "Shack" did not have the product so a brief 30-mile round trip was required to obtain the product.  This product is a 2-step operation.  One spray can contains a "Contact Cleaner and Rejuvenator" and the second can is a conditioner which enhances contact and seals the surfaces.

Now that I was ready to begin this new repair of the 87a I downloaded the PDF version of the manual from the Alpha web site to make it easier to read (on the computer instead of on paper.)  I then pulled the 75 pound amp off the shelf after disconnecting the cables including the AC.  Once again I needed to remove the "30" screws holding the cover to the chassis as well as four more screws that hold an access cover below the tube compartment.  But, I've been down this road many times before so it's getting to be old hat.

The high voltage crowbar activates when the cover is removed and should eliminate any residual high voltage within the amplifier but I also short the high voltage to ground in the area of the tube plates or the plate RF choke with an insulated screwdriver as an extra precaution as described in the manual.

Large Red Connectors on Control Board Need to be Reseated
This Fault 20 repair required me to remove 7 connectors underneath the tube compartment (see photo at upper left) as well as one on the low voltage power supply board, clean them with the Deoxit product and replace them.  I also needed to "re-seat" two connectors on the top edge of the control board (large red connectors in photo at right.)  In addition to "re-seating" those connectors, I cleaned the male pins with anhydrous alcohol and a Q-Tip.

Taking the photo at the upper left proved very useful to me.  When I cleaned and attempted to re-install one of the 7 connectors in the tube compartment, I was having difficulty getting it to fit on the male pins.  Then I noticed there were TWO male connectors on the board and I did not know which one was the correct one to accept the female connector.  Looking at the photo clearly showed me there was an extra (unconnected) male connector.  Also, and the reason I was having trouble plugging in the connector in the first place, the second connector is installed upside down (in relation to the correct one) and has more pins.  The correct one has the two center pin holes plugged so it cannot be plugged into the wrong connector.  Nice design by Alpha!

As an extra precaution, I put paper towels behind each connector while spraying it to make sure no "overspray" landed on any other components.  Alpha did not mention this but I decided to take this step purely as a precaution.

Once all the connectors were re-installed, it was time to put the "34" screws back into the covers and reconnect all cables (after hoisting the 75-pound amp back onto the shelf.)  I also took this opportunity to connect the Palstar AT-Auto tuner back into the station.  That is another complex piece of equipment that required me to review the manual and make a few changes to the default settings for my particular station.  One of those was to run the Keying Relay Input line for the Alpha 87a through the QRO Keyline circuit of the Palstar tuner.  This will inhibit the keying of the Alpha 87a while the Palstar is tuning.  Just one more piece of protection to keep me from hurting myself (or the Alpha) when (not IF) I make a mistake!
N8LP LP-100 Wattmenter Showing 1496 watts Output
As you can see in the final photograph, the Alpha 87a is again "back in service" and putting out the RF.  The amp has been ON for over 3 hours now and has been tested with full RF output a half dozen times and I have received ZERO Faults.  Yippee!

This entire operation took about 3 hours with about 2 of those spent on the actual dis-assembly/repair/reassembly of the Alpha 87a.  I am REALLY thankful I did not have to purchase new tubes and the repair only cost $15 for the Deoxit plus a trip to Cross Lanes.  I'd say that was more than reasonable!

One final thing I did was to connect the computer to the Alpha 87a and check the actual filament current.  Alpha suggests you check it several times so I made 15 checks of the filament current over a 5-minute period and saw values ranging from 2.70 amps to 3.01 amps.  Since the Fault Limit is 4.0 amps, I think the actual filament current is A-OK and the Fault 20 errors I received were erroneous and due completely to corrosion on one or more of the connectors in the amplifier.  Case closed!