simple solution needed
hi guys,
has anyone written a simple program with a BS2 that will sequence a relay
closure every time a switch is pushed? simple code I guess, I.e., "button"
"count", etc. Need 12 relays to close one at a time in sequence each time a
push button is pressed and then go back to relay one again. any help to save
some time is appreciated
thanks
mike m
[noparse][[/noparse]Non-text portions of this message have been removed]
has anyone written a simple program with a BS2 that will sequence a relay
closure every time a switch is pushed? simple code I guess, I.e., "button"
"count", etc. Need 12 relays to close one at a time in sequence each time a
push button is pressed and then go back to relay one again. any help to save
some time is appreciated
thanks
mike m
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
'{$STAMP BS2}
OutNo Var Byte
loop:
for outno = 1 to 12
inputwait:
if in1 = 0 then inputwait
pause 1
PULSOUT OutNo,65100 'Turn on output for a while
next
GOTO Loop
Leroy
mocenter wrote:
>
> hi guys,
> has anyone written a simple program with a BS2 that will sequence a relay
closure every time a switch is pushed? simple code I guess, I.e., "button"
"count", etc. Need 12 relays to close one at a time in sequence each time a
push button is pressed and then go back to relay one again. any help to save
some time is appreciated
> thanks
> mike m
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
mike m
Original Message
From: Leroy Hall <leroy@f...>
To: <basicstamps@yahoogroups.com>; <mocenter@e...>
Sent: Saturday, April 13, 2002 2:07 PM
Subject: Re: [noparse][[/noparse]basicstamps] simple solution needed
> Would this work for you:
>
> '{$STAMP BS2}
> OutNo Var Byte
>
> loop:
> for outno = 1 to 12
>
> inputwait:
> if in1 = 0 then inputwait
>
> pause 1
>
> PULSOUT OutNo,65100 'Turn on output for a while
>
> next
>
>
> GOTO Loop
>
> Leroy
>
> mocenter wrote:
> >
> > hi guys,
> > has anyone written a simple program with a BS2 that will sequence a
relay closure every time a switch is pushed? simple code I guess, I.e.,
"button" "count", etc. Need 12 relays to close one at a time in sequence
each time a push button is pressed and then go back to relay one again. any
help to save some time is appreciated
> > thanks
> > mike m
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>