Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to get and use Pallet or Product data during palletizing project

pallet_dim =

Name

Description

Use

rf_product_weight

Product weight of selected pattern

Define global variable with same name to get data

global rf_product_weight=0

Variables from request

Callback Placement

palletDim = palletmanager_daemon.get_pallet_dimensions(0)

Get Pallet data from selected Pattern

pallet_width = pallet_dim[0] / 1000

pallet_length = pallet_dim[1] / 1000

pallet_height = pallet_dim[2] / 1000

Pallet data from selected Pattern

product_dim beforePallet

productDim = palletmanager_daemon.get_product_dimensions(0)

Get Product data from selected Pattern

product_width = product_dim[0] / 1000

product_length = product_dim[1] / 1000

product_height = product_dim[2] / 1000

product_weight = product_dim[3] / 1000

beforePallet

Define global variable with same name to get data

Example:

Place code for getting Pallet or Product data

...

in beforePallet Callback

...

Define variable(s) you would like to access under MoveJ(must be global)

...

Note: name of variable you would like to access must be identical to variable from request(see top)