Results 1 to 6 of 6

Thread: Macro for Pnematic Punch help needed!!!

  1. #1
    Registered
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    10
    Downloads
    0
    Uploads
    0

    Macro for Pnematic Punch help needed!!!

    Can anyone help me, I need a macro to automate a pneumatic punch in my cnc program and I haven’t a clue where to start.

    What information is needed to write a macro for this application ? Are there any templates around that I can have a look at to get me pointed in the right direction?

    Any help will be much appreciated.

    Regards

    Colin


  2. #2
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    What kind of a control are you using? It would help if you could post some code how you would program it long hand then we can write some loops for it.

    Stevo


  3. #3
    Registered
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    10
    Downloads
    0
    Uploads
    0
    The controller software i am thinking of using is Mach 3 , but will be programing
    in Mastercam.

    The machine will only have an X axis and the punch will be set fixed at the right position along the y axis and will not need to move. The material will move along the x axis to the correct position, then i would like to activate the punch from the program.

    So basically the program will consist of G0 X axis moves to each hole position, then the macro to activate the punch at each hole position.

    I hope this makes it a bit clearer.

    Thanks again


  4. #4
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    I have never programmed Mach3 so this might not fit exact. Do you know if your control supports variables #1,#2, #100 ect.?

    There is a few different ways that you can go about this. From what you have said the only variable from job to job will be the distance to travel in the X from punch to punch? And I would assume the number of punches in a given job? What is your code for activating the punch? I would look at programming it like this as long as the control can support IF,THEN,WHILE statements.

    O0001(punch macro)
    #100=1.2---------------hole to hole X distance
    #101=50----------------number of holes to punch
    WHILE[#101GT0]DO1
    G0G91X#100-----------INCREMENTAL this can be set up absolute if you want
    M123------------------code to activate the punch
    #101=#101-1
    END1
    M30

    This will keep looping through moving the X1.2" at a time then punching. It will do this 50 times or what ever you set #101 equal to. Then it will end.

    Stevo


  • #5
    Registered
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    10
    Downloads
    0
    Uploads
    0
    Stevo,

    Thanks very much for your help, this has put me down the right
    track.


  • #6
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    Good I am glad to hear it. Let me know if need any help with the program or have questions on anything else.

    Stevo


  • Similar Threads

    1. TOOL CHANGE MACRO NEEDED?
      By offroadxx in forum Fanuc
      Replies: 7
      Last Post: 10-14-2012, 12:16 AM
    2. Punch?? or What??
      By ShayArnett in forum General Metalwork Discussion
      Replies: 8
      Last Post: 03-19-2010, 10:28 PM
    3. Macro for turret toolchanger needed for boxford TCL
      By richmond in forum Mach Wizards, Macros, & Addons
      Replies: 2
      Last Post: 11-18-2008, 08:47 AM
    4. Convert Fanuc Macro to Fadal Macro
      By bfoster59 in forum Fadal
      Replies: 1
      Last Post: 11-09-2007, 12:41 AM

    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.