PNSlaveDiag.SiblingNodeCount (PROP) ¶ PROPERTY SiblingNodeCount : CAA.Count
ProfinetControllerDiag (FB) ¶ FUNCTION_BLOCK ProfinetControllerDiag EXTENDS ProfinetController IMPLEMENTS DED.IDevice2, DED.IBus, DED.IReconfigureProvider See ProfinetController InOut: Scope Name Type Initial Comment Inherited from Input xDataActive BOOL TRUE If set to FALSE, all Output Data is set to invalid by ‘BAD’ Output Provider State (unless this PS is not mapped to output variable). Profinet Modules apply their substitute values. ProfinetController Output xOnline BOOL Profinet Controller is online. ProfinetController xBusy BOOL Profinet Controller is in startup phase. ProfinetController xError BOOL Profinet Controller is in error state. ProfinetController xDataValid BOOL IO-Data of all enabled modules is marked valid (Input PS and Output CS is GOOD). ProfinetController Status Profinet.ControllerState Profinet.ControllerState.NotInit ProfinetController SignalLED BOOL ProfinetController Properties: ChildNodeCount Connector Enable FirstChildNode Index IsRootNode MasterID , inherited from ProfinetController NextSiblingNode ParentNode SiblingNodeCount Methods: GetChild Backup , inherited from ProfinetController CheckCurrentSupportedCommunicationState CheckSupportedCommunicationState GetBusDiagnosisInfo GetBusErrorAsync GetBusInfo GetBusState GetDeviceDiagnosisInfo GetDeviceErrorAsync GetDeviceInfo GetDeviceState GetQoS GetSpecificBusState GetSpecificDeviceErrorAsync GetSpecificDeviceState SetCommunicationState Structure: GetChild (Method) IBus GetBusDiagnosisInfo (Method) GetBusErrorAsync (Method) GetBusInfo (Method) GetBusState (Method) GetQoS (Method) GetSpecificBusState (Method) IDevice2 CheckCurrentSupportedCommunicationState (Method) CheckSupportedCommunicationState (Method) GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) SetCommunicationState (Method) INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
ProfinetControllerDiag.GetChild (METH) ¶ METHOD GetChild : DED.INode Returns the udiIndex-th child device. 0 if there is no child at udiIndex. InOut: Scope Name Type Return GetChild DED.INode Input udiIndex UDINT
IBus ¶ GetBusDiagnosisInfo (Method) GetBusErrorAsync (Method) GetBusInfo (Method) GetBusState (Method) GetQoS (Method) GetSpecificBusState (Method)
ProfinetControllerDiag.GetBusDiagnosisInfo (METH) ¶ METHOD GetBusDiagnosisInfo : DED.ERROR Returns a DiagnosisInfo if xDiagnosisInfoAvailable of GetBusState was true. InOut: Scope Name Type Comment Return GetBusDiagnosisInfo DED.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
ProfinetControllerDiag.GetBusErrorAsync (METH) ¶ METHOD GetBusErrorAsync : DED.PROC_STATE Returns the bus error of the current node; you can also use functionblock GetBusError. InOut: Scope Name Type Comment Return GetBusErrorAsync DED.PROC_STATE Input eCmd DED.PROC_CMD eCommand Inout eriBusError DED.ERROR_INFO error struct Output eError DED.ERROR
PNSlaveDiag.GetDeviceErrorAsync (METH) ¶ METHOD GetDeviceErrorAsync : DED.PROC_STATE Returns the device error of the current node; you can also use functionblock GetDeviceError. InOut: Scope Name Type Comment Return GetDeviceErrorAsync DED.PROC_STATE Input eCmd DED.PROC_CMD eCommand Inout eriDeviceError DED.ERROR_INFO error struct Output eError DED.ERROR error code if method fails
PNSlaveDiag.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 DED.DEVICE_INFO Device information struct
PNSlaveDiag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DED.DEVICE_STATE Returns the state OF the device; IF device state is ERROR further information can be read BY GetDeviceError. DEVICE_STATE.UNKNOWN: During identify and configuration of the slave (xBusy = TRUE) DEVICE_STATE.STOPPED: This is the initial state. After Abort the slave moves to STOPPED, too. (NOT xBusy AND NOT xRunning) DEVICE_STATE.RUNNING: Device state running (xRunning = TRUE) DEVICE_STATE.ERROR: Error occurred. (xError = TRUE) DEVICE_STATE.DISABLED: Device is disabled. DEVICE_STATE.NOT_CONFIGURED: Device has not yet been initialized. DEVICE_STATE.CONFIGURED: - DEVICE_STATE.NOT_FOUND: xError = TRUE AND PNIOStatus = 16#81813F02 (CTLDNA identify failed) InOut: Scope Name Type Comment Return GetDeviceState DED.DEVICE_STATE Output xDiagnosisInfoAvailable BOOL TRUE: Diagnosis info can be read by calling GetDeviceDiagnosisInfo eError DED.ERROR
PNSlaveDiag.GetSpecificDeviceErrorAsync (METH) ¶ METHOD GetSpecificDeviceErrorAsync : DED.PROC_STATE Returns the specific device error of the current node; interpretation is fieldbus-dependent; you can also use functionblock GetSpecificDeviceError InOut: Scope Name Type Comment Return GetSpecificDeviceErrorAsync DED.PROC_STATE Input eCmd DED.PROC_CMD eCommand 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 eError DED.ERROR error code if method fails