This optional method writes the I&M1 fields IM_TagFunction and IM_Tag_Location remanent to the PROFINET device and sets the TagFunction and TagLocation variables accordingly.

Signature

SetTags (

[in] IMTagSelectorEnumeration Tag_Selector,

[in] String Tag_Function,

[in] String Tag_Location

);

Argument

Description

Tag_Selector

If FUNCTION, Tag_Function shall be written, If LOCATION, Tag_Location shall be written, if BOTH both.

Tag_Function

String containing the new I&M1 | IM_Tag_Function to be written remanent to the device.

Tag_Location

String containing the new I&M1 | IM_Tag_Location to be written remanent to the device.

Method Result Codes

ResultCode

Description

Bad_InvalidArgument

The Server is not able to apply an argument. The argument may be too long or may contain invalid characters.

Bad_UnexpectedError

The Server is not able to apply the name because an unexpected error occurred. The device might be temporarily unavailable or unreachable due to network failure.