Hello Guest it is March 28, 2024, 10:34:45 AM

Author Topic: Need Help!! With school project  (Read 3962 times)

0 Members and 1 Guest are viewing this topic.

Need Help!! With school project
« on: March 29, 2010, 09:34:36 PM »
Sorry if this doesn't work!!
I'm having a little problem with the M98 & M99 codes. We are doing a pattern of 3 in a row of the letter (I). And if I put a end of program (%)
at the end of the M99 I just sits there and repeats and repeats then I end up canceling it and then I only get one (I). And if I put a L3 on the first M98P0207 I get three patterns at .435 inches apart which they should be .900 inches apart. What am I doing wrong. So here's the code. And I'm using Mach to run this. (trying to run this) and the machine at school is a HAAS M1 mill. Hope the picture work to get a better idea. And I hope this makes sense. Thanks
%
O00207
N10G90
N20G80
N30G40
N40G17
N50G54
N60T1M6
N70G43H1
N80S2500M3
N90G00X-.75Y.25Z.600
N100G1Z0.00F25.0
N110X4.00
N120Y.75
N130X-.75
N140Y1.50
N150X4.00
N160T3M6
N170G43H3
N180S2500M3
N190G00X.375Y.75Z.100
N200Z-.05F25.0
N210M98P0207
N220G90
N230G00X1.275Y.75
N240Z-.05
N250M98P0207
N260G90
N270G00X2.175Y.75
N280Z-.05
N290ZG28
N300M30
%
O0207
N310G91
N320X.450
N330X-.125
N340Y.50
N350X.125
N360X-.450
N370X.125
N380Y-.50
N390Z.100
N400M99

Offline Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: Need Help!! With school project
« Reply #1 on: March 30, 2010, 05:58:55 PM »
Search the forum for G52 command, this allows you to write your sub in absolute and call G52 X? Y? as local datum point. Use G52 X0 Y0 to cancel the shift before you issue the next.

Graham
Without engineers the world stops
Need Help!! With school project
« Reply #2 on: March 31, 2010, 07:41:11 PM »
Thanks Graham
   I will check out the G52 search. At least I have a direction to go and see if I can get more confused than I already am ;D.
Thanks again

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Need Help!! With school project
« Reply #3 on: March 31, 2010, 09:06:46 PM »
FWIW.......

BTW, If the attached pic is wrong blame it on Graham........... ;D
RICH .........the confused dangerous programmer............. ! :D
« Last Edit: March 31, 2010, 09:17:26 PM by RICH »
Re: Need Help!! With school project
« Reply #4 on: April 01, 2010, 07:15:48 PM »
Thanks Rich
       This does help alot. It's all making sense now. I have it all cleared up and it run perfect thanks to you guys .
That sounds just like me too.................The confused dangerous (wannabe) programmer. :D ::)

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Need Help!! With school project
« Reply #5 on: April 01, 2010, 08:29:30 PM »
Glad the info shed some light on it. Sometimes a picture is worth a thousand words.
The blind leading the blind.............. ;)   :D  ;D
RICH