This suggestion was a good one. It gave me a couple of things to try.
However, it has a couple of flaws in my particular application.
The POST commands I send out in my script are generated by ONALARM commands.
If I hold off on setting up my ONALARM commands, I still miss the fault conditions.
Looking at my entire system, it made more sense for me to simply pass the “online status” of the eWON back to the PLC, and have the PLC wait until the internet connection is re-established before telling the eWON about any alarms it needs to report.
Broadening my horizons a bit, I realized that this isn’t just on powerup, but this scenario would apply any time my eWON is offline. (So far… so good.)
At this point, I figured I could just set a Boolean tag up in the eWON to pass along a online/offline status to the PLC, and just let the timer (TSET 1, 5) run all the time. However, the delay of 5 seconds means I might still miss messages, and the continuous checking 24/7 seems like a waste of processing power.
Is there a way to check the online/offline status of the eWON with something similar to an ONALARM command, where it is event driven rather than polled?