I have a line in the program that looks like this:
PROC AutoCtrl()
! Preparations for autocycle
StartUp;
WHILE bRobotHome DO
! Preparation for new cycle
DataCtrl;
! Turn the table
IF TURN_TABLE IndexTable;
! Read the code
ReadCode;
! Check the program
CodeCtrl;
! Select routine
%"SelCutRtn"%;
bRobotHome:=HomeCheck(doHome,diHomeSwitch,doSafeZone);
ENDWHILE
ErrWrite "Automatic cycle stopped.","Robot NOT in homeposition."\RL2:="Check:"\RL3:="DOutput 'doHome' or 'doSafeZone' or"\RL4:="DInput 'diHomeSwitch'.";
PulseDO\High\PLength:=0.5,doMessageOP;
EXIT;
ENDPROC
Viewing it in Robotstudio it is shown in orange. I am thinking that it is calling a specific module based on the group of inputs. What is the purpose of the %% before and after?