NSClientTaskSearchForSpecificNode (FB) ¶ FUNCTION_BLOCK NSClientTaskSearchForSpecificNode EXTENDS NSClientTaskBase IMPLEMENTS IResolveCallbackHandler Properties: Pending Finished , inherited from NSClientTaskBase Methods: FB_Exit GetFoundNode IsMatch IsOurAddress SetSearchInfo abstrCallbackFailed abstrCallbackReceived abstrInitialized prvParentAddrMatches Initialize , inherited from NSClientTaskBase ResolveCallback , inherited from NSClientTaskBase Structure: FB_Exit (Method) GetFoundNode (Method) IsMatch (Method) IsOurAddress (Method) Pending (Property) SetSearchInfo (Method) abstrCallbackFailed (Method) abstrCallbackReceived (Method) abstrInitialized (Method) prvParentAddrMatches (Method)
NSClientTaskSearchForSpecificNode.FB_Exit (METH) ¶ METHOD FB_Exit : BOOL InOut: Scope Name Type Return FB_Exit BOOL Input bInCopyCode BOOL
NSClientTaskSearchForSpecificNode.GetFoundNode (METH) ¶ METHOD GetFoundNode : UDINT InOut: Scope Name Type Return GetFoundNode UDINT Inout node NSC_CompleteNodeInfo
NSClientTaskSearchForSpecificNode.IsMatch (METH) ¶ METHOD IsMatch : BOOL InOut: Scope Name Type Return IsMatch BOOL Inout ni NSC_CompleteNodeInfo
NSClientTaskSearchForSpecificNode.IsOurAddress (METH) ¶ METHOD IsOurAddress : BOOL This function tries to derive whether the given address points to the current device. If there is any kind of error during these checks, we assume that it belongs to a different device. InOut: Scope Name Type Return IsOurAddress BOOL Inout ni NSC_CompleteNodeInfo
NSClientTaskSearchForSpecificNode.Pending (PROP) ¶ PROPERTY Pending : BOOL
NSClientTaskSearchForSpecificNode.SetSearchInfo (METH) ¶ METHOD SetSearchInfo : UDINT InOut: Scope Name Type Return SetSearchInfo UDINT Input udiDeviceType UDINT udiDeviceId UDINT udiDeviceVersion UDINT pwsNodeName POINTER TO WSTRING stParentRelations STRING searchFlags NSClientSearchNodeFlags
NSClientTaskSearchForSpecificNode.abstrCallbackFailed (METH) ¶ METHOD abstrCallbackFailed : UDINT InOut: Scope Name Type Return abstrCallbackFailed UDINT Input udiError RTS_IEC_RESULT
NSClientTaskSearchForSpecificNode.abstrCallbackReceived (METH) ¶ METHOD abstrCallbackReceived : UDINT InOut: Scope Name Type Return abstrCallbackReceived UDINT Input addrNode NSC_NodeAddress nodeInfo NSC_NodeInfoInt
NSC_NodeInfoInt (STRUCT) ¶ TYPE NSC_NodeInfoInt : STRUCT InOut: Name Type Comment wInfoVersion UINT can be used to decide which members are valid. In case of wVersion=VersionWithoutDeviceId the vendor- and the device name will not be valid uiMaxChannels UINT bIntelByteOrder BOOL uiParentAddrSize UINT uiNodeNameLength UINT uiDeviceNameLength UINT uiVendorNameLength UINT udiTargetType UDINT udiTargetId UDINT udiTargetVersion UDINT bDynamicallyAllocatedNodeName BOOL IF True then the member pwsNodeName has to be used instead of wsNodeName! bStaticNodeNameOverflow BOOL If True then the wsNodeName will contain some data but it is cut at the end! wsNodeName WSTRING(Constants.MaxStaticNodeNameLength) fixed length wstring, only if <see cref=”bDynamicallyAllocatedNodeName”> = FALSE pwsNodeName POINTER TO WSTRING arbitrary length wstring, only if <see cref=”bDynamicallyAllocatedNodeName”> = TRUE bDynamicallyAllocatedDeviceName BOOL for the meaning <see cref=”bDynamicallyAllocatedNodeName”> bStaticDeviceNameOverflow BOOL for the meaning <see cref=”bStaticNodeNameOverflow”> wsDeviceName WSTRING(Constants.MaxStaticDeviceNameLength) fixed length wstring, only if <see cref=”bDynamicallyAllocatedDeviceName”> = FALSE pwsDeviceName POINTER TO WSTRING arbitrary length wstring, only if <see cref=”bDynamicallyAllocatedDeviceName”> = TRUE bDynamicallyAllocatedVendorName BOOL for the meaning <see cref=”bDynamicallyAllocatedNodeName”> bStaticVendorNameOverflow BOOL for the meaning <see cref=”bStaticNodeNameOverflow”> wsVendorName WSTRING(Constants.MaxStaticVendorNameLength) fixed length wstring, only if <see cref=”bDynamicallyAllocatedVendorName”> = FALSE pwsVendorName POINTER TO WSTRING arbitrary length wstring, only if <see cref=”bDynamicallyAllocatedVendorName”> = TRUE bDynamicallyAllocatedParentAddr BOOL for the meaning <see cref=”bDynamicallyAllocatedNodeName”> bStaticParentAddrOverflow BOOL for the meaning <see cref=”bStaticNodeNameOverflow”> addrParent ARRAY [0..Constants.MaxStaticParentAddrLength] OF NSC_AddrComponent fixed length array, only if <see cref=”bDynamicallyAllocatedParentAddr”> = FALSE pAddrParent POINTER TO NSC_AddrComponent arbitrary length array, only if <see cref=”bDynamicallyAllocatedParentAddr”> = TRUE