Hello Guest it is May 24, 2019, 11:48:45 PM

Author Topic: Status field messages  (Read 3251 times)

0 Members and 1 Guest are viewing this topic.

Status field messages
« on: February 10, 2008, 12:47:22 PM »
Hello all,
I'm pretty much a newbie to the whole world of CNC. I've started classes at a local college and I'm trying to get the hang of G-code. My homework assignments include "fill-in-the-blanks" type problems. With that in mind I've downloaded Mach 3 and have been trying to use it to check my code.
My question is this: Is there anyplace here where Status messages are defined? I'm trying to check a Circular Pocket Milling Exercise and when I try to run the program it stops on line 5 and the status field(?) says:
" Non integer value for integerLine 5"
With the understanding that the rest of the program may/will have errors, could somebody tell me what I'm doing wrong? Below is the code I'm working with. It's short and should be simple for most of you here...
(btw stock is 4X4X1 with 2 pockets)

O00020 (CIRCULAR POCKET MILLING EXERCISE)
N1 T2 M06 (T2 IS A 5/8 DIA. 2 FLT CENTER CUTTING END MILL)
N2 G90 G54 G00 X1.25 Y-1.25
N3 S1620 M03
N4 G43 H2 Z0.1 M08
N5 G12 Z0.5 I0.25 K0.99 Q0.2 D0.625 F7.2
N6 G12 I2.0 D0.625 F12.5
N7 G00 Z-0.1
N8 X2.75 Y-2.75
N9 G01 Z0. F20.
N10 G91 G13 Z0.25 I0.3 K1.0 Q0.35 D0.625 L3 F10.
N11 G90 G00 Z1.0 M09
N12 G53 G49 Z0. M05
N13 M30

As I said, there may be other errors, but being a student I need to figure them out myself. I just need to understand messages in the status field. If there is any more information that I can provide please let me know...
Under the most rigorously controlled conditions of pressure, temperature and humidity, the organism will do as it damn well pleases.

Offline Hood

*
  •  25,817 25,817
  • Carnoustie, Scotland
    • View Profile
Re: Status field messages
« Reply #1 on: February 10, 2008, 05:53:13 PM »
I am not too hot with code and I dont think I have ever used G12 or G13. However a quick look in the manual seems to say the only Var that Mach uses is the I. If that is the case then it is the reason you are getting the error message as you have too many variables in there.
Hopefully someone that is a bit better at code will come along and help you out.
Hood
Re: Status field messages
« Reply #2 on: February 10, 2008, 07:45:15 PM »
Not to imply that I'm "a bit better", (Hood RULES), ;) just thought I'd chuck this in.
Looks like some systems use arcs to enter and exit the offset amount of "I". I guess that's the extra variables.
Mach doesn't seem to support this method. Like Hood said, Mach just offsets the X axis the amount of "I", then cuts the circular path.
It's really not much different than G2 or G3 if it doesn't include the lead in/out arcs.
It only cuts a pocket if the offset is <= the cutter dia. or if you make multiple passes increasing the offset each time.
Good for counterbores.
I read about this earlier on the zone.
May or may not be true, I haven't tried it yet.
RC

The Z0.5 move in line 5 looks out of place too. ?  ?
« Last Edit: February 10, 2008, 08:36:29 PM by Overloaded »
Re: Status field messages
« Reply #3 on: February 10, 2008, 08:38:55 PM »
Thanks for the prompt replies. I guess I'll have to figure something else out. The exercise comes straight out of  a HAAS workbook provided by the manufacturer. The variables are part of the exercise and while I could change the code to work in Mach I don't really have that option in this case.
I'd really like to thank both of you (Hood and Overloaded) for taking the time to reply. And too. I DID download Mach 3 and Hood you're right. It IS much better than ver2. I guess the next question is where do I get a manual?
Under the most rigorously controlled conditions of pressure, temperature and humidity, the organism will do as it damn well pleases.
Re: Status field messages
« Reply #4 on: February 10, 2008, 08:47:40 PM »
It's all right here.....well, most of it.
Best of luck,
RC

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: Status field messages
« Reply #5 on: February 10, 2008, 09:20:16 PM »
Hi, Idemrys

This code will load in Mach3, Mach doesn't recognize the D's or Q's  in your G-code, Not saying it will do what you have intended.

O00020 (CIRCULAR POCKET MILLING EXERCISE)
N1 T2 M06 (T2 IS A 5/8 DIA. 2 FLT CENTER CUTTING END MILL)
N2 G90 G54 G00 X1.25 Y-1.25
N3 S1620 M03
N4 G43 H2 Z0.1 M08
N5 G12 Z0.5 I0.25 K0.99 F7.2;-----------------Q0.2 D0.625
N6 G12 I2.0 F12.5;---------------------------------D0.625
N7 G00 Z-0.1
N8 X2.75 Y-2.75
N9 G01 Z0. F20.
N10 G91 G13 Z0.25 I0.3 K1.0 F10.;---------Q0.35 D0.625 L3
N11 G90
G00 Z1.0 M09
N12 G53 G49
Z0.
M05
N13 M30; You need a line feed or % after the m30
%

This would be some what better structure, Mach ignores the N123 line numbers, Not a g-code expert hear.

O00020 (CIRCULAR POCKET MILLING EXERCISE)
N1 T2 M06 (T2 IS A 5/8 DIA. 2 FLT CENTER CUTTING END MILL)
N2 G90 G54
N22 G00 X1.25 Y-1.25
N3 S1620 M03
N4 G43 H2 Z0.1 M08
N5 G12 Z0.5 I0.25 K0.99 F7.2;-----------------Q0.2 D0.625
N6 G12 I2.0 F12.5;---------------------------------D0.625
N7 G00 Z-0.1
N8 X2.75 Y-2.75
N9 G01 Z0. F20.
N10 G91
N22   G13 Z0.25 I0.3 K1.0 F10.;---------Q0.35 D0.625 L3
N11 G90
N22  G00 Z1.0 M09
N12 G53 G49 Z0. M05
N13 M30
% ; or line feed neded for mach to see your m30

Post Questions like this in the G-code section, More likely to have better responses & answers there.

Hope this Helps, Chip
« Last Edit: February 10, 2008, 09:25:45 PM by Chip »