Data type: Priority Queue Instance Attributes - v1.0
This data type is used to store the instance data of the function _priorityQueue.
Parameters
Section titled “Parameters”| Parameter | Type | Initial Value | Description |
|---|---|---|---|
length | Dint | 0 | Current length of the queue |
total | Dint | 0 | Total/maximum length of the queue |
isEmpty | Bool | 1 | 1= The queue is empty |
isFull | Bool | 0 | 1= The queue is full |
isInitialized | Bool | 0 | 1= The queue is initialized and ready to work |
priorityMode | Bool | 0 | 0= The highest priority is the highest number 1= The highest priority is the lowest number |
mutex | Bool | 0 | Used to lock or enable access to the queue (user defines the rules) |
protected | Struct | - | Protected data |
protected Structure
Section titled “protected Structure”| Parameter | Type | Initial Value | Description |
|---|---|---|---|
freeSlots | DInt | 0 | 0 to total-1= Free slots |
nextSlotIndex | DInt | 0 | 0 to total= Index of the next slot |