Hello Guest it is March 28, 2024, 05:05:42 AM

Author Topic: Need Macro Help.. G77 MachTurn  (Read 8672 times)

0 Members and 1 Guest are viewing this topic.

Offline SScnc

*
  •  77 77
    • View Profile
Need Macro Help.. G77 MachTurn
« on: May 21, 2010, 10:20:31 AM »
Hello, I've been toying with G77 in MachTurn and I came to find that the one supplied with the download of Mach3 does not work properly. I found an edited Macro  Here (Post #6) I replaced the stock Macro with this one and everything seems good. Except for one small issue. The new Macro doesn't do a spring pass, only when written in a program. If you type in a G77 blah blah blah into MDI then it works properly. Seems odd to me but I'd like to see if it can be fixed. Spring passes are great especially when boring.

~Scott

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #1 on: May 21, 2010, 11:37:38 AM »
Are you meaning G76?
The G76 and G32 work fine and provide for spring passes. Have a look at the Threading on The Lathe write up in the Members Docs.
Section 6 covers the wizards which you use for threading. There are a couple of wizards available and again covered in the write up.

I am not of aware of any changes that were done to the wizards.
RICH

Offline SScnc

*
  •  77 77
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #2 on: May 21, 2010, 03:06:01 PM »
No I'm not talking about threading. Just a normal turn cycle. They are not covered in the manual.

the Macro is M1077.m1s

Offline SScnc

*
  •  77 77
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #3 on: May 24, 2010, 01:00:06 PM »
Also I found another BUG with the G77 Macro. When you call a tool say M6 T101 and then run the G77 code, the Macro turns off tool offsets and goes to Tool 0. This is kind of deadly, thankfully it moved away from the part and not into it.

Somebody please help me fix this. I'm not a VB programmer and I don't really have the time to learn the language.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #4 on: May 24, 2010, 11:37:09 PM »
Try not using the T parameter from the Gcode line call it will call the tool#instead.

Try setting as much as you can from the diagnostic screen in the threading section. It looks like a lot of the parameters are the same one used in threading  the taper angle appears to be  the same one used for threading.

Not a fix but maybe a work around.

Just a thought

Offline SScnc

*
  •  77 77
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #5 on: May 25, 2010, 05:11:49 AM »
I never thought of that. Mach is seeing the T0 (zero deg taper) as a tool change for Tool 0. Clever thinking. I will post the results. The only weird thing is that there is no M6 initiating the tool change.

Lets see what happens.

~Scott

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #6 on: May 25, 2010, 10:01:52 AM »
I would just recommend you use the turning wizard. Remember that it's ouput is based on your configuration ( radius / diameter and how reversed arcs is  checked.

RICH

BTW, One of these days a friend will finish the turning wizard modifications he started. They post correctly for diameter and radius  mode and provide
info in the posted gcode. Additional ones have been done done for tapering. Here is a screen shot of them.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #7 on: May 25, 2010, 11:43:57 AM »
The macro COULD be modified to include the Taper parameter from the macro call, you could use (P) as long as the rest of the macro worked ok.

I am not a turn wizard but did stay at a holiday inn last week(;-)

Just a thought,

 
« Last Edit: May 25, 2010, 11:45:55 AM by BR549 »

Offline SScnc

*
  •  77 77
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #8 on: May 29, 2010, 06:40:12 AM »
Rich- There is nothing wrong with the wizards, they work great but when you have to do multiple ops its a real PIA to patch everything together. Also the programs are MUCH shorter when using the canned cycle G77 (Turning/Boring) & G78 (Facing). You can pretty much sum up an entire cycle in one line.

I picked up a book on Visual Basic. The plan is to learn the language and see if I can't fix the Macro myself.

BR549- I omitted the "T" in the code and now everything works with tool changes. Thanks for the idea.

~Scott

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Need Macro Help.. G77 MachTurn
« Reply #9 on: May 29, 2010, 11:04:34 AM »
That is great Scott Glad you got it working . IF you need help with the macro lets us know.  It would be easy to fix BUT also a great learning tool for YOU to try out your VB skills. (;-)

One note though, the VB in the book is a little different than machs VB. But the basics should hold true.

(;-)

« Last Edit: May 29, 2010, 11:09:32 AM by BR549 »