FB_SetTargetName

FB_SetTargetName 1:

With this function block a target name can be assigned to the Bus Controller.

INPUT

VAR_INPUT
   bStart     : BOOL;
   sTargetName: STRING(20);
END_VAR

bStart: the function block is activated by a rising edge at this input.

sTargetName: a string containing the new target name of the Bus Controller.

OUTPUT

VAR_OUTPUT
   bBusy     : BOOL; 
   bError    : BOOL;
   iErrorId  : WORD;
END_VAR

bBusy: this output remains TRUE until the command execution is complete.

bError: this output is switched to TRUE if an error occurs during the execution of a command. The command-specific error code is contained in iErrorId.

iErrorId: contains the command-specific error code of the most recently executed command (see table).

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v2.7.0 and above

BC9xxx (165) firmware version >=0xB6

TcIPUtilitiesBC.Lb6