584,850 active members*
4,305 visitors online*
Register for free
Login
IndustryArena Forum > Manufacturing Processes > Milling > HELP NEEDED Converting G Codes To MCodes
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2019
    Posts
    4

    HELP NEEDED Converting G Codes To MCodes

    Hi All

    Can anyone help me?
    My Cam program will only output G Code but my control (Heidenhain 155) will only accept M Code.#
    Is there a way around this i.e. an conversion program.

    many thanks

  2. #2
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by WOBBLER View Post
    Hi All

    Can anyone help me?
    My Cam program will only output G Code but my control (Heidenhain 155) will only accept M Code.#
    Is there a way around this i.e. an conversion program.

    many thanks
    Let me try to explain g-code and m-codes....ok 1st m-codes are for turning on a function like a coolant pump or turning I off or turning on a spindle or there are m codes that turn them both on at the same time ......
    Now g-code ...g code tells the machine where to go to start cutting go - rapid , or g1 feed or even turning on a canned drilling cycle like g83, or g81 this is for fanuc controls for yours this is a sample program I found on the site

    0 BEGIN PGM 12345678 MM
    1 L M09
    2 L M05
    3 TOOL CALL 03 Z S15000
    4 L M06
    5 L M03
    6 L X-51,000 Y+4,748 R0 F9999
    7 L Z-5,000
    8 L Z-13,320 R0 M08
    9 L Z-18,570 R0 F1500
    10 L X-51,181 Y+4,472 R0 F3000
    11 L X-51,341 Y+4,278 R0
    12 L X-51,509 Y+4,115 R0
    13 CR X-51,858 Y+3,875 R+1,774 DR- R0
    14 CR X-52,259 Y+3,736 R+1,448 DR- R0
    15 CR X-52,698 Y+3,728 R+1,315 DR- R0
    16 CR X-53,232 Y+3,925 R+1,450 DR- R0
    17 CR X-53,538 Y+4,157 R+1,859 DR- R0
    18 CR X-54,000 Y+4,748 R+2,454 DR- R0
    2005 CR X-68,438 Y+16,043 R+1,592 DR- R0
    2245 L X-34,194 Y+15,929 R0
    2246 CR X-34,177 Y+15,531 R+1,592 DR- R0
    2247 CR X-34,264 Y+15,087 R+2,005 DR- R0
    2248 L X-34,352 Y+14,851 R0
    2249 L X-34,500 Y+14,557 R0
    2250 L X-42,872 Y+0,055 R0
    2251 L Z-5,000 R0 F9999
    2252 L M09
    2253 L M05
    2254 STOP M30
    2255 END PGM 12345678 MM


    Anyway I hope this helps

Similar Threads

  1. Advice Needed- Considering converting Japanese Toolroom lathe to CNC
    By C&Me in forum Vertical Mill, Lathe Project Log
    Replies: 1
    Last Post: 01-09-2017, 08:57 PM
  2. Mcodes for Pallet Recognition
    By InfamousDunkie in forum Haas Mills
    Replies: 5
    Last Post: 05-19-2009, 12:28 AM
  3. Mini Mill CNC converting info needed.
    By Oldboy in forum Benchtop Machines
    Replies: 4
    Last Post: 12-13-2007, 12:53 AM
  4. MCodes & Slow Down etc
    By matthewd in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 7
    Last Post: 01-15-2007, 04:37 AM
  5. Needed G-Codes For Lost Technology
    By CAMCRASH in forum G-Code Programing
    Replies: 3
    Last Post: 03-12-2006, 04:59 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
  •