Home› Programming
Discussion
Back to discussions page
iLikeWaffles
Posts: 3 Apprentice
Using variables to skip locations in a pallet. |
86 views
|
Answered | |
/ Most recent by Nicholas_Francoeur
in Programming
|
1 comment |

in Programming
Is there a way to skip parts in a pallet? I see these cnt_x variables, so hopefully I can use them and if statement to make it work?
My pallets don't have parts in the corners because that's where they're screwed down. Below is what it looks like.

I'd hate to use three pallet routines or teaching each position. Please tell me there's something. I haven't delved into scripting yet, but it may lead to that if that's the only way.
My pallets don't have parts in the corners because that's where they're screwed down. Below is what it looks like.

I'd hate to use three pallet routines or teaching each position. Please tell me there's something. I haven't delved into scripting yet, but it may lead to that if that's the only way.
Tagged:
Best Answer
-
Nicholas_Francoeur Posts: 93 Handy
@iLikeWaffles, absolutely, you can use the pallet counter and increment the value depending on the current value. I have done a quick program showing how it can be done with a 4x3 grid. There is no need for complexe scripting.ProgramRobot ProgramMoveJhomeGripper Open (1)If Pallet_1_cnt≟1 or Pallet_1_cnt≟12Pallet_1_cnt≔2ElseIf Pallet_1_cnt≟4Pallet_1_cnt≔5ElseIf Pallet_1_cnt≟9Pallet_1_cnt≔10Pallet_1PatternsGrid_Pattern_1CornerItem_1CornerItem_2CornerItem_3CornerItem_4LayersAt Each ItemGenerated MovementsMoveJApproachMoveLToolActionPointTool actionGripper Close (1)MoveLExit