Hello Guest it is June 17, 2019, 01:26:24 AM

Author Topic: Macro  (Read 3682 times)

0 Members and 1 Guest are viewing this topic.

Offline N4NV

*
  •  392 392
    • View Profile
Macro
« on: November 29, 2008, 11:05:36 AM »
I need to have the M6 command in MachTurn modified.  I need it to do a G53 G00 Z-0.200, then G4 P3 as part of the tool change.  In the list of Macros i Mach I see M6Start, M6Startnew  and M6End.  Any suggestion on which macro MachTurn uses for the tool change and what the code needs to look like to add my commands?

Thanks.

Vince

Offline Hood

*
  •  25,843 25,843
  • Carnoustie, Scotland
    • View Profile
Re: Macro
« Reply #1 on: November 29, 2008, 11:22:39 AM »
M6Start is the only one used in Turn.

Not the best at VB but think the commands would look like

Code ("G53G0Z-0.2")

Code ("G4P3")




Hood

Offline N4NV

*
  •  392 392
    • View Profile
Re: Macro
« Reply #2 on: November 29, 2008, 12:13:28 PM »
Thanks, I will give that a try.

Vince

Offline N4NV

*
  •  392 392
    • View Profile
Re: Macro
« Reply #3 on: November 29, 2008, 06:27:30 PM »
I typed in:

  Code ("G53 GOO Z-0.200")
  Code ("G4 P3")   
  tool = GetSelectedTool()
  SetCurrentTool( tool )

And received the error: Unkown word where unary operation could be

I guess I will have to have one of these code experts tell me where I went wrong.

Vince

Offline Hood

*
  •  25,843 25,843
  • Carnoustie, Scotland
    • View Profile
Re: Macro
« Reply #4 on: November 29, 2008, 06:35:57 PM »
You have GOO instead of G00 :)
Hood

Offline N4NV

*
  •  392 392
    • View Profile
Re: Macro
« Reply #5 on: November 29, 2008, 08:07:04 PM »
Oops.  I changed it to G00 and it works in simulation.  Now I will have to go load it into the machine.

Thanks

Vince

Offline Hood

*
  •  25,843 25,843
  • Carnoustie, Scotland
    • View Profile
Re: Macro
« Reply #6 on: November 29, 2008, 08:09:54 PM »
Guess how I saw that so quick ;D

Hood

Offline RICH

*
  • *
  •  7,337 7,337
    • View Profile
Re: Macro
« Reply #7 on: November 29, 2008, 11:13:21 PM »
Is it how you used to spell your name a long time ago....H00D?   ;D
RICH
Re: Macro
« Reply #8 on: November 30, 2008, 02:00:40 AM »
;D ;D D
Ed VanEss

Offline Hood

*
  •  25,843 25,843
  • Carnoustie, Scotland
    • View Profile
Re: Macro
« Reply #9 on: November 30, 2008, 05:24:45 AM »