KEPserverEX restart without restarting Ignition gateway?

I assisting with an Ignition installation running on an old Windows server. It's using KEPserverEX V6.13 to connect to a bunch of Elau / Schneider PacDrives. Every few weeks the KEPserverEX seems to stop providing data.

We don't seem to be able to reinitialise the KEPserverEX without closing it down, stopping the Ignition gateway, restarting the KEP package and then restarting Ignition.

What are we missing here?

Don't know, you'll have to get some logs and maybe Wireshark captures. What version of Ignition is this?

Have you by chance tried using system.opc.setServerEnabled() on the Ignition side?

1 Like

Ignition V8.1.42.

Search these terms for loggers and set them to DEBUG:

  • OpcUaSubscriptionModel
  • OpcUaSubscriptionSynchronizer

Bonus points if you disable security on the connection and start a Wireshark capture.

Then re-initialize Kepware and wait a bit for Ignition to attempt to reconnect and re-establish subscriptions.

No!
So running this in Script Console,

# Retrieve a list of all servers in the Gateway.
allServers = system.opc.getServers(True)
 # Iterate through each server.
for server in allServers:
	print server

returns,

Ignition OPC-UA Server
Machine12 OPC-UA (This is reading a KEPserverEX on a machine HMI)
Kepware          (The troublesome baby)
B&R PVI Server

So that's something new for me. Thanks.

What would be the plan here? Create a simple app with a button to loop through allServers looking for 'Kepware' and set that to True?

I can set that up for the next occurence.

@Kevin.Herron, the KEPserverEX is on the same computer as Ignition. What am I going to see with Wireshark?
We'll have a look at the logs as you suggest.

Thanks, chaps.

The same thing you'd see if it wasn't on the same computer as long as you select the right network adapter (probably loopback in this case).

2 Likes

That's what I did. :slight_smile:

1 Like