Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:20:18 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  Rotary air clamp
Pages: 1   Go Down
Print
Author Topic: Rotary air clamp  (Read 1418 times)
0 Members and 2 Guests are viewing this topic.
tnsmachines
Active Member

Offline Offline

Posts: 21


View Profile
« on: October 15, 2008, 12:13:19 PM »

Hi all,
I have a rotary axis with an air clamp on it.  What I would like mach to do is turn the air clamp on for me when the axis isn't moving.  I'm assuming I should do this with a brain.  What I can do, is set up one output to enable the air brake switch and to turn the servo motor off simultaneously so it will free run.  Then whenever the motor is commanded to move, disable that output and have an input going back to mach to tell it that it is ready to move and the air switch is off.  Anyone have any ideas?  Thanks.
Logged
fer_mayrl
Global Moderator
*
Offline Offline

Posts: 452


View Profile
« Reply #1 on: October 15, 2008, 05:03:42 PM »

Hello,

I guess there is a few ways to skin this cat.

A brain that monitors the feedrate of that axis you are metioning and deactivates the brake when the feedrate is more than 0 would work, only thing is, i dont think the deactivation is instantaneous, so the axis will try to move before the brake is completely disengaged.

Have you tried adding an M code before and after the axis move, and just write a macro to activate an deactivate an input, that is the easiest way i can think of doing it.
Regards
Fernando
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #2 on: October 16, 2008, 09:28:44 AM »

Yeap M-Codes before and after move.

For Example:

Prior to move, A Axis

'====================
'M900  Release Brake
ActivateSignal(OUTPUT4) 'assumes your Brake is Passive ON even with power off, the signal pulls it off.
'====================

After Move, A Axis
'===================
'M901 ReClamp Brake
DeActivateSignal(OUTPUT4)  'returns to Passive "Sping" load clamp or what ever.
'===================

scott

« Last Edit: October 16, 2008, 09:31:21 AM by poppabear » Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
fer_mayrl
Global Moderator
*
Offline Offline

Posts: 452


View Profile
« Reply #3 on: October 16, 2008, 11:20:58 AM »

you might as well add a:

Code "G4 Px" (where x is a time amount set in mili seconds or seconds depending on the general config settings)
While ismoving()
sleep 100
Wend

after the clap activation and deactivation to allow the brake to fully engage/disengage
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!