PNSlave.GetID (METH) ¶ METHOD GetID : DWORD InOut: Scope Name Type Initial Comment Return GetID DWORD Input API DWORD 0 currently only 0 is supported SLOT UINT Slot number SUBSLOT UINT Subslot number
PNSlave.ID (PROP) ¶ PROPERTY ID : UDINT
PNSlaveDiag (FB) ¶ FUNCTION_BLOCK PNSlaveDiag EXTENDS PNSlave IMPLEMENTS DED.IDevice2 InOut: Scope Name Type Comment Inherited from Output xRunning BOOL PNIOStatus = 0 PNSlave xBusy BOOL PNIOStatus = 1 PNSlave xError BOOL PNIOStatus > 1 PNSlave PNIOStatus UINT returns value of 0xann0:1 PnIoBoxState.pniostate 0 = No error 1 = ProfinetDevice state machine is in boot mode 2 = Device not found 3 = The stationname is not unique 4 = IP could not set 5 = IP conflict 6 = DCP set was not successful 7 = Watchdog error 8 = Datahold error 9 = RTC3: Sync signal could not started 10 = Profinet controller has a link error 11 = The aliasname is not unique 12 = The automatic name assignement isn’t possible - wrong device type 13 = IOC-AR is established but no application ready 14 = IOC-AR is established but module difference 15 = At least one InputCR is invalid, provider in stop or problemindicator is set 16 = At least one OutputCR is invalid, provider in stop or problemindicator is set 31 = only for EtherCAT gateways: WC-State of cyclic EtherCAT frame is 1 PNSlave Properties: ChildNodeCount Connector Enable FirstChildNode ID , inherited from PNSlave Index IsRootNode NextSiblingNode ParentNode SiblingNodeCount Methods: CheckCurrentSupportedCommunicationState CheckSupportedCommunicationState GetDeviceDiagnosisInfo GetDeviceErrorAsync GetDeviceInfo GetDeviceState GetSpecificDeviceErrorAsync GetSpecificDeviceState SetCommunicationState GetID , inherited from PNSlave Structure: CheckCurrentSupportedCommunicationState (Method) CheckSupportedCommunicationState (Method) GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) SetCommunicationState (Method)
PNSlaveDiag.CheckCurrentSupportedCommunicationState (METH) ¶ METHOD CheckCurrentSupportedCommunicationState : BOOL InOut: Scope Name Type Return CheckCurrentSupportedCommunicationState BOOL Input eRequestedState DED.DEVICE_TRANSITION_STATE
PNSlaveDiag.CheckSupportedCommunicationState (METH) ¶ METHOD CheckSupportedCommunicationState : BOOL InOut: Scope Name Type Return CheckSupportedCommunicationState BOOL Input eRequestedState DED.DEVICE_TRANSITION_STATE
PNSlaveDiag.GetDeviceDiagnosisInfo (METH) ¶ METHOD GetDeviceDiagnosisInfo : DED.ERROR InOut: Scope Name Type Return GetDeviceDiagnosisInfo DED.ERROR Input pData CAA.PVOID szSize CAA.SIZE Output szCount CAA.SIZE
PNSlaveDiag.GetDeviceErrorAsync (METH) ¶ METHOD GetDeviceErrorAsync : DED.PROC_STATE 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
PNSlaveDiag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR 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 InOut: Scope Name Type Return GetDeviceState DED.DEVICE_STATE Output xDiagnosisInfoAvailable BOOL eError DED.ERROR
PNSlaveDiag.SiblingNodeCount (PROP) ¶ PROPERTY SiblingNodeCount : CAA.Count