Good day,
I'm having trouble with a Palletizing program which should Palletize boxes in a certain way (pattern included in attachments), the problem I'm having is to Mirror the base on the second level of boxes.
I started by having a program for every box on the first layer(8 drop programs), but, as I thought it would work if I just Rotate the temporary axis in the A orientation on the second layer. I got the rotation right, but the boxes are still in the same orientation as the first layer .
So my question is, would it be possible to mirror the temporary base on the second layer, so that I don't have to write 32 programs for every box of the pallet?
Base 2 is my Temporary base, and Base 3 is my reference base.
Here is the main Program code:
BASE_DATA[2]={x 1972.75403,y 865.13678,z 455.0,a 0.0,b 0.0,c -0.0} ;Resetting the base data when I run the program
FOR LayerCount = 0 to 2 ;
p_pick()
p_drop1()
p_pick()
p_drop2()
p_pick()
p_drop3()
p_pick()
p_drop4()
p_pick()
p_drop5()
p_pick()
p_drop6()
p_pick()
p_drop7()
p_pick()
p_drop8()
LayerCount = LayerCount + 1
Base_Offset()
ENDFOR
END
------------------------------------------------
DEF Base_offset()
BASE_DATA[2]=BASE_DATA[3]
BASE_DATA[2].X = BASE_DATA[2].X-680
BASE_DATA[2].Y = BASE_DATA[2].Y-460
BASE_DATA[2].Z = (LayerCount * 455)+455
BASE_DATA[2].A = LayerCount * 90
END
------------------------------------------------