How To Configure An Anybus Controlnet Adapter/Slave Module With Rsnetworx For Controlnet
How To Configure An Anybus Controlnet Adapter/Slave Module With Rsnetworx For Controlnet
doc
SCM-7032-032
Rev 2.03
Saved: 2008-03-05
HMS Industrial Networks AB Page 1 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
History
Revision Date Description Responsible
0.10 2003-04-16 Document created Joakim Wiberg
0.20 2003-07-30 Updated layout Joakim Wiberg
2.00 2007-06-11 Major revision Thorbjörn Palm
2.01 2007-10-04 Minor corrections Thorbjörn Palm
2.02 2007-12-06 Updated layout Thorbjörn Palm
2.03 2008-03-05 Updated layout Thorbjörn Palm
Saved: 2008-03-05
HMS Industrial Networks AB Page 2 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Contents
1. Applicable Anybus products ...................................................................................................................4
2. Requirements ............................................................................................................................................4
3. Solution overview .....................................................................................................................................5
3.1. Hardware Settings.............................................................................................................................5
4. ControlNet configuration.........................................................................................................................6
4.1. Configuring the PLC using RSLogix 5000.......................................................................................6
4.2. Configuring the Scanner using RSNetWorx...................................................................................13
4.2.1. Importing the EDS file ...............................................................................................................13
4.2.2. Online mode ...............................................................................................................................14
4.2.3. Offline mode...............................................................................................................................16
4.2.4. Downloading the configuration ..................................................................................................16
5. Anybus configuration.............................................................................................................................19
5.1. Communicator configuration ..........................................................................................................20
5.2. X-gateway configuration ................................................................................................................22
6. Testing .....................................................................................................................................................24
6.1. Monitoring the tag...........................................................................................................................25
Saved: 2008-03-05
HMS Industrial Networks AB Page 3 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
2. Requirements
Description Name / Type Version
Rockwell PLC Allen Bradley ControlLogix n.a.
5000 with 1756-CNB
ControlNet Scanner card,
Rockwell communication software RSNetWorx for ControlNet 8.00.00
PLC software RSLogix 5000 13.04.00
EDS-file for the Anybus-S ControlNet interface and 83-7278- 1.7
the Anybus X-gateway ControlNet adapter EDS_ABS_CNT_V_1_7.eds
EDS file for the Anybus Communicator ControlNet 111-2644-abc-cnt.eds 1.0
X-gateway Network Interface Addendum Anybus X-gateway 1.00
ControlNet Adapter Interface,
Network Interface Addendum
X-gateway User Manual X-gateway Generic , User 1.10
Manual
Communicator User Manual Anybus Communicator for 2.53
ControlNet, User Manual
Adapter Fieldbus Appendix Anybus-S ControlNet, 2.00
Fieldbus Appendix
Power supply 24VDC n.a. n.a
Configuration cables n.a. n.a.
Null modem cable (Supplied with the Anybus X- n.a. n.a.
gateway)
Note: The EDS files can be downloaded at the website www.anybus.com.
Saved: 2008-03-05
HMS Industrial Networks AB Page 4 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
3. Solution overview
This application note describes how to configure an Anybus product with a Rockwell PLC using RSLogix
5000 and RSNetWorx for ControlNet. Below you can find an overview of the system described in this
document. Other nodes may be attached to the network, but are not necessary.
The configuration is described in several steps.
1. At first the configuration of the PLC and the Scanners I/O list are explained.
2. Secondly the scheduling on the network is described.
3. Finally the configuration of the Anybus module is explained.
Note: This document is valid for all Anybus ControlNet slave/adapter products, however sections written in
Italics describe the configuration of a specific product.
The contents describe step by step how a configuration is done. This document assumes the reader is familiar
with industrial communication, ControlNet networks and Anybus Communicator and X-gateway.
PLC PLC
Master Master
ControlNet ControlNet
ControlNet Slave
ControlNet
Slave
Anybus Communicator Anybus X-gateway
Other network
Serial E.g. Ethernet
Network Ethernet
PC
Client
Figure 1 Hardware connection overview.
SCM-7032-032
Rev 2.03
4. ControlNet configuration
4.1. Configuring the PLC using RSLogix 5000
This chapter describes adding the Anybus-S Slave module to the configuration in the PLC, the Anybus-S
Slave module will appear as a sub-device to the ControlNet scanner.
Firstly, start the program and open the file menu. Select new and the following dialogue will appear.
Select the desired type of PLC and chassis. Give the project a name and press OK.
Start by right click the I/O configuration, and select “New Module”.
Saved: 2008-03-05
HMS Industrial Networks AB Page 6 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Scroll down and select “1756 ControlNet Bridge” and press OK. This module is the scanner module in the
PLC.
Then enter a name for the module and select the node and slot number. Then press finish.
Saved: 2008-03-05
HMS Industrial Networks AB Page 7 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
It is also necessary to add the Anybus module. Right click on the ControlNet module and select New
Module. In the following window scroll down and select “Generic ControlNet Module” and press OK.
In the next dialogue window, RSLogix 5000 will ask for information regarding the communication to the
Anybus-S Slave module. First enter a name for the Anybus-S Slave modulen. In the example below we call
it “ANYBUS”. This name will create a tag in RSLogix 5000, which can be used to access the memory
location in the PLCs memory where the data for the Anybus-S Slave module will be stored. A description
can also be added, but that is optional.
3
4
1
5 6
Next step is to select the “Comm Format”, which tells RSLogix5000 the format of the datao. In our
example, we have selected Data-SINT, which will represent the data in the Anybus-S Slave module as a field
of 8-bit values. It is also possible to select Data-INT, which will represent the data as 16-bit values, and
Data-DINT, which will represent it as 32 bit values.
Saved: 2008-03-05
HMS Industrial Networks AB Page 8 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
I/O data is accessed in input instance 100 and output instance 150, so these values have to be entered as the
instance values for input and outputp. The size of the input connection and the output connection shall
correspond to the size that we configure the Anybus-S Slave module for. In our case we are using 32 bytes of
input and output data including the run/idle Header, see the note below, so that is the size that we enterq. 32
in this case stands for 32 instances of 8 bits. If we had been using Data-INT or Data-DINT, we would have to
recalculate the size to match the data type, so Data-INT would have been 16 16-bit values, and Data-DINT
would have been 8 32 bit-values.
Note: 4 bytes have to be added for the run/idle Header to the Input data size. The 4 bytes are added to the
Input data by the Anybus module as the run/idle Header.
The Anybus module does not have a configuration assembly instance, but RSLogix 5000 requires a value for
this anyway. An instance value of 0 is not a valid instance number, but any non-zero value will work, we
have selected the value 1 in this caser. The data size of the configuration instance has to be set to 0,
otherwise the configuration instance will be accessed and the connection will be refuseds. There will
always be a configuration tag of type AB:ANYBUS:C:0 created for this module, which has one member
called Data, of type SINT[400]. This SINT[400] tag is created regardless of the configuration size, which can
range from 0 to 400 bytes (SINTs). Since a data size of zero is specified, no data will be sent to the module.
Also set the node ID number to the value that has been assigned to the Anybus-S Slave module. It is set to 9
in this examplet. When we are finished here, press next.
In the next dialogue we will enter a value for the time between each scan of the module, called requested
packet interval (RPI). In this example, we have changed the RPI from 5ms to 10ms. Make sure that “Inhibit
Module” isn’t checked. After this, press finish.
Saved: 2008-03-05
HMS Industrial Networks AB Page 9 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Now the Anybus-S Slave module has been added as a sub-device to the scanner in the I/O configuration. The
main screen will now look like below.
Now we want to go online and download the configuration to the PLC. Begin with setting the
communication path. Open the Communications menu and select Who Active.
Saved: 2008-03-05
HMS Industrial Networks AB Page 10 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Then Select Go Online in the Communications menu. A new window will now open, select download in this
dialogue.
And in the next dialog, select download again. The configuration will now be downloaded to the PLC.
Saved: 2008-03-05
HMS Industrial Networks AB Page 11 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
When the configuration has been downloaded and we are online with the PLC, there shall be an error sign on
the Anybus-S Slave module. This error sign is there since we have added the module to the PLC, but we
have not configured the ControlNet scanner yet to communicate. The error could be seen by selecting the
Anybus-S Slave module sub-node, and positioning the mouse pointer over the error code as shown below.
Here the error is “Connection not scheduled”, this is in order since we have not configured the scanner yet.
Saved: 2008-03-05
HMS Industrial Networks AB Page 12 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Select register an EDS file and select next. Follow the dialogue as shown below.
1
www.anybus.com
Saved: 2008-03-05
HMS Industrial Networks AB Page 13 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Here the “path” has been selected using the AB_ETH-1 Ethernet driver. Select your path to your ControlNet
network and click OK.
Saved: 2008-03-05
HMS Industrial Networks AB Page 14 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
The network will now be “browsed” and all existing ControlNet modules will show up. Here we only have
the Anybus-S Slave module and the PLC. All devices will show up with a black + sign on a green
background. This means that the devices exist on the network configuration but not in the configuration file.
This sign will disappear after the configuration is downloaded.
If necessary double click on the ControlNet network connectionn to configure the settings of the network.
As shown in the dialogue below it is possible to configure the network parameters, for example the update
time, node addresses and channels.
Saved: 2008-03-05
HMS Industrial Networks AB Page 15 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
SCM-7032-032
Rev 2.03
Save the configuration, this will also download the configuration to the scanner.
Saved: 2008-03-05
HMS Industrial Networks AB Page 17 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
When RSNetWorx saves the configuration, it will show this dialog. Select optimize, and press ok.
Now RSNetWorx will notice that this configuration is not the same as in the ControlNet scanner. Select to
use offline data and download the configuration. Now the configuration is being downloaded to the scanner.
Saved: 2008-03-05
HMS Industrial Networks AB Page 18 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
5. Anybus configuration
The Anybus product has to be configured for the same I/O sizes as set up in the ControlNet scanner
configuration in RSLogix 5000.
Note: The I/O sizes are depending on the application, the configured I/O sizes in this chapter are just
examples.
Anybus Slave Interface:
The Anybus Slave Interface is configured by mailbox commands. Refer to the Fieldbus Appendix for details.
Anybus Communicator and the Anybus X-gateway:
The configuration of the Anybus Communicator and the Anybus X-gateway is described in separate sections
below.
Saved: 2008-03-05
HMS Industrial Networks AB Page 19 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Note: Using the Automatic setting for the IO size, the amount of data configured for the fieldbus is
depending on the sub-network configuration. The fieldbus I/O data will in that case be of the same size as
configured for the sub-network.
The ABC is configured for generic data mode; all other values are left at their defaults.
Saved: 2008-03-05
HMS Industrial Networks AB Page 20 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Right click on New Node and add a consume and a produce transaction as shown above. Change the Offline
timeout time for the consume transaction to 2000 ms and the update time for the produce transaction to 1000
ms. Right click on the produce and consume transaction respectively and select add data. In this case 32
bytes of data is used.
Note: The update time for the produce transaction is to be set to less than the offline timeout time for the
consume transaction; in this case the update time is set to 1000 ms and the offline timeout time to 2000 ms.
Saved: 2008-03-05
HMS Industrial Networks AB Page 21 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Make sure the settings are identical to those shown in the window above. An alternative method is to
download the HyperTerminal session file from HMS website 2 , double click on it and select COM port.
Connect and press ESC and the following menu will appear.
2
www.anybus.com
Saved: 2008-03-05
HMS Industrial Networks AB Page 22 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
The figure below shows an example; in this case a ControlNet/Ethernet X-gateway is used and 32 bytes of
I/O data is configured.
Saved: 2008-03-05
HMS Industrial Networks AB Page 23 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
6. Testing
If we go back to RSLogix 5000 now, the error sign will have disappeared from the Anybus-S Slave module.
This means that the connection has been scheduled and the Anybus-S Slave module and the PLC are ready to
exchange I/O data. In this case the Anybus Communicator with a loop back dongle at the serial port for test
purpose is used.
The following chapter explain the monitoring of the tags. By writing and reading data to the tags the
communication between the PLC and the Anybus-S Slave module is tested.
Saved: 2008-03-05
HMS Industrial Networks AB Page 24 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
Three tags named “Anybus:C”, “Anybus:I” and ” Anybus:O” is to be visible, representing the three instances
configuration, input and output. Each one corresponds to the instances that were configured earlier. The
configuration instance is created even if we selected its size as zero. The AnyBus:I tag is data going from the
Anybus-S Slave and AnyBus:O tag holds data going to the Anybus-S Slave.
Saved: 2008-03-05
HMS Industrial Networks AB Page 25 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc
How to configure an ControlNet Adapter with RSNetWorx for ControlNet.doc
SCM-7032-032
Rev 2.03
First enter 01 02 03 04 in the Output Tag, so there is some “data” to read. This can be done by just entering
values for the Output tagsn. If the network is correctly configured the corresponding Input Tags will obtain
the respective value. The values are depending on the application, in this case the values are just examples.
The Anybus-S Slave module uses a ControlNet 32-bit run/idle header, so the actual data from the module
will always start with word 2 (the third word) of the data. The first 2 words, at 16 bits each, are the
ControlNet run/idle header.
The Input values n can be seen in the figure above. Note the first four bytes are the run/idle header inserted
by the Anybus module.
Saved: 2008-03-05
HMS Industrial Networks AB Page 26 (26)
Filename: How to configure an ControlNet Adapter with RSNetWorx for
ControlNet.doc