post processor for cad cam software

More
05 Jun 2014 08:34 #47700 by pocamil
hello, I am using a new software to generate woodworking stuff tool paths. The only problem is the lack of a post processor for linuxCNC and the vendor said they do not plan to add it.

So, I got a pp for mach3, maybe someone can help and configure it to work with linuxCNC, I know nothing about this kind of stuff, so any help is greatly appreciated.

thanks a lot!
Poca
* -----------------------------------------
* Output for MachII or MachIII with Arcs, mm
* -----------------------------------------
* >>>>>>>  File Format Key <<<<<<<<<<<<<
* Asterisk (*) denotes Comment Lines. 
* Text following * is Ignored by processor.
* Characters contained in < > are variables.
* Variables are followed with properties
* Numeric values in < > are ASCII characters.
* Variables contained in {} are commands.
* -----------------------------------------

* ------  Variables Used in Comments  -----
* Job Name = <JobName>
* Name for Tool Path = <PathName>
* Name for Tool = <ToolName>
* Name of G-Code File = <GCodeFile>
* Name of Material = <MatName>
* Name of Toolset = <Toolset>
* Load FaceUp/FaceDown = <LoadFace>
* Material Width = <MatW>
* Material Length= <MatL>
* Ascii character =<##> where ## is char number
* -----------------------------------------

* ---- Variables Used by Post File --------
Start Variables

* Post File Extension
<FileExtension>
Value = txt

* Units (Inch or mm)
<Units>
Value = mm

* Start Line Numbering
<LineNumStart>
Value = 10

* Line  Numbering Increment
<LineNumInc>
Value = 10

* Maximum Line Number
<LineNumMax>
Value = 999999

* Arc Length Max (if no G2, G3)
<ArcMax>
Value = 0.01

* Line Numbering
<N>
Always = Yes
Character Format = N
Numeric Format = 1.0
Factor = 1

* Material Width (Short) Axis as X
<MatAxis>
Value = Yes

* Z Zero at Bottom of Material
<ZZeroBot>
Value = No

* Y Zero at Bottom Left of Material
<YZeroBL>
Value = Yes

* Tool Number
<T>
Always = Yes
Numeric Format = 1
Factor = 1

* Spindle Speed
<S>
Always = Yes
Character Format = S
Numeric Format = 1.0
Factor = 1

* Feed Rate
<F>
Always = No
Character Format = F
Numeric Format = 1.1
Factor = 1

* Plunge Rate
<P>
Always = No
Character Format = F
Numeric Format = 1.1
Factor = 1

* X Position
<X>
Always = No
Character Format = X
Numeric Format = 1.4
Factor = 1

* Y Position
<Y>
Always = No
Character Format = Y
Numeric Format = 1.4
Factor = 1

* Z Position
<Z>
Always = No
Character Format = Z
Numeric Format = 1.4
Factor = -1

* X Home Position
<XH>
Always = Yes
Character Format = X
Numeric Format = 1.4
Factor = 1

* Y Home Position
<YH>
Always = Yes
Character Format = Y
Numeric Format = 1.4
Factor = 1

* Z Home Position
<ZH>
Always = Yes
Character Format = Z
Numeric Format = 1.4
Factor = -1

* Relative Arc Center I Position
<I>
Always = Yes
Character Format = I
Numeric Format = 1.4
Factor = 1

* Relative Arc Center J Position
<J>
Always = Yes
Character Format = J
Numeric Format = 1.4
Factor = 1

* Arc Radius
<Radius>
Always = Yes
Character Format = R
Numeric Format = 1.4
Factor = 1

* --------- End Variables  ----------------

* --------- Commands Used  ----------------
Start Commands

* Start of File  (Output at start of g-code file)
{Start}
( Mozaik Output for Mach2/3 )
( <GCodeFile> )
( Material Size)
( X= <MatW>, Y= <MatL>)
( Material Name )
( <MatName>)

