Author Topic: WX100 WIFI Connection Status  (Read 18946 times)

uknanoman

  • Newbie
  • *
  • Posts: 19
    • View Profile
WX100 WIFI Connection Status
« on: January 04, 2023, 10:38:01 AM »
Hi Support
               In my current application I would like to know the status of the WIFI Connection, is there a specific bit I can test that gives me the connection state of the WIFI so that I can make decisions based on whether it has connected to a WIFi network or not? I did have a look at the STATUS(14) bit 6 command but I am not sure if this distinguishes between the fact that the WX100 is connected to a wireless network or that a client (remote user) is connected through that network? My end game here is to only allow my application main code to run if the wx100 has connected to the local WIFI network and if not, then display a message to indicate the fact. Some extra clarification would be appreciated.
Regards Peter     

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: WX100 WIFI Connection Status
« Reply #1 on: January 04, 2023, 11:18:38 AM »
You can use STATUS(22) which indicates a successful WiFi connection when it returns a 1.

E.g.

IF STATUS(22) <> 1      ' WiFi is not yet connected. Do nothing now.
   RETURN
ENDIF
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

uknanoman

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: WX100 WIFI Connection Status
« Reply #2 on: January 04, 2023, 12:39:47 PM »
Hi Support
               Thanks for the prompt response. I notice that the online manual for the WX100 doesn’t seem to document this. Is it documented elsewhere?

Regards Peter

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: WX100 WIFI Connection Status
« Reply #3 on: January 04, 2023, 05:05:31 PM »
Thank you for the report.

We have added the following section to the Wx100 online documentation:

https://docs.triplc.com/#7304
Email: support@triplc.com
Tel: 1-877-TRI-PLCS