SharedQueue (FB)ΒΆ
FUNCTION_BLOCK PUBLIC FINAL SharedQueue EXTENDS FBF.InstanceBase IMPLEMENTS ISharedQueue, ISharedAreaObserver
- InOut:
Scope
Name
Type
Initial
Comment
Input Const
udiInitialCapacityUDINT5
The initial max number (>0) of possible nodes handled by the queue
pPoolPOINTER TO BYTE
The optinonal memory space for the background pool.pPool = 0=> Memory is allocated from HeappPool <> 0=> The related static Memory of sizeudiPoolSizeis used.udiPoolSizeUDINTThe size of the memory area referenced bypPoolCondition:udiPoolSize >= TO_UDINT(MBM.PoolGetSize(udiInitialCapacity, SIZEOF(SHD.Node));usiExtensionFactorUSINT50
SettingudiExtendsFactorprovides the possibility to control the dynmic extension of the pool.udiExtendsFactor = 0=> No possibility for extending the pool.udiExtendsFactor > 0=> Extendion of the pool will be possible.A value of e.g.prvInstPoolExtendsFactor := 50always expands the pool by 50% of its original size.
Methods:
Structure: