Hello Guest it is March 28, 2024, 03:06:15 PM

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

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #10 on: December 12, 2012, 01:56:38 PM »
You can use them as two separate outputs but if I am understanding correctly you are only using r M8 to activate one and you are using VB for the other.
I am kind of struggling to explain what I am trying to get at here and I am not sure which you are using, M7 or M8 but I dont think you are using both? Yes you want to use the two outputs but only one of them is to be called from M8 (or M7) yet you have both the relay options set up for these outputs.
Hood
Re: Help: M6 macro acts weird
« Reply #11 on: December 12, 2012, 02:07:43 PM »
lol - you're right:  my post-processor puts M8 (set to Output2 in Mach, which drives the air clamp) at the beginning of the code and M9 at the end.

The post also calls the M6 script when a tool change occurs.  This script doesn't actually contain an M7 nor M9 command, just ActivateSignal(Output1) and DeActivateSignal(Output1)

But, I guess that DeActivateSignal command is messing with Output2 somehow?

Again, thanks for your help.  I've been banging my head against this for a week!

dh

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #12 on: December 12, 2012, 02:11:20 PM »
It may be as you have that set up in Coolant relay section so Mach is thinking Output 1 is  for coolant.
If you attach your xml I will have a look and see what you have set up and maybe see if that is the problem or if its something else.

Hood
Re: Help: M6 macro acts weird
« Reply #13 on: December 19, 2012, 11:39:38 AM »
Hi Hood,

Attached is the xml I'm using.  I checked the outputs and it looks like I have Output1 = M7 and Output 2 = M8, so I'm still stumped.  Any help would be very much appreciated.

Thanks in advance!

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #14 on: December 19, 2012, 01:19:50 PM »
That seems to be a Post Processor rather than a Mach xml.
Hood
Re: Help: M6 macro acts weird
« Reply #15 on: December 19, 2012, 01:48:08 PM »
Doh - you're right, sorry.  here's the xml...  I'm also including the M6 macro.  There is a "M6Start" and "M6End".  Not sure what "end" does, but I suppose that might be handy to see....
Re: Help: M6 macro acts weird
« Reply #16 on: December 19, 2012, 01:51:15 PM »
I couldn't re-upload the m6 macro - it is posted previously in this thread...

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #17 on: December 19, 2012, 03:02:42 PM »
Ok try this, Config menu then Ports and Pins then Spindle Setup. Take the tick out of Disable Spindle Relays and change M3 to output 3 and M4 to Output 3 then tick the box again to disable the Spindle Relay.
See if that helps.
Hood
Re: Help: M6 macro acts weird
« Reply #18 on: December 19, 2012, 03:25:35 PM »
Nope, same thing.  The clamp lets go after the new tool is picked up - but the re-engages after 1 or 2 seconds.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Help: M6 macro acts weird
« Reply #19 on: December 19, 2012, 03:30:47 PM »
Did you restart Mach after you changed it? Not sure if it would be required but might be worth a go.
Other thing to try is what I suggested earlier,  try changing the M7 option in Spindle Relays to the same as the M8, ie have them both Output 2.

Hood