I am running into a problem that when I try to upload a program from a usbstick onto my KRC2 controller where it will upload the .src file without any problem, but with the .dat file it gives me an error that has as source: FILEHANDLER. Then if i proceed to still upload it it becomes a: keep0 file and it the icon isnt the correct one what am I doing wrong? Thankyou for you help in advance!
This is the code that im trying to run:
&ACCESS RVO1
&COMMENT
DEF martenn( )
;FOLD INI
;FOLD BASISTECH INI
GLOBAL INTERRUPT DECL 3 WHEN $STOPMESS==TRUE DO IR_STOPM ( )
INTERRUPT ON 3
BAS (#INITMOV,0 )
;ENDFOLD (BASISTECH INI)
;FOLD USER INI
;Make your modifications here
;ENDFOLD (USER INI)
;ENDFOLD (INI)
;FOLD PTP HOME Vel=30 % DEFAULT Tool[1] Base[0];%{PE}%R 8.3.22,%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:HOME, 3:, 5:30, 7:DEFAULT
$BWDSTART=FALSE
PDAT_ACT=PDEFAULT
FDAT_ACT=FHOME
BAS(#PTP_PARAMS,30)
PTP XHOME
;ENDFOLD
;INSERT STARTING LOCATION FOR MOVING Z AXIS
INTERRUPT DECL 1 WHEN $IN[1]==TRUE DO TOOLM()
MOVEZ()
INTERRUPT OFF 1
;FOLD PTP HOME Vel=30 % DEFAULT Tool[1] Base[0];%{PE}%R 8.3.22,%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:HOME, 3:, 5:30, 7:DEFAULT
$BWDSTART=FALSE
PDAT_ACT=PDEFAULT
FDAT_ACT=FHOME
BAS(#PTP_PARAMS,30)
PTP XHOME
;ENDFOLD
$OUT[1]=FALSE
END
DEF MOVEZ()
INTERRUPT ON 1
;INSERT END LOCATION FOR MOVING OVER THE Z AXIS
;FOLD WAIT Time= 0.0 sec;%{PE}%R 8.3.22,%MKUKATPBASIS,%CWAIT,%VWAIT,%P 2:0.0
WAIT SEC 0.0
;ENDFOLD
END
DEF TOOLM()
INTERRUPT OFF 1
BRAKE
$OUT[1]=TRUE
;FOLD WAIT Time= 3 sec;%{PE}%R 5.4.33,%MKUKATPBASIS,%CWAIT,%VWAIT,%P 2:3
WAIT SEC 3
;ENDFOLD
RESUME
END
SPECS:
KRC V5.5.10
GUI version: 2.0.6.6 b65
Kernel system version: KS V5.5.64
Robot:KR16 C2 FLR ZH16