Results 1 to 4 of 4

Thread: Basic EDM code!

  1. #1
    Registered
    Join Date
    May 2010
    Location
    UK
    Posts
    8
    Downloads
    0
    Uploads
    0

    Basic EDM code!

    Hi all,

    I am trying to write a simple bit of code, to cut a pair of notches into a tensile test sample. The code is to run on a Joemars EDM machine, only using the X and Y axis.

    This is the code at the moment.

    (PROGRAM START - SET NOTCH CENTER)
    S1D1
    G21 G90 G64
    G92 Y0.0 X0.0
    G00 Y-1.0 X0.0
    G00 Y-1.0 X-0.625
    G00 Y-0.1 X-0.625
    G01 Y2.0 X-0.625 F1
    G01 Y0.65 X-1.975
    G01 Y0.30 X-1.975
    G01 Y0.30 X-1.625
    G01 Y-0.1 X-1.625
    G00 Y-1.0 X-1.625
    G00 Y-1.0 X0.625
    G00 Y-0.1 X0.625
    G01 Y2.0 X0.625
    G01 Y0.65 X1.975
    G01 Y0.30 X1.975
    G01 Y0.30 X1.625
    G01 Y-0.1 X1.625
    G00 Y-1.0 XI.625
    G00 Y-1.0 X0.0
    G00 Y0.0 X0.0
    M30
    %

    I am a total novice with G-code, so sorry if this is rubbish!
    But i really need some reassurance before trial running the program.
    Any feed back will be greatly appreciated.
    Oh, and what file type is required for this machine? is it a .tap file?


  2. #2
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1,667
    Downloads
    0
    Uploads
    0
    because you have EDM machine we can't advise with any special coding. check your manual.
    XY profile looks ok. see pic attached

    what control do you have? Fanuc something? Using G92 assumes Fanuc 6M?

    be careful about typos.... (XI.625)... I should be 1

    file type is not important for CNC G code programs. it's just text.
    you can use any file type supported by your editor software even .txt

    You may need Z- value in there somewhere unless you are EDM'ing air

    You missed O and program number.

    Proper format is like this.....

    %
    O1234 (PROGRAM NAME)
    (your program here)
    M30
    %
    Attached Thumbnails Attached Thumbnails Basic EDM code!-edm.jpg  
    Last edited by fordav11; 03-29-2012 at 06:10 AM.


  3. #3
    Registered
    Join Date
    May 2010
    Location
    UK
    Posts
    8
    Downloads
    0
    Uploads
    0
    Thanks for the reply,

    The machine is a Joemars (EPCIO-2001 Edition).
    I only have the manual on me at the moment, which unfortunately as the machine comes from Taiwan is extremely poorly translated.
    Still, after reading the lot I am no closer to identifying the controller it uses,
    I will take a closer look at the machine tomorrow. Is there just a few controllers it could be or is there hundreds? (I think it may be a Fanuc controller but thats a guess)

    It does say that the G92 command is supported in the manual.
    In all honesty the G92 command is my only real concern about the code.
    I'm not sure if this set's the current position of the wire (cutting head) to X0Y0,
    or if the wire will move to the machine's X0Y0 and then try to begin cutting the notch there?

    Thanks for pointing out that typo, its strange that my simulation software still rendered the tool path correctly.

    I'm a bit confused by why i would need any Z value's in the code?
    As far as i know the height of the upper feed head is set by the operator.

    I have tweaked the format a bit, is this better?

    %
    O0001 (LEGNOTCH)
    (PROGRAM START - SET NOTCH CENTER)
    S1D1
    G92 Y0.0 X0.0
    G21 G90
    G00 Y-1.0 X0.0
    G00 Y-1.0 X-0.625
    G00 Y-0.1 X-0.625
    G01 Y2.0 X-0.625 F1.0
    G01 Y0.65 X-1.975
    G01 Y0.30 X-1.975
    G01 Y0.30 X-1.625
    G01 Y-0.1 X-1.625
    G00 Y-1.0 X-1.625
    G00 Y-1.0 X0.625
    G00 Y-0.1 X0.625
    G01 Y2.0 X0.625
    G01 Y0.65 X1.975
    G01 Y0.30 X1.975
    G01 Y0.30 X1.625
    G01 Y-0.1 X1.625
    G00 Y-1.0 X1.625
    G00 Y-1.0 X0.0
    G00 Y0.0 X0.0
    M30
    %


  4. #4
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1,667
    Downloads
    0
    Uploads
    0
    This forum is mainly lathe/mill with Fanuc controls. You have EDM machine so you are on your own with regards to machine-specifics. That includes the depth positioning, however it is done.

    G92 sets the current position to some other position.
    Normally it is used when the machine is at zero return to set the position of X0 Y0

    To set it move the head/whatever to the X0 Y0 position on your job.

    On your position screen pre-set the X and Y positions to 0

    Now zero return the machine. The position in the readout should be put into the G92 X.... Y..... in the program.

    I googled 'Joemars EDM' and none of their machines have Fanuc controls so you will have to get the position pre-setting (i.e. zero'ing) info from your manual. You may even have some kind of workshift screen so you won't need to use G92 at all. But again you must check your manual because no one here can help you with non-standard controls.... except maybe someone who may come along who runs a Joemars EDM machine. You may have to wait for all of the planets to line up before that person appears
    Last edited by fordav11; 03-30-2012 at 06:25 AM.


Similar Threads

  1. how to understanding basic g code?
    By eloid in forum DIY CNC Router Table Machines
    Replies: 5
    Last Post: 12-19-2011, 10:22 AM
  2. Basic G-code questions
    By rdoty in forum G-Code Programing
    Replies: 20
    Last Post: 10-19-2011, 08:24 PM
  3. Need Help!- PICStep/Linistepper/AVRSTMD Code in C or BASIC
    By joprinz in forum Open Source Controller Boards
    Replies: 3
    Last Post: 03-29-2009, 10:50 AM
  4. Need Help!- Basic CNC code question from a novice
    By piaengr in forum General Waterjet
    Replies: 4
    Last Post: 07-18-2008, 12:55 PM
  5. Basic G-Code Question
    By Tazzer in forum G-Code Programing
    Replies: 11
    Last Post: 05-18-2008, 10:21 PM

Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.