Skip to main content
Version: v9

Stack / Row

General​

The Stack / Row Node helps processing a Stack or Row of items with a single Node.
With the repeated execution of this Node, it will move the Robot to every Pose on the defined Stack or Row.
The Stack / Row 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 header shows the Node type, Stack / Row, and your name for the Node. While the setup is incomplete, the header reads Not configured. To wire the Node into a Flow, see Connecting.

The ports, in the order they appear on the canvas:

PortKindWhat it does
InputInputStarts the Node.
Before Item ApproachOutputRuns at the approach pose, before the move to the item.
At ItemOutputRuns at the item. Use only Relative Movements here.
Process ItemOutputRuns after the Robot has left the item.
Every N IterationsOutputExists only while Branch every is ticked.
After CompletionOutputRuns once the last item in the ITEMS range is done.

The Stack / Row Node on the canvas, named Pick stack, with its ports and a Cartesian Movement wired to Every N IterationsThe Stack / Row Node on the canvas, named Pick stack, with its ports and a Cartesian Movement wired to Every N Iterations

On the Node​

Select the Node and its settings open in place.

The selected Stack / Row Node with its ITEMS, BEHAVIOR and SPEED settingsThe selected Stack / Row Node with its ITEMS, BEHAVIOR and SPEED settings

  • ITEMS: a range slider over all items. It reads, for example, "7 – 15 of 20". Only items in the range run. Set how many items exist under Shape in the Stack Configuration.

  • BEHAVIOR: four checkboxes, each linking to its section below.

    • Wait for external trigger, with an information button.
    • Branch every, with an information button and a number field.
    • Stack end to start.
    • Reverse approach trajectory, with an information button.

    Each information button opens that setting's page in the Documentation drawer.

  • SPEED: Velocity and Accel., from 1 to 100 %, 100 % by default. 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 line, for example "20 items, stacked start to end", or "20 items, stacked end to start". While a Next Item Variable is bound, a second line reads "Next item → " followed by the Variable's name.

  • Configure Stack opens the Stack Configuration.

Stack Configuration​

Select the Node, then select Configure Stack. The Stack Configuration panel opens beside the Node, with five numbered cards next to a 3D preview. Select a card's header to open or close it.

The Stack Configuration panel with the Stack Position card open and a 3D preview of 20 itemsThe Stack Configuration panel with the Stack Position card open and a 3D preview of 20 items

1. Stack Position​

  • Start Pose: an absolute Cartesian Pose. It is filled in with the Robot's current Pose. Type it, or pick a saved Pose under Select Cartesian Pose.
  • End Pose (Relative to Start): enter the Position Offset Start Pose → End Pose (relative). Tick Orientation at End Pose (absolute) to give the End Pose its own orientation. When it is not ticked, the orientation of the Start Pose is used.
  • Under each Pose, Apply current Pose takes the Robot's current Pose. It is unavailable while a Pose Variable is selected. Press and hold Move to Target to drive the Robot there. Save as Variable saves the Pose as a Variable.
  • The End Pose offset must not be 0, 0, 0.

stack instructions

2. Shape​

Items is a whole number of 2 or more. The default is 2. A value below 2 shows "Cannot be lower than 2", a value that is not a whole number shows "Enter a valid integer", and an empty field shows "Field is required". The items are spaced evenly from the Start Pose to the End Pose, and the orientation blends between the two. Changing Items resets the ITEMS range on the Node to all items.

3. Stack Approach Pose​

The Approach Pose defines an optional Joint Movement to a secure position above the Stack. 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 Stack 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 to the approach pose before each item and returns to it after the item.

4. Item Approach Trajectory​

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

If the approach pose is defined, the movement starts from the approach pose, otherwise from the current Robot Pose. The Robot moves along the Item Approach Trajectory (if defined) to the Stack 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. Stack Variables​

The card has one field, Next Item, which takes an Integer Variable. See Next Item.

3D preview​

The preview shows every item as a dot, the corner you are editing drawn larger, the Visit path through the items in the ITEMS range, and the Item Approach Trajectory 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, and the Stack entry of the panel shows an error. The message is Incomplete or invalid, against Stack position, Item trajectory or Approach pose. The Approach pose message appears only while Use an approach pose is on.

How the Node runs​

  • If a Stack 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 (the Item Approach Trajectory, if defined).
  • At the Stack 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, from the Start Pose to the End Pose, or the other way round with Stack end to start. Items are numbered from 1.
Additionally the Every N Iterations output is triggered every N iterations if specified.
If all Stack positions have been processed, the After Completion output is triggered to continue the Flow.

stack 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.

Stack end to start​

Tick Stack end to start to run the stack from the End Pose back to the Start Pose. Item 1 is then the item at the End Pose. The ITEMS range, the Next Item Variable and the running display all count from that end. The summary on the Node reads "… stacked end to start".

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.

Next Item​

Bind an Integer Variable to Next Item on card 5. Stack Variables to choose the item yourself. The Node then always processes the item whose number is the Variable's current value. Items are numbered from 1. Change the Variable in every iteration yourself, for example with a Variable Node on Process Item.

To finish, set the Variable to a number outside the ITEMS range, and the Node runs After Completion. With Wait for external trigger ticked, each trigger processes the item the Variable names.

While the Flow runs​

A chip above the Node shows the item in progress, for example "8 / 20". The Node also grows a panel: "Item 8", "of 20", a progress bar over the ITEMS range, and "Start to end · 7 remaining" ("End to start · 7 remaining" with Stack end to start). See What a running Node shows.