TitlTraySorter: RemoveProduct
Called to remove product from the sorter on a specific tray
Function
void RemoveProduct(trayIndex: integer, target: object);
Parameters
Name | Type | Description |
---|---|---|
trayIndex | Integer | The index number of the tray that product will be removed from. See note at the bottom of the page. |
target | Object | The destination equipment object to move the product to. Can be null. |
Return Value
Object id. The return value may be zero if no product is found
Example
var sorter = GetComponentByNameAndType("Sorter1", "Tilt Tray Sorter");
var conveyor = GetComponentByNameAndType("Conveyor1", "Conveyor");
sorter.RemoveProduct(2, null); // just remove the product
sorter.RemoveProduct(3, conveyor); // remove the product and induct it on an equipment