Skip to content

Function (FC): Queue - v3.0

This function implements a Queue using an array to store the data. The function supports enqueue, dequeue, and peek operations, following the FIFO (First In, First Out) principle, where the first element added to the queue is the first one to be processed.

  • Managing tasks or events in the order they arrive.
  • Implementing scheduling or resource management algorithms.
  • Any situation where elements need to be processed in the order they were added.
TypeNameVersion
data typequeueInstanceAttributesv3.0
enumerationEQueueMethodv3.0
enumerationEQueueStatusv3.0
ParameterDeclarationTypeDescription
methodInputIntMethod to be executed. EQueueMethod
instanceInOutqueueInstanceAttributesQueue instance
dataInOutVariantArray of data of type <E>
bufferInOutVariantData buffer of type <E>
-ReturnIntReturns of the status, EQueueStatus.