LF: DNS Resolver

Use this function to resolve a server IP address from its host name.

 

 

Parameter Name

Purpose

A

Host Name

This is the name to resolve.
You can enter it as a Power-up value, or link a data tag.
Make sure that the ASCII string is long enough.

Note that the Host Name is limited to 63 characters.

B

DNS in Progress

Turns OFF when the name has been resolved.

C

Success Bit

Turns ON when the remote device answers.
Reset by user.

D

Error Code

Status codes are:
0 – OK

1 – In progress

9 – No reply from server

-1 – Empty Host Name (parameter A),
or Host Name string exceeds 63 characters

-10 - Internal error, contact Support

E

Remote IP

The IP address of the host name that was resolved.

 

The combined maximum number of active requests for DNS Resolver and PIN is 16.

 

 

Related Topics

MODBUS

Web Server

Communications: COM Ports and DataCom

PC-PLC COM

Protocols: Third-party

TCP Server