SharedArea (FB)ΒΆ
FUNCTION_BLOCK FINAL SharedArea EXTENDS FBF.InstanceBase IMPLEMENTS ISharedArea, IReadableSharedArea, IWriteableSharedArea
A shared area allows only ONE writer at the same time, reading the shared area is always allowed
- InOut:
Scope
Name
Type
Initial
Comment
Input Const
pData__XWORDudiDataSizeUDINTudiInitialCapacityUDINT5
The initial max number (>1) of possible references of the shared data
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, udiDataSize + SIZEOF(AreaData) - SIZEOF(DWORD)));itfObserverAn optional observer implemetation registered with initilaization.
itfUtilitiesAn optional specialized implementations for
AreaCopyDataandAreaIsEqual.
Properties:
Methods:
Structure: