Dear Kuka Community,
I have a general question regarding the subroutines. In our KUKA (KRC 5 ), the robot is required to perform palletizing processes. I need to link the palletizing counter in each section with the gripper open/close signal. This means that when the robot opens the gripper in a particular section, the palletizing counter for that section will increment. However, due to the high number of sections where palletizing needs to be done, I need a solution similar to this one.
Code
DEF SPS()
;USER_PLC
IF (Gripper-Closed_Input_SIGNAL) And NOT (FlankIndicator )
FOR Feed = 1 TO 23 STEP 1
FOR Stapel = 1 TO 3 STEP 1
IF (Mer_PickPlace_Feed[Feed,Stapel]) AND FlankIndicator THEN
iCounter_F[Feed,Stapel]=iCounter_F[Feed,Stapel]-1
ENDIF
ENDFOR
ENDFOR
FlankIndicator =Gripper-Closed_Input_SIGNAL
END
Display More
Actually, I want to avoid the FOR/ENDFOR loop in sps.sub. therefore Iam searching for anew ideas
I am glad to hear yours
BR
HENRY