IDevice (ITF) ¶ INTERFACE IDevice EXTENDS INode This is a generic device interface. It provides basic information on a (fieldbus) device Properties: ChildNodeCount , inherited from INode Enable , inherited from INode FirstChildNode , inherited from INode IsRootNode , inherited from INode NextSiblingNode , inherited from INode ParentNode , inherited from INode SiblingNodeCount , inherited from INode Methods: GetDeviceDiagnosisInfo GetDeviceErrorAsync GetDeviceInfo GetDeviceState SetCommunicationState GetSpecificDeviceErrorAsync GetSpecificDeviceState Structure: Fieldbus-dependent-methods GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) SetCommunicationState (Method)
Fieldbus dependent methods ¶ GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method)
IDevice.GetDeviceDiagnosisInfo (METH) ¶ METHOD GetDeviceDiagnosisInfo : ERROR Returns a DiagnosisInfo if xDiagnosisInfoAvailable of IDevice.GetDeviceState was true. Note The interpretation of pData is fieldbus dependent and will be specified by the associated fieldbus driver. InOut: Scope Name Type Comment Return GetDeviceDiagnosisInfo ERROR Input pData CAA.PVOID Pointer to memory szSize CAA.SIZE Size of memory in bytes where pData is pointing to Output szCount CAA.SIZE Number of Bytes written to pData
IDevice.GetDeviceErrorAsync (METH) ¶ METHOD GetDeviceErrorAsync : PROC_STATE Returns the device error of the current node. Note This is an asynchronous method. For easier handling use function block GetDeviceError . InOut: Scope Name Type Comment Return GetDeviceErrorAsync PROC_STATE Input eCmd PROC_CMD Inout eriDeviceError ERROR_INFO error information Output eError ERROR error code if method fails
IDevice.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : ERROR Returns the device information of the current node InOut: Scope Name Type Comment Return GetDeviceInfo ERROR Inout deiInfo DEVICE_INFO device information
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