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

GET_GATEWAY 100    'Return the GATEWAY address

Assuming the GATEWAY address 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 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_GATEWAY.
  • This command is ignored by i-TRiLOGI  simulator.
See Also SET_GATEWAY, GET_DNS, GET_IPAddr, GET_SMTP, GET_SUBNET

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