Results 1 to 2 of 2

Thread: Fanuc OM programing query

  1. #1
    Registered
    Join Date
    Jul 2008
    Location
    uk
    Posts
    13
    Downloads
    0
    Uploads
    0

    Fanuc OM programing query

    Hi Everyone.

    I am using a fanuc OM control on a bridgeport VMC16. I would like some help with programing repetative Z- moves when calling a subroutine. If I were machining a basic square at present i would put the geometry in program O(b), and call it via a M98 from prog O(a). If i wanted to drop the Z in 1mm increments to a certain level I would write as follows:

    G1 Z-1. F500;
    M98 P(a);
    G1 Z-2. F500;
    m98 and so on until i got to my Z- finish (say 20mm on this occasion.

    My question is can I put a Z-1. ref to copy N (20 times) so i do not have to write the above program 20 times? I have heard that I can maybe use an L to refer to the number of copies but I cannot find the detail anywhere.

    Thanks, and I look forward to any responses.

    Rich.


  2. #2
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1,668
    Downloads
    0
    Uploads
    0
    on 0M repetition is done with the P

    from the manual....

    M98 P51002
    This command specifies “Call the subprogram (number
    1002) five times in succession.”



    one way to achieve this is to move Z- in incremental mode (G91)
    and do the actual machining in absolute (G90)

    you put the geometry and Z- movement in the sub....

    %
    O1111
    G90 G0 X.... Y....
    G91 G1 Z-1. F500
    G90
    (rest of program here)
    M99

    then in the main program

    %
    O1110
    M98P201111 (this calls program 1111 20 times)
    M30

    or something like that
    Last edited by fordav11; 05-10-2012 at 08:40 AM.


Similar Threads

  1. Need Help!- Fanuc OM programing manual
    By ciromedina in forum Manual Machining Tooling
    Replies: 1
    Last Post: 01-06-2011, 02:16 PM
  2. Fanuc 3T programing help
    By Kevin Taylor in forum Fanuc
    Replies: 1
    Last Post: 12-02-2008, 07:10 PM
  3. Help programing fanuc 0-m
    By PRIOR666 in forum Fanuc
    Replies: 2
    Last Post: 05-28-2007, 04:22 PM
  4. Fanuc 0M G10 programing
    By Chipload in forum G-Code Programing
    Replies: 3
    Last Post: 04-10-2007, 10:17 PM
  5. Programing help with fanuc 10T
    By adaptaflex in forum Fanuc
    Replies: 3
    Last Post: 02-16-2007, 09:11 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.