Hello Guest it is March 28, 2024, 01:55:13 PM

Author Topic: Help: M6 macro acts weird  (Read 13253 times)

0 Members and 1 Guest are viewing this topic.

Help: M6 macro acts weird
« on: December 12, 2012, 09:40:00 AM »
Hi all,

I am building an auto-tool changer for a Techno machine.  I have my relay box and solenoid array built and they work great.  Here's my snag:

I have added an "M8" to the beginning of my post processor, and "M9" at the end.  This operates a clamp that MUST remain on for the entirety of the routine.  And it does, unless I change tools.  If I run an M6 tool change, the clamp lets go temporarily, then re-engages.  This happens exactly when the drawbar (Output1) is deactivated, and the spindle picks up the new tool.  For some reason, it's deactivating output2 also.  Strangely, it re-activates almost immediately.....

The macro is attached.  Anyone have any ideas?

tx,

Declan

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #1 on: December 12, 2012, 10:16:52 AM »
What outputs have you told Mach the Coolant is?
Hood
Re: Help: M6 macro acts weird
« Reply #2 on: December 12, 2012, 10:18:48 AM »
I'm using m8 for the clamp and m7 for the ATC drawbar.
Re: Help: M6 macro acts weird
« Reply #3 on: December 12, 2012, 10:19:32 AM »
Sorry - mapped m8 to output 2, m7 to output 1.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #4 on: December 12, 2012, 10:25:33 AM »
Ok, try setting M7 to Ouput 2 as well as I dont think you are using a M7 in your macro but you are using OutPut (1) so that may be causing probs.
Hood
Re: Help: M6 macro acts weird
« Reply #5 on: December 12, 2012, 10:27:30 AM »
Hey Hood -  Thanks for your help.  I'm a little confused:  I do want the drawbar (m7, Output 1) to be driven by the macro.  I don't want the clamp (m8, Output2) controlled by the macro. 

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #6 on: December 12, 2012, 10:32:20 AM »
Ok whichever way it is set both flood and mist to the same output and see if it helps. If not attach your xml and I will test it out when I get home later.
Hood
Re: Help: M6 macro acts weird
« Reply #7 on: December 12, 2012, 11:07:58 AM »
Again, just a little confused....   I want the two outputs to operate individually, so I don't understand why they should both be assigned to one output #.  Is that what you meant?

I will definitely send you the xml - Thanks so much for your help!!!

d

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #8 on: December 12, 2012, 01:31:09 PM »
You want the two outputs but you are only calling one via the coolant m codes (M7 or M8 not sure which now ;D )

Hood
Re: Help: M6 macro acts weird
« Reply #9 on: December 12, 2012, 01:46:11 PM »
AAhhhhh..... interesting.  I thought you could use them as two separate outputs.  I was struggling to understand how to activate/de-activate the outputs, and I thought M7 and M8 would be quick, easy options (as long as they're set as Output1, Output2 respectively). 

So is this where you tell me I have to write my own macro to use more than one output?  ;)