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.

502 Socket Interface Using CIP Generic MessagingN file for receiving contains: 12 bytes + n bytesNx:0 Nx:1 Nx:2, Nx:3 Nx:4 Nx:5 Nx:6…FromAddrFamily(2 bytes)FromAddrPort(2 bytes)FromAddrIP Address(4 bytes)BufLen(2 bytes)Reserved(2 bytes)Buf(n bytes)• Structure of FromAddr :• Family : Contains the address family. Must be 2.• Port : Contains a local port number.• Addr : Contains an IP address.• BufLen : Contains the number of bytes of data received.• Buf : Contains the data.WriteThe Write service sends data on a socket. You can specify the number ofbytes to send. The Write service attempts to send the requested number ofbytes and returns the number of bytes sent.ParameterValueService TypeWriteService Code4E (hexadecimal)Class342 (hexadecimal)Instance0. Use a relay ladder instruction to move the returnedinstance number from a CreateSocket service into theMGx:y.TFN element of a MSG instructionAttribute 0Publication <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!