Bc2000 (for the BCF2000 & BCR2000) group photo

Yahoo Groups archive

Bc2000 (for the BCF2000 & BCR2000)

Index last updated: 2026-04-28 23:16 UTC

Thread

How do you use momentary (updown mode) in a .tx statement?

How do you use momentary (updown mode) in a .tx statement?

2010-05-05 by ajawdokimov

Hi All
 
How do you use momentary (updown mode) in a .tx statement?

i cant seem to seperate the .tx values to correspond to on/off states
of the button, it just chucks out both the on and off state on the on and off (wow that must sound confusing :)

heres an example ;)

$button 41
  .showvalue on
  .mode updown
  .minmax 64 127
  .tx $B0 $0F $7F  (i want this to be the on state)
  .tx $B0 $0F $40  (Want this to be the off state)

hope that clarifies my ramplings ;
at the moment it chucks out both states on button and off

cheers
Anton

Re: [bc2000] How do you use momentary (updown mode) in a .tx statement?

2010-05-05 by djo3yk@yahoo.ca

Hi Anton,

I think what you're looking for is the "ifp" and "ifn" commands in the 
.tx statement.  Check out the "Just a jump to the left" section in 
SecretBC.pdf doc in the files section for more details on this.  Hope 
this helps.

Cheers,
Joey.
Show quoted textHide quoted text
On 5/5/2010 11:16 AM, ajawdokimov wrote:
> Hi All
>
> How do you use momentary (updown mode) in a .tx statement?
>
> i cant seem to seperate the .tx values to correspond to on/off states
> of the button, it just chucks out both the on and off state on the on and off (wow that must sound confusing :)
>
> heres an example ;)
>
> $button 41
>    .showvalue on
>    .mode updown
>    .minmax 64 127
>    .tx $B0 $0F $7F  (i want this to be the on state)
>    .tx $B0 $0F $40  (Want this to be the off state)
>
> hope that clarifies my ramplings ;
> at the moment it chucks out both states on button and off
>
> cheers
> Anton
>
>

Re: How do you use momentary (updown mode) in a .tx statement?

2010-05-05 by ajawdokimov

Thanks so much Joey, that sorted it out nicely ;)
cheers :)

--- In bc2000@yahoogroups.com, djo3yk@... wrote:
Show quoted textHide quoted text
>
> Hi Anton,
> 
> I think what you're looking for is the "ifp" and "ifn" commands in the 
> .tx statement.  Check out the "Just a jump to the left" section in 
> SecretBC.pdf doc in the files section for more details on this.  Hope 
> this helps.
> 
> Cheers,
> Joey.
> 
> On 5/5/2010 11:16 AM, ajawdokimov wrote:
> > Hi All
> >
> > How do you use momentary (updown mode) in a .tx statement?
> >
> > i cant seem to seperate the .tx values to correspond to on/off states
> > of the button, it just chucks out both the on and off state on the on and off (wow that must sound confusing :)
> >
> > heres an example ;)
> >
> > $button 41
> >    .showvalue on
> >    .mode updown
> >    .minmax 64 127
> >    .tx $B0 $0F $7F  (i want this to be the on state)
> >    .tx $B0 $0F $40  (Want this to be the off state)
> >
> > hope that clarifies my ramplings ;
> > at the moment it chucks out both states on button and off
> >
> > cheers
> > Anton
> >
> >
>

Re: How do you use momentary (updown mode) in a .tx statement?

2010-05-05 by markwinvdb

--- In bc2000@yahoogroups.com, "ajawdokimov" <ajawdokimov@...> wrote:
> How do you use momentary (updown mode) in a .tx statement?
> 
> i cant seem to seperate the .tx values to correspond to on/off states
> of the button, it just chucks out both the on and off state on the on and off (wow that must sound confusing :)
> 
> heres an example ;)
> 
> $button 41
>   .showvalue on
>   .mode updown
>   .minmax 64 127
>   .tx $B0 $0F $7F  (i want this to be the on state)
>   .tx $B0 $0F $40  (Want this to be the off state)
> 
> hope that clarifies my ramplings ;
> at the moment it chucks out both states on button and off

You can also use "val":

$button 41
  .showvalue on
  .mode updown
  .minmax 64 127
  .tx $B0 $0F val

This also produces exactly the same output as the ".easypar" version you mentioned earlier, i.e. 127 when you press the button and 64 when you release it.

Hope this helps,
Mark.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.