(Tool used in this file )
(<ToolName>)
<N>G00G20G17G90G40G49G80
<N>G70G91.1
<N>T<T>M06
<N> (Tool=<ToolName>)
<N>G00G43<ZH>H<T>
<N><S>M03
<N>(Toolpath=<PathName>)
<N>G94
<N><XH><YH><F>


* Command for Rapid Move
{RapidMove}
<N>G00<X><Y><Z>

* Command for First Feed Move
{FeedMove1}
<N>G1<X><Y><Z><F>

* Command for Feed Move (Following G0)
{FeedMove}
<N><X><Y><Z>

* Command for Plunge (Following G0)
{PlungeMove}
<N>G1<Z><P>

* Command for First CW (ClockWise) Arc
{CWArc1}
<N>G2<X><Y><I><J><F>

* Commands for CW (ClockWise) Arc
{CWArc}
<N>G2<X><Y><I><J>


* Command for First CCW (CounterClockWise) Arc
{CCWArc1}
<N>G3<X><Y><I><J><F>

* Command for CCW (CounterClockWise) Arc
{CCWArc}
<N>G3<X><Y><I><J>


*End of File ( Commands for end of File )
{End}
<N>G00<ZH>
<N>G00<XH><YH>
<N>M09
<N>M30
%


Please Log in or Create an account to join the conversation.

More
05 Jun 2014 13:34 - 05 Jun 2014 13:41 #47707 by ArcEye
Hi

Before trying to re-invent the wheel, have you checked that none of these work?

wiki.linuxcnc.org/cgi-bin/wiki.pl?Cam_Post

Secondly, what is wrong with the output from this post processor that needs changing?

Have you tried it, what errors do you get?

A lot of mach code will run without any major problems.
On a quick scan, change the txt to ngc in the below and see where it gets you.
* Post File Extension
<FileExtension>
Value = txt

If you do need assistance you will need to attach some code you are converting, the resultant output and the error messages you get loading it.


regards
Last edit: 05 Jun 2014 13:41 by ArcEye.

Please Log in or Create an account to join the conversation.

More
05 Jun 2014 18:19 #47714 by BigJohnT
What CAM software is it?

Just guessing but the first thing I'd try is to turn off the useless line numbers.
* Line Numbering
<N>
Always = No

JT

Please Log in or Create an account to join the conversation.

More
06 Jun 2014 07:33 #47739 by pocamil
ok, this is the code the software created, its called Mozaik
( Mozaik Output for Mach2/3 )
( test mdf 18 S1H.NGC )
( Material Size)
( X= 1820, Y= 2700)
( Material Name )
( mdf 18 W=1,820 L=2,700)
(Tool used in this file )
(5mm Drill)
N10G00G20G17G90G40G49G80
N20G70G91.1
N30T1M06
N40 (Tool=5mm Drill)
N50G00G43Z-20.0000H1
N60S18000M03
N70(Toolpath=HoldDowns)
N80G94
N90X0.0000Y0.0000F3812.0
N100G00X632.1569Y14.3510Z-20.0000
N110G00Z-6.4000
N120G1Z3.0000F1525.0
N130G00Z-20.0000
N140G00Z-20.0000
N150G00X0.0000Y0.0000
N160M09
N170M30
%

and error message says:

Near line 11 of /home…..test.ngc:
Unknown g code used

not sure what to do.

Please Log in or Create an account to join the conversation.

More
06 Jun 2014 13:20 #47742 by ArcEye

and error message says:

Near line 11 of /home…..test.ngc:
Unknown g code used

not sure what to do.


Count down 11 lines, on line above that is G70G91.1

Look in the gcode guide
www.linuxcnc.org/docs/html/gcode/gcode.html
and you find G70 does not exist in linuxcnc.

This is what error messages are for.

Is this the raw output or processed? It still has line numbers.

regards

Please Log in or Create an account to join the conversation.

Moderators: Skullworks
Time to create page: 0.198 seconds
Powered by Kunena Forum