586,067 active members*
5,205 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > OSP 200 P Command ?
Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2012
    Posts
    0

    OSP 200 P Command ?

    I have an Okuma MacTurn with an OSP 200 control the program has some p commands in which I cant understand what they are for or do. Here is a part of the program any help is much appreciated.
    Thanks
    Dave

    G13
    G140
    N0003 P0010
    N0004 G20 HP=4
    N0005 G50 S3000
    N0006 G141
    N0007 G50 S3000
    N0008 G14
    N0009 G140
    N0010 P0010
    N0004 G0 X60
    N0005 G0 Z=VHPPZ[1]-VZOFZ+2
    N0006 T1200
    N0007 G20 HP=1
    N0008 G50 S2800
    N0009 CALL OZERB PTLM=1.49 PTLS=0.607+.186+.05
    N9999 P0100
    /

    N0100 G13
    N0101 G140
    N0003 P0010 M109
    N0004 G0 X60. W90.
    N0004 G20 HP=4
    N0005 G50 S2800
    PTLS=0.607+.186+.05
    N0006 CALL OZERA PTLM=1.49 PTLS=PTLS
    P0025
    /CALL OBAR4
    M01

    NAT02
    N0102 P0030
    N0103 MT=0201
    N0105 M321
    N0106 G97 S2338 M42 M03 M08
    N0107 G20 HP=4
    N0108 TL=020202 BT=1 M602
    N0109 G00 Z0.1
    N0110 X0.85
    N0111 G85 N0112 D0.1181 F0.01 W0.004
    N0112 G82
    N0113 G00 Z0
    N0114 G01 X0.75 G41 E0.01
    N0115 X0
    N0116 G40
    N0117 G80
    N0118 M09
    N0119 M01
    N0120 P0035
    N0200 G13
    NAT02
    N0201 P0040

  2. #2
    Join Date
    Aug 2011
    Posts
    2517
    P codes are used when a machine has 2 turrets (and usually 2 chucks as well) to either synchronize both turrets or to make the turret wait for something to complete before continuing. when the turret waits the axis control switches from that turret to the other turret. the part of the program that runs is the one with the lowest P number so a higher P number will cause the turret to wait until it sees the same number or a higher number on the other turret. it will continue until it reads a higher number then it will wait. without the P codes both programs (for A turret and B turret) will run at the same time which may not be desired.

    here's a very simple example....
    (any code on a single horizontal line shown here will run together)

    Code:
    (upper turret program)        (lower turret program)
    P10 (wait)                    M8
                                  G4 F5.0
                                  M9
                                  P20 (wait)
    M8
    G4 F5.0
    M9
    P30 (wait) 
                                  M8 
                                  G4 F5.0
                                  M9
                                  P30 (now the same P code is active on both sides)
    (so now both turrets will run together)
    M8                            M8
    G4 F5.0                       G4 F5.0
    M9                            M9
    P100                          P100
    M02                           M02

  3. #3
    Join Date
    Jun 2011
    Posts
    124
    Where are the m100's?

  4. #4
    Join Date
    Oct 2012
    Posts
    0
    Thanks for the reply ForDav, apparently both turrets run from the same program instead of to seperate programs as on a mori with a fanuc control, so how do you determine which part of the program runs which turret.
    Thanks

  5. #5
    Join Date
    Aug 2011
    Posts
    2517
    the A/B turret and chuck left/right codes are G13/G14 and G140/G141
    just google them for more info or look in your manual

  6. #6
    Join Date
    Jun 2011
    Posts
    124
    For Dave and chattaman, google Macturn multi tasking lathe assistant pdf, you'll find a very helpful manual that someone has translated into an English speaking friendly version of the manuals, for both macturn's and Multus's

  7. #7
    Join Date
    Nov 2006
    Posts
    174
    Thanks jamessiffel, but I was asking about a different P value

    http://www.cnczone.com/forums/okuma/165619-p_value.html


  8. #8
    Join Date
    Nov 2006
    Posts
    174
    Sorry but can't find the Macturn multi tasking lathe assistant pdf.
    Do you have a direct link

  9. #9
    Join Date
    Aug 2011
    Posts
    2517
    it was a little difficult to find because the search words are wrong.
    assuming this is it, try this one....
    http://www.freewebs.com/magellan/Upl..._Rev%202.6.pdf

  10. #10
    Join Date
    Nov 2006
    Posts
    174
    Very useful. Thanks fordav11


Similar Threads

  1. while command?
    By davidperry3 in forum Mach Software (ArtSoft software)
    Replies: 1
    Last Post: 10-04-2011, 02:15 AM
  2. G54 command
    By bfedger in forum G-Code Programing
    Replies: 20
    Last Post: 04-17-2010, 06:51 AM
  3. G68 command
    By Ashish B in forum CNC Machining Centers
    Replies: 6
    Last Post: 01-23-2010, 05:25 AM
  4. G03 COMMAND HELP!!
    By hkfanatic in forum G-Code Programing
    Replies: 25
    Last Post: 08-04-2008, 09:14 PM
  5. what is the same command?
    By hop in forum G-Code Programing
    Replies: 0
    Last Post: 06-20-2006, 11:24 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
  •