Ethernet/Ip - Getting Started User'S Manual: Version: 1.00 (October 2008) Model No.: Maepgetst-Eng
Ethernet/Ip - Getting Started User'S Manual: Version: 1.00 (October 2008) Model No.: Maepgetst-Eng
Ethernet/Ip - Getting Started User'S Manual: Version: 1.00 (October 2008) Model No.: Maepgetst-Eng
net
All information contained in this manual is current as of its creation/publication. We reserve the right to change the contents of this manual
without warning. The information contained herein is believed to be accurate as of the date of publication; however, Bernecker + Rainer
Industrie-Elektronik Ges.m.b.H. makes no warranty, expressed or implied, with regards to the products or the documentation contained
within this book. In addition, Bernecker + Rainer Industrie-Elektronik Ges.m.b.H. shall not be liable in the event of incidental or consequential
damages in connection with or resulting from the furnishing, performance, or use of these products. The software names, hardware names,
and trademarks used in this document are registered by the respective companies.
Copyright © B&R – Subject to change without notice 1
MAEPGETST-ENG_V100_10_2008.doc
www.infoPLC.net
I Table of Contents
1 X20BC0088 Overview................................................................................................. 3
1.1 System Overview.............................................................................................................................4
1.1.1 LED Status Indicators...................................................................................................................................... 5
1.1.2 Node Switches ................................................................................................................................................ 6
1.2 Supported 3rd Party Hardware and Software ....................................................................................7
1.2.1 Supported Allen-Bradley® CPUs..................................................................................................................... 7
1.2.2 Supported Allen-Bradley® Software................................................................................................................ 7
1.3 Overview of Programming Options...................................................................................................7
1 X20BC0088 Overview
TM
The EtherNet/IP bus controller (X20BC0088) allow connecting X20-, X67-, and XV-I/O modules to an Allen-
TM
Bradley® Master (Scanner) with the EtherNet/IP protocol. B&R IO can be configured with default module
TM
functionality directly with RSLogix 5000, or configured using FieldbusDESIGNER. This tool features a com-
prehensive help system for first time users, and offers a very familiar interface for experienced B&R users.
With FieldbusDESIGNER, users can configure modules, get details on I/O mapping, and even create com-
plete project files giving easy access to user defined I/O data points instead of byte arrays. Fieldbus-
DESIGNER can be downloaded for free (www.br-automation.com).
TM TM
The EtherNet/IP bus controller was created in compliance with the EtherNet/IP specification governed by
ODVA (Open DeviceNet Vendor Association). When using FieldbusDESIGNER, the default CPU for the gen-
erated project is the 1769-L35E CompactLogix® Controller. However, the generated project can be used for
any Logix platform.
This document will provide the programmer with a detailed description of the bus controller including how to
setup, configure and diagnose the module. Further information about this module can be obtained from the
document list in Section 8: Appendix.
FieldbusDESIGNER
Allen-Bradley®
I/O configuration
Allen-Bradley® CPU
I/O device
1) ‘Mod Status’ and ‘Net Status’ LEDs are green/red dual LEDs
2) If this will not stop blinking, there is a configuration issue with your system
0x01 - 0x7F The last position of the IP address saved in flash memory is temporarily re-
placed with the station number. The IP address stored in the flash memory is
not changed.
IP address: 192.168.100.1
Network mask: 255.255.255.0
Gateway: 192.169.100.254
The bus controller can be addressed via Windows® NetBIOS service (only if no other routers or gateways are in
the way):
Primary NetBIOS name is identical to DHCP host name (“br” + MAC address)
Secondary NetBIOS name is: “br” + “eip” + station number (three decimal places)
This means that the following secondary NetBIOS name is generated for a station number: e. g. 0xD7 (dec. 215): "breip215"
For station number 0x00 the secondary NetBIOS name is identical to DHCP host name.
FieldbusDESIGNER setup allows the programmer more configuration options. Modules can be configured
beyond their default setups and I/O points can be assigned a descriptive name. FieldbusDESIGNER gener-
ates an *.L5K file which can be directly imported with RSLogix® 5000.
2 Default Setup
TM
Default setup is done completely within RSLogix 5000 using each X20 and X67 module’s internally stored
default setup. If necessary, this default setup can be altered later using explicit messages or by directly con-
necting to the bus controller. This setup mode is recommended for systems which have a limited number of
Digital and Analog I/O points, or systems that allow for modules to operate in their default configuration. Addi-
tional modules can be added to a system at any time, with no (or very limited) changes to the system re-
quired.
On the Ethernet Port, under Communications, insert a generic Ethernet Module “ETHERNET-MODULE”
Configuration Assembly
* 400 Bytes is the maximum configuration size. When using default setup, the size for the configuration as-
sembly must be set to 0, since no configuration data is sent to the modules.
Output Assembly
Input Assembly
TM
When online with the CPU in RSLogix 5000, the input and output channels can be accessed through the
I/O assembly tags.
Digital Outputs: BC0088:O.Data[120] is the offset for digital outputs. The first digital output in the system is
addressed to BC0088:O.Data[120].0, the second to BC0088:O.Data[120].1 and so on.
Digital Inputs: BC0088:I.Data[120] is the offset for digital inputs. The first digital input in the system is ad-
dressed to BC0088:I.Data[120].0, the second to BC0088:I.Data[120].1 and so on.
Analog Outputs: BC0088:O.Data[0] is the offset for analog outputs. Each analog output is represented by an
Integer value, or two SINT values. The first analog output in the system is addressed to SINTs
BC0088:O.Data[0] and BC0088:O.Data[1], the second to BC0088:O.Data[2] and BC0088:O.Data[3], and so
on.
Analog Inputs: BC0088:I.Data[0] is the offset for analog inputs. Each analog input is represented by an Inte-
ger value, or two SINT values. The first analog input in the system is addressed to SINTs BC0088:I.Data[0]
and BC0088:I.Data[1], the second to BC0088:I.Data[2] and BC0088:I.Data[3], and so on.
3 FieldbusDESIGNER Setup
FieldbusDESIGNER is used to configure B&R fieldbus components and provides a programming environ-
ment very similar to B&R Automation Studio. Modules can be setup beyond their default configuration, and
unique names can be assigned to each module’s I/O points. When configuration is complete, a build is per-
TM
formed which generates an *.L5K file. This file can be imported into RSLogix 5000.
FieldbusDESIGNER is available on the B&R website under section ‘Service Material Related Downloads
Automation Software Automation Studio FieldbusDESIGNER’:
http://www.br-automation.com/cps/rde/xchg/br-productcatalogue/hs.xsl/services_120347_ENG_HTML.htm
3.1.1.1 Overview
The following sections will describe in detail, how to make a project, insert and configure modules, build an
*.L5K file, and go online with an Allen-Bradley® CPU. The last section will cover how to transfer the setup
from one project to another. Transferring between projects will allow the programmer to insert the bus control-
ler into an already existing project, or to transfer the files to a different CPU type.
2) Select a Name and Path for the project, and then press next.
4) Select a CPU module for the new project. The CPU defaults to a CompactLogix®. If the CPU needs
TM
to be changed, this should be done in RSLogix 5000.
5) Open the EtherNet/IP Hardware Tree. Right click on the CPU and select “Open EtherNet/IP.”
6) Insert a BC0088 Module. Right click in the EtherNet/IP network and select “Insert.”
8) The X20BC0088 module can be configured by right clicking on it in the hardware tree and selecting
“Open Adapter Configuration.”
9) The IP address, X2X Cycle time, IO settings and other options can be set through the adapter configura-
tion.
More information about the X2X bus is inside the FieldbusDESIGNER help:
10) Open the X2X link to add X20 and X67 modules. Right click on the X20BC0088 module inside the
hardware tree and select “Open X2X Link.”
12) Right click on the X2X link and insert the modules.
13) One X20DI8371 Digital Input card and one X20DO8322 Digital Output card have been inserted for this
example.
14) IO variable names can be inserted in the “PV or Channel Name” for each data point.
15) Each channel has a default name. For instance, the first input channel has the name “DigitalInput01” as
its default name. If no value is inserted in the “PV or Channel Name” column, then “DigitalInput01” is the
name associated with this channel. For this example the variable name “Input” has been added. Modules
can be configured by right clicking on the module within the hardware tree and selecting “Open IO Con-
figuration”
17) Additional information will be provided in the output window following the build.
th
The 4 line of text for the build, shows the path of the generated *.L5K file.
Created RSLogix 5000 project file:
C:\projects\TEMP\FBD\MyFirstProject\Output\EthernetIP_CPU1.L5K
The IP address, number of modules, Requested packet interval (RPI) time, Assembly sizes, and ZIP com-
pression rate are all shown. If any assembly size exceeds the maximum, a build error will be displayed. ZIP
compression rate refers to the compression rate of the configuration assembly. Compressed configuration
data allows for more modules per bus controller. This option can be disabled from the Controller Configura-
tion menu shown in Section 3.1.1.3: Configuration of Bus Controller.
The ST1_inp is copied to the ST1:I input assembly each cycle in the “CopyInputData” program of the Main-
Task. The ST1:O output assembly is copied to the ST1_out tag in the “CopyOutputData” program of the
MainTask.
This will copy the BC0088 module and its assemblies into the new project.
3) If the IO channel names want to be preserved, the User-defined data types must be transferred next. The
data types can be transferred the same as the module: by drag and drop between open instances. If ac-
TM
cess directly to the IO assembly please reference Section 2.1.3 Online with RSLogix 5000.
4) Within the Controller tags, define tags for the Input and Output Assemblies. Controller tags, can be de-
fined, or they can be dragged and dropped between instances. Also, transfer the lifecycle counters (copy-
InpCounter, copyOutCounter, and mainCounter).
5) Transfer the programs between the projects. Programs can be dragged and dropped like the bus control-
ler and data types.
6) Ensure the order stays the same: Copy Inputs, Execute main program, and Copy Outputs.
7) Ensure the IO structures are tied correctly to the copy function blocks.
If FieldbusDESIGNER is used to build a system, the size of the configuration, Output, and Input assemblies is
given upon successful project build.
If more modules are required, they can be split between multiple bus controllers. The bus controller network
can have up to a few hundred analog and a few hundred digital I/O modules (253 modules in total).
• Serial interfaces (X20CS10x0) can only be used behind a bus controller when operated in default
‘bus controller’ function model called “flat stream” mode
• Stepper modules (X20SMxxxx) have to be operated in “ramp” function model
The X2X cycle time can be adjusted in FieldbusDESIGNER under ‘Adapter Configuration’ or through accessing
attribute ID 0x80 of the ‘bus controller’ object (class 0x64, instance 0x1). The default value is 1ms. After making
changes, the bus controller must be restarted for the changes to take effect.
To change the X2X cycle time within FieldbusDESIGNER, right click the X20BC0088 bus controller and
select “Open Adapter Configuration”
Source Length = 6 = length of address and data in bytes: address is 2 bytes, data is always 4 bytes
Source Element = array of 6 SINT: address is write_data[0…1], data is write_data[2..5]
Register addresses and configuration data can be taken from the “MAX20REGISTER-ENG” and
“MAX67ENG” document.
Configuration registers can be read by calling service 0x32 of the same object:
Source Length = 2 = length of register address in bytes
Source Element = array of 2 SINT: address is write_data[0…1]