Results 1 to 2 of 2

Thread: Need some direction creating variable prog.

  1. #1
    Registered
    Join Date
    Jul 2007
    Location
    US of A
    Posts
    57
    Downloads
    0
    Uploads
    0

    Need some direction creating variable prog.

    We have a sl 25 mf-t6 I think, Fanuc control, I want to try some conditional programming, IFs and GOTOs and such I have the prog and op manual here with me but cannot pinpoint this topic, is it in the FANUC book Ileft at work?

    Can anyone give me the proper format for IF/GOTO statements
    ie
    G0Z.2
    X[#100] Z.1
    G71U.150
    G71P21Q22U.02W.005F.014
    N21G0X[#101]Z.05
    G01Z-[#107]
    ?? IF [#102 EQ 0] N22
    X[#102]
    Z-[#107+#108]
    ?? IF [#103 EQ 0] N22
    blah blah blah
    N22X[#100]
    IS THIS ON THE RIGHT TRACK?
    I'm just a butcher masquerading as a machinist


  2. #2
    Registered
    Join Date
    May 2007
    Location
    USA
    Posts
    939
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by gogego View Post
    We have a sl 25 mf-t6 I think, Fanuc control, I want to try some conditional programming, IFs and GOTOs and such I have the prog and op manual here with me but cannot pinpoint this topic, is it in the FANUC book Ileft at work?

    Can anyone give me the proper format for IF/GOTO statements
    ie
    G0Z.2
    X[#100] Z.1
    G71U.150
    G71P21Q22U.02W.005F.014
    N21G0X[#101]Z.05
    G01Z-[#107]
    ?? IF [#102 EQ 0] N22
    X[#102]
    Z-[#107+#108]
    ?? IF [#103 EQ 0] N22
    blah blah blah
    N22X[#100]
    IS THIS ON THE RIGHT TRACK?
    Not quite. If/GOTO statements require a GOTO. Replace N22 with GOTO22

    I use variables in G71 cycles a lot, but have never tried a GOTO inside the cycle. Don't see why it shouldn't work okay.


Similar Threads

  1. Newbie- Best Cam prog?
    By greven2010 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 6
    Last Post: 06-13-2010, 04:11 PM
  2. Need Help!- Prog ex Mazatrol M2
    By sve0019 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 0
    Last Post: 05-30-2010, 01:48 AM
  3. Replies: 2
    Last Post: 12-05-2008, 09:10 PM
  4. Sample prog?
    By Edster in forum Okuma
    Replies: 11
    Last Post: 09-25-2008, 02:52 PM
  5. EMC2 variable pitch / variable diameter threading.
    By samco in forum General Metalwork Discussion
    Replies: 0
    Last Post: 03-09-2008, 02:40 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.