detect restart sequence ?


Page 1 of 2 12 LastLast
Results 1 to 12 of 22

Thread: detect restart sequence ?

  1. #1
    scaring mice @ north pole deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    1950
    Downloads
    0
    Uploads
    0

    Default detect restart sequence ?

    hello guys, is it possible to detect from code if machine is in restart sequence ?

    so to avoid executing something, like variable initialization ? kindly !

    Similar Threads:
    if you wish to be famous, first you have to succeed
    ... where is Sid ?



  2. #2
    Registered OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    976
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    Try VRSTT system variable. You should already see it in the Switch check program that I gave you.

    Best regards,

    Experience is what you get just after you needed it.


  3. #3
    scaring mice @ north pole deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    1950
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    hello again mr. Wizard ... can't find that "Switch check program" ... or, at least, VRSTT states : 0normal / 1restarting ? kindly !

    don't worry, i just hit into Darth Vader, speaking about VRSTT states: http://www.cnczone.com/forums/okuma/...tailstock.html

    i can't believe it ... they are washing his face and give him haircut ...



    Last edited by deadlykitten; 06-09-2016 at 01:10 PM.
    if you wish to be famous, first you have to succeed
    ... where is Sid ?



  4. #4
    Registered OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    976
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    His sample is perfect:

    IF[VRSTT NE 0] NSKIP

    If restart is not active, don't jump. If active (anything other than 0) jump to NSKIP

    Mission accomplished!

    PS> I still haven't heard how you are scaring mice on the north pole from Antarctica. Not from the sound of your crashes I hope!

    Experience is what you get just after you needed it.


  5. #5
    scaring mice @ north pole deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    1950
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    hello, for osp-p300l, VRSTT states : 0_restart_inactive / 128_restart_active

    i needed it for something, but when i see that it works, i also used it to reduce restart-duration

    i declare each phase/sequence inside a ssb; i modify general structure like is :

    Code:
    O....
    
    variables initialization
    
      ( * )
    
    IF [ VRSTT NE 0 ] NEND
    
    safe position / index / tool approach / cutting / safe position
    
    NEND
    
    RTS
    now i run a simple program; restart duration reduced from 6 to ~2 seconds

    caution ... not all sequences are subject to this ... tailstock for example

    if " IF [ VRSTT NE 0 ] NEND " would be 1st line inside the ssb file, than restart will take place after this sequence; so desired phase to restart will be skiped

    Last edited by deadlykitten; 06-10-2016 at 07:49 AM.
    if you wish to be famous, first you have to succeed
    ... where is Sid ?



  6. #6
    Registered OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    976
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    Of course use caution when skipping during a restart since you could be skipping code that is important. In your example, you just skipped all of your "safe positions".

    You are correct that restart duration can be shortened, but graphics information, tool calls, etc. will be off so you need to make sure that you are calling up EVERYTHING needed to restart properly.

    BTW since you are going down the "dangerous road" (careful kitty) you can also number search or scroll to a point in the program that you want to restart at and then press INTERLOCK and CYCLE START at the same time to begin from that point. Of course the same rules apply, you MUST be at a safe restart point. Typically I will put in safe restart points such as NT1 for tool 1, NT5 for tool 5, etc. so that I know I have a good restart point for each tool. My cad does this automatically when I use it.

    Best regards,

    PS> still waiting :-) switch check program attached - change extension back to .SSB after download.

    Attached Files Attached Files
    Experience is what you get just after you needed it.


  7. #7
    scaring mice @ north pole deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    1950
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    you just skipped all of your "safe positions"
    only code before restart position is skiped, including " safe positions(SP) " ... during restart i don't take into consideration SP from previous operations

    - also, for continuity reasons, there is always a conection between "end_sp of one sequence" and "start_sp of next one"
    - they share at least X or Z positions; i use :
    .... X_fix & Z_fix for OD tools that work near parts front
    .... only X_fix and random Z for OD tools that work near parts end
    .... only Z_fix and ranfdom X for ID tools

    but graphics information >>> this is not critical ...yes, it helps ... i don't use it
    tool calls
    when restarting i don't call tools, but sequences ... i write each sequence inside a ssb, and just call them from main program ...

    there is an image with sequences for a program that runs now :
    ...first column holds adrreses for each phase
    ...2nd call soubroutine
    ...3rd is for coments
    ...4th is for tool description
    ...5th is for required P cadran
    ...6th was added today, and it highlight phases that are skiped during restart

    there are 16 phases and 8 tool references ... there are :
    ... identical tools on turret
    ... phases performed by same tool

    modular / fast to see / easy to import, export, mix like a rubik cube

    press INTERLOCK and CYCLE START at the same time to begin from that point >>> i did not know that ... i'll try it
    still waiting >>> working on sky is my lower limit
    switch check program >>> this is new ... i will inspect it / at first glance looks alien


    Attached Thumbnails Attached Thumbnails detect restart sequence ?-01-png  
    Last edited by deadlykitten; 06-10-2016 at 03:22 PM.
    if you wish to be famous, first you have to succeed
    ... where is Sid ?



  8. #8
    scaring mice @ north pole deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    1950
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    number search or scroll
    i can locate restart phrase/address only by search ...

    i have tried to scroll, but it does not work : i pushed "down arrow" , " page down "

    also, i enter " edit mode ", there i have scrolled to desired position, but i can't restart from "edit mode" ... well / i don't know what you reffer by scrolling ... i tried

    i'll try anything you wish ... if you wish ...

    then press INTERLOCK and CYCLE START at the same time to begin from that point
    once i locate desired position, by search, i press attached button + green

    if i press IL + green ( concomitent ) , than i receive an error

    ... so ...
    idea was to reduce restart duration, and so far i succeded by going down the "dangerous road"

    i tried what you said, because i thought that it may be an alternative ... even if solution described at post 5 works, i would be glad to avoid it and instead use "scroll"+"IL" or whatever buttons, that works faster

    restart duration is long, because machine verifies all stuff till that point ...
    sometimes programs are simple, but long, so restart duration will be increased, a lot of stuff will be verified, but all will be perfect in the end ... so in this case is normal to wish for a phisical restart : just start from there ... don't verify, i tell you that is all good so far


    just start from there >> if a lot of restarts occure at same position, maybe is better to split the program right there ; also, a GOTO near program begining will solve it

    don't verify, i tell you that is all good so far
    >> this is the " dangerous road" ; well, i am comfortable with it, and what i mean is that i don't feel like making experiments ... i had this in mind for long time, and darth vader just came in

    PS : there are things still left mysterious here :
    ....swith check : no time 4 it so far
    ....your waiting ....
    ....and i just observed that under darth vader is morris midwest label ... good day to you mr wizard

    Attached Thumbnails Attached Thumbnails detect restart sequence ?-restart-button-jpg  
    Last edited by deadlykitten; 06-11-2016 at 01:49 AM.
    if you wish to be famous, first you have to succeed
    ... where is Sid ?



  9. #9
    Registered OkumaWiz's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    976
    Downloads
    0
    Uploads
    0

    Default

    You must be in a reset condition in order to scroll using down arrow in auto mode. Then interlock+cycle start will work. You can also scroll after doing number search.

    Experience is what you get just after you needed it.


  10. #10
    scaring mice @ north pole deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    1950
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    interlock + cycle start
    hello, it works :) once you switch to auto, also must focus program window ... in auto there are 3 zones on screen that can receive focus ( pls see image ), and i was not where i should be; once a zone is focused, it is bounded by that blue rectangle :)

    using IL+play on code with M66, requires M867 :)

    is interesting, because :
    ...... i have always M867 at program begining, and so it seems that IL+play skips it :)
    ...... if tailstock should be engaged, but i restart by IL+play with tailstock at home position / not engaged, than i receive a tailstock error

    ...... so it skips M867, but not the tailstock .... hmm
    ...... normal restart does not require M867 inside every sequence ...


    so general structure, now, is as below :

    Code:
    O....
    
    variables initialization
    
      ( * )
    
    IF [ VRSTT NE 0 ] NEND
    
    M867
    safe position 1
    < index M66 > < S / SB ... > < tool approach M63 >
    cutting
    safe position 2
    
    NEND
    
    RTS
    thx mr wizard :)

    Attached Thumbnails Attached Thumbnails detect restart sequence ?-01-jpg  
    Last edited by deadlykitten; 06-12-2016 at 11:15 AM.
    if you wish to be famous, first you have to succeed
    ... where is Sid ?



  11. #11
    scaring mice @ north pole deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    1950
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    il + play / skipping behaviour
    il+play :
    ......1) does not skip tailstock advance
    ......2) skips M867 from program begining
    ......3) skips tailstock retreat from program begining

    i use 3) because :
    ...... safety reason, to be sure that tailstock is at home position every time the program starts / i can remove it, so operator should be more carefull
    ...... otherwise, if i remove it, than i must switch that key twice for each program run ; if i keep it, than key is always in the same position, and i let it be like that till next cnc setup ... i guess in 1 month ? ... i pray to " short setups & long machining " god ... actually i pray to "no setups & no fixtures" god

    it would be nice to have no worries about this skipping behaviour, because ... because potatoes can be fried ...

    i will try again, maybe i am missing something ... later ... nope, "il+play" fails on tailstock where "search+restart" works ...

    Last edited by deadlykitten; 06-13-2016 at 03:42 AM.
    if you wish to be famous, first you have to succeed
    ... where is Sid ?



  12. #12
    Registered broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    805
    Downloads
    0
    Uploads
    0

    Default Re: detect restart sequence ?

    Quote Originally Posted by deadlykitten View Post
    il
    it would be nice to have no worries about this skipping behaviour, because ... because potatoes can be fried ...

    i will try again, maybe i am missing something ... later ... nope,
    WTF has frying potatoes got to do with a Sequence Restart Skip programming sequence???

    You are a strange person.

    Whether you "Skip" anything in a restart mode is totally up to you and your programming method (what ever the hell that might be) there is no ODD behavior involved... only you
    If you program to skip in a restart state then the program WILL skip, otherwise it will not... Why is that strange?



Page 1 of 2 12 LastLast

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

detect restart sequence ?

detect restart sequence ?