ProductCount

This page contains a short and a more detailed description of the global variable: ProductCount, that is reachable from the Pally URCap:

In Short: ProductCount

ProductCount

An integer that is equal to the number of boxes that have been palletized so far.

Possible values

  • Any value between 0 and the total number of boxes present in the pattern

Example

If a pattern is being palletized, and currently five boxes have been placed on the pallet, then:

  • ProductCount = 5

In Detail: ProductCount

The ProductCount variable is an integer that is equal to the number of boxes that have been successfully placed on the pallet so far. The variable is initialized to 0 for all patterns, and is incremented by the number of boxes that the robot places palletizes.

As an example, if the first boxes to be palletized in a pattern are picked at the same time, then ProductCount is increment for 0 to 2 after the two boxes are placed on the pallet.

If the TaskCompleted variable is False in the beforeRelease-callback, then no boxes will have been placed on the pallet - thus, ProductCount is not incremented.