588,238 active members*
4,295 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    188

    Programming Help Needed

    I am doing some programming on Doosan inverted lathe with a Fanuc 18i control the machine has a auto part loading system that has a lot of prox switches on it the bulider has modified the ladder so that I can read these switches through G54.1 to G54.6 registiers as #1000 through #1006 it would look like this in a program.

    O1234
    N1 THIS
    N2 PART
    N3 OF
    N4 THE
    N5 PROGRAM
    N6 RUNS
    N7 THE PART
    N8 IF[#1003EQ1] GOTO0100 (CHECKS FOR FINSH PART AT UNLOADING STATION)
    N9 IF[#1003NQ1] GOTO0200(BEFORE SETTING DOWN NEXT PART)
    N0100 #3001=5 (FINISH SHUTE)
    N0200 G98 P9001 (UNLOAD PART PROGRAM)
    N10 THIS
    N11 PART
    N12 LOADS
    N13 NEW
    N14 PART
    M99

    The problem is that sometimes the control will read past N8 and N9 to fast to read the prox switch and go right the alarm statement N0100 unless I put at least 2 G04 dwells of 4sec in front of it I have sevral of these statments through out the program for the automation so you can see how much this slows down the process any body have any Ideas.

  2. #2
    Join Date
    Nov 2005
    Posts
    274
    Line #9 should be IF[#1003NE1]GOTO200(NE "NOT EQUAL TO")
    So it is not a look ahead problem so much as that statement is wrong and so the rpogram is just going right to the alarm
    BUT
    Try this instead

    O1234
    N1 THIS
    N2 PART
    N3 OF
    N4 THE
    N5 PROGRAM
    N6 RUNS
    N7 THE PART
    N8 IF[#1003EQ1]THEN#3001=5(FINISH SHUT)
    N0200 G98 P9001 (UNLOAD PART PROGRAM)
    N10 THIS
    N11 PART
    N12 LOADS
    N13 NEW
    N14 PART
    M99

    Always use the IF/THEN in the same line. If you want a hard stop (#3000=) Then those I always put out side of the program or subroutine

    Like So

    O1234
    N1 THIS
    N2 PART
    N3 OF
    N4 THE
    N5 PROGRAM
    N6 RUNS
    N7 THE PART
    N8 IF[#1003EQ1]GOTO100
    N0200 G98 P9001 (UNLOAD PART PROGRAM)
    N10 THIS
    N11 PART
    N12 LOADS
    N13 NEW
    N14 PART
    M99
    N100#3000=5(FINISH SHUTE)

    And you really do not need the GOTO200 becuase if the if the #1003EQ1 is not true it will continure on the that line

    Also the #3001 works like an MO1 it will just hold the program and let you do that voodoo that you do, Then start back at the place it stopped.
    #3000= is an alarm stop the will requier a reset and a restart of the rpogram.
    Also I sent you a PM with some other info
    Bluesman

  3. #3
    Join Date
    Nov 2007
    Posts
    188

    Programming help

    Thanks Bluesman I will give it a try

Similar Threads

  1. HELP needed for Siemens Controller programming!!
    By cybertool in forum G-Code Programing
    Replies: 5
    Last Post: 07-02-2008, 12:46 PM
  2. Programming Skills Needed
    By CountBraden in forum Surfcam
    Replies: 6
    Last Post: 06-14-2008, 08:58 PM
  3. Needed Mazak cam t-2 programming manual
    By Pziggy in forum Mazak, Mitsubishi, Mazatrol
    Replies: 0
    Last Post: 12-06-2007, 03:25 PM
  4. programming radius/ help needed
    By integrexe410 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 6
    Last Post: 12-11-2006, 07:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •