FB_AddDnsServer

FB_AddDnsServer 1:

Up to a maximum of three DNS servers can be passed to the Bus Controller with this function block.

INPUT

VAR_INPUT
   bStart        : BOOL;
   sDNSServer    : STRING(15);
END_VAR

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

sDNSServer: string containing the IP address of the DNS server.

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