ProductName

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

In Short: ProductName

ProductName

A string variable that is equal to the name of the current pattern file that is being palletized.

Possible values

  • Any string

Example

If the pattern in the JSON file named EUR_pall.jsonis selected as the palletizing pattern in the Pattern Selector in Pally, then ProductName = EUR_pall

In Detail: ProductName

The string variable ProductName contains the name of the pattern file that is currently being palletized by Pally.

If the following pattern file called EUR_pall.json, is uploaded to the robot:

{ "name": "My EUR pallet pattern", "description": "EUR-pallet with 8 boxes per layer.", "dimensions": { "height": 1210, "length": 1200, "width": 800 }, "productDimensions": { "width": 273, "height": 172, "length": 406, "weight": 8000 }, "maxGrip": 1, "guiSettings": { "boxPadding": 2, "units": "metric" }, "labelOrientation": null, "dateModified": "2019-11-20T07:43:15.889Z", "layerTypes": [ { "name": "normal", "pattern": [ { "x": 605, "y": 143, "r": [ 270, 90 ] }, { "x": 605, "y": 420, "r": [ 270, 90 ] }, { "x": 605, "y": 697, "r": [ 270, 90 ] }, { "x": 605, "y": 1016, "r": [ 270, 90 ] }, { "x": 195, "y": 143, "r": [ 270, 90 ] }, { "x": 195, "y": 420, "r": [ 270, 90 ] }, { "x": 195, "y": 697, "r": [ 270, 90 ] }, { "x": 195, "y": 1016, "r": [ 270, 90 ] } ], "class": "layer" }, { "name": "reverse", "pattern": [ { "x": 605, "y": 185, "r": [ 270, 90 ] }, { "x": 605, "y": 508, "r": [ 270, 90 ] }, { "x": 605, "y": 785, "r": [ 270, 90 ] }, { "x": 605, "y": 1062, "r": [ 270, 90 ] }, { "x": 195, "y": 185, "r": [ 270, 90 ] }, { "x": 195, "y": 508, "r": [ 270, 90 ] }, { "x": 195, "y": 785, "r": [ 270, 90 ] }, { "x": 195, "y": 1062, "r": [ 270, 90 ] } ], "class": "layer" } ], "layers": [ "normal", "reverse", "normal", "reverse", "normal", "reverse", "normal" ] }

Example of a pattern file for Pally

Notice that the name of the pattern in the EUR_pall.json-file is My EUR pallet pattern. When the Pally program is set up, and the program is played; then the Pally pattern selector will show the names of each pattern, as such:

Notice that the name of the pattern in the EUR_pall.json file is shown to the operator

Once this pattern is selected, and the Start Program button is pressed, then the global variable ProductName is set to be equal to the corresponding file name of the selected pattern. Such that, in this case, the ProductName = EUR_pall.

Notice that the file ending, .json, is not included in the ProductName