Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: N4NV 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
-
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
-
Thanks, I will give that a try.
Vince
-
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
-
You have GOO instead of G00 :)
Hood
-
Oops. I changed it to G00 and it works in simulation. Now I will have to go load it into the machine.
Thanks
Vince
-
Guess how I saw that so quick ;D
Hood
-
Is it how you used to spell your name a long time ago....H00D? ;D
RICH
-
H ;D ;D D
-
(http://forums.pcper.com/images/smilies/extras/yllol.gif)