Machsupport Forum

Mach Discussion => Brains Development => Topic started by: WMT on January 26, 2016, 10:06:29 PM

Title: Axis Feed Hold Brains
Post by: WMT on January 26, 2016, 10:06:29 PM
Hi. New to brains. And I need a little help please.
Ive finished setting up my rotary axis. A Axis with a pneumatic clamp on output 9. Activated by a couple of macros I wrote using M57 clamp ON. And M58 clamp OFF.
How can I make sure that a A axis feed command will not drive when the clamp is on.

To simplify. If M57 (output 9) is activated. No movement is allowed on the A axis only till the clamp is released with M58.

I tried a couple of things in the brains. But the air cylinder dosen't release fast enough and drives off with the brake on for a second.

Any help is much appreciated.

Cheers :)
Title: Re: Axis Feed Hold Brains
Post by: BR549 on January 27, 2016, 11:13:42 AM
I do not know of ANY mechanism inside of Mach3 that will aloow you to do that. Many have tried over teh years. 

(;-) TP
Title: Re: Axis Feed Hold Brains
Post by: WMT on January 30, 2016, 03:15:17 AM
thanks BR549. I guess I will have to make sure my brake isn't on when i'm moving A Axis.
Title: Re: Axis Feed Hold Brains
Post by: stirling on February 04, 2016, 07:02:19 AM
I guess I will have to make sure my brake isn't on when i'm moving A Axis.

That's probably what you should be doing anyway, but as a belt and braces you could set the A axis scale to zero when the clamp is on. i.e. add that into your M57 macro and of course the reverse in your M58. That will effectively cause A axis commands to result in no actual motion.

BTW I think you should really be using USER macro numbers. I forget where they start but 57 and 58 are too low I think. Terry will know.
Title: Re: Axis Feed Hold Brains
Post by: BR549 on February 04, 2016, 01:25:33 PM
You want to start at M100 and go UP in numbers. The reason being that teh numbers M00 - M99 are considered internal Mcodes to Mach3 and CAN cause problems to use externally.