Time Delay
Archiver
Posts: 46,084
Hi, Iam very new in BS2..
My Question is how can I make a Daley more than 65535
is any equation? Please help me
Edson
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
My Question is how can I make a Daley more than 65535
is any equation? Please help me
Edson
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Comments
Make a Loop that has a delay in it...I'd say 60 Thousand delays of anything
should take up some time [noparse]:)[/noparse]
>>> h40miami@y... 08/06/03 04:10PM >>>
Hi, Iam very new in BS2..
My Question is how can I make a Daley more than 65535
is any equation? Please help me
Edson
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
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/
run it in a loop. Here's a quick subroutine that will work for you.
Pause_1Sec:
FOR timer = 1 TO seconds
PAUSE 1000
NEXT
RETURN
If you declare seconds as a Word variable, you can have delay of up to
18 hours, 12 minutes, 15 seconds.
-- Jon Williams
-- Parallax
Original Message
From: Edson [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=vID2FABkLL3obS1lyKQrZ3w-ehET9-ZBty5orK09rRbwqn4yOyI2L3Drg1WZvtqd7jchf5Wh5eE8kueI]h40miami@y...[/url
Sent: Wednesday, August 06, 2003 4:10 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Time Delay
Hi, Iam very new in BS2..
My Question is how can I make a Daley more than 65535
is any equation? Please help me
Edson
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
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/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
could you give me a Ex like PAUSE 7 Min?
--- Tim Hart <tim.hart@h...> wrote:
> No problem...
>
> Make a Loop that has a delay in it...I'd say 60
> Thousand delays of anything should take up some time
> [noparse]:)[/noparse]
>
> >>> h40miami@y... 08/06/03 04:10PM >>>
> Hi, Iam very new in BS2..
> My Question is how can I make a Daley more than
> 65535
> is any equation? Please help me
>
> Edson
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
>
> 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/
>
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Could you give a code Exemplo for 7 Min?
Thank you
--- Jon Williams <jwilliams@p...> wrote:
> This is fairly simple. Pick a *base* delay (1
> second, for example), then
> run it in a loop. Here's a quick subroutine that
> will work for you.
>
> Pause_1Sec:
> FOR timer = 1 TO seconds
> PAUSE 1000
> NEXT
> RETURN
>
> If you declare seconds as a Word variable, you can
> have delay of up to
> 18 hours, 12 minutes, 15 seconds.
>
> -- Jon Williams
> -- Parallax
>
>
>
Original Message
> From: Edson [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=90ZnHLbPooxc-DibWWujE98aLl3SXjhMSJpJ-jSu0_3Kz2eL5ixB_Y_ayWgpbcDIzu6cBMtQVcIG_Gpn9Q]h40miami@y...[/url
> Sent: Wednesday, August 06, 2003 4:10 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Time Delay
>
>
> Hi, Iam very new in BS2..
> My Question is how can I make a Daley more than
> 65535
> is any equation? Please help me
>
> Edson
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
>
> 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/
>
>
>
>
> This message has been scanned by WebShield. Please
> report SPAM to
> abuse@p....
>
>
>
>
> 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/
>
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
h40miami@y... writes:
> Thank you for your Help.
>
> Could you give a code Exemplo for 7 Min?
>
> Thank you
>
>
> --- Jon Williams <jwilliams@p...> wrote:
> >This is fairly simple. Pick a *base* delay (1
> >second, for example), then
> >run it in a loop. Here's a quick subroutine that
> >will work for you.
> >
> >Pause_1Sec:
> > FOR timer = 1 TO seconds
> > PAUSE 1000
> > NEXT
> > RETURN
> >
> >If you declare seconds as a Word variable, you can
> >have delay of up to
> >18 hours, 12 minutes, 15 seconds.
> >
> >-- Jon Williams
> >-- Parallax
>
I don't remember how to declare variables but.....
seconds var word
seconds = 420 (I think....if this is wrong, other stampers will chime
in....)
Pause_1Sec:
FOR timer = 1 TO seconds
PAUSE 1000
NEXT
RETURN
This will consume a little more than 7 minutes because the "NEXT" and "FOR
timer = 1 TO seconds" do consume a small amount of time.
[noparse][[/noparse]Non-text portions of this message have been removed]
could just nest the loops.
In the main program we have a variable called minutes....set it to 7 for your
example....then run the gosub to Pause_1min.....
Pause_1Min:
FOR timer1=1 to minutes
FOR timer2 = 1 TO 60
PAUSE 1000
NEXT
NEXT
RETURN
So you end up with two loops...one that pauses for one minute that is inside a
loop that will loop 7 times. Or 7 minutes when it's all said and done.
It helps if you try to "run" the program in your head....I "see" a delay chuck
that pauses for 60 seconds and I have an outer loop that loops 7 times.
You could loop for many days if you expanded this....
Let's loop for 10 days.....
TenDayLoop:
For Day_Loop = 1 to 10
For Hour_Loop = 1 to 24
For Minute_Loop = 1 to 60
For Second_Loop = 1 to 60
Pause 1000
Next
Next
Next
Next
RETURN
It's a just a series of loops....one inside of the other.....
Hope that helps ya out....
Tim
>>> h40miami@y... 08/06/03 05:56PM >>>
Thank you for your Help.
Could you give a code Exemplo for 7 Min?
Thank you
--- Jon Williams <jwilliams@p...> wrote:
> This is fairly simple. Pick a *base* delay (1
> second, for example), then
> run it in a loop. Here's a quick subroutine that
> will work for you.
>
> Pause_1Sec:
> FOR timer = 1 TO seconds
> PAUSE 1000
> NEXT
> RETURN
>
> If you declare seconds as a Word variable, you can
> have delay of up to
> 18 hours, 12 minutes, 15 seconds.
>
> -- Jon Williams
> -- Parallax
>
>
>
Original Message
> From: Edson [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=8yMrLz1YHAaCw_dHlMF_0_blL9vM72sBY4TMgDwy0KsIgLzvxwESLA63iaeSsey709_gF4EdcVdKVQ]h40miami@y...[/url
> Sent: Wednesday, August 06, 2003 4:10 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Time Delay
>
>
> Hi, Iam very new in BS2..
> My Question is how can I make a Daley more than
> 65535
> is any equation? Please help me
>
> Edson
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
>
> 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/
>
>
>
>
> This message has been scanned by WebShield. Please
> report SPAM to
> abuse@p....
>
>
>
>
> 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/
>
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
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/
a low power mode. 'SLEEP 2.5' will do one
cycle -- you can use this to get long
delays with low power use.
Note the stamp watchdog wakes it every 2.5
seconds to see if the 'sleep' period has passed
yet -- when it does this it makes all pins
inputs briefly -- which can glitch pins set
to be outputs. Be aware, and use a 10K
pull-up or pull-down as appropriate to
hold your outputs during this glitch.
--- In basicstamps@yahoogroups.com, "Tim Hart" <tim.hart@h...> wrote:
> Jon gave an excellent example....we can expand on that to get
minutes....you could just nest the loops.
>
> In the main program we have a variable called minutes....set it to
7 for your example....then run the gosub to Pause_1min.....
>
> Pause_1Min:
>
> FOR timer1=1 to minutes
>
> FOR timer2 = 1 TO 60
> PAUSE 1000
> NEXT
>
> NEXT
>
> RETURN
>
> So you end up with two loops...one that pauses for one minute that
is inside a loop that will loop 7 times. Or 7 minutes when it's all
said and done.
>
> It helps if you try to "run" the program in your head....I "see" a
delay chuck that pauses for 60 seconds and I have an outer loop that
loops 7 times.
>
> You could loop for many days if you expanded this....
>
> Let's loop for 10 days.....
>
> TenDayLoop:
>
> For Day_Loop = 1 to 10
> For Hour_Loop = 1 to 24
> For Minute_Loop = 1 to 60
> For Second_Loop = 1 to 60
> Pause 1000
> Next
> Next
> Next
> Next
>
> RETURN
>
> It's a just a series of loops....one inside of the other.....
>
> Hope that helps ya out....
>
> Tim
>
>
>
> >>> h40miami@y... 08/06/03 05:56PM >>>
> Thank you for your Help.
>
> Could you give a code Exemplo for 7 Min?
>
> Thank you
>
>
> --- Jon Williams <jwilliams@p...> wrote:
> > This is fairly simple. Pick a *base* delay (1
> > second, for example), then
> > run it in a loop. Here's a quick subroutine that
> > will work for you.
> >
> > Pause_1Sec:
> > FOR timer = 1 TO seconds
> > PAUSE 1000
> > NEXT
> > RETURN
> >
> > If you declare seconds as a Word variable, you can
> > have delay of up to
> > 18 hours, 12 minutes, 15 seconds.
> >
> > -- Jon Williams
> > -- Parallax
> >
> >
> >
Original Message
> > From: Edson [noparse][[/noparse]mailto:h40miami@y...]
> > Sent: Wednesday, August 06, 2003 4:10 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Time Delay
> >
> >
> > Hi, Iam very new in BS2..
> > My Question is how can I make a Daley more than
> > 65535
> > is any equation? Please help me
> >
> > Edson
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> >
> > 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/
> >
> >
> >
> >
> > This message has been scanned by WebShield. Please
> > report SPAM to
> > abuse@p...
> >
> >
> >
> >
> > 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/
> >
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> 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/
Thank youfor your help....
I am New in BS . I still in love what this little
piece can do.....
Than you
Edson
--- Tim Hart <tim.hart@h...> wrote:
> Jon gave an excellent example....we can expand on
> that to get minutes....you could just nest the
> loops.
>
> In the main program we have a variable called
> minutes....set it to 7 for your example....then run
> the gosub to Pause_1min.....
>
> Pause_1Min:
>
> FOR timer1=1 to minutes
>
> FOR timer2 = 1 TO 60
> PAUSE 1000
> NEXT
>
> NEXT
>
> RETURN
>
> So you end up with two loops...one that pauses for
> one minute that is inside a loop that will loop 7
> times. Or 7 minutes when it's all said and done.
>
> It helps if you try to "run" the program in your
> head....I "see" a delay chuck that pauses for 60
> seconds and I have an outer loop that loops 7 times.
>
>
> You could loop for many days if you expanded
> this....
>
> Let's loop for 10 days.....
>
> TenDayLoop:
>
> For Day_Loop = 1 to 10
> For Hour_Loop = 1 to 24
> For Minute_Loop = 1 to 60
> For Second_Loop = 1 to 60
> Pause 1000
> Next
> Next
> Next
> Next
>
> RETURN
>
> It's a just a series of loops....one inside of the
> other.....
>
> Hope that helps ya out....
>
> Tim
>
>
>
> >>> h40miami@y... 08/06/03 05:56PM >>>
> Thank you for your Help.
>
> Could you give a code Exemplo for 7 Min?
>
> Thank you
>
>
> --- Jon Williams <jwilliams@p...> wrote:
> > This is fairly simple. Pick a *base* delay (1
> > second, for example), then
> > run it in a loop. Here's a quick subroutine that
> > will work for you.
> >
> > Pause_1Sec:
> > FOR timer = 1 TO seconds
> > PAUSE 1000
> > NEXT
> > RETURN
> >
> > If you declare seconds as a Word variable, you can
> > have delay of up to
> > 18 hours, 12 minutes, 15 seconds.
> >
> > -- Jon Williams
> > -- Parallax
> >
> >
> >
Original Message
> > From: Edson [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=6dg7tYuJQRj8HPabuwjVJsteHiNw34uLYIC98CNn8sIqkkidXUqF8XU7YtZV8USCdlt_nfefN89BUJeYWg]h40miami@y...[/url
> > Sent: Wednesday, August 06, 2003 4:10 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Time Delay
> >
> >
> > Hi, Iam very new in BS2..
> > My Question is how can I make a Daley more than
> > 65535
> > is any equation? Please help me
> >
> > Edson
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> >
> > 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/
> >
> >
> >
> >
> > This message has been scanned by WebShield. Please
> > report SPAM to
> > abuse@p....
> >
> >
> >
> >
> > 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/
> >
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
>
> 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/
>
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com