Dns_lookup, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 181

Communications Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
168
DNS_LookUp
This function block performs a DNS lookup for a provided domain name (Address) using a specified DNS IP and
port and returns the number of answers, the resolved IPV4 address and the Time To Live of the returned IP.
Parameters
*
Parameter
Data Type
Description
VAR_INPUT
Default
B
Execute
BOOL
Upon the rising edge, all inputs are read and
the DNS lookup is performed. To perform a
lookup on a different address or perform the
same lookup again, change the value and re-
trigger the execute input.
V
LocalIP
YC_STRING16
The IP address of the controller on the local
network.
V
Address
YC_STRING128
The domain name to perform the look-up on
(not an IPV4 address).
V
DNSIP
YC_STRING16
The IP address of the DNS server to perform
the lookup through.
V
DNSPort
UINT
The port to connect to the DNS server
through.
UINT#53
E
TimeOut
TIME
The amount of time the DNS server has to
respond.
TIME#5s
VAR_OUTPUT
B
Done
BOOL
Set high upon the completion of a successful DNS lookup.