IStack.GetBusScanAsync (METH) ¶ METHOD GetBusScanAsync : PROC_STATE Returns the bus scan of the current node InOut: Scope Name Type Comment Return GetBusScanAsync PROC_STATE Input eCmd PROC_CMD Output itfFirstDevice INode First node of scanned device list eError ERROR
IStack.GetLogger (METH) ¶ METHOD GetLogger : ILogger Returns a logger instance (if supported). InOut: Scope Name Type Return GetLogger ILogger Output eError ERROR
Internal ¶ Internal functions and function blocks used by the I/O driver implementations. Diag Base CAADiagDeviceDefault (FunctionBlock) GetDeviceInfo (Method) GetDeviceState (Method) CAADiagTreeBase (FunctionBlock) INode ChildNodeCount (Property) Enable (Property) FirstChildNode (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) CAAReconfigureBase (FunctionBlock) BeginReconfigure (Method) EndReconfigure (Method) IReconfigureProvider ReconfigureActive (Property) ReconfigureAsync (Method) RegisterIRPChild (Method) SiblingIRP (Property) Initialize_Diag (Method) Reconfigure-Implementations ReconfigureChildrenAsync (Method) ReconfigureIoDriverAsync (Method)
Diag Base ¶ Base implementations used by the I/O drivers. CAADiagDeviceDefault (FunctionBlock) GetDeviceInfo (Method) GetDeviceState (Method) CAADiagTreeBase (FunctionBlock) INode ChildNodeCount (Property) Enable (Property) FirstChildNode (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) CAAReconfigureBase (FunctionBlock) BeginReconfigure (Method) EndReconfigure (Method) IReconfigureProvider ReconfigureActive (Property) ReconfigureAsync (Method) RegisterIRPChild (Method) SiblingIRP (Property) Initialize_Diag (Method) Reconfigure-Implementations ReconfigureChildrenAsync (Method) ReconfigureIoDriverAsync (Method)
CAADiagDeviceDefault (FB) ¶ FUNCTION_BLOCK CAADiagDeviceDefault EXTENDS CAADiagTreeBase IMPLEMENTS IDevice2 The default implementation if the fieldbus specific driver implements no diagnosis functions. Properties: ChildNodeCount , inherited from CAADiagTreeBase Enable , inherited from CAADiagTreeBase FirstChildNode , inherited from CAADiagTreeBase IsRootNode , inherited from CAADiagTreeBase NextSiblingNode , inherited from CAADiagTreeBase ParentNode , inherited from CAADiagTreeBase SiblingNodeCount , inherited from CAADiagTreeBase Methods: GetDeviceInfo GetDeviceState Structure: GetDeviceInfo (Method) GetDeviceState (Method)
GetSpecificDeviceError (FB) ¶ FUNCTION_BLOCK GetSpecificDeviceError EXTENDS CBM.ETrigA This function block delivers the fieldbus specific device error. Note The interpretation of pData is fieldbus dependent and will be specified by the associated fieldbus driver. Note This feature may not be supported by all fieldbus drivers. eError will return ERROR.NOT_SUPPORTED if not supported. InOut: Scope Name Type Comment Input itfNode INode device node pData CAA.PVOID Pointer to memory where specific device error information should be copied to. Inout szSize CAA.SIZE IN: Size of memory pData points to. Out: Size of data copied to pData Output eError ERROR operation error code
Reconfigure ¶ A reconfiguration can be used to apply new configuration values to a device and all subdevices. After reconfiguring all changed configuration values (Enable flag, Parameter changes, …) take effect. Reconfigure (FunctionBlock)
Reconfigure (FB) ¶ FUNCTION_BLOCK Reconfigure EXTENDS CBM.ETrig This function block reads and applies the whole configuration of the corresponding device and all subdevices. After Reconfiguring all changed configuration values (Enable flag, Parameter changes, …) take effect. If device doesn’t support reconfiguring eError returns ERROR.NOT_SUPPORTED . Example Following example code disables a slave device beneath a fieldbus master. PROGRAM PLC_PRG VAR iState : INT := 0 ; reconfig : DED.Reconfigure ; END_VAR CASE iState OF 0 : //Disable slave device: Slave1 (= name in device tree) Slave1.Enable := FALSE ; iState := 1 ; 1 : //start reconfiguring of fieldbus master reconfig ( xExecute := TRUE , itfNode := Master ); IF reconfig.xDone THEN iState := 3 ; ELSE IF reconfig.xError THEN iState := 2 ; END_IF 2 : //reconfiguring error //TODO: Add code here reconfig ( xExecute := FALSE ); 3 : //reconfiguring successful ==> slave disabled //TODO: Add code here reconfig ( xExecute := FALSE ); END_CASE Note This feature may not be supported by all fieldbus drivers. eError will return ERROR.NOT_SUPPORTED if not supported. InOut: Scope Name Type Comment Input itfNode INode The node to be reconfigured. Output eError ERROR operation error code
Stack ¶ Function blocks working on IStack nodes. GetBusScan (FunctionBlock)
GetBusScan (FB) ¶ FUNCTION_BLOCK GetBusScan EXTENDS CBM.ETrigA Function block for triggering a bus scan. Note This feature may not be supported by all fieldbus drivers. eError will return ERROR.NOT_SUPPORTED if not supported. InOut: Scope Name Type Comment Input itfNode INode IStack node performing the bus scan. Output eError ERROR operation error code itfFirstDevice INode The first scanned device