Hello Guest it is March 29, 2024, 04:26:34 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Chip

11
General Mach Discussion / Re: Rolling my own GCode
« on: December 02, 2009, 02:14:58 AM »
Hi, Sixmile

The Header your referring to is sometimes refer-ed to as Pre Amble code, You may also want to have Post Amble code, As your finding out G-CODE is very simple, But very structured little beast.

Mach3 is "Control Software" and one of the biggest issues is not pre setting or dealing with the Control's State when running G-code files.

"I should use "N" instead of "M"." Yes
"I do not need to repeat the G01." No
"I don't need to repeat a coordinate if it is the same as previous" No

I think for the most part answers to the above Q's are correct.

Hear are some suggestions, Your question is a very broad one, Use the Mach3 manual and G Codes & M Code button's to look at some of the comment's below for further explanation's.

( G20 INCH Mode, G21 Set's MM Mode )
( G90 ABS Mode, G91 Set's INC Mode )
( G91.1 IJ's to INC, G90.1 Set's IJ's ABS Mode )
( Mixing or using G90'es and G91's is not allowed on the same line in G-code )
( Also read about modal/non-modal G-code in the g code section )

G20 G90

G91.1

N01 G00 Z0.200 ( "G0" User's your "Velocity" setting in Motor Tuning page.)
N02 G00 X0 Y0
N03 G01 Z-0.240 F10 ( "F1" To set a Cut speed, You pick it. )

N04 X0.000 Y0.000 Z-0.240
N15 X0.550

N16 X0.600 Y0.000 Z-0.239
N23 X0.950

N24 X1.000 Y0.000 Z-0.238
N28 X1.200

N29 X1.250 Y0.000 Z-0.237
N33 X1.450

N34 X1.500 Y0.000 Z-0.236
N37 X1.650

N38 X1.700 Y0.000 Z-0.235

G00 Z0 ( just to return cutter to start pos. )
       X0 Y0
M30
%

Hope this Helps, Chip

12
General Mach Discussion / Re: Whose Fault Is ThIs?
« on: November 29, 2009, 10:33:10 PM »
Hi, Ray

It was just a Quick Thought, Guess I Missed part of your Issue.

Chip

13
General Mach Discussion / Re: Whose Fault Is ThIs?
« on: November 29, 2009, 09:44:52 PM »
Hi, Ray

Try this.

(Filename: Mount Plate Ramped.tng)
(Post processor: My Mach2 Post 090819.scpost)
(Date: 11/29/2009)
G20 (Units: Inches)
G40 G90
F10 ;------------------------------- F10 Set
(Part: Fixture Plate)
()
(Process: Spiral pocket, Lower Support Shaft Bore, T145: 1/2 Carbide, uncoated, 3-Flute, Aluminum Cutter, 1XSlotting [145], 0.52 in Deep)
G00 Z1.5000
(1/2 Carbide, uncoated, 3-Flute, Aluminum Cutter, 1XSlotting [145])
M06 T1 G43 H1 (1/2 Carbide, uncoated, 3-Flute, Aluminum Cutter, 1XSlotting [145])
G00 Z1.5000
M00 ( Pulley: 4 Motor: H )
M966 P8
M03 S6120 (Spindle CW 6120 RPM)
M07 (Mist coolant on)
G00 X27.6000 Y9.1579
G00 Z0.0197
G01 Z0.0000 F4.896 S6120
G03 X27.8421 Y9.3947 Z-0.3750 I0.0000 J0.2421
G03 X27.6000 Y9.1579 I-0.2421 J0.0053 F29.376
G03 X27.7365 Y9.2000 Z-0.5200 I0.0000 J0.2421 F4.896
G03 X27.7365 Y9.2000 I-0.1365 J0.2000 F29.376 ;--------------F29 Set Hear

F10 ; Try this Hear -----------------------------------------F10 Hear may be hear


G00 Z1.5000
()
F10 ; Try this Hear -----------------------------------------F10

(Process: Spiral pocket, Lower Retainer Shaft Bore, T145: 1/2 Carbide, uncoated, 3-Flute, Aluminum Cutter, 1XSlotting [145], 0.52 in Deep)
G00 X27.8000 Y5.4579
G00 Z0.0197
G01 Z0.0000 F4.896
G03 X28.0421 Y5.6947 Z-0.3750 I0.0000 J0.2421
G03 X27.8000 Y5.4579 I-0.2421 J0.0053 F29.376
G03 X27.9365 Y5.5000 Z-0.5200 I0.0000 J0.2421 F4.896
G03 X27.9365 Y5.5000 I-0.1365 J0.2000 F29.376
G00 Z1.5000
()

M30
%

Chip

14
General Mach Discussion / Re: Whose Fault Is ThIs?
« on: November 29, 2009, 09:11:23 PM »
Hi, Ray

Post the G code your having problems with for a start.

Chip

15
Hi, Ray

I guess it's to much to expect a few String's in a G code interpreter or a few more Error warnings, I still have my caveman outfit, Didn't think it would be that big-a deal and don't remember so many issues in earlier versions of Mach3.

Thanks, Chip

16
Hi, ALL

Thanks for the comments, All in All if we don't post questions and concerns and try to help others, Nothing would ever get fixed.

Hears a question I asked Brian on the yahoo site.

Re: M98 or G-code Loader/Interpreter "Question"

Hi, Brian

One more Look, It's missing the leading numbers values in Two of the "O" lines.

G80 G90
M98 P30 L1
G01 Z0
M30
%

O0300 (Doesn't CUT'S THIS "OK" G code Interpreter is seeing the extra trailing
caricter "0")

G01 Z-.25 F20
G01 X1
G01 Y-1
G01 X0
G01 Y0
M99

O030 (CUT'S THIS THIRD "WHY" Should be rejected, G code Interpreter is missing
the leading "0")

G01 Z-.25 F20
G01 X-1
G01 Y1
G01 X0
G01 Y0
M99

O0030 (CUT'S THIS SECOND "WHY" Should be rejected, G code Interpreter is missing
the leading "0"es)

G01 Z-.25 F20
G01 X1
G01 Y1
G01 X0
G01 Y0
M99

O30 (CUT'S THIS FIRST "OK" This is the only one that should be executed)

G01 Z-.25 F20
G01 X-1
G01 Y-1
G01 X0
G01 Y0
M99

%


Are these rejected in the "New Versions" ?

Just Hunting Bug's, Chip


17
Hi, Russ

I Agree, Except the second one has no character in front of it and the others are commonly used to comment out or hide Text, Hears a better file to look at.

If theirs an N## it doesn't run it at All.

G80 G90
M98 P30 L1
G01 Z0
M30
%

;O30 (CUT'S THIS FIFTH "WHY")

G01 Z-.5 F20
G01 X-1
G01 Y-1
G01 X0
G01 Y0
M99

\\ O30 (Doesn't CUT'S THIS "OK" and skips the G code to the m99 also when run)

G01 Z-.25 F20
G01 X-1
G01 Y-1
G01 X0
G01 Y0
M99

% O30 (Doesn't CUT'S THIS "OK" and skips the G code to the m99 also when run)

G01 Z-.25 F20
G01 X-1
G01 Y-1
G01 X0
G01 Y0
M99

'O30 (CUT'S THIS FORTH "WHY")

G01 Z-.25 F20
G01 X1
G01 Y-1
G01 X0
G01 Y0
M99

(O30) (CUT'S THIS THIRD "WHY")

G01 Z-.25 F20
G01 X-1
G01 Y1
G01 X0
G01 Y0
M99

O0030 (CUT'S THIS SECOND "WHY")

G01 Z-.25 F20
G01 X1
G01 Y1
G01 X0
G01 Y0
M99

O30 (CUT'S THIS FIRST "OK" This is the only one that should be executed)

G01 Z-.25 F20
G01 X-1
G01 Y-1
G01 X0
G01 Y0
M99

%

Thanks, Chip

18
Hi, All
I did see in the manual that the "%" or "\\" and "()" should be used for Comment's and such.

In the End Shouldn't some of these be rejected or load of a file be halted as an Error.

10.5.5 Comments and Messages
A line that starts with the percent character, %, is treated as a comment and not interpreted
in any way.
Printable characters and white space inside parentheses is a comment. A left parenthesis
always starts a comment. The comment ends at the first right parenthesis found thereafter.
Once a left parenthesis is placed on a line, a matching right parenthesis must appear before
the end of the line. Comments may not be nested; it is an error if a left parenthesis is found
after the start of a comment and before the end of the comment. Here is an example of a line
containing a comment: G80 M5 (stop motion)
An alternative form of comment is to use the two characters // The remainder of the line
is treated as a comment
Comments do not cause the machining system to do anything.
A comment that is included in parenthesese, contains a message if MSG, appears after the
left parenthesis and before any other printing characters. Variants of MSG, which include
white space and lower case characters are allowed. Note that the comma which is required.
The rest of the characters before the right parenthesis are considered to be a message to the
operator. Messages are displayed on screen in the "Error" intelligent label.

Thanks, Chip

19
Hi, All

Hera's an example of issues, I think Only One of these "O30"es should be Used by the "M98 P30 L1" routine or Recognized by the G-code Loader/Interpreter.
Mach3 Ver. R3.042.032

G80 G90
N10 M98 P30 L1
G01 Z0
M30
%

'O30 (CUT'S THIS FORTH "WHY")
G01 Z-.25 F20
G01 X1
G01 Y-1
G01 X0
G01 Y0
M99

(O30) (CUT'S THIS THIRD "WHY")
G01 Z-.25 F20
G01 X-1
G01 Y1
G01 X0
G01 Y0
M99

O30 (CUT'S THIS SECOND "OK")
G01 Z-.25 F20
G01 X-1
G01 Y-1
G01 X0
G01 Y0
M99

O0030 (CUT'S THIS FIRST "WHY")
G01 Z-.25 F20
G01 X1
G01 Y1
G01 X0
G01 Y0
M99

%

Any Thought's, Chip

20
Hi Bucky

It's rearing the (O2 - cut out clear area for bolt head, x- y+) as if it was another O2 put a ";" as below or delete the line

;(O2 - cut out clear area for bolt head, x- y+)

There are some other issues with the M98 routine and  it needs to be looked at.

Chip