Piet Posted January 27 Report Share Posted January 27 Hello, I had a testset on loan from unitronics. It is really simple. I am not done yet, I still have to figure out how to handle an emergency stop and resume the action, so I do not have to junk a half finished produkt. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted January 27 MVP 2022 Report Share Posted January 27 I'm guessing your product is such that the work can be restarted. I would use a State Machine and define a "pause state" that will turn everything off but remember the state number of where you stopped. Take a look at this thread- Joe T. Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted January 27 Report Share Posted January 27 5 hours ago, Piet said: Hello, I had a testset on loan from unitronics. It is really simple. I am not done yet, I still have to figure out how to handle an emergency stop and resume the action, so I do not have to junk a half finished produkt. To do so, I would add an alarm pointing to e-stop with acknowledge bit. Then use this bit to resume process. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted January 27 MVP 2022 Report Share Posted January 27 Even without a State Machine (which I use almost religiously thanks to learning about it from Joe), it's not that difficult to write a program that allows things to restart gracefully since all operands are retained automatically. The programmer must be cognizant of any timers and power-ups, but it's not that difficult. Quote Link to comment Share on other sites More sharing options...
Piet Posted January 30 Author Report Share Posted January 30 First I need to tell what I use the system for. I give old machines a second live by replacing an old and usually defective control system Mostly bending machines. Due to the long tubes that are swinging around and the forces involved the emergency stop is extremely important. For hydraulic machines this is simply a matter of cutting the valve tension and switching off the hydraulic pump. The status of the machine cylcle stays unalterred and can be resumed or aborted as needed. For servo it is completely different. It needs to be brought to a controled stop. (I think) So I made a test program with 2 sequences - abs, abs, abs, rel,rel, rel - abs, rel, abs, rel, abs, rel, wich run perfectly, in both directions at will. When I simulated an emergency I did the following: I saved the complete input status of the servo axis then I executed an axis stop and after the stop-done an axis reset After reinstating the abs position or the rel distance, I put on target position or the remaining rel distance and the start bit again. It would not resume where it left off. So maybe I should live with junking a halve finished product. Quote Link to comment Share on other sites More sharing options...
Piet Posted February 1 Author Report Share Posted February 1 On 1/27/2023 at 8:28 PM, Flex727 said: Even without a State Machine (which I use almost religiously thanks to learning about it from Joe), it's not that difficult to write a program that allows things to restart gracefully since all operands are retained automatically. The programmer must be cognizant of any timers and power-ups, but it's not that difficult. You are right, in the days of relais, it was called cascade logic. For plcs it is difficult to do otherwise. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.