![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| |||
| |||
| Can't help you with a brian - never had need of one - how about a simple mod to the m5 macro? don't know your system but assuming your brake is applied simply by a mach output pin then something along the lines of: Code: 'M5 macro doSpinStop() 'stop spindle activateSignal(OUTPUT?) 'apply brake on output number ? (you choose) while isMoving() sleep 10 wend sleep 2000 'apply brake for 2 seconds deactiveSignal(OUTPUT?) 'release brake |
|
#4
| |||
| |||
| I had to change the signal wording for my output, but it works. The only problem is that it fires when mach estops. So it's kind of going off a lot when I'm messing around. Maybe there is a specific signal that can be used instead of the m5? |
|
#7
| |||
| |||
| If I undertsnad you correctly the problem is that the brake is being applied even when the spindle wasn't actually on at certain times. The code below (untested) might give you an idea. It only fires the brake if the spindle was actually on. There may be better ways of doing this. Code: 'M5 macro
Const SpindleOnLED = 11 '(CW Or CCW)
Dim spindleOn As Boolean
spindleOn = getOEMLED(SpindleOnLED)
doSpinStop() 'stop spindle
'if spindle on then apply brake
If spindleOn Then
SetMasterOutput(12, 1) 'brake on
While isMoving()
sleep 10
Wend
sleep 2000 'apply brake for 2 seconds
SetMasterOutput(12, 0) 'brake off
End If Last edited by stirling; 02-01-2011 at 03:39 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Brain dead | Gpl625 | General CNC (Mill and Lathe) Control Software (NC) | 0 | 10-03-2010 02:12 PM |
| fire clay/fire rock | banctecbobn | Casting Metals | 10 | 12-12-2009 04:14 PM |
| Newbie- 1.6V-3.0V random signal voltage parallel signal from output – Any advice? | cjchands | Mach Software (ArtSoft software) | 0 | 11-12-2009 04:36 AM |
| Smoke and fire...yes FIRE! | fatal-exception | Gecko Drives | 13 | 01-25-2008 01:58 PM |
| Brain Tease | DSL PWR | CNCzone Club House | 7 | 08-15-2007 07:38 PM |