Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Bjorn Toulouse on September 03, 2011, 07:13:25 AM

Title: Repeating Wizard At Different Work Offset?
Post by: Bjorn Toulouse on September 03, 2011, 07:13:25 AM
Is it possible to have a wizard (circular pocket, for example) repeat from one offset to another without starting from scratch?
I would like to create an identical feature in multiple locations on the work piece.

I am using the wizards found in the demo version of R3.043.022.

Thanx,


Rex
Title: Re: Repeating Wizard At Different Work Offset?
Post by: ger21 on September 03, 2011, 07:40:56 AM
After running the wizard, just go to the offset screen and change offsets, then run again. You could also use MDI to change offsets.
Title: Re: Repeating Wizard At Different Work Offset?
Post by: Bjorn Toulouse on September 03, 2011, 08:03:52 AM
Gerry, thanx for the reply.
What I have in mind is for the wizard to go to the next offset without having to stop to input the next offset.

Wizard runs on G54....after finish it reruns on G55...etc.
Is there a line(s) of code that could be added to the end of the wizard to accomplish this?


Thanx,


Rex
Title: Re: Repeating Wizard At Different Work Offset?
Post by: derekbpcnc on September 04, 2011, 04:51:55 AM
Gerry, thanx for the reply.
What I have in mind is for the wizard to go to the next offset without having to stop to input the next offset.

Wizard runs on G54....after finish it reruns on G55...etc.
Is there a line(s) of code that could be added to the end of the wizard to accomplish this?
Thanx,
Rex

Hi Rex

I'd put the the G code in a sub routine.
Set the offset required and then call the subroutine, and repeat as many times as necessary.
%
(all your normal header)
( 1st tool call here)
G54  (sets the 1st work offset)
M98 P1 (runs the wizard part of the code)
G55   (sets the 2nd work offset)
M98 P1 (runs the wizard part of the code)
G56
M98 P1 (runs the wizard part of the code)
etc
M30


o1 ( start of your codeplaced in the subroutine)
G1 X0 Y0 ( gcode here to cut your part)
G0
G2
G3
 .
.
M99  (ruturns to next line from the branch point)
%