GET_WIFI_MACID  dmindex
Purpose To retrieve the 6-byte MACID of this PLC's WiFi port and store each byte in DM[dmindex] to DM[dmindex+5].
Examples

GET_WIFI_MACID 100    'Return the MACID for the PLC's WiFi port

Assuming the MACID IP address for the PLC WiFi is 00-1F-2E-10-01-0A

        DM[100]  = 0
        DM[101]  = 31    '(decimal, equals to 1F Hex)
        DM[102]  = 46    '(decimal, equals to 2E Hex)
        DM[103]  = 16    '(decimal, equals to 10 Hex)
        DM[104]  = 1     '(decimal, equals to 01 Hex)
        DM[105]  = 10    '(decimal, equals to 0A Hex)
Comments:
  • To retrieve the MACID of the PLC's WiFi port into the variables DM[100] to DM[105] (e.g. to display on a HMI panel), you can invoke a function that runs GET_WIFI_MACID.
  • This command is ignored by i-TRiLOGI  simulator.
See Also GET_WIFI_IPADDR, GET_WIFI_SUBNET, GET_WIFI_GATEWAY,GET_WIFI_DNS,
SET_WIFI_IPADDR, SET_WIFI_SUBNET, SET_WIFI_GATEWAY

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