DeviceNet to ProfiNet Gateway for PLC Encoder Communication
Modern automated warehouses demand high-speed, accurate data exchange between diverse industrial devices. A common challenge arises when a ProfiNet-based PLC needs to communicate with a DeviceNet encoder. This article explores a real-world solution using a protocol conversion gateway, detailing the architecture, configuration, and benefits for industrial automation.
System Components and Their Roles
The project involved upgrading a logistics sorting system. The core devices included:
- Protocol Gateway: A DeviceNet master to ProfiNet slave converter, supporting bidirectional data transfer with latency under 1 ms, powered by 24 VDC, and operating in temperatures from -45°C to 85°C.
- PLC: Siemens S7-1214C (CPU 1214C) with ProfiNet interface, providing fast processing for real-time control.
- Encoder: Baumer FHDK 16N11Y0 incremental encoder, 1024 PPR, differential TTL output, IP67 rated, suitable for dusty and humid environments.
- Supporting Hardware: Industrial Ethernet switch, shielded twisted-pair cables, 24 VDC power supply, DeviceNet termination resistors.
System Architecture and Wiring
The architecture follows a three-layer model: device layer, gateway conversion layer, and control layer. The gateway acts as a bridge:
- ProfiNet Side: The gateway’s ProfiNet port connects to the industrial switch via shielded cable, and the switch links to the PLC. The gateway operates as a ProfiNet slave, managed by the PLC.
- DeviceNet Side: The gateway’s DeviceNet port connects to the encoder using a dedicated DeviceNet cable. 120Ω termination resistors are installed at both ends of the bus. The gateway functions as the DeviceNet master, actively polling the encoder.
- Power: All devices share a 24 VDC supply, with careful polarity matching to ensure stability.
Step-by-Step Configuration
Hardware Installation
Mount the PLC, gateway, and switch on a DIN rail inside the control cabinet, ensuring at least 10 cm spacing for heat dissipation. Wire the ProfiNet side with RJ45 connectors and the DeviceNet side following the standard color code (red, black, white, blue). After power-up, verify that the gateway’s power LED is solid green and the communication LED blinks.
Software Setup
PLC Configuration: In TIA Portal, create a new project and add the S7-1214C CPU. Import the gateway’s GSD file and add it to the network. Assign the ProfiNet device name (e.g., TX131-GW01) and IP address (192.168.0.10) in the same subnet as the PLC (192.168.0.1). Download the configuration to the PLC.
Gateway Configuration: Use the gateway’s proprietary software to set up the DeviceNet master. Add the encoder with node address 6 and baud rate 500 kbps. Map the encoder’s speed and position data to input registers IW100-IW104.
Testing: In TIA Portal, monitor the mapped variables. With the system running, the data updates in real time. Speed error remained within 0.1 m/s, and position accuracy reached ±1 mm.
Performance and Results
After commissioning, the sorting system’s throughput increased from 2,000 to 5,000 items per hour, with an accuracy of 99.9%. The gateway operated fault-free for three months, maintaining data latency below 0.8 ms. The industrial-grade design withstood temperature fluctuations and electromagnetic interference, ensuring 24/7 reliability. By avoiding device replacement, the upgrade saved approximately 30% in costs.
Key Takeaways for Industrial Protocol Integration
This case demonstrates how a DeviceNet to ProfiNet gateway can resolve protocol mismatches in automation systems. The approach is applicable to automotive manufacturing, smart logistics, and other industrial scenarios. When selecting a gateway, consider factors like latency, environmental ratings, and ease of configuration. Proper termination and power supply design are critical for stable communication.
| Parameter | Value |
|---|---|
| Gateway Latency | ≤1 ms (typical 0.8 ms) |
| Encoder Resolution | 1024 PPR |
| Position Accuracy | ±1 mm |
| Speed Error | ≤0.1 m/s |
| Operating Temperature | -45°C to 85°C |
| Power Supply | 24 VDC |
By leveraging protocol conversion gateways, industries can modernize their control systems incrementally, preserving existing investments while adopting new technologies. This integration method reduces downtime and engineering effort, making it a practical choice for many automation engineers.