Machsupport Forum

Mach Discussion => Brains Development => Topic started by: woffler on January 05, 2009, 10:56:49 PM

Title: re brains timers
Post by: woffler on January 05, 2009, 10:56:49 PM
Hi everyone ! i am starting into unknown territory here i need to get a warning buzzer to go off for say 1 to 2 seconds and delay the spindle start for same .I looked at the video the first one and could not get the advanced one to run . And i read the pdf file but the timers were not covered anyone that can lend a hand?
Title: Re: re brains timers
Post by: Chaoticone on January 05, 2009, 11:05:45 PM
How do you want the buzzer to be turned on? When you turn the spindle on, you want a buzzer for 2 seconds then spindle starts?

Brett
Title: Re: re brains timers
Post by: woffler on January 06, 2009, 09:13:33 PM
Yes that's exactly what i am looking for : if what i saw in the video is true you can control relays with brains and outputs now as to how the timers work I'm not sure or if what i am asking is possible if it is could you please provide a example with a little explanation on how to do it .I am installing a stack light warning system as this machine is a large mill sets next to a entrance to a building I've scared few folks with this machine starting up and would like to provide a little warning as well as a little safety. Your help would be greatly appreciated thank you
Title: Re: re brains timers
Post by: Chaoticone on January 06, 2009, 10:22:46 PM
woffler, what your wanting to do will require a little more than a brain I believe. I have sent you a personal message.

Brett
Title: Re: re brains timers
Post by: poppabear on January 07, 2009, 07:36:15 PM
Woffler,

   Goto ports/pins >spindle, and set your spin CW delay to 2 seconds, in your M3 macro, have a user led like 2000, turn on, have a Brain watch that LED, when it turns on gothrough a timer with a 2 second ON single shot pulse. That will do your Stack Light Buzzer. In your M5 put the User Off for LED 2000 to reset it for the next tool.

scott
Title: Re: re brains timers
Post by: Overloaded on January 07, 2009, 07:38:55 PM
Hey Woffler/Brett,
This little block seems to do what you are describing.
Just put this in the M3 macro.
Is it SAFE ?


ActivateSignal(Output3)      'OUTPUT of choice for BUZZER
Code "G4 P2"                    'BUZZING for duration of "P" (sec.)
While IsMoving
Wend
DoSpinCW()                      'SPINDLE START
DeActivateSignal(Output3)  'BUZZER OFF


Just tinkering,
RC


Title: Re: re brains timers
Post by: Overloaded on January 07, 2009, 09:21:22 PM
Hey Poppa...good timing !
Just tried your method for the practice and experience.....I like it.
Can you tell me if there are any advantages or disadvantages of using either your method or the one I posted ?

Just wondering if I may have overlooked anything that could come back and bite me in the behind.

Thanks,
RC
Title: Re: re brains timers
Post by: Chaoticone on January 07, 2009, 11:02:57 PM
Thanks fellows, I'm busy as a one legged man in a butt kicking contest.

Brett
Title: Re: re brains timers
Post by: poppabear on January 08, 2009, 05:41:41 PM
The are many, many ways to do things in Mach, and that is what makes it great for all of us. You way is just as good as mine. I only put mine up cause he asked how to do it with a Brian............

Scott
Title: Re: re brains timers
Post by: Overloaded on January 08, 2009, 06:16:05 PM
That's what I assumed. I tried to do it w/a Brain but couldn't figure it out. You make it seem so simple.......like you spit that out without even thinking about it. A gift I guess.
Thanks Pop,
RC
Title: Re: re brains timers
Post by: poppabear on January 09, 2009, 07:24:48 AM
:)