cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PCo CONFIGURATIONS

Rajatbiswas26
Discoverer
0 Likes
694

Note: My previous account was marked as a former member(former_member532862). As a result, I am re-posting my blogs here for continued reference and visibility.


PCo:


PCo is known as Plant Connectivity. This tool is used to connect different plant applications. SAP MII has a dedicated PCo connector  to communicate with PCo.

In this document we will cover



  • Save file



  • Read file



  • OPC connection

 


PCo Panels:

Rajatbiswas26_0-1749366823758.png

 



Save file via PCo:


Steps:



  • Create a folder to save file

 

 

Rajatbiswas26_1-1749366823758.png

 



 



  • Create a source system to save file the folder

 

 

Rajatbiswas26_2-1749366823760.png

 





  • Create an agent using the source system



    • Enable the checkbox Run Agent Instance as an Executable

 

 

 

 

Rajatbiswas26_3-1749366823762.png

 









    • Configure the Query Ports

 

 

 

 

Rajatbiswas26_4-1749366823765.png

 





  • Create the PCo connector at MII

 

 

Rajatbiswas26_5-1749366823767.png

 





  • Use PCo query to send the file

 

 

Rajatbiswas26_6-1749366823771.png

 



Tag store Query

Rajatbiswas26_7-1749366823774.png

 



Execute the query

Rajatbiswas26_8-1749366823775.png

 



Result:



  • File created at the source folder

 

 

Rajatbiswas26_9-1749366823776.png

 



Read File Via PCo:





  • Create a File monitoring source system to read the folder

 

 

Rajatbiswas26_10-1749366823778.png

 





  • Create an agent using the File monitoring source system



    • Subscribe File Contain and File Name

 

 

 

 

Rajatbiswas26_11-1749366823780.png

 



Create a notification

Rajatbiswas26_12-1749366823782.png

 



Subscribe the output elements

Rajatbiswas26_13-1749366823784.png

 



Select a destination transaction

Rajatbiswas26_14-1749366823786.png

 





  • Result:The destination Transaction gets executed on creation of a new file in the folder.

Connect OPC Via PCo – Write Values in tag:





    • Create a OPC DA source system to connect KEP Wear

 

 

 

 

Rajatbiswas26_15-1749366823787.png

 



 

Connect OPC Via PCo – Send OPC Notification:





  • Create a OPC DA source system to connect KEP Wear

 

 

Rajatbiswas26_16-1749366823790.png

 



Subscribe the tags needed

Rajatbiswas26_17-1749366823792.png

 



Create a notification and add a trigger condition

Rajatbiswas26_18-1749366823794.png

 



Add the output elements

Rajatbiswas26_19-1749366823797.png

 



Select a destination transaction

Rajatbiswas26_20-1749366823803.png

 



 

Result:

On change on the values of the tag, the destination transition gets executed.

 

 

Note: When we create an agent, it creates an windows service.

Rajatbiswas26_21-1749366823804.png

 



OPC connection from MII





  • Create a OPC DA source system for MII

 


 

Rajatbiswas26_22-1749366823808.png

 



Configure the query Ports

Rajatbiswas26_23-1749366823811.png

 



Create a PCo connection in MII. * Shown above.

Create a PCo query to send data to OPC tag.

MII agent and windows Services


“Run agent instance as an executable” – In most of the implementations, we enabled this checkbox when we needed the agent to be used from an outside system like SAP MII. We also differentiated the agents by two categories:



  1. Agents will subscribe items and will send notification



  1. Agents will only work as a connector for the MII system

 


The agents which subscribe and notifies MII are always needed to be running to keep reading the subscribed items. Whereas for the 2nd type of agents do not have any subscription item and will only listen to the port for any incoming request. So, the second type of agents does not require to run as a service always.

We realized when we enable the “Run agent instance as an executable”, the service is in stopped condition but still working as desired.

Example Screenshots below:

Rajatbiswas26_24-1749366823814.png

 



 

Rajatbiswas26_25-1749366823817.png

 



 

 

Rajatbiswas26_26-1749366823823.png

 



 

After categorizing the agents as above, we saw the server resource utilization decreased comparing before when we used to create the agents by disabling “Run agent instance as an executable”.

Accepted Solutions (0)

Answers (0)