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

PCo Socket Agent

Former Member
0 Kudos
832

Hi everyone kindly help me to get answers for below query

1. Why sockets agents came in existence?

2. Few Manufacturing systems which supports sockets connection?

3. More details on sockets agents and connection?

Advance thanks for help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mahesh,

The Socket Agent is a TCP/IP client that connects to one or more TCP/IP servers defined by IP address/host in an agent definition.

  1. Socket Agent was introduced originally to support SAP EWM integration with Siemens S7-300 PLC's used in the distribution controls of a  warehouse.
  2. Common uses of the Socket agent outside of EWM are for receiving stream data over the socket from a device like a weigh scale, RFID reader, or serial devices (i.e., barcode scanners, etc.) connect to Ethernet via a Serial-Ethernet server
  3. You create one or more named connections in the Socket agent, each having a unique IP address/port combination. The connection can be used to receive either a fixed length stream or a terminated stream. for a Terminated stream, you can specify one or more termination characters; control characters (i.e., cr-lf, etc.) are specified using \nn where nn is the HEX value of a control character (for example, cr lf terminators are entered as \0D\0A).  Each connection in an agent instance exposes a single subscription tag named <name>,message, where <name> is the name of the connection in the Socket Agent.
  4. The Socket agent exposes some custom functions that can be executed from MII to write to a socket.  Please see this scn article: http://scn.sap.com/docs/DOC-54265

Regards, Steve

Former Member
0 Kudos

Thanks Steve for the detailed answer.

former_member185280
Active Contributor
0 Kudos

To piggy back Steve's excellent answer, most industrial label printers support this kind of interface as well. Here is a simple example I blogged about last year:

Industrial Label Printing with MII?

I have also come across a few legacy/custom shop floor systems that I have been able to integrate with this agent and therefore extend their useful life. 99% of the time though you will probably be dealing with a one way signal from a barcode scanner or weight scale.

Regards,
Christian

Former Member
0 Kudos

Thanks a lot Christian for the great example, it has help me a lot to understand the socket connection and its configuration. Very useful blog.

Answers (0)