Hello Guest it is April 18, 2024, 07:59:16 PM

Author Topic: M98  (Read 5436 times)

0 Members and 1 Guest are viewing this topic.

M98
« on: January 28, 2009, 05:03:07 PM »
Hi guys,
as this is my first time to program something to use Mach3 mill I decided to do something really easy, this is what I have programed:
O1000
G54 G94 G90 G21
M6 T1
G43 H01 G0 Z50
G0 X0 Y0
M98 P50 2000
G80
G0 Z10 M30

O2000
G81 R2 Z-12
G91 X5
G90 M99

What I notice is that Mach3 do not seem to accept M98, is there any one who could help me? Does Mach3 has a different code to call the sub-program?
Thank you very much for your help.
Mario

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: M98
« Reply #1 on: January 30, 2009, 01:16:40 AM »
Hi, Mario

Try this'

O1000
G54 G94 G90 G21
M6 T1
G43 H01 G0 Z50
G0 X0 Y0
M98 P2000 L50; P2000 calls O2000, L50 repeat's it 50 times
G80
G0 Z10 M30

O2000
G81 R2 Z-12
G91 X5
G90 M99
% ;need this or blank line feed also

Chip
Re: M98
« Reply #2 on: January 31, 2009, 08:37:18 PM »
Hi Chip,
Thanks for your reply, I just tried it and it only does two holes for some reason,  I do not understand because everything seems to be OK.
With my program I could not even make one hole so eventually we will get there  :)
Any other suggestion you could do.
Many thanks.
Mario
Re: M98
« Reply #3 on: January 31, 2009, 08:53:33 PM »
Hi Chip,
I went back to the program on Mach 3 and I only noticed now that it does not accept M99 although it is written on the file which I load.
I already tried several times and ways but I can not manage to load the M99 and  that is probably the reason it only drills two holes.
Any way if you have any idea please let us know.
Thanks once more for your concern.
Mario

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: M98
« Reply #4 on: January 31, 2009, 09:59:22 PM »
Hi, Mario

Your leaving out the % or line feed at the bottom of your G-code.

Chip

Offline Sam

*
  • *
  •  987 987
    • View Profile
    • hillbillyhilton.com
Re: M98
« Reply #5 on: January 31, 2009, 10:37:47 PM »
Also, if your not wanting to drill each hole twice, you need to put the "G80" in the line after the "G81"
The max number of repeats is 998 I think.
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."
Re: M98
« Reply #6 on: February 01, 2009, 09:55:07 PM »
Hi Chip,
thanks a lot it works perfect, I only now worked out what you mean by %,  it is just a something after the last line of the program to accept M99.
I thought I had to put some kind of percentage value for example 20% or whatever and did not realize it was only necessary to put the % signal.
Best regards.
Mario
« Last Edit: February 02, 2009, 09:07:41 AM by Mario25 »
Re: M98
« Reply #7 on: February 01, 2009, 10:32:22 PM »
Hi Sam,
that is well pointed, I tried it and really only drills the hole once and then goes to the next  one ,  so with this two  ways of drilling we can choose which one suit us better.
Thank you both, it was a great help.
Mario
« Last Edit: February 01, 2009, 10:37:29 PM by Mario25 »

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: M98
« Reply #8 on: February 02, 2009, 12:39:24 AM »
Hi, Mario

It's a good habit to get into, Most if not all Cam software allows it.

O1000
G54 G94 G90 G21
M6 T1
G43 H01 G0 Z50
G0 X0 Y0
M98 P2000 L50 ;M98 P50 2000, P2000 calls O2000, L50 repeat's it 50 times
G80
G0 Z10
M30
% ;You can put it hear also

O2000
G81 R2 Z-12
G91 X5
G90 M99
% ;Need this or blank line feed

Glad I could help, Chip