Hey guys, so I am training a new guy at our company on the use and programming of our Kuka KR16. Our controller is KRC2 and the system is running software version KSS 5.6.54. The problem we are facing is that the when we program the PTP and LIN motions with a velocity. The velocity that we have set in those motion lines is not updated into the .Dat file. I did notice this before with another program I had written but the program was large and I did not have time to troubleshoot. So I just lowered the global speed override to something that was applicable for the job I was doing. The program runs but the speeds are wrong and I can't change them. I have tried using the CHANGE softkey to change the velocity, but that doesn't work. I have tried changing them directly in the .dat and that does change them, but when I use CHANGE on the points in the .src file, it then changes the .dat speeds back to the standard settings for velocity. Which are 100% for PTP, and 2.0 m/s for LIN.
Here is the .src file;
DEF HVOF12X12_2( )
INT N
;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 STARTPOS
;$BWDSTART = FALSE
;PDAT_ACT = PDEFAULT
;BAS(#PTP_DAT)
;FDAT_ACT = {TOOL_NO 3,BASE_NO 6,MPBP Square 4 #BASE}
;BAS(#FRAMES)
;;ENDFOLD
$ADVANCE = 5
;FOLD ---- Quickly skip BCO ----
PTP $AXIS_ACT
;ENDFOLD
;FOLD SET DEFAULT SPEED
$VEL.CP=0.25
BAS(#VEL_PTP,25)
BAS(#TOOL,0)
BAS(#BASE,0)
;ENDFOLD
$ADVANCE = 5
PTP $AXIS_ACT ; skip BCO quickly
$APO.CPTP = 1.000
$APO.CDIS = 1.000
$VEL.CP = .5
;PROGRAM RUNS OFF OF BASE_DATA[8] WHICH IS A SCRATCH PAD
BASE_DATA[4] = {FRAME: X 461.614,Y 1356.136,Z 705.276,A 90.588,B -24.077,C -0.240}
;Part 4
FOR N=1 TO 2 STEP 1;LOOP CYCLE
;FOLD PTP P1 Vel=50 % PDAT1 Tool[3]:HVOF 8 Base[4]:MPBP Square 2;%{PE}%R 5.6.13,%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:P1, 3:, 5:50, 7:PDAT1
$BWDSTART=FALSE
PDAT_ACT=PPDAT1
FDAT_ACT=FP1
BAS(#PTP_PARAMS,50)
PTP XP1
;ENDFOLD
;FOLD LIN P2 Vel=0.1 m/s CPDAT1 Tool[3]:HVOF 8 Base[4]:MPBP Square 2;%{PE}%R 5.6.13,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:P2, 3:, 5:0.1, 7:CPDAT1
$BWDSTART=FALSE
LDAT_ACT=LCPDAT1
FDAT_ACT=FP2
BAS(#CP_PARAMS,0.1)
LIN XP2
;ENDFOLD
;FOLD LIN P3 Vel=0.1 m/s CPDAT2 Tool[3]:HVOF 8 Base[4]:MPBP Square 2;%{PE}%R 5.6.13,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:P3, 3:, 5:0.1, 7:CPDAT2
$BWDSTART=FALSE
LDAT_ACT=LCPDAT2
FDAT_ACT=FP3
BAS(#CP_PARAMS,0.1)
LIN XP3
;ENDFOLD
BASE_DATA[4]=BASE_DATA[4]: {X 0,Y -4,Z 0,A 0,B 0,C 0}
ENDFOR
END
Display More
And here is the .dat file;
DEFDAT HVOF12X12_2
;FOLD EXTERNAL DECLARATIONS;%{PE}%MKUKATPBASIS,%CEXT,%VCOMMON,%P
;FOLD BASISTECH EXT;%{PE}%MKUKATPBASIS,%CEXT,%VEXT,%P
EXT BAS (BAS_COMMAND :IN,REAL :IN )
DECL INT SUCCESS
;ENDFOLD (BASISTECH EXT)
;FOLD TOUCHSENS EXT
EXT H70 (INT :IN,SRCH_TYP_2 :OUT,E6POS :IN,SRCH_TYP_3 :IN,SRCH_TYP_2 :IN,SRCH_TYP_2 :IN,SRCH_TYP_2 :IN,SRCH_TYP_2 :IN,SRCH_TYP_2 :IN,INT :IN )
;ENDFOLD (TOUCHSENS EXT)
;FOLD USER EXT;%{E}%MKUKATPUSER,%CEXT,%VEXT,%P
;Make here your modifications
;ENDFOLD (USER EXT)
;ENDFOLD (EXTERNAL DECLARATIONS)
DECL BASIS_SUGG_T LAST_BASIS={POINT1[] "P4 ",POINT2[] "P4 ",CP_PARAMS[] "CPDAT2 ",PTP_PARAMS[] "PDAT2 ",CONT[] " ",CP_VEL[] "0.1 ",PTP_VEL[] "100 ",SYNC_PARAMS[] "SYNCDAT ",SPL_NAME[] "S0 "}
DECL E6POS XP1={X -31.4395409,Y 291.871002,Z -6.14646387,A 131.494705,B 16.4710407,C -178.931305,S 2,T 35,E1 -0.000175781301,E2 -25.0029507,E3 0.0,E4 0.0,E5 0.0,E6 0.0}
DECL FDAT FP1={TOOL_NO 3,BASE_NO 4,IPO_FRAME #BASE,POINT2[] " ",TQ_STATE FALSE}
DECL PDAT PPDAT1={VEL 100.0,ACC 50.0,APO_DIST 100.0}
DECL E6POS XP2={X 339.304413,Y 291.883087,Z -3.75771403,A 131.496094,B 16.4709606,C -178.932404,S 2,T 35,E1 -0.000175781301,E2 -25.0029507,E3 0.0,E4 0.0,E5 0.0,E6 0.0}
DECL FDAT FP2={TOOL_NO 3,BASE_NO 4,IPO_FRAME #BASE,POINT2[] " ",TQ_STATE FALSE}
DECL LDAT LCPDAT1={VEL 2.0,ACC 50.0,APO_DIST 100.0,APO_FAC 50.0,ORI_TYP #VAR,CIRC_TYP #BASE,JERK_FAC 50.0,EXAX_IGN 0}
DECL E6POS XP3={X -31.4395409,Y 291.871002,Z -6.14646387,A 131.494705,B 16.4710407,C -178.931305,S 2,T 35,E1 -0.000175781301,E2 -25.0029507,E3 0.0,E4 0.0,E5 0.0,E6 0.0}
DECL FDAT FP3={TOOL_NO 3,BASE_NO 4,IPO_FRAME #BASE,POINT2[] " ",TQ_STATE FALSE}
DECL LDAT LCPDAT2={VEL 2.0,ACC 50.0,APO_DIST 100.0,APO_FAC 50.0,ORI_TYP #VAR,CIRC_TYP #BASE,JERK_FAC 50.0,EXAX_IGN 0}
DECL E6POS XP4={X -20.6515598,Y -1076.73401,Z -0.722322822,A 132.113205,B 16.1825409,C -178.4207,S 2,T 11,E1 -0.000175781301,E2 -25.0032997,E3 0.0,E4 0.0,E5 0.0,E6 0.0}
DECL FDAT FP4={TOOL_NO 3,BASE_NO 3,IPO_FRAME #BASE,POINT2[] " ",TQ_STATE FALSE}
DECL PDAT PPDAT2={VEL 100.0,ACC 50.0,APO_DIST 100.0}
ENDDAT
Display More
As well, we have tried doing all this in multiple user groups; programmer, expert, and administrator. Nothing seems to work.
What am I missing?