IMDHMIControls LibraryShop main store

Troubleshooting

Anybus DeviceNet master gateway setup for two IRC5 robots

Industrial networks Published 9 min read By IMDHMI controls team

Short answer

Device not initialized on this gateway is a configuration fault; in the reported setup it cleared in the S7-315's PROFIBUS station configuration, not on the trunk. Three masters share one DeviceNet line legally when each owns different slaves: the gateway scans both IRC5 controllers as internal slaves while each robot stays master of its own I/O node, with unique node addresses and byte counts matched on the robot, the gateway and the PLC.

On this page
  1. What "Device not initialized" points to
  2. One trunk can carry three masters
  3. Address and ownership plan
  4. Configure both robots as internal slaves
  5. Match the byte counts on all three sides
  6. Clear the S7-315 station before touching the robots
  7. Data flows but reads wrong
  8. Fix order and decisions
  9. Questions asked

"Device not initialized" on an Anybus PROFIBUS-slave / DeviceNet-master gateway is a configuration fault, and in the installation behind this fault it cleared in the S7-315's PROFIBUS station configuration, not on the DeviceNet trunk. The working sequence is: correct the gateway's slave station in the PLC hardware configuration first; define each IRC5 as an internal slave with the DN_INTERNAL_SLAVE unit type; size the cyclic bytes identically on the robot, in the gateway scanner and in the PLC; and give every node its own address from 0 to 63. Three masters share one trunk legally when no two of them own the same slave: each robot keeps mastering its own Wago I/O nodes while the gateway scans both robots as slaves.

What "Device not initialized" points to #

The gateway carries two independent interfaces: a PROFIBUS slave port facing the S7-315 and a DeviceNet scanner port facing the robots. It reports Device not initialized when one of those ports has not completed its startup handshake, and the message alone does not say which port. Read each interface's status separately before touching robot parameters, because a configuration fault and a marginal trunk produce overlapping symptoms.

What you observe Fault class Deciding check
The message returns at every power-up Startup configuration fault on one gateway interface Read the PROFIBUS and DeviceNet interface status separately
PROFIBUS diagnostics never reach cyclic data exchange S7-315 station or module layout disagrees with the gateway Compare station address, module order and byte totals against the gateway's own configuration
One robot appears in the scanner list, the other never does Duplicate node address or a missing scan entry Compare both robots' addresses and both scan entries
Connection up, but signals sit in the wrong bytes Byte order or offset in the mapping Trace one test bit from the robot program to the PLC input image
Nodes drop out as more are added or as the cabinet warms Trunk power or wiring Measure V+ to V- at the farthest node with everything communicating

One trunk can carry three masters #

DeviceNet, the ODVA specification built on CAN, puts up to 64 nodes on one trunk-drop line, each with an address from 0 to 63, and it contains no rule limiting a trunk to one master. A master is simply the owner of an I/O connection to a slave; a device can own several slaves while serving others as a slave itself, which is exactly what an IRC5 does in an ordinary single-robot cabinet. One trunk carrying the gateway scanner plus two robot scanners is therefore a supported arrangement, not a corner case; other buses treat multiple masters the same way, as in the Power PMAC setting where a clock source value of -1 selects two masters rather than none.

The wiring answer follows from the topology: DeviceNet is one multidrop trunk, so yes, all V+ lines join together and all V- lines join together, passing through each device's connector in the standard color order of white CAN_H, blue CAN_L, red V+ and black V-. Fit 121 ohm termination between CAN_H and CAN_L at the two physical ends of the trunk only, and power the trunk from one 24 V DC supply sized to the sum of the node currents. Check the power side the honest way: with every node communicating, the farthest node must still see at least 11 V between V+ and V-, the floor the DeviceNet specification sets for a bus-powered node, and all nodes on the trunk run the same bit rate. Rework the trunk with the supply off and prove zero volts at the connector before opening it.

Address and ownership plan #

The IRC5's scanner function and its internal DeviceNet slave share the controller's one bus address: change a robot's address and the gateway must look for that robot's slave at the new number too. In the working two-robot build, robot 1 kept its default address 2, robot 2 was moved to 3, and the gateway scanned both internal slaves while each robot's scanner owned only its own Wago node. The gateway's own address just needs to be an unused, unique one.

