FB_SetTargetName

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 execution of the command is complete.
bError: This output is switched to TRUE as soon as 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).
Development environment |
Target platform |
PLC libraries to be linked |
---|---|---|
TwinCAT v2.10.0 and above |
BX9000 (165) firmware version >=1.12 |
TcBaseBX9000.lbx |