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

GET_SMTP 100    'Return the SMTP address and port

Assuming the SMTP address stored in the PLC is 192.168.1.101 and the port number is 587:

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

 

Comments:
  • To return the SMTP address of a PLC's Ethernet port into the variables DM[100] to DM[104] (e.g. to display on a HMI panel), you can invoke a function that runs GET_SMTP.
  • This command is ignored by i-TRiLOGI  simulator.
See Also SET_SMTP, GET_DNS, GET_GATEWAY, GET_IPAddr, GET_SUBNET

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