GET_WIFI_GATEWAY  dmindex
Purpose To return the Internet gateway 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_GATEWAY 100    'Return the GATEWAY address

Assuming the WiFi Gateway address settings 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 GATEWAY 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_GATEWAY.
  • This command is ignored by i-TRiLOGI  simulator.
See Also SET_WIFI_GATEWAY
GET_WIFI_IPADDR, GET_WIFI_SUBNET, GET_WIFI_DNS,GET_WIFI_MACID,
SET_WIFI_IPADDR, SET_WIFI_SUBNET,SET_WIFI_DNS

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