I have a module that contains routine procedures used for simple movements to/from a position. The job I am working on has several stations and I would like to know how to prevent these "teach mode only" procedures from appearing in the list when PP to Routine is pressed. Basically, I only want to be able to get to these procedures by calling my main "rTeach()" procedure and selecting the specific teach routine I want.
MODULE TeachTool PROC rTeach() IF selectedProc = 1 THEN rTeachRoutine1; IF selectedProc = 2 THEN rTeachRoutine2; ENDIF ENDPROC LOCAL PROC rTeachRoutine1() !Execute rTeachRoutine1 ENDPROC LOCAL PROC rTeachRoutine2() !Execute rTeachRoutine2 ENDPROC ENDMODULE
I've tried removing and re-adding the LOCAL directive to the procedure definitions but I don't think I fully understand what this does. The RAPID Overview document says having the LOCAL directive classifies the procedure's scope as only within the module, which I think is what I want because I don't want the data in this module to be seen by my main programs. However even with the procedures declared as local I can still jump straight to them with PP to Routine.