ProductSchedule: GetQueueSize
Can be called to get the current number of products in the Product Schedule queue.
Note that generating more than about 120 products per minute from a product schedule onto a single conveyor running at the default speed of 1.3 m/s will result in the product schedule not able to induct all product and cause the queue to gradually increase.
🔁 Function
integer GetQueueSize()
⚙️ Parameters
None
↩️ Return Value
An integer value for the number of products
📝 Example
var obj = GetComponentByNameAndType("ProductSchedule1", "Product Schedule");
obj.Enabled = false;
obj.TotalProducts = 40;
LogDebug("Product Schedule " + obj.Name +
" Enabled=" + obj.Enabled +
" PPM=" + obj.TotalProducts +
" Queued=" + obj.GetQueueSize());