Skip to Content

PCo 15 - OPC,SSCE and Websockets

I try to connect PCo-Websocket with SSCE-Dashboads, but it doesn't work =(

If I create a Tag with the PCo-Simulator, it all works well.

What I've done:

I read the this guide : http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208cf8a0-70f4-3110-c3ab-dc765ad8474e?QuickLink=index&…

1. Install a Kepware 5.16 Server

2. Create a PCo-Source System for the Kepware-Server with Type OPC-DA

3. Create a Agent

4. Add Subscription-Items (Random1, Random2, Random3, Random4)

5. Configure the Query-Ports like mentioned in the guide.

6. Add a Template-Notification like mentioned in the guide.

7. Start the Agent

8. Create a Data-Server like mentioned in the guide

9. Create a Tag, connect it to the Data-Server, as Tag I use the name of the subscription-elemnt (Random1, etc.)

10. Put the Tag in a SSCE Dashboard in Current-Mode

If I execute the Dashboard than I see errors like that in the PCo log

"Tag null/Random1 with alias tag_A49F469A6D3EE7DE2C9B874B5CDC5EA2D not found."

I doesn't understand where the "null/" comes from?!

____________


What I also tried:

1. Created a Simple Websocket-Client

- I see that PCo is creating a Web-Socket-Server if I start the Agent

- I see that PCo is stopping the Socket-Server if I stop the Agent

2. Create a Websocket-Notification(not a template!) with the same Agent and connect the Simple Websocket-Client

- I see that PCo is creating a Web-Socket-Server if I start the Agent

- I see that PCo is pushing permantly data in to the socket

- I see that PCo is stopping the Socket-Server if I stop the Agent

____________

- It seems that the Kepware-Server works

- It seems that the PCo-Websocket works


____________


I hope anybody has an idea what is going wrong?!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 20, 2015 at 07:45 PM

    Hello Kay,

    It seems to me that you have not specified the correct path to the tag, because it fails as

    null/Random1

    You may need to specify the correct path from the Kepware server. For instance:

    Channel1/Device1/Random1

    Br, Alex.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2015 at 01:10 PM

    Hello Kay,

    Please create a MII Plant Information Catalog (PIC) Tag and link that tag to the Kepware Tag that you have defined. PIC Tags are what create WebSocket subscriptions to PCo; it uses the WebSocket port that is defined in the MII Data Server definition that points to the PCo Agent Instance.

    Regards, Steve

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Stefan,

      I think the 'operation is insecure' is an HTML5 issue for Websockets and Same Origin Policy. Look at MII System Properties section Cross Origin Resource Sharing. You may have to add some settings here to allow a cross origin access from within MII. It this cannot resolve your issue, first post a new question in this forum specific to the issue so it may get noticed by a different group of users. I don't have any way internally to set up a cross origin test to confirm this.

      Regards, Steve

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.