how_to_configure_devicenet_anybus_nettool
how_to_configure_devicenet_anybus_nettool
SCD-7231-017
Rev. 1.16
Rev. 1.16
Document history
Revision Date Description Responsible
1.00 2006-09-15 Released Thorbjörn Palm
1.01 2006-11-17 Added section in chapter 3.4 Thorbjörn Palm
1.10 2007-08-16 Added section about Ethernet Transport Thorbjörn Palm
Provider, Anybus Communicator and X-
gateway
1.11 2008-03-05 Minor update Thorbjörn Palm
1.12 2009-06-26 Updated section 3.1 about Driver Selection Martin Falkman
1.13 2009-06-29 Minor corrections after review Martin Falkman
1.14 2009-07-09 Minor corrections from HMS Document Lars-Åke Väldesjö
and Issue Tracking System ID717. Some
2009-08-27 structural changes. Updated pictures to
meet version 3.4.1.3.
1.15 2009-11-16 Minor updates in chapter 3.1 Martin Falkman
1.16 2011-08-17 Updated picture in chapter 2 to exclude Martin Falkman
NetTool-DN-D dongle and include direct
connection to X-gateway via RS232 and
Ethernet.
Rev. 1.16
Contents
Rev. 1.16
2 Solution overview
This document describes how to configure an Anybus DeviceNet Scanner using the Anybus NetTool for
DeviceNet. In this case a small example network consisting of two of HMS products has been put together.
Below you can find an overview of the network described in this document. Other nodes may be attached
to the system, but are not necessary. In this example an Anybus X-gateway DeviceNet Scanner/Modbus
RTU adapter interface together with an Anybus Communicator for DeviceNet is used.
Other network
i.e. Ethernet
Ethernet cable Ethernet
To configure the DeviceNet Scanner module in the X-gateway the program Anybus NetTool for DeviceNet is
used. The NetTool-DN-D dongle can be used as a configuration hardware access point for the NetTool for
DeviceNet program but the NetTool-DN-D dongle is only required for the embedded Anybus-M module.
The contents describe step by step how a configuration is done. This document assumes the reader is
familiar with industrial communication, DeviceNet networks and applicable hardware.
Rev. 1.16
1
www.anybus.com
Rev. 1.16
3 DeviceNet configuration
To configure the DeviceNet scanner Anybus NetTool for DeviceNet is used. It is possible to configure the
network in offline or online mode. It is recommended to start with online mode and to complement with
the modules not recognised by the Anybus NetTool for DeviceNet. To begin with, the Transport Path
(communication line between program and hardware) has to be configured.
Begin with including the DeviceNet scanner hardware at hand in the project; expand the hardware tree to
the left and drag-drop the correct hardware item to the right in the network view window.
In the example below an Anybus-M DEV is selected (click on the module to be able to configure it).
Figure 2 Dragging in the correct Anybus DeviceNet Master to the right (Anybus-M DEV)
Rev. 1.16
In the example below an Anybus X-gateway EIP to DEV with MAC-ID set to zero is selected (click on the
module to be able to configure it).
Figure 3 Dragging in the correct Anybus DeviceNet Master to the right (Anybus X-gateway EIP to DEV).
Rev. 1.16
Step 1: After opening the Configure Driver dialogue choose the Anybus NetTool DeviceNet RS232 Interface
driver and press OK.
The following dialogue will then appear:
Step 2: Choose your com port, desired DeviceNet baud rate and MacID of the Anybus NetTool-DN-D. Make
sure the selected MacID is not identical to another unit in the network. The MacID is 63 by default.
Step 3: Then click on Go Online button, question pops up to update network, click OK. Network goes online
and network list is updated.
Rev. 1.16
Step 3: Select the Ethernet Transport Provider and click on the Ok button to make a new Transport Path.
Give the path a desired name and click OK again.
Rev. 1.16
Step 4: If the IP-address of the gateway is in the same subnet-range as your PC, the gateway will
automatically appear in the list shown in the “Ethernet Configuration” dialog. If nothing is showed in the
list, proceed to Step 5, else proceed to Step 6. Note: You may need to click the + sign to expand the device
tree. The Ethernet interface[X-gateway] needs to be highlighted before pressing Ok.
Step 5: This step can be skipped if the device appears as desired in the picture above.
Use the Anybus IPconfig utility to identify or edit the IP address of the X-gateway (started by pressing the
button ). The Anybus module will appear in the list and the IP settings can be modified by double-
clicking the desired IP-address in the list. Click SET to apply the settings. Note that a valid IP-address setting
is within the same subnet range as the PC you are using. If your PC has the address 192.168.0.24 and the
subnet mask is 255.255.255.0 then the gateway needs to use any free address within 192.168.0.XX.
Rev. 1.16
Step 6: The X-gateway with it’s IP address should appear automatically under the Remote Hosts tab, if the
IP settings were made correctly.
A network scan can also be forced by entering the X-gateway IP address in the box to the left of button
“Query Host” and then pressing the button. Clicking on the button will refresh the list under
Remote Hosts.
Step 7: Teh DeviceNet Baudrate and MAC-ID is sat from DIP-Switches. The factory default setting is 500
kbaud and MAC ID 1 with switch setting “1000 0001”. If the network connection is established and goes
online, question pops up to update network, click OK. Network goes online and network list is updated.
Rev. 1.16
Step1: After opening the Configure Driver dialogue select the Anybus Transport Providers then click OK.
Step 2: Press the Create button to start creating the new Parallel Transport Path.
Step3: Select the PCI Transport Provider and click on the Ok button to make a new Transport Path. Give the
path a desired name and click Ok. Select PCI-card to use and then OK again in the next window.
Rev. 1.16
Step 4: Select PCI-card to use and then click Ok. Select your path and click Ok.
Step 5: Choose your desired DeviceNet baud rate and MacID of the DeviceNet scanner on the PCI-card.
Make sure the selected MacID is not identical to another unit in the network.
Step 6: Then Click the Go Online button, question pops up to update network, click OK. Network goes
online and network list is updated.
Rev. 1.16
Step 2: After opening the Configure Driver dialogue choose the Anybus X-gateway (RS-232) and press Ok.
The following window will then appear:
Step 4: Select the COM-port path as shown below and click on the OK button to make a new Transport
Path. Give the path a desired name and click OK.
Rev. 1.16
Step 5: Select the COM-port, click Ok. After configuring these settings the slot in the X-gateway has to be
selected. The upper slot is where the power connection is located.
Step 6: If connection to X-gateway via COM-port is established, the DeviceNet Baudrate and MAC ID has to
be configured the same as on the DIP-Switches. The factory default setting is 500 kbaud and MAC ID 1 with
switch setting “1000 0001”.
Step 7: If the network connection is established and goes online, question pops up to update network, click
OK. Network goes online and network list is updated.
If the error-box below appears try again from Step 1 with created Transport path.
Rev. 1.16
If the error-box below appears, check bus-cable and bus-power and try again from Step 1 with created
Transport path.
Rev. 1.16
Step 2: The Browse for network window will appear like the window below if the X-gateway is properly
connected to the EtherNet/IP network. Click the + sign to expand the Ethernet to DeviceNet Gateway entry.
Then highlight the entry below and click the OK button.
Step 3: If the network connection is established and goes online, question pops up to update network, click
OK. Network goes online and network list is updated.
Rev. 1.16
Online button
Rev. 1.16
Offline mode
1
www.anybus.com
www.anybus.com HMS Industrial Networks AB Page 19 (29)
Application Note – DeviceNet configuration
SCD-7231-017
Rev. 1.16
By using drag and drop it is possible to set up the current network. When the network is completed press
the Go Online button. If the settings are correct none of the selected modules will be red marked.
Rev. 1.16
Figure 43 I/O configuration of the adapter module, in this case the communicator.
Rev. 1.16
Mark the Anybus-C DeviceNet and click Add to move the module to the right list.
Rev. 1.16
The window shown below will be seen (later found by selecting the Anybus-C DeviceNet icon and pushing
the Edit Slave button). The window shown below will be seen.
In this case the alternative Polled is selected and 18 bytes Rx (in) and Tx (out) is chosen. The number of
bytes and method of communication is depending on the characteristics of the adapter modules in the
network. In this case the 18 bytes will match the I/O data size of the Anybus Communicator module. Press
OK and select the Input tile.
Rev. 1.16
The Anybus-C module is Automapped. This mode is used when no manual mapping is required. When the
Automap button is pressed the I/O will be mapped from the first free position after Word Offset + Bit Offset
where all the data can be mapped in one chunk. In the same way the output data can be configured.
First Master state has to be sat to Idle. Open the tile Parameter, make sure the master is in idle
state and press the Download button as shown below.
Then the scanlist has to be downloaded to the scanner. Open the tile Scanlist again and press the Download
scanlist button as shown below.
Rev. 1.16
The next and final step is to open the diagnostics tab. Press the Update button and if the configuration is
correct no faults will appear.
Rev. 1.16
4 Anybus configuration
The Anybus product has to be configured for the same I/O sizes as set up in the DeviceNet scanner
configuration.
Note: The I/O sizes are depending on the application, the configured I/O sizes in this chapter are just
examples.
Anybus-M Scanner and the Anybus-PCI card
The Anybus Master Interface and the Anybus PCI card are configured by mailbox commands. Refer to
respective Fieldbus Appendix for details.
Anybus Communicator
The configuration of the Anybus Communicator is described in section 4.1 below.
Anybus X-gateway
The configuration of the Anybus X-gateway is described in section 4.2 below.
Rev. 1.16
Rev. 1.16
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, double click on it and select COM port.
Rev. 1.16
Connect and press ESC and the following menu will appear.
Press 6 and enter the desired configuration. The figure below shows an example; in this case a DeviceNet
Scanner/PROFINET IO Adapter X-gateway is used and 20 bytes of I/O data is configured.
Note: The default setting in the X-gateway is that it will reboot every time the on-line connection over
Ethernet is broken. This setting can be changed at last roe in the X-gateway configuration above.
Press ESC, Press 6 to enter the “Change configuration” dialog. Press Enter until you get to the “Reboot after
disconnection” parameter and then change this setting to “Disabled”. Press Enter and answer Yes to the
following questions. The gateway will now continue to run without interruption after an online session in
NetTool DeviceNet.