Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Software > Visualisation
Minimize Text   Default    Enlarge Text
 

Print
E-mail

How To Keep Trying To Open A Device That Fails To Connect - CX-Supervisor


When a device is first opened (either during start up, or from a script command), CX-Supervisor starts a heartbeat to monitor the status of the connection.  Therefore, if a communication error occurs an event can be logged.
 
However if CX-Supervisor cannot communicate with a device when it is first opened, it remains closed (and an event logged).  If you want to make your application continue trying to open devices in this situation, you can create a simple project level script:

  
 
This script will test every minute (at zero seconds) if a Boolean memory point 'PLCConnected' is FALSE (which indicates the device is not currently open). If this is the case then it attempts to open the device. The outcome of the OpenPLC will be stored in the PLCConnected memory point. Once the PLC is successfully open, this script will stop running.
 
 

Note: If you are using VBScript make sure you upgrade to the latest version as there were fixes added to ensure this works properly.

 

 




Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2010-08-09
Modified 2016-09-07
Views 2857

 

You are not logged in.