looping downtimes


Results 1 to 2 of 2

Thread: looping downtimes

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

    Default looping downtimes

    hello

    here are some looping code samples ( repetitive tasks ), so to show how a different code syntax leads to more or less downtime

    there are 100moves, each move 1mm long; feed is 1500 G94, so code should perform in 100/1500*60=4seconds

    - fastest codes ( all performed in cca4.035 seconds ) :
    ... linear type
    ... looped soubroutine ( because it's content is loaded into the flash memory )
    ... noex loops

    - slowest codes ( leads to motion discontinuity, maybe cutting edge friction ) :
    ... normal if-loops ( without optimization : 4.83 seconds; cca20% slower )
    ... copye ( because of increased checks, it performs mega-slow; check this thread : https://www.cnczone.com/forums/okuma...ml#post2215556 )

    execution duration for each code is written between brakets / kindly

    Code:
    
        G00 X500 Z250
            X200 Z0
        G91
        V2 = VDIN [ 1000 ]
    
    
        V1 = 0
        N1 V1 = V1 + 1
        G01 Z1 F1500 G94
        IF [ V1 LT 100 ] N1
    
    
        V2 = VDIN [ 1000 ] - V2 ( 4824 4829 4820 4831 4822 )
        G90
        G00 X500 Z250
    
    
        M02
    Code:
    
        G00 X500 Z250
            X200 Z0
        G91
        V2 = VDIN [ 1000 ]
    
    
        NOEX V1 = 0
        N1 NOEX V1 = V1 + 1
        G01 Z1 F1500 G94
        IF [ V1 LT 100 ] N1
    
    
        V2 = VDIN [ 1000 ] - V2 ( 4041 4040 4038 4036 )
        G90
        G00 X500 Z250
    
    
        M02
    Code:
    
        G00 X500 Z250
            X200 Z0
        G91
        V2 = VDIN [ 1000 ]
    
    
        CALL OSUB Q100
    
    
        V2 = VDIN [ 1000 ] - V2 ( 4036 4034 4032 4038 )
        G90
        G00 X500 Z250
    
    
        M02
    
    
    OSUB
    
    
        G01 Z1 F1500 G94
    
    
    RTS
    Code:
    
        G00 X500 Z250
            X200 Z0
        G91
        V2 = VDIN [ 1000 ]
    
    
        CALL OSUB
    
    
        V2 = VDIN [ 1000 ] - V2 ( 4032 4047 4038 )
        G90
        G00 X500 Z250
    
    
        M02
    
    
    OSUB
    
    
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94 ()
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94 ()
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94 ()
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94 ()
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94
        G01 Z1 F1500 G94 ()
    
    
    RTS


    Similar Threads:
    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 ...


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

    Default Re: looping downtimes

    hello when initially i started this, it was about how different code layouts lead to different cycles times

    as years passed, i have dealed with other sources of time deviation :
    ... position of code to be checked, like at the begin of the file, or towards the end, as start-ups add a bit of delay
    ... min-sdf differencies, as sdf uses memory different, and that may add delays on repetitive programs, or unnecesary spindle stops
    ... buffer prohibition codes and timestamps, does not guarantee consistency, because buffer continues to read when axis are still in motion, but within droop; in other words, confirmation does not mean no phisical motion, as it has a tolerance

    all such things add inconsistencies, that may affect debuging of those situations, where all such unpredictible behaviours have a huge effect on the trials

    so, in order to achieve reliable results, each situation requires a different aproach, and as how machines are different, is needed a dynamical method of debuging, like what works here, may not work there, thus to generate & test variants as fast as possible ... thus codes particular to each machine, to each setup, especialy short runs, where is a lot of competition for average shops / kindly

    Last edited by deadlykitten; 07-22-2023 at 11:14 AM.
    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 ...


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

looping downtimes

looping downtimes