13.07.2015 Views

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

482 Socket Interface Using CIP Generic MessagingTypical Sequence of Transactions for a TCP ServerThe exact sequence of sending and receiving data depends on theapplication protocol.MSG in LadderProgramCreateSocketPort=49100AcceptConnectionTimeout = 10000 msReadTimeout = 10000 msEthernet Subsystem10.10.10.10CreateSocket ResponseInstance=102(ListenTCP Connection)(Accept TCP Connection)AcceptConnection ResponseData = abcRead ResponseData = abcRemote Ethernet Device10.10.10.11Open TCP ConnectionPort=49100Send DataData = abcWriteData = xyzData = xyzWrite ResponseThe response is returned to thecontroller as soon as the data is sentReceive DataTypical Sequence of Transactions For UDP Without OpenConnectionThe following diagram shows a typical sequence of socket interfacetransactions for UDP communications without using the OpenConnectionservice to specify the destination address. In this case, the <strong>MicroLogix</strong>controller specifies the destination for each datagram and receives thesender's address along with each datagram it receives.The example below shows the <strong>MicroLogix</strong> controller sending data to adevice and then the device sending a response. This is a typical sequenceof transactions. Depending on the application protocol, the device couldinstead initiate sending data to the <strong>MicroLogix</strong> controller. Additionally,Publication <strong>1766</strong>-<strong>RM001A</strong>-<strong>EN</strong>-P - October 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!