GET_DNS  dmindex
Purpose To return the DNS address of this PLC's built-in Ethernet port and store each '.' separated valued in DM[dmindex] to DM[dmindex+3].
Examples

GET_DNS 100    'Return the DNS address

Assuming the DNS address stored in the PLC is 192.168.1.101:

DM[100] = 192
DM[101] = 168
DM[102] = 1
DM[103] = 101

 

Comments:
  • To return the DNS address of a PLC's Ethernet 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_DNS, GET_IPAddr, GET_GATEWAY, GET_SMTP, GET_SUBNET

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