Device Example address Role on the trunk Connections it owns
Anybus gateway 10 DeviceNet scanner and PROFIBUS slave to the S7-315 Both robots' internal slaves
IRC5 robot 1 2 (default) Robot scanner and internal slave Its own Wago node; exposes itself to the gateway
IRC5 robot 2 3 Robot scanner and internal slave Its own Wago node; exposes itself to the gateway
Wago node of robot 1 4 (example) Slave None
Wago node of robot 2 5 (example) Slave None

All five numbers are unique and inside the 0-63 range, which is the whole address rule; pick any unused addresses and label the cabinet to match.

Configure both robots as internal slaves #

Two directions of ownership exist and only one fits a DeviceNet-master gateway. The unit type that circulates for this product, named DN_AnybusProfibusDevicenet with vendor ID 90, product code 12, device type 12 and a change-of-state connection, configures the robot as the master that polls an external gateway device; under a DeviceNet-master gateway it points the connection the wrong way. Retire it and define the gateway-facing unit as an internal slave instead. In EIO.cfg, the controller's I/O configuration file, the working build defined one unit type and instantiated it per robot:

EIO_UNIT_TYPE:
-Name "AnyBusIS"
-BusType "DNET"
-VendorName "HMS"
-ProductName "Internal DeviceNet Slave"
-InternalSlave
-DN_C1OutputSize 10
-DN_C1InputSize 10

EIO_UNIT:
-Name "AnyBusIS_1"
-UnitType "AnyBusIS"
-Bus "DeviceNet1"
-UnitLabel "anybus_io"
-RegainCommunicationReset
-DN_Address 2

These are reference fragments, not a whole EIO.cfg: keep the surrounding file syntax and the machine's existing I/O definitions. Keep -RegainCommunicationReset if you want the unit reset when communication returns after a loss. The unit's -DN_Address is that robot's own bus address, 2 for robot 1 here and 3 in robot 2's matching unit, which is why it equals the scanner's address. The two size parameters set ten bytes in each direction in this build; size them to the data you actually map, because those ten-byte numbers come from one working installation and are not a default the controller applies for you.

Match the byte counts on all three sides #

Three configurations must agree, per direction: the robot's two cyclic size parameters, the connection-1 sizes the gateway scanner uses for that robot, and the cyclic modules the S7-315 declares for the gateway's slave station. The gateway side is set in the Anybus Configuration Manager software that ships with the gateway. The same connection-size discipline applies to every DeviceNet scanner, including mapping a 1747-SDN DeviceNet scanner for drive control.

Worked example, using the sizes from the fragment above. One robot moves 10 + 10 = 20 bytes through the gateway; two robots therefore carry 20 bytes in each direction and 40 bytes in total, so the S7-315's slave station must declare cyclic modules summing to 20 input bytes and 20 output bytes, in the module order the gateway's own configuration lists. If the PLC declares, say, 16 bytes where the gateway produces 20, cyclic data exchange never starts, and that mismatch is exactly the fault class behind the initialization message. The example exists so the arithmetic can be checked, not as a recommended size; derive your own counts from your own mapping.

Clear the S7-315 station before touching the robots #

On the PROFIBUS side the gateway is a DP slave and the S7-315 is its DP master, and the station must reach cyclic data exchange before any PLC value can reach the DeviceNet mapping. Work it in this order:

  1. Read the gateway's own PROFIBUS configuration and note its station address and cyclic layout.
  2. Fetch the gateway's GSD device description from the gateway maker or its authorized distributor, matched to the installed firmware.
  3. In the S7-315 hardware configuration, confirm the slave station exists at that address with modules matching the cyclic layout in both order and length.
  4. Download the corrected station through the commissioning procedure you normally use, then re-read the gateway's PROFIBUS status before opening any robot file.
  5. Record which interface changes state after each change, so a second fault cannot hide behind the first.

In the reported installation this was where the fault lived: the corrected S7-315 station brought the gateway up, and the DeviceNet side had been sound all along. Make the PLC side the first stop whenever this gateway reports Device not initialized. The pattern, a station visible on the bus that never reaches data exchange because the master's module picture disagrees with the device's own cyclic layout, is the same one behind an S7-300 PROFIBUS gateway that is detected but reads no I/O data.

Data flows but reads wrong #

