Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Post processor doesn't use G0, G1, G2 or G3


Recommended Posts

Good evening,

 

I am a mechatronic major from the Netherlands interested in CAM programming for our project. I stumbled upon a problem, every post processor that comes with HSMWorks CAM software does not include G0, G1, G2 or G3 in front of a new line. The code needs to be used for milling in Repetier Host on a delta robot.

 

Lets look at this simple code;

 

G2 Y-36.503 R1.83
G1 X42.
G3 Y-32.843 R1.83
G1 X-42.
G2 Y-29.184 R1.83
G1 X42.
G3 Y-25.525 R1.83
G1 X-42.
G2 Y-21.866 R1.83
G1 X42.
G3 Y-18.206 R1.83
G1 X-42.
G2 Y-14.547 R1.83
G1 X42.
G3 Y-10.888 R1.83
G1 X-42.
G2 Y-7.229 R1.83
G1 X42.
G3 Y-3.569 R1.83
G1 X-42.
G2 Y0.09 R1.83
G1 X42.
G3 Y3.749 R1.83
G1 X-42.
G2 Y7.409 R1.83
G1 X42.
G3 Y11.068 R1.83
G1 X-42.
G2 Y14.727 R1.83
G1 X42.
G3 Y18.386 R1.83
G1 X-42.
G2 Y22.046 R1.83
G1 X42.
G3 Y25.705 R1.83
G1 X-42.
G2 Y29.364 R1.83
G1 X42.
G3 Y33.023 R1.83
G1 X-42.
G2 Y36.683 R1.83
G1 X42.
G3 Y40.342 R1.83
G1 X-42.
 
This is used for leveling the top part, operation (FACE).
As you can see G1, 2, and 3 are there and used correctly and repetitive.
As soon as it writes the code for a new operation, (2D CONTOUR), it does not include G0, 1, 2 or 3 at all times.
 
G0 X0. Y42.
G1 Z47. F1000.
Z37.
Z33. F500.
Z20.
X-42. F1000.
Y-42.
X42.
Y42.
X0.
Z47.
 
These operations programmed with HSMWorks CAM software are basic, non-complex operations to test our software Repetier if it can handle this code. Today I found out if I put G1 in front of all lines like this: 
 
G0 X0. Y42.
G1 Z47. F1000.
G1 Z37.
G1 Z33. F500.
G1 Z20.
G1 X-42. F1000.
G1 Y-42.
G1 X42.
G1 Y42.
G1 X0.
G1 Z47.
 

Repetier is able to understand everything that HSMWorks post processes but not if the post processor doesn't include the correct G code in front of every new line. All operations after (FACE) do not include G1, 2, 3 codes so they won't be recognized by Repetier. The operation (FACE) automatically has the correct G-codes put in front of every line.

 

Is there a possibility to get a .cps ( post processor ) that includes these G-codes so Repetier can make sense out of it? I am new to CAM programming and everything to it. This may be a simple unchecking a box somewhere.

All code written above comes from tinyg.cps Generic TinyG. The code processed plus the solidworks(2014-15) model haven't been attached to this post because I am not permitted..

 

I hope to hear from you soon!

 

Jordi van Es

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...