???Why can’t I use a function name in the topic title without getting the message: “The title is not clear, is it a complete sentence?” ???
Now for the topic:
To verify if the connections with numerous PLC’s still exist, we have made a watchdog gateway module.
The watchdog is started as follows:
this.getGatewayContext().getExecutionManager(). registerAtFixedRateWithInitialDelay( getClass().getName(), TASKNAME, this.watchDog, application.getPollIntervalSeconds(), TimeUnit.SECONDS, application.getStartupDelaySeconds());
In the Ignition 7.9.3 documentation the function is defined as follows at http://files.inductiveautomation.com/sdk/javadoc/ignition784rc1/com/inductiveautomation/ignition/common/execution/impl/BasicExecutionEngine.html
void registerAtFixedRateWithInitialDelay(java.lang.String owner, java.lang.String name, java.lang.Runnable command, int rate, java.util.concurrent.TimeUnit unit, int initialDelay)
The application.getStartupDelaySeconds() is necessary as the opc is not available immediately adn so the watchdog delays startup with 10 (seconds).
These 10 (seconds) however appear to be to small so we increased it to 60 but that resulted in module not starting at all.
The sampling rate of the watchdog is set to 6 seconds.
Question: Is the initialDelay in the same unit as is specified as the unit for rate?
In our case that would mean 10 seconds and 60 seconds.
What prevents our module from starting?
Any help would be appreciated.