controlling direction of rotary index motion


Results 1 to 2 of 2

Thread: controlling direction of rotary index motion

  1. #1
    Member
    Join Date
    Feb 2011
    Location
    usa
    Posts
    353
    Downloads
    2
    Uploads
    0

    Default controlling direction of rotary index motion

    i am working on an okuma 4020 vmc with an osp200m control with a tsukadoma rotary table
    the problem i am having is to keep the rotary from indexing the part under the rotary (more than 180. degrees) on start up
    I am looking for the shortest path back to 0.degrees if an operator jogs the rotary off of the a0. or a way to determine the actual position and use the m15/m16 codes to get the direction correct

    Similar Threads:


  2. #2
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: controlling direction of rotary index motion

    hy rcs

    i am using a small code to get the shortest path for the C axis on lathes; i use this inside the program :

    Code:
        // some linear movement
        CALL OCAXS LV01 = desired_C_value
        // C axis movement
    and i keep this soubroutine inside a *.ssb file :

    Code:
    OCAXS ( C_target )
    
    
      IF [ ABS [  LV01 ] LT 360 ] NJUMP1
           NLOOOP M0 ( cool man )
           GOTO NLOOOP
      NJUMP1 NOEX
    
    
      IF [        LV01   GE   0 ] NJUMP2
             NOEX LV01 =  360 +  LV01
      NJUMP2 NOEX LV01 = LV01 - VSIOC
    
    
      IF [ [ [ [ [ LV01 GE 0 ] AND [ LV01 LE +180 ] ] EQ 1 ] OR  [ LV01 LT -180 ] ] EQ 1 ] NTRUE
        ( NFALSE ) M16
                   GOTO NDONE
          NTRUE    M15
          NDONE    NOEX
    
    
    RTS ( . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . )
    
     (      dif >  +180 : M16 )
     ( 0 <= dif <= +180 : M15 )
     ( 0 >  dif >= -180 : M16 )
     (      dif <  -180 : M15 )
    ... it checks that -360 < target_value < +360
    ... converts negative value to positive ( eq -30 to +330 )
    ... it chooses a sense

    to make it work on your cnc, you need the "equivalent system variable" for "VSIOC"
    ... i don't know, try VWKA* , VWKB*, * = A or B or C ?

    kindly

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  3. #3
    Member
    Join Date
    Feb 2011
    Location
    usa
    Posts
    353
    Downloads
    2
    Uploads
    0

    Default Re: controlling direction of rotary index motion

    I found a solution to making sure the rotary does not swing the part under the rotary if an operator manually jogs it off 0 degrees
    m403 will make the rotary take the shortest path



Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

controlling direction of rotary index motion

controlling direction of rotary index motion