Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: pedroesteves.biosurfit on November 05, 2009, 07:24:31 AM

Title: Can´t call the subroutine twice
Post by: pedroesteves.biosurfit on November 05, 2009, 07:24:31 AM
I already read your forum,but i still can´t resolve my problem.

I have good knowlege of cnc,but in minimach3 i can´t call the subroutine twice.

I´ll put the program here,i hope somebody give me a help.


N10 G0 Z2
N20 M3 S2000 F200
N30 G1 X0 Y0
N40 Z0
N50 M98 P10 L1
 o10
N60 M99
N70 X-20
N80 M98 P10 L1
 o10
N90 M99
M30

%

o10
G91 Z-0.5 F70
G90 Y-30 F150
G91 Z-0.5 F70
G90 Y0 F150



The machine make the first subprogram,but stop at the end of the it,doesn´t go to the coordenate X-20 to make the 2º subroutine.

Somebody please tell me what i´m doing wrong?


Thanks

Pedro ESteves
Title: Re: Can´t call the subroutine twice
Post by: Graham Waterworth on November 05, 2009, 08:33:48 AM
It should look more like this :-

%
N10 G0 Z2
N20 M3 S2000 F200
N30 G1 X0 Y0
N40 Z0
N50 M98 P10
N70 X-20
N80 M98 P10
M30

O10
G91 Z-0.5 F70
G90 Y-30 F150
G91 Z-0.5 F70
G90 Y0 F150
M99
%
Title: Re: Can´t call the subroutine twice
Post by: pedroesteves.biosurfit on November 05, 2009, 08:57:01 AM
Thank you so much,to respond so quickly.

The program went ok.

Once more,thanks.