GET_WIFI_DNS  dmindex
Purpose To return the DNS settings of this PLC's WiFi port and store each '.' separated valued in DM[dmindex] to DM[dmindex+3].

Note: This defined setting only takes effect when the WiFi port is configured to use static IP address.

Examples

GET_WIFI_DNS 100    'Return the DNS settings for the WiFi port

Assuming the DNS server IP address for WiFi stored in the PLC is 192.168.1.1:

	DM[100]  = 192
	DM[101]  = 168
	DM[102]  = 1
	DM[103]  = 1
Comments:
  • To return the DNS address of a PLC's WiFi port into the variables DM[100] to DM[103] (e.g. to display on a HMI panel), you can invoke a function that runs GET_DNS.
  • This command is ignored by i-TRiLOGI  simulator.
See Also SET_WIFI_DNS
GET_WIFI_IPADDR, GET_WIFI_SUBNET, GET_WIFI_GATEWAY,GET_WIFI_MACID,
SET_WIFI_IPADDR, SET_WIFI_GATEWAY, SET_WIFI_SUBNET

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual