Hi Johannes,
Thanks a lot.
Are there examples in KUKA|prc where custom Softkey-Dialogs were implemented as part of a ROB-procedure (via $MSG_T ?) – e.g. to have the user decide whether to increase the loop count or not and therefore repeat the last or go for the next iteration?
With a snippet like the following:
;-------- Softkey Dialog --------
DECL INT ANSW
DECL BOOL REPEAT_THIS
$MSG_T.VALID = FALSE
$MSG_T.RELEASE = FALSE
$MSG_T.TYP = #DIALOG
$MSG_T.KEY[] = "Loop finished"
$MSG_T.DLG_FORMAT[] = "0 Repeat|1 Next"
$MSG_T.ANSWER = 0
$MSG_T.VALID = TRUE
WAIT FOR ($MSG_T.VALID == FALSE)
ANSW = $MSG_T.ANSWER
IF ANSW == 1 THEN
; 0 Repeat -> repeat same iteration, n=n
REPEAT_THIS = TRUE
ELSE
; 1 Next -> next iteration, n=n+1
REPEAT_THIS = FALSE
ENDIF
Thanks a lot.
Are there examples in KUKA|prc where custom Softkey-Dialogs were implemented as part of a ROB-procedure (via $MSG_T ?) – e.g. to have the user decide whether to increase the loop count or not and therefore repeat the last or go for the next iteration?
With a snippet like the following:
;-------- Softkey Dialog --------
DECL INT ANSW
DECL BOOL REPEAT_THIS
$MSG_T.VALID = FALSE
$MSG_T.RELEASE = FALSE
$MSG_T.TYP = #DIALOG
$MSG_T.KEY[] = "Loop finished"
$MSG_T.DLG_FORMAT[] = "0 Repeat|1 Next"
$MSG_T.ANSWER = 0
$MSG_T.VALID = TRUE
WAIT FOR ($MSG_T.VALID == FALSE)
ANSW = $MSG_T.ANSWER
IF ANSW == 1 THEN
; 0 Repeat -> repeat same iteration, n=n
REPEAT_THIS = TRUE
ELSE
; 1 Next -> next iteration, n=n+1
REPEAT_THIS = FALSE
ENDIF