Skip to main content
12-Amethyst
September 14, 2022
Solved

OPC Aggregator new initialize from Thingworx

  • September 14, 2022
  • 1 reply
  • 1769 views

Use the OPC Aggregator to connect to machines via OPC UA to get the signals in Thingworx.
Sometimes it is necessary to reinitialize the connection manually, which in my opinion is only possible via the OPC Aggregator.

 

Is there a way to start a service from thingworx that can trigger the new initialization of the OPC Aggregator?

 

If someone from PTC is reading this, is there a chance of getting a feature in the future, new initialization of the OPC Aggregator  from thingworx,  to automate operations?

 

Thanks for help

Best answer by wcui

Kewpare Rest API interface supply ReinitializeRuntime service to reinitialize runtime, URL as below. I tested with Postman, it worked.

    https://<hostname_or_ip>:<port>/config/v1/project/services/ReinitializeRuntime

If you download Kepware manual, refer to page 218 for more details.

    https://www.kepware.com/getattachment/e1943820-ef3c-4932-b055-4ef2a80ab863/kepserverex-manual.pdf

I think OPC Aggregator also supply same rest API service, can you verify on your side?

1 reply

wcui16-PearlAnswer
16-Pearl
September 15, 2022

Kewpare Rest API interface supply ReinitializeRuntime service to reinitialize runtime, URL as below. I tested with Postman, it worked.

    https://<hostname_or_ip>:<port>/config/v1/project/services/ReinitializeRuntime

If you download Kepware manual, refer to page 218 for more details.

    https://www.kepware.com/getattachment/e1943820-ef3c-4932-b055-4ef2a80ab863/kepserverex-manual.pdf

I think OPC Aggregator also supply same rest API service, can you verify on your side?

12-Amethyst
September 16, 2022

Thanks for the help and the link to the document.
I had completely overlooked the API function here.


The API function could be found via OPC Aggregator Administration and still had to be set up here.
Then release the necessary ports 57429 or 57529 on the server and network.
The documentation helped for the rest.
 https://www.kepware.com/getattachment/e1943820-ef3c-4932-b055-4ef2a80ab863/kepserverex-manual.pdf

Many thanks