How do I have an input looked at for an enitre ProCall?

Hello,
Here is what I am trying to do
I am trying to look at a Digital Input for the Entire PROC UnLoad_Caster() program up to the point BEFORE the Close Gripper Occurs. That DI is diExtractPart. I already have all the PLC mapping complete now I am just looking to see where to put his in the RAPID.
The reason we are doing this is to cause the Robot to go back home, therefore in a safe position, if the diExtractPart signal drops out.
If diExtractPart ever equals zero(0) then Stop the Robot -> ExitCycle -> Open Grippers -> Home Postion
Thank you for any help
Best Answer
-
You can check the status of the signal at the start of the routine in an IF statement with the 'return' command so the the rest of the routine is not executed.
Use an interrupt to catch the signal change during execution of the routine (see attached).
5
Answers
-
Thank you for the help. That was a great answer. I really appreciate it.
God Bless
0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 303 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 353 IRC5
- 74 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 850 RAPID Programming
- 26 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings