Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 03:30:33 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  FAQs
| | |-+  M98
Pages: 1   Go Down
Print
Author Topic: M98  (Read 1396 times)
0 Members and 1 Guest are viewing this topic.
Mario25
Active Member

Offline Offline

Posts: 9


View Profile
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
Logged
Chip
Global Moderator
*
Offline Offline

Posts: 2,057

Gainesville Florida USA



View Profile
« 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
Logged
Mario25
Active Member

Offline Offline

Posts: 9


View Profile
« 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  Smiley
Any other suggestion you could do.
Many thanks.
Mario
Logged
Mario25
Active Member

Offline Offline

Posts: 9


View Profile
« 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
Logged
Chip
Global Moderator
*
Offline Offline

Posts: 2,057

Gainesville Florida USA



View Profile
« 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


* Chip_013_Jan._31_21.41.jpg (32.31 KB, 959x509 - viewed 111 times.)
* Mario25_M98_code.txt (0.21 KB - downloaded 74 times.)
Logged
Sam
THIS SPACE FOR RENT.
Global Moderator
*
Offline Offline

Posts: 834


View Profile WWW
« 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.
Logged

"I sometimes think we consider the good fortune of the early bird and overlook the bad fortune of the early worm." FDR - 1922

"CONFIDENCE: it's the feeling you experience before you fully understand the situation."
Mario25
Active Member

Offline Offline

Posts: 9


View Profile
« 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 » Logged
Mario25
Active Member

Offline Offline

Posts: 9


View Profile
« 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 » Logged
Chip
Global Moderator
*
Offline Offline

Posts: 2,057

Gainesville Florida USA



View Profile
« 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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!