Hi Dave,
Does the Client count decrement after 60 seconds of no activity?
I have PCo Agent Instances that do not have Subscriptions or Notifications and are used only for MII Queries, and they do not exhibit the behavior you are describing when connected to Kepware. Is it possible that something is closing the connection on the PLC or Network side? if the PLC is disconnected from Kepware there should be a Kepware Event Log entry indicating such.
Please try a few things:
- Provide a screen shot of the Kepware Project Properties OPC DA tab.
- Reset the Kepware Event Log and then set it to log all the events (right click on the Event Log area to access the settings and reset option).
- Set the PCo Source System Reliable Connections to 9999 Max. No of Retries, and 30 seconds interval.
- Set the PCo Agent Instance Log level to Verbose and restart the Agent Instance.
- Execute a Query from MII, then wait 60+ seconds to see if there are any errors or warnings listed in either the Pco Log or the Kepware log.
- Disable the Auto-Device Demotion in the Kepware Device settings, restart PCo Agent Instance and run queries and wait 60+ sec to see if that changes anything.
You can export the PCo and kepware logs and post here for review if you want.
Can you update PCo to the latest SP Patch? Kepware also has Version 5.15.585.0 out now as well. I would update both to the latest versions and try your tests again.
You can set up a single tag in the Subscription for the Agent instance, set an On True trigger and an expression for that tag that never evaluates to True, Assign the tag an expression on the Output tab, and set a destination to the Simulation Destination. When the agent is started, PCo will set up an Active subscription group with Kepware that will force Kepware to poll the tag for a value at the Update Rate defined in the Source System setting -- this is effectively what the OPC Quick Client does when you connect it.
Regards, Steve