Profinet to Devicenet Gateway for Level Sensor Integration
In chemical processing facilities, monitoring storage tank levels is a fundamental part of process control. Level sensors serve as the primary instruments for this task, but integrating them with modern PLC systems often presents a challenge. Many existing sensors communicate via Devicenet, a robust fieldbus protocol, while control systems increasingly rely on Profinet, an industrial Ethernet standard. A Profinet to Devicenet gateway bridges this gap, enabling reliable data exchange without replacing existing equipment.
Understanding the Protocols: Profinet and Devicenet
Profinet is an open industrial Ethernet standard developed by Siemens and Profibus & Profinet International (PI). It supports high-speed cyclic data exchange, often with update times below 1 ms, making it suitable for motion control and complex automation tasks. Profinet devices are configured using GSDML files and can operate in either RT (Real-Time) or IRT (Isochronous Real-Time) modes.
Devicenet, on the other hand, is a CAN-based fieldbus protocol originally developed by Allen-Bradley (now Rockwell Automation). It uses a trunkline-dropline topology and supports up to 64 nodes. Devicenet is known for its low cost, noise immunity, and ability to deliver both power and signal on the same cable. It is widely used in discrete manufacturing and process industries for connecting sensors, actuators, and motor starters.
| Feature | Profinet | Devicenet |
|---|---|---|
| Physical Layer | Industrial Ethernet (IEEE 802.3) | CAN (Controller Area Network) |
| Max Nodes | Virtually unlimited (with switches) | 64 |
| Data Rate | 100 Mbps (or 1 Gbps) | 125, 250, or 500 kbps |
| Cable Length | 100 m per segment (copper) | Up to 500 m (at 125 kbps) |
| Typical Use | High-speed control, motion, safety | Discrete sensors, motor starters, valves |
How the Gateway Works in a Chemical Tank Farm
Consider a typical chemical storage area with multiple tanks containing solvents, acids, or bases. Each tank is equipped with a radar or ultrasonic level sensor that outputs data over Devicenet. The plant’s main control system, however, is a Siemens S7-1500 PLC running Profinet. Without a gateway, integrating these sensors would require either replacing them with Profinet-compatible models or adding separate Devicenet scanner cards to the PLC rack—both costly and time-consuming.
The Profinet to Devicenet gateway acts as a protocol converter. On the Devicenet side, it functions as a master, polling the level sensors and reading their data. On the Profinet side, it appears as a standard IO device, exchanging data with the PLC via cyclic I/O. The gateway maps Devicenet input/output assemblies to Profinet slots and subslots, making the integration transparent to the PLC programmer.
Typical data flow: Level sensor → Devicenet → Gateway (parses CAN frames, extracts process value) → Profinet (maps to I/O area) → PLC (reads level, adjusts valve or pump).
Key Features of a Reliable Gateway
When selecting a Profinet to Devicenet gateway for chemical applications, several features are critical:
- No programming required: Configuration is done via a web interface or DIP switches. Users set the Profinet device name, IP address, Devicenet MAC ID, and baud rate without writing a single line of code.
- Quick setup: Many gateways can be commissioned in under 10 minutes. Typical steps: connect power and network cables, set the Devicenet node address, configure the Profinet station name, and map the I/O data sizes.
- Broad compatibility: The gateway should support standard Devicenet profiles (e.g., Generic Device, Level Sensor) and work with major PLC brands like Siemens, Rockwell, and Schneider Electric. It should also handle various data types (INT, REAL, BOOL) and support up to 512 bytes of I/O.
- Diagnostic LEDs: Clear indication of network status (Profinet SF, BF; Devicenet MNS, IO) helps troubleshoot issues quickly.
Industrial-Grade Design for Harsh Environments
Chemical plants often expose equipment to extreme temperatures, humidity, corrosive vapors, and electromagnetic interference (EMI) from motors and drives. A suitable gateway must withstand these conditions:
| Environmental Factor | Gateway Specification |
|---|---|
| Operating Temperature | -40°C to 75°C (-40°F to 167°F) |
| Ingress Protection | IP67 (dust-tight, protected against temporary immersion) |
| EMI Immunity | EN 61000-6-2 (industrial immunity), shielded metal housing |
| Vibration/Shock | IEC 60068-2-6 (vibration), IEC 60068-2-27 (shock) |
| Power Supply | 24 VDC (18-30 VDC), reverse polarity protection |
The wide temperature range ensures operation in unheated tank farms or direct sunlight. IP67 rating allows the gateway to be mounted directly on the tank or in a wet environment without an additional enclosure. The shielded design and compliance with industrial EMC standards prevent data corruption caused by nearby variable frequency drives (VFDs) or large motors.
Application Example: Food Processing Plant
A food processing facility had several Devicenet-based level sensors on ingredient tanks. The environment was hot (up to 50°C) and humid due to washdown procedures. The existing Devicenet network suffered from intermittent communication faults, causing production stoppages. After installing a Profinet to Devicenet gateway with IP67 rating and wide temperature tolerance, the data transmission stabilized. The gateway was mounted near the tanks, converting Devicenet data to Profinet and sending it to the plant’s control room over fiber optic cable. The result was a 90% reduction in communication errors and improved batch consistency.
Step-by-Step Configuration Guide
Here is a typical setup process for a Profinet to Devicenet gateway:
- Physical connections: Connect the Devicenet cable to the gateway’s 5-pin terminal block (V+, CAN_H, SHIELD, CAN_L, V-). Connect the Profinet cable to the RJ45 port. Apply 24 VDC power.
- Set Devicenet parameters: Using DIP switches or the web interface, set the MAC ID (0-63) and baud rate (125, 250, or 500 kbps) to match the existing Devicenet network.
- Configure Profinet: Assign a unique device name (e.g., “gw-level-01”) and IP address. This can be done via the PLC engineering tool (e.g., TIA Portal) or the gateway’s web server.
- Map I/O data: Define how many bytes of input (from Devicenet to Profinet) and output (from Profinet to Devicenet) are needed. For a level sensor, typically 4 bytes (REAL) for level and 1 byte for status.
- Download configuration: Load the GSDML file into the PLC project, add the gateway as a device, and assign it to the controller. The PLC will then establish cyclic communication.
- Verify operation: Check the LEDs: Profinet SF (system fault) should be off, BF (bus fault) off; Devicenet MNS (module network status) should be solid green. Monitor data in the PLC to confirm correct level readings.
Tip: Always terminate the Devicenet trunk line with 121 Ω resistors at both ends. For long cable runs, use a power supply at the middle of the network to avoid voltage drop.
Benefits of Using a Gateway for Level Sensor Integration
Deploying a Profinet to Devicenet gateway offers several advantages:
- Cost savings: Avoid replacing functional Devicenet sensors, which can cost thousands of dollars each.
- Reduced downtime: Quick configuration means minimal disruption to production during integration.
- Future-proofing: As plants migrate to Profinet-based control systems, the gateway preserves legacy investments.
- Simplified maintenance: A single gateway can handle multiple Devicenet nodes, reducing spare parts inventory.
- Enhanced diagnostics: Gateways often provide web-based monitoring of both networks, helping identify issues before they cause failures.
Choosing the Right Gateway
When evaluating gateways, consider these factors:
- Certifications: Look for CE, UL, and ATEX/IECEx if used in hazardous areas.
- Data throughput: Ensure the gateway can handle the required update rate. For level monitoring, 100 ms is usually sufficient.
- Number of Devicenet nodes: Some gateways support up to 63 slaves; others are limited to 8 or 16.
- Vendor support: Choose a manufacturer with good documentation and technical support.
Conclusion: A Profinet to Devicenet gateway is an essential tool for modernizing chemical plant automation without discarding reliable field devices. Its ability to convert protocols transparently, withstand harsh conditions, and simplify configuration makes it a practical solution for level sensor integration and many other applications. By bridging the gap between legacy Devicenet networks and high-speed Profinet systems, these gateways help plants achieve better data visibility, improved control, and lower total cost of ownership.