cancel
Showing results for 
Search instead for 
Did you mean: 

MII and Plant Connectivity 2.2 Bi-directional Socket Connection

Former Member
0 Kudos

Hi,

I have to send a command to a serial device from within MII via a socket connection to be able to have a respons from the device. I know in Plant Connectivity a socket connector can be setup. But is it also possible to send a message from MII to the serial device over Plant Connectivity, because it seems that the socket can only be setup to trigger notifications based on received messages from sources (and not from destinations). I read this functionality was planned to be build into Plant Connectivity 2.2, but I can't figure out how to set it up?

kind regards,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bram,

We can set up connection between PCO & MII through "UDC" connector. UDC connector is available in MII through

Data Services --> Data Servers --> New --> UDC and click on "OK" button.

You need to provide all PCO system details like server name, Port number etc and save the connection. Check the status of connectivity through Data Services --> Connection Status.

Go through the URL : http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm

Navigate to Data Services --> SAP MII Workbench --> Query Template --> Tag Query

Upon successful connection, open SAP MII workbench (Data Services --> SAP MII Workbench) and create a new "Tag Query" template to pull details from PCO.

So far, we pulled information from PCO, manipulated those values in MII and send these values to ERP to create notification. Let us know business scenario on which you need to send back information to PCO from MII.

Thanks

Rajesh.S

Former Member
0 Kudos

Hello Rajesh,

our business scenario goes as follows: we have a weiging device with a RS-232 connection. This device is sending weigh data strings with the actual value at the moment. The sending depends on how the balance is configured. We can set it into 'continuous' mode, but we can set it also into 'demand' mode. What we would like to see, is that on sending of a command from MII to the balance, via PCo socket connection (demand mode), we get the actual weight at that moment. I don't know if this is possible? The fact is that the data strings from the balance don't have tags, so it's just a stream of data coming in, which we need to filter out to get the actual weight.

We tried to build an UDC connection like you mentioned, but we didn't succeed to connect to PCo. We used port 50100 and 50050, but both failed.

Another thing we tried is setting up a PCo connector, this succeeded, but we couldn't send or read out data from the socket connection.

I don't know if we missed a step or if it's just not possible to query on sockets without predefined tags in the datastream.

regards,

former_member196557
Active Contributor
0 Kudos

Tthe Socket Agent is read only in PCo 2.1

In PCo 2.2 If you can create a Socket Agent, then A Socket Agent Instance; and on the Agent Instance config tabs there is a Query Ports tab, then you can configure the Port to connect to with the UDC datasource from MII. If there is no Query Ports Tab, then the Agent is still read only in PCo 2.2.

Another Option is to use Kepware UCON device driver to configure an OPC Interface to socket data, and then use MII to read/write OPC tags from an OPC Source Agent/Agent Instance Query Port.

You may also want to consider the PCo SDK and develop a custom TCP read/write Source Agent that will provide the interface.

- Steve

Former Member
0 Kudos

I've tried to make a UDC connection by specifying port 50100 (which is also MII port) in Query Ports tab and on connection parameters in MII, but that doesn't succeed. Anyway, it seems like I'm not going to be able to query on the socket connection anyway. I will try the PCo SDK to write my own connector, in my opinion the better solution because using Kepware UCON means buying another license. Making a connection with MII, PCo and Kepware UCON means 3 licenses. That seems alot for building connections

Thanks for the answer,

Bram

Answers (1)

Answers (1)

0 Kudos

Hello,

I need a Help,

when i try to create a draft notification and publish the notification to SAP PCo in notification management. i have this error. So, what i need do to solve this problem,??