FB_AddDnsServer

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: A 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 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  |