IoDrvSercos3_Diag (FB) ¶ FUNCTION_BLOCK IoDrvSercos3_Diag EXTENDS IoDrvSercos3 IMPLEMENTS IBus, IStack InOut: Scope Name Type Comment Inherited from Input xRestart BOOL A rising edge at this input will restart the master. All configuration data will be reloaded. IoDrvSercos3 wRequiredTopology SERCOS_TOPOLOGY The required topology (Ring, L1, L2 etc) IoDrvSercos3 xRecoverRingTopology BOOL If a ring topology is required and a ring break was detected then it is possible to recover the ring topology with this input. IoDrvSercos3 Output xConfigFinished BOOL If the output is TRUE, the transmission of all configuration data has been executed properly. The communication on the bus is in process. IoDrvSercos3 wState WORD The parameter wState has a value between 0 and 100 telling about the state of the initialization phase; the greater the value, the more the initialization process is advanced. IoDrvSercos3 wTopology SERCOS_TOPOLOGY The current topology of the Sercos III bus. IoDrvSercos3 xTopologyError BOOL IF wRequiredTopologiy is not equal to wTopology there is an error. IoDrvSercos3 xBusError BOOL If the bus is not working then this output is set to true IoDrvSercos3 Properties: AutoRestartMaster , inherited from IoDrvSercos3 ChildNodeCount Enable FirstChildNode FirstSlave , inherited from IoDrvSercos3 IsRootNode LastInstance , inherited from IoDrvSercos3 NextInstance , inherited from IoDrvSercos3 NextSiblingNode ParentNode SiblingNodeCount Methods: GetBusDiagnosisInfo GetBusErrorAsync GetBusInfo GetBusState GetDeviceInfo GetDeviceState GetLogger GetQoS GetSpecificBusState SetCommunicationState Structure: GetBusDiagnosisInfo (Method) GetBusErrorAsync (Method) GetBusInfo (Method) GetBusState (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetLogger (Method) GetQoS (Method) GetSpecificBusState (Method) INode ChildNodeCount (Property) Enable (Property) FirstChildNode (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) SetCommunicationState (Method)
IoDrvSercos3_Diag.GetBusErrorAsync (METH) ¶ METHOD GetBusErrorAsync : PROC_STATE Returns the bus error of the current node. Note This is an asynchronous method. For easier handling use function block |GetBusError| . InOut: Scope Name Type Comment Return GetBusErrorAsync PROC_STATE Input eCmd PROC_CMD Inout eriBusError ERROR_INFO error information Output eError DED.ERROR
IoDrvSercos3_Diag.GetBusInfo (METH) ¶ METHOD GetBusInfo : DED.ERROR Returns the bus information of the current node. InOut: Scope Name Type Comment Return GetBusInfo DED.ERROR Inout buiInfo BUS_INFO bus information
IoDrvSercos3_Diag.GetBusState (METH) ¶ METHOD GetBusState : BUS_STATE Returns the bus state of the current node; if method returns |BUS_STATE.ERROR| further information can be read by |GetBusError| . InOut: Scope Name Type Comment Return GetBusState BUS_STATE current bus state Output xDiagnosisInfoAvailable BOOL if true, diagnosis info can be read by calling |IBus.GetBusDiagnosisInfo| (if supported) eError DED.ERROR
IoDrvSercos3_Diag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR Returns the device information of the current node InOut: Scope Name Type Comment Return GetDeviceInfo DED.ERROR Inout deiInfo DEVICE_INFO device information
IoDrvSercos3_Diag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DEVICE_STATE Returns the state of the device. InOut: Scope Name Type Comment Return GetDeviceState DEVICE_STATE current device state Output xDiagnosisInfoAvailable BOOL if true: diagnostic info is available. eError DED.ERROR
IoDrvSercos3_Diag.GetLogger (METH) ¶ METHOD GetLogger : ILogger Returns a logger instance (if supported). InOut: Scope Name Type Return GetLogger ILogger Output eError DED.ERROR
IoDrvSercos3_Diag.GetQoS (METH) ¶ METHOD GetQoS : DED.ERROR Returns quality of service information for the current bus. InOut: Scope Name Type Comment Return GetQoS DED.ERROR Inout QualityInfo QOS_INFO quality of service information
Sercos3Slave_Diag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DED.DEVICE_STATE Returns the state of the device. InOut: Scope Name Type Comment Return GetDeviceState DED.DEVICE_STATE current device state Output xDiagnosisInfoAvailable BOOL if true: diagnostic info is available. eError DED.ERROR
INode ¶ ChildNodeCount (Property) Enable (Property) FirstChildNode (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)