Input DescriptionΒΆ

../_images/fb8d7a93e38a210d0a33139000eba54e

EN BOOL (enable)

The Function Block is activated (EN = TRUE) or deactivated (EN = FALSE) via input EN. If the Function Block is active, the current values are available at the outputs. If the Function Block detects an Ethernet Communication Module at the specified SLOT, this is indicated by DONE = TRUE and ERR = FALSE and the read IP address is output.

SLOT BYTE (slot)

At input SLOT, the Communication Module slot (module number) is selected, the DNS request will be sent via this module. The Function Block only works with OnBoard Ethernet.

IP_ADR_SVR   DWORD    (IP address of the server)

At input IP_ADR_SVR, the IP address of the DNS server to be used for resolving the hostname is specified.

HOSTNAME   STRING    (hostname)

At input HOSTNAME, the domain name of the host to be resolved to an IP address is specified. This name is sent ot the DNS server, which answers with an IP address.