TRAP routine or other method for laser control?
dchayden
✭✭
I am controlling a laser from an IRC5 for a welding application. The laser requires a complex handshake for both startup and shutdown, which I handle with two dedicated routines. In automatic mode, things run beautifully... the startup routine establishes control of the laser, sets parameters, and starts gas flows; smaller subroutines coordinate laser firing with robot motion; and the shutdown routine gracefully terminates laser operations at the end.
The problem is handling laser safety during unanticipated program flows such as manual (non-automatic-mode) operation with an operator who may release the enabling device early, or such as an error condition arising during program operation. Laser firing is handled by a signal that requires EN1, EN2, ES1, ES2, etc. to also be engaged, so that the laser will not fire if something goes amiss. What I cannot figure out is how to also tie in the startup and shutdown routines so that they will execute to completion as the enable loop is opened and closed. A break in EN1, for instance, should also execute the shutdown routine, which includes a series of SetDO and WaitDI statements, even when the main program execution has stopped due to the break in EN1. I believe TRAP will stop execution if the enable loop is open, correct?
Any guidance is appreciated!
0
Comments
-
Maybe event routines for start and stop.Lee Justice0
-
I'm unfamiliar with event routines, but I'll look into them. Thanks!0
-
Tried that in RS, and it seems to work great!! I'll go out to the floor and try it on the actual machine.Thanks for the excellent help!0
-
You are welcome, good luck!Lee Justice0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings