10.4 - Pallet completion state
To obtain the current pallet completion state (progress indicator) use the following method:
pallet_state = palletmanager_daemon.get_pallet_state(0)
The method has one input parameter that is reserved and must be 0.
The result is an array with 3 elements: total number of boxes, number of boxes completed,
number of boxes not completed.
Please note that boxes in the current task are not included in the completed and the
uncompleted boxes.
Use the following example to get detailed status of the pallet:
pallet_state = palletmanager_daemon.get_pallet_state(0)
nr_total = pallet_state[0] # total number of boxes
nr_done = pallet_state[1] # completed
nr_not_done = pallet_state[2] # not completed
nr_current = nr_total - nr_done - nr_not_done # being completed
now
Version 2.9.1
© Rocketfarm AS 2021. All rights reserved.
115