To program a six-axis robot for palletizing multiple SKUs, you need to define consistent approach points, use conditional logic for varying part dimensions, and verify safety clearances. This guide breaks down the configuration process into practical steps for technicians.
- Define fixed approach points and variable pickup points before writing cycle code.
- Use conditional logic to handle differences in part height, width, and weight.
- Verify safety clearances and collision limits for every SKU before running the cell.
- Test the full cycle with empty pallets and low-speed modes before production.
Programming a six-axis robot for palletizing different SKUs requires more than just copying a single path. Most cells see mixed product types, and the robot must adapt to changes in box height, width, and weight without stopping for manual reprogramming. This guide walks through the configuration steps technicians need to build a reliable multi-SKU palletizing cell.
What Do You Need Before You Start
Before touching the robot controller, gather the physical and software prerequisites.
You need the palletizing layout, SKU part drawings, and pallet dimensions. Part drawings should include height, width, depth, and center of gravity for each box type. Pallet drawings show the top surface, corner radii, and any stringer or deck board positions.
The robot controller must support conditional logic and external inputs. Most industrial controllers handle this, but confirm your software version supports multi-branch cycles or macro calls. You also need a teach pendant with a jog mode that allows slow, manual movement of the end effector.
Prepare the end effector. A vacuum suction cup, parallel gripper, or palletizing clamp must be rated for the heaviest SKU in the cell. Mount it securely and verify the zero position on the tool reference frame. If the tool changes between SKUs, you need a changeover procedure that does not require re-teaching the approach points.
How to Define the Pallet and Approach Geometry
Start with the pallet reference frame. Set the pallet origin at a fixed point on the pallet top surface, usually one corner or the center of the leading edge. This frame stays the same regardless of which SKU is being palletized.
Next, define the approach points. These are the robot positions just before and after the pickup and place motions. The approach point for pickup should be above the box at a safe height, typically 150 to 300 mm above the part top. The place approach point should be above the target stack position at the same height.
Keep approach points constant for all SKUs. This simplifies the cycle and reduces the chance of collision when the part changes. The variable part is the pickup and place motion itself, not the approach.
Create a table of pallet stack positions. Each row represents one slot in the pallet pattern. Columns include slot number, X, Y, and Z coordinates relative to the pallet frame. The Z coordinate is the height of the current stack layer. If you are palletizing layers, the Z value changes as the stack grows.
| Slot | X (mm) | Y (mm) | Z (mm) | Notes |
|---|---|---|---|---|
| 1 | 100 | 100 | 0 | First layer, corner position |
| 2 | 100 | 400 | 0 | First layer, opposite corner |
| 3 | 400 | 100 | 0 | First layer, second corner |
| 4 | 400 | 400 | 0 | First layer, final corner |
| 5 | 250 | 250 | 200 | Second layer, center position |
How to Program the Pickup Motion
The pickup motion is where SKU variation matters most. Each box type has a different center of gravity, different height, and different surface finish. The robot must find the box reliably every time.
Program a reference point above the conveyor or staging area. This is the home position for the pickup cycle. From there, the robot moves to the pickup location. The pickup location is defined by the conveyor position and the box center.
If the box position on the conveyor is fixed, you can hard-code the pickup coordinates. If the box position varies, you need a sensor, such as a photoelectric eye or laser displacement sensor, to detect the box edge. The controller then calculates the offset and adjusts the pickup point.
Program the descent to the part. This is the most critical motion for different SKUs. The robot must lower the end effector to the correct Z height for each box. If the boxes vary in height, the Z coordinate of the pickup point must change.
Use a conditional structure. For example:
If SKU is A, set pickup Z to 150 mm.
If SKU is B, set pickup Z to 220 mm.
If SKU is C, set pickup Z to 180 mm.
This conditional logic is the core of multi-SKU palletizing. Without it, the robot will either miss the part or collide with the conveyor.
After the part is secured, retract to the pickup approach point. Verify that the part is stable by checking the sensor or by observing the end effector position. If the part shifts, the cycle should stop and alert the operator.
How to Program the Place Motion
The place motion is similar to pickup but targets the pallet stack. The robot moves from the pickup approach point to the place approach point above the target slot.
The place approach point is defined by the slot coordinates in your pallet table. The X and Y coordinates come from the slot. The Z coordinate is the current stack height plus the approach offset.
For multi-layer palletizing, you need a stack height counter. Each time the robot places a box, the counter increments. The Z coordinate for the next place motion is calculated from the counter and the box height of the current SKU.
If the SKU changes between layers, the Z calculation must account for the new box height. A 200 mm tall box and a 120 mm tall box will produce different stack heights. The controller must update the Z value for the next layer based on the active SKU.
Program the descent to the pallet. This is where collision risk is highest. The robot must lower the part onto the pallet without hitting the stack below or the pallet edges. Use the same conditional logic for the place Z height.
After the part is placed, retract to the place approach point. Clear the pallet slot and move to the next slot. If the pallet is full, the robot retracts to a safe position and signals that the pallet is complete.
How to Handle SKU Changeovers
SKU changeovers happen in three ways. The operator selects the SKU from a screen, the robot reads a barcode or RFID tag, or the conveyor feeds different box types in sequence.
For operator-selected SKUs, create a simple menu on the teach pendant or HMI. The operator selects SKU A, B, or C. The controller loads the corresponding pickup and place parameters.
For barcode or RFID reading, mount a reader near the staging area. The reader sends the SKU ID to the controller. The controller matches the ID to the parameter set. This method is faster and less error-prone than manual selection.
For conveyor-fed SKUs, the controller must read the SKU from the box or from a sensor that detects the box type. This requires more setup but allows continuous operation without operator intervention.
Whichever method you use, the controller must switch the parameter set before the next pickup motion. The switch should happen during the retraction phase, not during the descent. This prevents the robot from using the wrong Z height.
Common Mistakes to Avoid
Technicians make several predictable mistakes when setting up multi-SKU palletizing.
The first mistake is using a single pickup point for all SKUs. If the boxes vary in height, the robot will not grip the part correctly. The second mistake is ignoring the center of gravity. A box with a low center of gravity will shift differently than one with a high center of gravity. The third mistake is not verifying the place Z height for each layer. The stack grows, and the robot must account for the current height.
The fourth mistake is skipping the empty pallet test. Running the full cycle with empty pallets catches timing issues and collision risks before production. The fifth mistake is not documenting the parameter sets. If the technician changes a value, it must be recorded. Without documentation, the next shift may not know what the correct values are.
The sixth mistake is assuming the end effector works for all SKUs. A vacuum cup may work for smooth boxes but not for corrugated cardboard. A parallel gripper may work for rigid boxes but not for soft packaging. Test each SKU with the end effector before writing the cycle.
Final Verification and Commissioning
Before releasing the cell to production, run a full verification.
Start with a low-speed jog. Move the robot through every position in the cycle manually. Check that each approach point is clear of the pallet, the conveyor, and the end effector. Look for any points where the arm could collide with a corner or edge.
Next, run the cycle with no part. The robot should move through the entire palletizing pattern without errors. Check that the stack height counter increments correctly and that the Z values update for each layer.
Then run the cycle with one SKU. Load a single box type and run five full pallets. Inspect each pallet for alignment, spacing, and stacking quality. If the boxes are offset, adjust the pickup or place coordinates.
After the first SKU is verified, add the second SKU. Run the changeover procedure and confirm that the robot uses the correct parameter set. Repeat with the third SKU if applicable.
Finally, run a mixed-SKU cycle. Load different box types in sequence and run the full palletizing pattern. Verify that the stack height calculation accounts for each box height. Check that the robot does not collide with the stack when placing a taller box onto a shorter one.
Document all parameter values, sensor settings, and changeover procedures. Store the documentation in the cell control cabinet and in the facility’s digital records. The next technician should be able to find the values and understand how to adjust them if a new SKU is added.
Frequently asked questions
Can I use the same approach points for all SKUs?
Yes. Approach points should be constant for all SKUs. The variable part is the pickup and place motion, not the approach. Keeping approach points fixed simplifies the cycle and reduces collision risk.
How do I handle different box heights in the stack?
Use a stack height counter that increments after each place motion. The Z coordinate for the next layer is calculated from the counter and the current SKU's box height. If the SKU changes, the calculation must account for the new height.
What if the box position on the conveyor varies?
Use a sensor, such as a photoelectric eye or laser displacement sensor, to detect the box edge. The controller calculates the offset and adjusts the pickup point. Hard-coding the pickup location only works if the box position is fixed.
Do I need a different end effector for each SKU?
Not always. Test the end effector against each SKU before writing the cycle. A vacuum cup may work for smooth boxes but not for corrugated cardboard. If the end effector fails on one SKU, you may need a changeover procedure or a different tool.
How do I verify the cell before production?
Run a low-speed jog, then run the cycle with no part, then with one SKU, then with mixed SKUs. Inspect each pallet for alignment and stacking quality. Document all parameter values and store them in the facility records.



