Hi guys! Have a strange problem - i can easily make a program for kuka via RDK postprocessor, it runs without any problems on robot, but when i try to edit (open for editing) a CIRCLE command in teach pendant it shows a mistake (as i understand the final code of postprocessor is incorrect)
Any ideas what to do with that? I think there are some mistakes in phyton string...............
I ve done some research between a working file from teachpendant anf from robodk postprocessor+ i added a phyton file that generate CIRC command
Working file
Phyton file of ROBODK
Any ideas what to do with that? I think there are some mistakes in phyton string...............
I ve done some research between a working file from teachpendant anf from robodk postprocessor+ i added a phyton file that generate CIRC command
Working file
Code:
CIRC P1 P2
Vel=2 m/s CPDAT1
Tool[0] Base[0]
$BWDSTART=FALSE
LDAT_ACT=LCPDAT1
FDAT_ACT=FP2
BAS(#CP_PARAMS,2)
CIRC XP1, XP2
;FOLD CIRC
P1
P2
Vel=2 m/s
CPDAT1
Tool[0]
Base[0];
%{PE}%R 8.2.17,
%MKUKATPBASIS,
%CMOVE,
%VCIRC,
%P
1:CIRC,
2:P1,
3:P2,
4:,
6:2,
8:CPDAT1
$BWDSTART=FALSE
LDAT_ACT=LCPDAT1
FDAT_ACT=FP2
BAS(#CP_PARAMS,2)
CIRC XP1, XP2
;ENDFOLD
[color=#ff0000]Not working file (FROM ROBODK postprocessor)[/color]
CIRC P1 P2
Vel=2 m/s CPDAT1
Tool[0] Base[0]
$BWDSTART=FALSE
LDAT_ACT=LCPDAT1
FDAT_ACT=FP2
BAS(#CP_PARAMS,0)
CIRC XP1, XP2 C_DIS
;FOLD CIRC
P1
P2
Vel=0.025 m/s
CPDAT1
Tool[0]
Base[0];
%{PE}%R 5.5.0,
%MKUKATPA20,
%CARC_SWI,
%VCIRC,
%P
1:CIRC,
2:P1,
3:,
5:0,
7:CPDAT202
$BWDSTART=FALSE
LDAT_ACT=LCPDAT1
FDAT_ACT=FP2
BAS(#CP_PARAMS,0)
CIRC XP1, XP2 C_DIS
;ENDFOLD
$VEL.CP = 0.05000
Phyton file of ROBODK
Code:
self.addline(';
FOLD CIRC
P%s
P%s
%sVel=%.3f m/s
CPDAT%s
Tool[%i]
Base[%i];
%%{PE}%%R 5.5.0,
%%MKUKATPA20,
%%CARC_SWI,
%%VCIRC,
%%P
1:CIRC,
2:P%s,
3:%s,
5:%.0f,
7:CPDAT%s' %
(vname1, vname2, str_cont, self.speed_ms, vname2, self.TOOL_ID, self.BASE_ID, vname2, str_cdis, self.speed_ms, vname2))