Hi Everyone !
I work as a medical robotics engineer. I currently use a KUKA KR 160 R1570 nano, with a KRC 8.7.5 and I use WV 6.0.
When I took over the company's existing project, I came across 2 functions that I can't find any mention of in the manuals on KukaXpert (Handbooks, Manuals...). The same goes for the forums.
The functions are BasisTech_PLC_INIT() and BasisTech_PLC_LOOP() in the SPS.sub subroutine.
The system works with an external Siemens PLC.
I don't really undertsand the name of the functions, why ‘PLC’ here ? When I look into the functions it seems there is nothing to do with the PLC...
Here is the content of the functions, defined in System/bas.src :
GLOBAL DEF BasisTech_PLC_LOOP()
DECL KRLMSG_T MSG
DECL KRLMSGPAR_T MsgPar[4]
DECL KRLMSGOPT_T Opt
DECL BOOL bDummy
MSG.Nr = 6789
MSG.MODUL[] = "TechHandler"
MSG.MSG_TXT[] = "EasyTeachKeepOriWarning"
Opt = {VL_STOP FALSE, CLEAR_P_RESET FALSE, LOG_TO_DB TRUE}
IF EasyTeachKeepOriWarning THEN
IF EasyTeachKeepOriHandle == 0 THEN
EasyTeachKeepOriHandle = SET_KRLMSG(#State,MSG,MsgPar[],Opt)
ENDIF
ELSE
IF EasyTeachKeepOriHandle > 0 THEN
bDummy=Clear_KrlMsg(EasyTeachKeepOriHandle)
IF bDummy THEN
EasyTeachKeepOriHandle = 0
ENDIF
ENDIF
ENDIF
END
And
GLOBAL DEF BasisTech_PLC_INIT()
UpdateLoadModes ( )
InitHomePositions ( )
END
Does anyone have a description of these functions ? Are they mandatory ?
Thanks in advance for any help,
Sincerly,
Jeulin.