Skip to main content
Version: v9

Palletizing

General​

The Palletizing Node helps process items arranged in form of a Pallet (3-dimensional grid) with a single Node.
With the repeated execution of this Node, it will move the Robot to every Pose on the defined Pallet.
The Palletizing Node is suitable for equally-spaced items of the same size.

Add it from the Patterns category of the Add Item menu. It works in Flows and Subflows. See Adding Nodes.

The Node on the canvas​

The Node's header shows Palletizing in the first row and your name for the Node in the second row. While the setup is incomplete, the second row reads Not configured. See Connecting for how to wire Nodes together.

The Node has one input and up to five outputs, in this order on the canvas:

PortWhat it does
InputStarts the Node.
Before Item ApproachRuns at the approach pose, before the move to the item.
At ItemRuns at the item. Use only Relative Movements here.
Process ItemRuns after the Robot has left the item.
Every N IterationsExists only while Branch every is ticked.
After CompletionRuns once the last item in the ITEMS range is done.

On the Node​

Select the Node and its settings open in place.

The selected Palletizing Node with LAYER, ITEMS, BEHAVIOR and SPEEDThe selected Palletizing Node with LAYER, ITEMS, BEHAVIOR and SPEED

  • LAYER: one button per layer, numbered from the bottom. The row reads "1 of 6 · bottom up", or "… · top down" with Palletize top to bottom ticked.
  • ITEMS: a range slider over all items of the pallet. The row reads, for example, "1 – 216 of 216". Only items in the range run. Items are numbered in the order the Node works through the pallet. Set the number of items under Shape in the Pallet Configuration.
  • BEHAVIOR: four checkboxes, each described in its own section below. Wait for external trigger (ⓘ), Branch every (ⓘ) with its number field, Palletize top to bottom and Reverse approach trajectory (ⓘ). Each ⓘ opens that setting's page in the Documentation drawer.
  • SPEED: Velocity and Accel., from 1 to 100 %. Both default to 100 %. They set the move toward each item: to the first point of the Item Approach Trajectory, or straight to the item when there is no trajectory. The approach pose and each movement of the trajectory have their own speed.
  • A summary of the pallet, for example "6 layers of 6 × 6, bottom to top" (or "…, top to bottom"), with a second line such as "216 items".
  • Configure Pallet opens the Pallet Configuration.

To run a single layer, set ITEMS to the items of that layer. With Palletize top to bottom unticked, layer k holds items (k − 1) · rows · columns + 1 up to k · rows · columns. With it ticked, the top layer holds the first items, so layer k from the bottom holds items (layers − k) · rows · columns + 1 up to (layers − k + 1) · rows · columns.

Pallet Configuration​

Select the Node, then press Configure Pallet (not to be confused with the Configure Pallet Widget, see below). The Pallet Configuration panel opens beside the Node, with five numbered cards next to a 3D preview. Click a card's header to open or close it.

Pallet Configuration panel with the Pallet Position card and the 3D previewPallet Configuration panel with the Pallet Position card and the 3D preview

1. Pallet Position​

Hint on the card: "Teach the corners, and E for how the stack grows."

The individual Pallet positions, also called items, are automatically computed from Pose A, B, C (optional), D, E and the number of rows, columns and layers. The card has one section per Pose:

  • Pose A (Origin): the absolute Cartesian Pose of the Pallet origin. It is pre-filled with the Robot's current Pose. Type it in, or pick a saved Pose under Select Cartesian Pose.
  • Pose B (Column direction): the Pose that defines the direction of the columns.
  • Pose C (Optional - for accuracy): has a switch. While it is off, the card says "Enable this optional Pose to increase pallet accuracy. Pose C helps correct for any skew in the pallet layout."
  • Pose D (Row direction): the Pose that defines the direction of the rows.
  • Pose E (Layer direction): Position Offset A → E (relative) is the corner A on the top layer.

Each of the Poses B, C, D and E has Position Offset A → X (relative), where X is the letter of the Pose, and an optional Orientation at Pose X (absolute).

Under each Pose are three buttons. Apply current Pose takes the Robot's Pose. It is unavailable while a Pose Variable is selected. Press and hold Move to Target to drive the Robot there. Save as Variable stores the Pose as a Variable.

The offsets of B, D and E must not be 0, 0, 0. The same applies to C while it is switched on.

palletizing instructions

2. Shape​

Hint on the card: "How many rows, columns and layers fill the pallet."

