587,925 active members*
3,225 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Priority code problem when running program loop, Okuma LC40 OSP5000L
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Posts
    18

    Question Priority code problem when running program loop, Okuma LC40 OSP5000L

    I'm trying to run a program that loops a specifyed number of times, but when it loopes back to start i get a P-code error, as it begins on a lower code.
    I've already tried calling P-100 and P0 after the reset on bodt turrets, but I get the same error.
    Is there any way to reset the priority codes?

  2. #2
    Join Date
    Dec 2012
    Posts
    395
    Hi,

    You don't say what error.

    Try the next (Fanuc) example:
    M98 P150021 means: repeat 15x sub-program :0021 and return to main-program.
    Is that your problem?

    %
    :0020( MAIN-PROGRAM )
    M98P150021
    G00X250.M05
    Z200.M09
    M30

    :0021( SUB-PROGRAM )
    T0101G99
    G50S3000
    G96S200M3
    ---------
    ---------
    ---------
    G0X250.M09
    Z200.M05
    M99
    %

  3. #3
    Join Date
    Aug 2011
    Posts
    2517
    That's totally wrong. M98 won't work on Okuma.
    The P he is referring to is used for turret synchronization to make one of the turrets wait (it's a twin turret lathe)
    The same post is in the Okuma forum where it really should have been posted first and there are several useful replies.....
    http://www.cnczone.com/forums/okuma/...kuma_lc40.html

Similar Threads

  1. Replies: 9
    Last Post: 04-19-2013, 10:45 AM
  2. OKUMA LC40 INDEXING PROBLEM
    By DWARMUS in forum Okuma
    Replies: 24
    Last Post: 11-19-2012, 04:15 PM
  3. Replies: 13
    Last Post: 02-21-2011, 11:53 PM
  4. OKUMA LC40 OSP5000L Communication problem
    By Max Moreno in forum DNC Problems and Solutions
    Replies: 5
    Last Post: 08-22-2010, 07:30 AM
  5. Okuma Lc40 2 turrett problem
    By Wbjr in forum G-Code Programing
    Replies: 8
    Last Post: 08-03-2009, 01:14 AM

Posting Permissions

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