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

GET_SUBNET 100      'Return the SUBNET address

Assuming the SUBNET address stored in the PLC is 255.255.255.0:

DM[100] = 255
DM[101] = 255
DM[102] = 255
DM[103] = 0

 

Comments:
  • To return the SUBNET 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_SUBNET.
  • This command is ignored by i-TRiLOGI  simulator.
See Also SET_SUBNET, GET_DNS, GET_GATEWAY, GET_SMTP, GET_IPAddr

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