If the scanner lists both robots and the PLC receives data, but words arrive swapped, split or shifted by a byte, the connection is fine and the mapping is not. Write a known pattern from the robot program, watch it at the gateway's map, then at the PLC input image; the first layer where the pattern changes shape is the faulty one. A two-byte reversal crossing a gateway into an IRC5 is the documented failure fixed by swapping ABB IRC5 PROFINET word values with a byte swap, the same word-order fault on a different transport. Fix that in the mapping, never in the trunk wiring.

Fix order and decisions #

  1. Read the gateway's PROFIBUS and DeviceNet interface statuses separately; the message names the port that failed startup, not the whole network.
  2. Compare the gateway's PROFIBUS cyclic layout with the S7-315 slave station, address, module order and byte totals, and download the corrected station; this cleared the reported fault.
  3. Confirm cyclic data exchange on the PROFIBUS side before editing any robot configuration.
  4. In each IRC5, replace the external Anybus unit type with the internal-slave type sized to your mapping, one unit per robot.
  5. Set the two robots' bus addresses apart, 2 and 3 in the working build, and create one scan entry per robot at those addresses with matching connection sizes.
  6. Wire the trunk once: every V+ and V- line common, 121 ohm at both ends only, one supply, one bit rate for all nodes.
  7. Power up, confirm both robots appear in the scanner list, and trace one test bit from the robot program to the PLC input image.

The decision for each case: a gateway stuck on the initialization message at startup gets an S7-315 station check first and no rewiring; a scanner list holding one robot but not the other gets an address-and-scan-entry check on the missing robot; a live link with wrong values gets a mapping fix, starting with byte order. A trunk that misbehaves only under load, nodes dropping as current rises or the cabinet warms, is the electrical case, and the 11 V reading at the farthest node under full communication is the number that separates wiring from configuration.

Questions asked

Can both robots share one EIO unit type definition?

Yes. Define the internal-slave unit type once and instantiate it as two units, one per robot, each carrying that robot's own DeviceNet address. The byte sizes belong to the type, so both robots present identical input and output counts. If one robot needs different counts, create a second unit type for it. The gateway simply holds two separate scan entries with matching connection sizes.

How long can the DeviceNet trunk be?

Trunk length depends on the single bit rate the whole trunk runs: about 100 m at 500 kbit/s, 250 m at 250 kbit/s and 500 m at 125 kbit/s, with individual drops kept short. Choose the rate from the length you need first, then set that one rate on the gateway, both robots and every I/O node.

Does anything change if only one robot is needed?

The structure stays the same with one robot: it keeps mastering its own I/O nodes and exposes its internal slave to the gateway. The gateway scans one entry instead of two, so the PROFIBUS cyclic totals on the PLC side halve accordingly. Addresses still must be unique and the byte counts still must match in all three places.

Should the gateway scan the Wago I/O nodes too?

No, not in this arrangement. Each Wago node belongs to its own robot's scanner configuration, exactly as in a single-robot cabinet, and the gateway scans only the two robot internal slaves. Moving the I/O nodes under the gateway instead would put robot I/O through the gateway mapping and change the byte layout on all three sides.

Keep reading

  • How-to

    S7-1200 CM 1242-5 DP slave to an S7-400 PROFIBUS master

    A 1214C AC/DC/RLY with a CM 1242-5 exchanges cyclic data with a CPU 416-5H PROFIBUS DP master once both projects agree on a unique station address in the 0–125 range, byte-identical transfer areas and consistent word access. Prove the byte map with known values before any output is enabled.

    Industrial networks

  • Explainer

    Why a MicroLogix needs a Modbus gateway to join PROFIBUS

    No MicroLogix has a native PROFIBUS interface, and the 1769-DPM is documented for CompactLogix only. Run each MicroLogix 1100, 1200 or 1500 as a Modbus RTU slave on its serial port, polled by a gateway that is Modbus RTU master and PROFIBUS DP slave. The bus master sees only the gateway's process image, and data age is the serial poll cycle plus one bus cycle.

    Industrial networks

  • Explainer

    Why an AB7634 Modbus TCP PROFIBUS DP-V1 gateway needs a client

    The AB7634 X-gateway is a slave on both sides: a Modbus TCP server on TCP port 502 and a PROFIBUS DP-V1 slave. It never initiates a transaction, so a PROFIBUS DP master and a Modbus TCP client must both drive its shared internal image. If your Modbus TCP device must be polled, this part number has the wrong role on the Modbus side.

    Industrial networks