Allen-Bradley MicroLogix 1400 Instruction Manual page 504

Programmable controllers
Hide thumbs Also See for MicroLogix 1400:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
502
Socket Interface Using CIP Generic Messaging
Publication 1766-RM001A-EN-P - October 2008
N file for receiving contains: 12 bytes + n bytes
Nx:0
Nx:1
FromAddr
FromAddr
Family
Port
(2 bytes)
(2 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.
Write
The Write service sends data on a socket. You can specify the number of
bytes to send. The Write service attempts to send the requested number of
bytes and returns the number of bytes sent.
Parameter
Value
Service Type
Write
Service Code
4E (hexadecimal)
Class
342 (hexadecimal)
Instance
0. Use a relay ladder instruction to move the returned
instance number from a CreateSocket service into the
MGx:y.TFN element of a MSG instruction
Attribute
0
Nx:2, Nx:3
Nx:4
Nx:5
FromAddr
BufLen
Reserved
IP Address
(2 bytes)
(2 bytes)
(4 bytes)
Nx:6...
Buf
(n bytes)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents