I have the following beginning to my program, which I am attempting to run on KSS 8.3. It is more or less copied from the example in the KSS 8.2 "Programming Messages" document. No errors are detected in the code in WV 6. However, once I upload to the KRC4 I am getting compilation errors with the message "Component type incompatible with initial value type" for both lines that set the "soft key" values in the MsgSK array.
Code
DEF AdapterSetDown( )
DECL KRLMSG_T Msg
DECL KRLMSGPAR_T MsgParams[3]
DECL KRLMSGOPT_T MsgOpts
DECL KRLMSGDLGSK_T MsgSK[7]
INT nHandle, keyNum
; Confirm work surface is clear
Msg = {MODUL[] "AdapterSetDown", NR 1, MSG_TXT[] "Is the work surface clear of all fixtures and work pieces?"}
MsgSK[1] = {SK_TYPE #value, SK_TXT "Yes"}
MsgSK[2] = {SK_TYPE #value, SK_TXT "No"}
nHandle = SET_KRLDLG(Msg, MsgParams[], MsgSK[], MsgOpts)
IF (nHandle > 0) THEN
WHILE (EXISTS_KRLDLG(nHandle, keyNum))
WAIT SEC 0.1
ENDWHILE
SWITCH keyNum
CASE 1
; Proceed
CASE 2
GOTO ProgramEnd
CASE 0
GOTO ProgramEnd
ENDSWITCH
ENDIF
;...
ProgramEnd:
END
Display More
Am I missing something related to the KRLMSGDLGSK_T type? Something terribly obvious? Any help appreciated.