SysTargetGetNodeName
(FUN)
FUNCTION SysTargetGetNodeName : RTS_IEC_RESULT
- <description>
- Get a human readable name that identifies this node in the network.
NOTE: This could be the registered host name of the target in the network.
</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>
- InOut:
Scope
Name
Type
Comment
Return
SysTargetGetNodeName
RTS_IEC_RESULT
Input
pwszName
POINTER TO WSTRING
<param name=”pwszName” type=”IN”>Buffer that is filled with the name of the node. Type is 2 byte unicode!</param>
pnMaxLength
POINTER TO UDINT
<param name=”nMaxLength” type=”IN”>Maximum length of the node name including the trailing zero</param>