Hello !
Ok, here my problem,
I must program a palletizing routine KRC2 KUKA .
I would like to do a base offset between 2 points reported in "config.dat" and a counter for 7 Slots
ex:
"config.dat"
DECL E6POS P_POS1 = x y z a b c
DECL E6POS P_POS7 = x y z a b c
INT COUNTER=0
My .SRC
;fold calcul new base between 2 reference points for 7 slots
COUNTER = COUNTER + 1
PART.X=P_POS1.X-((P_POS1.X-P_POS7.X)/6)*(COUNTER-1)
PART.Y=P_POS1.Y-((P_POS1.Y-P_POS7.Y)/6)*(COUNTER-1)
PART.Z=P_POS1.Z-((P_POS1.Z-P_POS7.Z)/6)*(COUNTER-1)
PART.A=P_POS1.a
PART.B=P_POS1.b
PART.C=P_POS1.c
BASE_DATA 1 = BASE_DATA 2:PART
;endfold
But it does not work ! I do not understand why
could someone help me ?
Thanks