FactoryBase (FB) ¶ FUNCTION_BLOCK FactoryBase IMPLEMENTS IFactory This function block implements the neccecary basic functionality for a function block factory. Memory allocator AllocInstMem FreeInstMem The allocator use the following properies as parameters. InstSize reports the memory consumtion of the related function block instance. InstPoolAdr, InstPoolSize => The instance pool is initialized with a static memory area. InstCout, InstPoolSize => The instance pool is initilaized with a memory area from the heap. InstPoolExtendsFactor => The instance pool can be extended dynamically with memeory areas from the heap. List management for handling the group of produces function block instances. InsertInst RemoveInst Properties: prvInstCount prvInstPoolAdr prvInstPoolExtendsFactor prvInstPoolSize prvInstSize Methods: FB_EXIT FB_INIT prvInstInit Structure: FB_EXIT (Method) FB_INIT (Method) Private prvInstCount (Property) prvInstInit (Method) prvInstPoolAdr (Property) prvInstPoolExtendsFactor (Property) prvInstPoolSize (Property) prvInstSize (Property)
FactoryBase.FB_EXIT (METH) ¶ METHOD FB_EXIT : BOOL InOut: Scope Name Type Return FB_EXIT BOOL Input bInCopyCode BOOL
FactoryBase.FB_INIT (METH) ¶ METHOD FB_INIT : BOOL InOut: Scope Name Type Comment Return FB_INIT BOOL Input bInitRetains BOOL TRUE: the retain variables are initialized (reset warm / reset cold) bInCopyCode BOOL TRUE: the instance will be copied to the copy code afterward (online change)
Private ¶ prvInstCount (Property) prvInstInit (Method) prvInstPoolAdr (Property) prvInstPoolExtendsFactor (Property) prvInstPoolSize (Property) prvInstSize (Property)
FactoryBase.prvInstCount (PROP) ¶ PROPERTY prvInstCount : CAA.COUNT
FactoryBase.prvInstInit (METH) ¶ METHOD prvInstInit : BOOL InOut: Scope Name Type Return prvInstInit BOOL Input itfInst IInstance hInst CAA.HANDLE itfData IData Output eError ERROR
FactoryBase.prvInstPoolAdr (PROP) ¶ PROPERTY prvInstPoolAdr : CAA.PVOID
FactoryBase.prvInstPoolExtendsFactor (PROP) ¶ PROPERTY prvInstPoolExtendsFactor : USINT
FactoryBase.prvInstPoolSize (PROP) ¶ PROPERTY prvInstPoolSize : CAA.SIZE
FactoryBase.prvInstSize (PROP) ¶ PROPERTY prvInstSize : CAA.SIZE