Enter the number of Rows, Columns and Layers. Each is a whole number of at least 2. The default is 6 × 6 × 6, which is 216 items. Changing the shape resets the ITEMS range on the Node to all items.

3. Pallet Approach Pose​

This card is optional. The switch Use an approach pose is off by default. Switching it on fills in the Robot's current joint angles. The card says "The Pallet Approach Pose will be accessed with a PTP movement". It has its own velocity and acceleration, the joint angles, and the three Pose buttons. The Robot goes there before each item and returns there after it.

4. Item Approach Trajectory​

This card is optional. It lists relative movements. Add Movement opens the Relative Movement editor inside the panel. Each movement has a Name, Velocity, Acceleration, a Blending Radius and an X/Y/Z offset.

If the approach pose is set, the movement to the item starts from the approach pose. Otherwise it starts from the current Robot Pose. The Robot moves along the Item Approach Trajectory (if defined) to the Pallet position. All the different scenarios can be seen in the figure below.

item approach trajectory

The Item Approach Trajectory is defined by relative movements toward the Item Pose. The switch below the movement list sets the coordinate system they are given in: the Robot's Base coordinate system (the default) or its Tool coordinate system. In the example above (left), in Base, there are two movements defined:

  • Movement 1: x,y,z = 0,100,0
  • Movement 2: x,y,z = 100,0,0

The relative movements are used to calculate the Cartesian waypoints (cyan 1, 2). The blending radii defined by the movements act on the computed waypoint accordingly. For example, the Blending Radius of the first movement acts on the first computed waypoint, i.e. the movement from the approach pose to 1 and the movement from 1 to 2 is blended with that Blending Radius.

5. Pallet Variables​

This card is optional. Its ⓘ opens the Pallet Variables page. The fields are explained in the Pallet Variables section below.

3D preview​

The preview draws every item of the pallet. The layer is named "Palletizing positions". The corner you are editing is drawn larger. The Visit path shows the order in which the items in the ITEMS range are visited, and the Item Approach Trajectory is drawn into the first item visited. Items outside the range are faded. Displays shows or hides each layer.

If the setup is incomplete​

The Node header reads Not configured. The message is Incomplete or invalid against Pallet position, Item trajectory or Approach pose.

Using the Configure Pallet Widget​

It is possible to use the Configure Pallet Widget in the Dashboard to configure the Palletizing Node to work with new box sizes, without needing to re-teach anything. The Palletizing Node will automatically compute the size of your current box and pallet, based on the number of rows and columns, as well as the points A, B and D. In order for the Configure Pallet Widget to work correctly you have to make sure the following requirements are fulfilled:

  1. The pallet is fully loaded. The boxes should fill the entire pallet. There should be no large gaps between the boxes.
  2. Columns are defined between A→B. Rows are between A→D.
  3. The vector between A→E should point straight up, in the direction of the ceiling.
  4. The vectors between A→B and A→D are mostly perpendicular. The Configure Pallet Widget will apply a correction if the vectors are not perfectly perpendicular.
  5. The boxes are gripped at their center. The parameterization assumes that the Tool Center Point of the Robot is at the center of the box, when you teach the Poses A, B and D.

How the Node runs​

  • If a Pallet Approach Pose is set, the Robot first moves there and the Before Item Approach output runs. When nothing is connected to Before Item Approach, the approach pose is blended into the move to the item instead.
  • After that the Robot moves in Cartesian space to the item, along the Item Approach Trajectory if one is defined.
  • At the Pallet position, the At Item output is triggered, which can be used, for example, to pick the item.
    Note: only Relative Movements should be done at this output.
  • Afterward the Robot leaves the item, backwards along the Item Approach Trajectory if Reverse approach trajectory is ticked, returns to the approach pose if one is set, and runs Process Item.
    This output might be useful to place the previously picked item somewhere else.

These steps repeat for every item in the ITEMS range.
Additionally, the Every N Iterations output is triggered while Branch every is ticked. See Branch every.
After the last item of the range, the After Completion output is triggered to continue the Flow.

The Node fills one layer at a time, row by row within the layer as the Grid Node does, starting at Pose A on the bottom layer (the top layer with Palletize top to bottom). Items are numbered from 1 across the whole pallet.

pallet execution

Wait for external trigger​

When Wait for external trigger is ticked, the Node processes one item each time a branch reaches its Input. It then hands control back to that branch instead of moving on to the next item by itself. The next trigger processes the next item. After the last item in the ITEMS range, the Node runs After Completion.

This is useful for pairing two pattern Nodes. For example, a Stack / Row Node picks items, and a second Stack / Row, Grid or Palletizing Node on its Process Item output, with Wait for external trigger ticked, places them one by one on another stack, grid or pallet.

trigger externally

Branch every​

When Branch every is ticked, the Node gets an extra output, Every N Iterations, between Process Item and After Completion. Enter N in the field next to the checkbox. It starts at 2 and can't be more than the number of items in the ITEMS range. After every Nth item, once Process Item is done, the Node runs what is connected to Every N Iterations.

For example, a soldering application needs fresh solder after every 10th item. Tick Branch every, enter 10, and connect the Nodes that fetch solder to Every N Iterations.

Untick Branch every to remove the output again. Its connections are removed with it, and Undo brings them back.

Palletize top to bottom​

Tick Palletize top to bottom under BEHAVIOR to work the pallet from the top layer down, for depalletizing. Unticked, the Node works from the bottom layer up, for palletizing. When it is ticked, item 1 is on the top layer, the LAYER row jumps to the top layer, and the summary reads "…, top to bottom".

Reverse approach trajectory​

With Reverse approach trajectory turned on (Reverse Approach Trajectory on the RobVision Picking Node), the Robot leaves each item the way it came: along the Item Approach Trajectory, backwards. It does this after the At Item output and before the Process Item output. Without an Item Approach Trajectory there is nothing to reverse.

While the Flow runs​

While the Node runs, it grows a panel. The panel shows the current position, for example "Layer 2 · item 7" "of 36". Below it is one bar per layer that fills as the boxes are placed. For pallets of up to 96 boxes in total, each bar is split into boxes. A line under the bars reads, for example, "43 of 216 placed · bottom to top" ("… · top to bottom" with Palletize top to bottom). See Watching a Run.

Palletizing Node while it runs, with one bar per layerPalletizing Node while it runs, with one bar per layer

Pallet Variables​

The Pallet Variables card is the last card of the configuration panel that Configure Pallet opens (card 5 on Palletizing, card 6 of the Setup step on Advanced Palletizing). Every Variable on it is optional: bind one when you want to read the palletizing progress elsewhere in your Flow, or steer it from outside. Select an existing Variable of the right type from the drop-down, or create one first in the Variables menu.

Each drop-down lists only Variables of the matching type that the Node can write to. Constants, read-only Variables and inputs are not offered. Clear a field with its ×. Rows the Node writes are marked Read-only.

VariableTypeWritten byWhat it holds
Next ItemIntegeryouThe item the Node processes next.
Current LayerIntegerthe NodeThe layer being worked on.
Current Pallet HeightFloatthe NodeThe height of the current layer.
Current Box GroupStringthe NodeThe name of the Box Group the current item belongs to. Advanced Palletizing only.

Next Item​

This Variable tracks the next item to be processed in the palletizing operation. When it is bound, the Node always processes the item whose number matches the Variable's current value. The value is the item number, counted from 1 in palletizing order (the numbers the Node shows). You have to change the Variable yourself in every iteration, for example with a Variable Node.

To finish the Node, set the Variable to a number outside the Node's ITEMS range. The Node then runs its After Completion branch.

The Pallet Variables card of an Advanced Palletizing Node with all four VariablesThe Pallet Variables card of an Advanced Palletizing Node with all four Variables

Current Layer​

This Variable indicates the layer currently being worked on, as the layer number counted from 1 (Layer 1 is the bottom layer). The Node computes the layer and writes it into the Variable, so you can use it throughout the Flow — for example in a Condition Node. Only read it: do not overwrite it yourself.

Current Pallet Height​

This Variable holds the Z height in mm, in the Robot's base coordinate system, at which the current layer is gripped. That is Pose A's Z plus the height of one layer for each layer below. On Advanced Palletizing, a layer is one box high. On Palletizing, a layer is the length of the A → E offset divided by the number of layers minus one. The Node computes the height and writes it into the Variable. Use it throughout your Flow, for instance in a Pose Expression that places an interlayer with a Cartesian Movement Node. Only read it: do not overwrite it yourself.

Current Box Group​

Offered by the Advanced Palletizing Node only. This Variable tells you which Box Group the currently active item is assigned to: it holds the name of the item's Box Group, for example "Group B".