Hello Guest it is April 23, 2024, 02:38:59 AM

Author Topic: Can´t call the subroutine twice  (Read 2566 times)

0 Members and 1 Guest are viewing this topic.

Can´t call the subroutine twice
« 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

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Can´t call the subroutine twice
« Reply #1 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
%
Without engineers the world stops
Re: Can´t call the subroutine twice
« Reply #2 on: November 05, 2009, 08:57:01 AM »
Thank you so much,to respond so quickly.

The program went ok.

Once more,thanks.