500,695 active members
4,725 visitors online
Register for free
Login
Results 1 to 11 of 11
  1. #1

    New machine GCODE

    Trying to figure out what GCODE I need for my new CNC router versus what I had for my old router. The sample program with the new one has:

    G90 G49
    G40 G80
    G54
    G53 Z0
    G0 X0. Y0.
    M05
    M6 T1
    M3 S24000

    ... before cutting part

    How do I make MasterCAM generate this code?

  2. #2
    Registered
    Join Date
    Dec 2003
    Posts
    262

    Re: New machine GCODE

    Your post processor should generate the code.Mastercam comes with a selection of post processors and you need to identify which of them is suitable for your machine.If none of them are right you ought to ask the Mastercam reseller for their help as they should have taken the requirements of your controller into account when selling you the software.There is a good chance they will be able to adapt one of the bundled post processors to do the job or at least give you clear instructions on how to edit them.

  3. #3

    Re: New machine GCODE

    The post I chose is generating the correct code to cut my parts. I just need to figure out how to get it to insert a few lines of code before the cutting and 1 line after. I'm a novice, but it looks like canned text should do what I need if I could figure out how to make it work. For example, the line G53 Z0. Is there a way I can use canned text to insert that line at the start and end of the program?

  4. #4
    Registered
    Join Date
    Dec 2003
    Posts
    262

    Re: New machine GCODE

    You can open the program using wordpad and just paste in the preamble.That gets old fairly quickly though.The M3 S24000 wouldn't be appropriate for all tools it is a high speed and best kept to very small tool diameters.It would also be a good idea to start the spindle before a rapid move to Z0 and I would have called up the tool at an earlier stage than seven lines into the program.I will admit to being unfamiliar with the very latest version of Mastercam,but it is a fantastic piece of software.

  5. #5
    Registered
    Join Date
    Dec 2009
    Posts
    148

    Re: New machine GCODE

    What version of mastercam are you using and what is the name of the Post Processor you used
    also what Machine Def did you select

  6. #6

    Re: New machine GCODE

    I'm using MasterCAM X. The post is Generic Fanuc 4x Router.pst.

    In the post folder, there is also a Techno Generic4x, Generic Fanuc 3x.

  7. #7

    Re: New machine GCODE

    The machine definition I copied over from my previous cnc. It was also a single router head, but without the linear ATC. I guess I probably need to start with a different machine definition?

  8. #8
    Community Moderator cadcam's Avatar
    Join Date
    Apr 2003
    Posts
    3521

    Re: New machine GCODE

    Are you talking about you are using the First of the X series being Mastercam X from 15 years ago. But to add what you need can be added to the post. but you have not stated what machine it is.
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
    Cadcam
    Software and hardware sales, contract Programming and Consultant , Cad-Cam Instructor .

  9. #9

    Re: New machine GCODE

    Sorry, I'm using version X4. The machine I have is an OMNI 1530 linear ATC router with the Syntec 6MB controller. I ended up switching to the Generic Fanuc 3x post processor and figured out how to hack it to produce the GCODE that I found in the sample program that came pre-loaded on the Syntec controller.

    I'm assuming the sample code is just fine, but while I've got the thread going I'm curious to know what the GCODE should be for the Header, Tool Change, and the end of program. This is what I have:

    Start of program:
    G90 G49 G40 G80 G54
    G53 Z0
    G0 X0.0000 Y0.0000

    Tool change:
    M5
    G53 Z0 (I think this is redundant, but can't hurt)
    M6 T1
    M3 S16000 (I haven't configured speeds yet)

    End of program:
    M5
    G53 Z0
    G0 X0.0000 Y0.0000
    M30

    Does that all seem correct?

  10. #10
    Registered
    Join Date
    Dec 2009
    Posts
    148

    Re: New machine GCODE

    Quote Originally Posted by matthewomeara View Post
    Sorry, I'm using version X4. The machine I have is an OMNI 1530 linear ATC router with the Syntec 6MB controller. I ended up switching to the Generic Fanuc 3x post processor and figured out how to hack it to produce the GCODE that I found in the sample program that came pre-loaded on the Syntec controller.

    I'm assuming the sample code is just fine, but while I've got the thread going I'm curious to know what the GCODE should be for the Header, Tool Change, and the end of program. This is what I have:

    Start of program:
    G90 G49 G40 G80 G54
    G53 Z0
    G0 X0.0000 Y0.0000

    Tool change:
    M5
    G53 Z0 (I think this is redundant, but can't hurt)
    M6 T1
    M3 S16000 (I haven't configured speeds yet)

    End of program:
    M5
    G53 Z0
    G0 X0.0000 Y0.0000
    M30

    Does that all seem correct?
    This looks okay but you need to sure about the "g53 Z0" g53 means to move in machine coordinate so you need to make sure that g53 Z0 retracts the Z axis to the top of it's limits and not the bottom of it's limits

  11. #11
    Member
    Join Date
    Jan 2019
    Posts
    74
    I would recommend updating your Mastercam to the newest version. It's much easier to get help. In order for someone to edit your post, they need to be working on your current version.

Similar Threads

  1. Machine Control Operation, no gcode output
    By Sinij kot in forum SolidCAM for SolidWorks and SolidCAM for Inventor
    Replies: 6
    Last Post: 02-08-2019, 04:27 PM
  2. how to put the gcode in the cnc machine ?
    By moti barski in forum Controller & Computer Solutions
    Replies: 1
    Last Post: 10-23-2010, 01:46 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •