Hi guys, looking for a little help. I understand and use $PRO_NAME[] and $PRO_NAME1[] currently, mostly for the robot interpreter program check.
What I don't understand is how to use these variables with the extended interpreters. The manual is kind of vague and of course their examples only show $PRO_NAME[] & $PRO_NAME1[]. Is there a $PRO_NAME2[], $PRO_NAME3[], on to $PRO_NAME7[] ? If not, how do you do it?
My end goal is to use CWRITE to select, start, stop, & cancel sps programs used to control servo grippers with EasyHMI screens. So when I open a gripper HMI screen, the corresponding sps program will start & run in interpreter #3, then stop & cancel when the screen is closed. I could do this with dedicated interpreters but I want to use this as a standard for future systems and not muck up the use of too many interpreters. One of our robots has 4 grippers, others usually only have 1 or 2.
Here's a small sample of one of the uses for $PRO_NAME1[], just to throw some code in...
;FOLD $PRO_NAME1[] ERROR CHECK
;VERIFY SELECTED PROGRAM NAME IS GOOD
ON_ERROR_PROCEED
CUR_PRO_NAME1[] = $PRO_NAME1[] ;SET PRO_NAME TO USER VARIABLE
IF $ERR.NUMBER <> 0 THEN ;CHECK FOR ERROR
$OUT[14]=FALSE ; SET TOP OF MASTER TO OT[14] FALSE
ERR_CLEAR($ERR) ;CLEAR ERRORS
CHAR_CLEAR_RESULT=StrClear(CUR_PRO_NAME1[]) ;CLEAR CUR_PRO_NAME1[]
;CHAR_CLEAR_RESULT IS A BOOL, ALWAYS TRUE FROM StrClear()
CUR_PRO_NAME1[] = "x"
ENDIF
;ENDFOLD
KRC 5 MICRO, VERSION 8.7.6
Thanks for your help!!