I have a KRC2 ed05 with an ATC spindle, and I use Pointloader to run large programs.
My end goal is to write a functional tool change so each program will have the robot get a tool, run the toolpath, then return the tool and go to home position.
Pointloader can run a subprogram like "ChangeTool(a,b)", so I think I'll just write two subs; one to get a tool, one to return it.
The groundwork question: Why is it common to run a subprogram to turn an I/O on or off?
(e.g. SpindleOff to turn off a digital I/O, instead of $OUT123=FALSE)
Is it just cleaner theory or does it work with interrupts better or something?
I followed another thread to stop my spindle if $PRO_ACT goes false in SPS, maybe the subprogram method will let me restart the program (and spindle) if I need to stop it. At the moment, I'm forced to restart the toolpath from the beginning.
I appreciate any insight!