EasyManuals Logo

Allen-Bradley MicroLogix 1400 User Manual

Allen-Bradley MicroLogix 1400
694 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #493 background imageLoading...
Page #493 background image
Publication 1766-RM001A-EN-P - October 2008
Socket Interface Using CIP Generic Messaging 491
When issuing multiple Read services, be careful to adjust the destination
data table that receives the data so that data is not overwritten. This
fragment of Structured Text logic shows an example of handling a partial
Read service.
/* copy the message we just read */
CPW ( ReadResponse.Buf[0], ReadBuf[CurrentLen], ReadResponse.BufLen );
CurrentLen := CurrentLen + ReadResponse.BufLen;
/* do we need to read more data get a complete message? */
if ( CurrentLen < ApplicationMsgLen ) then
/* issue another read */
ReadParams.BufLen := ApplicationMsgLen - CurrentLen;
MSG ( ReadMSG0 );
end_if;
Partial Writes
Your program may need to handle the situation, although uncommon,
where the Write service is unable to send all the specified bytes. Such a
situation can occur if the Write service is called multiple times before the
target application can receive the data.
If the Write service is not able to send all of the requested data, your
program should issue subsequent Writes to send the remaining data. Your
program should also adjust the source data table, so that old data is not
sent.
Socket Object Services
The Socket Object supports the following services.
IMPORTANT
If you do not issue consecutive Read services, the rest of the application
data will be lost. For example, if the application data
size is 100 bytes and you issued a Read service with 50 bytes, you should
read the rest of data 50 bytes with consecutive Read service. If you issued
a Write service without consecutive Read service, the rest of data 50 bytes
will be lost.
Socket Service
CreateSocket
OpenConnection
AcceptConnection
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1400

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley MicroLogix 1400 and is the answer not in the manual?

Allen-Bradley MicroLogix 1400 Specifications

General IconGeneral
Processor32-bit
Expansion ModulesUp to 7 expansion I/O modules
Power Supply24V DC or 120/240V AC
Programming SoftwareRSLogix 500
Communication PortsEthernet, RS-232/RS-485 combo port
Controller TypeProgrammable Logic Controller (PLC)
SeriesMicroLogix
Digital Outputs12
Analog Inputs6 (embedded)
Analog Outputs2 (embedded)
High-Speed Counter6 high-speed counters
Pulse Output2 (embedded)
Ethernet PortYes

Related product manuals