Hello all!
Would anyone mind sharing any coding snippets/examples of any recovery programs that they wouldn’t mind sharing?
I am trying to figure out how to handle the recovery & resuming of my multi-controller / multi-robot cell.
STOPING LINE:
I want the robots to stop (at end of instruction or auto-stop??) then motors off when someone requests to enter the cell. Once they exit the cell, close the door, and hit ‘resume’ button on HMI I want the cell to resume like nothing happened. (Guessing I would need a 'system input: Motors On and Start’ and put a routine in another task using multi-task and be static or semistatic?)
RECOVERY/HOMING LINE:
I am also needing to reset the line or tell all robots to go ‘home’ especially after a collision or if maintenance on the cell is required.
I understand these are very different goals, and this is my first time programming a line with recovery and want to make sure I am doing it correctly.
I have been trying to come up with a plan on my own but keep failing on finding a resolution and feeling pretty defeated.
So far I have:
I have set up world zones and am using those to signal digital IO to know what zone I was/am in,
but was curious on what the next step is?
-
Is there a rough pattern that I need to follow or does anyone have a to-do list on things I need to cover?
-
Do I need to use a TRAP routines? (I have struggled with TRAP routines in the past and them not triggering).
-
Where in the Main line code would this recovery program go: before normal program execution or would it go in another task all together?
-
Is SafeMove required?
-
Any other Add-ins or licenses that I might need such as collision detection etc?
I have looked through the manual and online and can’t find any example using an actual cell and struggle with seeing the bigger picture with vague examples… Would anyone have anything they wouldn’t mind sharing for a recovery process similar to this? I would love to see what good practices are! I definitely learn by example so anything you got is highly appreciated!!!