Machsupport Forum
Mach Discussion => Brains Development => Topic started 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?
-
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
-
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
-
woffler, what your wanting to do will require a little more than a brain I believe. I have sent you a personal message.
Brett
-
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
-
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
-
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
-
Thanks fellows, I'm busy as a one legged man in a butt kicking contest.
Brett
-
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
-
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
-
:)