20 Gear Drive, Plymouth Ind. Park, Terryville, CT 06786
Tel: (860) 585-1254 Fax: (860) 584-1973 http://www.amci.com
61
EtherNet/IP Task
E
THER
N
ET
/IP E
XPLICIT
M
ESSAGING
5.1 Required Message Instructions
Only two instructions are required to transfer data between the PLC and the NX2A4E2. One instruction reads
data from the unit and the other writes data to it. The sample programs available from AMCI use this style of
programming. The two instructions are alternately triggered using the instruction’s ENABLE bits. The
remainder of the program controls when data in the source tags of the write instruction changes. The follow-
ing table gives the required attributes for the instructions.
Table T5.1 Message Instruction Attributes
Only RSLogix 500 version 8.0 or above can be used to configure Message Instructions to
communicate with an EtherNet/IP device. Message Instructions do not work correctly in ver-
sion 10 of RSLogix 500.
5.2 Create Four New Data Files.
An Integer file to contain the data read from the NX2A4E2. This file must be at least 21 words in
length.
An Integer file to contain the data written to the NX2A4E2. This file must be at least 10 words in
length.
A Message (MG) data file. This file must have at least two elements, one to control the Read
Operation and one to control the Write Operation.
An Extended Routing Information (RIX) data file. This file is used to store information used by
the Message Instructions. This file must have at least two elements, one for the Read Operation
and one for the Write Operation.
All controllers that support EtherNet/IP support explicit messaging. When using
explicit messaging, Message Instructions must be added to your program to com-
municate with the NX2A4E2. Explicit messaging can be use on platforms that also
support implicit messaging.
Rockwell Automation controllers which are programmed with the RSLogix 500
software only support explicit messaging. A MicroLogix 1100 will be used as an
example in this chapter.
Read Instruction
Write Instruction
Service Type
Read Assembly
Write Assembly
Service Code
E (hex)
10 (hex)
Class
4 (hex)
4 (hex)
Instance
100 (decimal)
150 (decimal)
Attribute
3 (hex)
3 (hex)
Length
42 bytes
20 bytes
Содержание NEXUS NX2A4E2
Страница 1: ...MICRO CONTROLS INC ADVANCED U s e r M anual Manual 940 0N090 E2 Technology...
Страница 16: ...NX2A4E2 INTRODUCTION NX2A4E2 User Manual ADVANCED MICRO CONTROLS INC 16 Notes...
Страница 28: ...DATA FORMATS NX2A4E2 User Manual ADVANCED MICRO CONTROLS INC 28 Notes...
Страница 52: ...PROTOCOL SPECIFIC INFORMATION NX2A4E2 User Manual ADVANCED MICRO CONTROLS INC 52 Notes...
Страница 56: ...INSTALLING AN EDS FILE EtherNet IP Protocol ADVANCED MICRO CONTROLS INC 56 Notes...
Страница 66: ...ETHERNET IP EXPLICIT MESSAGING EtherNet IP Protocol ADVANCED MICRO CONTROLS INC 66 Notes...
Страница 70: ...MODBUS TCP CONFIGURATION Modbus TCP Protocol ADVANCED MICRO CONTROLS INC 70 Notes...
Страница 76: ...LEADERS IN ADVANCED CONTROL PRODUCTS ADVANCED MICRO CONTROLS INC...