Hi everyone:
I have encountered some problems in the ROBOT controller.
I created two programs with KAREL and built .PC from .KL.
I copied these two files to the real ROBOT via a USB stick.
When I load two programs in the teach pendant and remove the USB stick and then run the program, the program will fail.
But if the USB stick is always inserted into the teaching panel and runs the same program, it will work fine.
I hope that after the ROBOT program is loaded, the USB memory stick can be removed and the program can be successfully executed.
What can I do?
My .KL code like below:
Code
LOAD_STATUS('PROCESS.PC',bLoaded,initi)
IF (NOT bLoaded) THEN
WRITE('Loading',CR)
LOAD ('PROCESS.PC',0,iStatus)
IF (iStatus = 0) THEN
RUN_TASK ('PROCESS',1,FALSE,FALSE,1,iStatus)
IF (iStatus<>0) THEN
WRITE ('Change the value of the Variables',CR)
WRITE ('by another program failed',CR)
WRITE ('But you can try changing the values',CR)
WRITE ('from KCL',CR)
ENDIF
ELSE
WRITE('Load PROC Failed:',iStatus,CR)
ENDIF
ENDIF
Display More
The result is "Load PROC Failed: 67003<== This is LOAD Built-In Procedure status return value.