[Elecraft] How can I get more Programmable Macros? (feature request?)
Warren Merkel
hullspeed21 at gmail.com
Tue Mar 3 10:40:18 EST 2015
Wayne,
*Q1*: Did you just say that macros can be self-modifying! I haven't
found the Write commands to do that yet. Can you or any other really
smart guys elaborate?
For example, Let's say I'd like to create a toggle with a single macro.
I would like it to do this without having an external application
controlling things. So, internal to the K3, a macro would perform one
or more functions, then before exiting, would rewrite itself to "unset"
what was just done.
Using the sample macro from Table 2 in the Programmers Reference for
"AMP ON" and let's just assign it to say, Macro 1
In pseudo-code, I'd like it to run:
MN019;MP001;MN255;PC065;DB65;DB77;DB80;DB32;DB79;DB78
and then, before the macro finishes, I would like it to rewrite itself to:
MN019;MP000;MN255;PC100;DB65;DB77;DB80;DB32;DB79;DB70;DB70
Each time Macro 1 is executed, it toggles the Logic 1 output and alters
the power output and displays "AMP ON" (or AMP OFF). One button thus
becomes a toggle. Press a button, the external amp is enabled, and the
drive is lowered for it. Press it again, and the amp is disabled and
drive is raised back.
Seems like all I need is a macro command that allows a new macro string
to be written, especially to the one running at the time :)
You could also have one macro change other macros in this way. In
effect, you would only be limited by your imagination and what you can
get stored in 120 character pieces. Hopefully we aren't limited in how
many FLASH Write operations can be performed to the EEPROM. (1 million
or more maybe? )
Since the K3 Utility obviously has the ability to write to the macro
storage locations, would it be possible for macros to eat their own dog
food too?
If the macro language supports basic branching, I guess it could be done
inline to the macro and not have to rewrite itself so...
*Q2*: Is there a way to do IIF (or IF/ELSE) branching in a single
macro? (strictly a wishlist item)
In other words: IF (value) THEN (macro string) ELSE (another macro
string)
All this comes from my experience in making SCOM 7K controllers self
modify it's macros to make wonderful things happen.
Thanks! This is about to become very interesting...
KD4Z - Warren
(K3 / P3 Kits scheduled to arrive this Monday)
On 3/3/2015 8:48 AM, Harry Yingst via Elecraft wrote:
> 10 ? How do I access Macros 8 & 9 ?
> Yes, I'm currently using as you cal them "Reversable" macros(one is using 5 macros, the other uses 2 macros)
>
>
>
> From: Wayne Burdick <n6kr at elecraft.com>
> To: Harry Yingst <hlyingst at yahoo.com>
> Cc: Elecraft Reflector <elecraft at mailman.qth.net>
> Sent: Tuesday, March 3, 2015 12:22 AM
> Subject: Re: [Elecraft] How can I get more Programmable Macros? (feature request?)
>
> Hi Harry,
>
> There are actually 10 programmable function switches. There's also a way to use a single programmable switch to do a reversible operation by creating a self-modifying macro.
>
> Wayne
>
> ----
> http://www.elecraft.com
>
>
>
>> On Mar 2, 2015, at 7:31 PM, Harry Yingst via Elecraft <elecraft at mailman.qth.net> wrote:
>>
>> I would like to have more programmable macro slots:
>> I'm already using 7 macros so I only have 1 left (unless I'm reading it wrong we only have 8 internal macros). Once you start using rotatable macros they get used up pretty quickly
>>
>> I plan to add a Genovation Keypad but more Internal to the K3 macros would be useful for rotatable macros.
>> Is there a way to get more than 8?
>> Thank you
>>
>> ______________________________________________________________
>> Elecraft mailing list
>> Home: http://mailman.qth.net/mailman/listinfo/elecraft
>> Help: http://mailman.qth.net/mmfaq.htm
>> Post: mailto:Elecraft at mailman.qth.net
>>
>> This list hosted by: http://www.qsl.net
>> Please help support this email list: http://www.qsl.net/donate.html
>> Message delivered to n6kr at elecraft.com
>
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:Elecraft at mailman.qth.net
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to hullspeed21 at gmail.com
More information about the Elecraft
mailing list