Modbus RTU to Profinet Gateway for SKJ VFD and Siemens 1200 PLC
In modern industrial automation, integrating legacy devices with different communication protocols into a unified network is a common challenge. This article explores how a Modbus RTU to Profinet gateway enables seamless data exchange between SKJ series variable frequency drives (VFDs) and a Siemens S7-1200 PLC, providing a practical solution for retrofitting and system expansion.
Why Use a Modbus RTU to Profinet Gateway?
Many industrial drives, including the SKJ series, are equipped with RS485 ports supporting the Modbus RTU protocol. However, modern control systems often rely on Profinet for high-speed, deterministic communication. A protocol gateway acts as a bridge, translating Modbus RTU frames into Profinet I/O data, allowing the PLC to treat the VFD as a standard Profinet device. This eliminates the need for complex serial programming and reduces integration time significantly.
Key benefits include:
- Reduced wiring complexity: A single Ethernet cable replaces multi-drop RS485 networks.
- Real-time data exchange: Typical update times below 5 ms ensure responsive control.
- Easy configuration: GSDML file integration in TIA Portal simplifies setup.
- Scalability: Multiple VFDs can be connected via one gateway.
System Overview and Hardware Requirements
The integration setup consists of three main components:
| Component | Specification | Role |
|---|---|---|
| SKJ Series VFD | Modbus RTU slave, RS485 interface, 9600-115200 bps | Motor control, parameter read/write |
| Modbus RTU to Profinet Gateway | Dual Profinet ports, RS485 terminal, 24V DC, supports up to 32 Modbus slaves | Protocol conversion, data mapping |
| Siemens S7-1200 PLC | Profinet controller, TIA Portal V16 or later | Central logic, HMI interface |
The gateway typically features two RJ45 ports for Profinet (with built-in switch) and a 3-pin or 5-pin terminal block for RS485 (A, B, GND). Power is supplied via 24V DC. Some models also include diagnostic LEDs for status monitoring.
Step-by-Step Configuration in TIA Portal
The following procedure outlines how to configure the gateway and exchange data with the SKJ VFD using Siemens TIA Portal engineering software.
1. Install the GSDML File
Obtain the GSDML file from the gateway manufacturer. In TIA Portal, go to Options > Manage general station description files (GSD) and install the file. After installation, the gateway will appear in the hardware catalog under Other field devices > PROFINET IO > Gateway.
2. Add the Gateway to the Project
Drag the gateway from the catalog to the network view. Connect it to the PLC’s Profinet port. Assign a unique device name and IP address in the same subnet as the PLC (e.g., 192.168.0.10). Ensure the name matches the one configured in the gateway’s web interface or configuration tool.
3. Configure I/O Modules (Slots)
The gateway’s GSD file provides predefined I/O modules that represent Modbus read/write commands. Common modules include:
| Module Type | Data Size | Function |
|---|---|---|
| Read Holding Registers (4xxxx) | Configurable (e.g., 8 words) | Read VFD status, frequency, current |
| Write Multiple Registers | Configurable (e.g., 4 words) | Write speed reference, start/stop commands |
| Read Coils (0xxxx) | 1 byte | Read discrete status bits |
Drag the required modules to the device’s slot list. Each module corresponds to a Modbus transaction. The gateway cyclically executes these transactions and maps the data to Profinet I/O addresses.
4. Set Modbus Parameters
In the gateway’s properties or via a separate configuration tool, set the Modbus communication parameters to match the SKJ VFD settings:
- Baud rate: 9600, 19200, or 38400 bps (common for VFDs)
- Data bits: 8
- Parity: None (or Even, depending on VFD)
- Stop bits: 1
- Slave ID: Must match the VFD’s Modbus address (e.g., 1)
5. Download and Test
Compile and download the hardware configuration to the PLC. Go online and monitor the I/O tags. Verify that the gateway establishes communication (usually indicated by LEDs). Use a watch table in TIA Portal to check if data is being updated correctly. For example, the VFD’s output frequency register (e.g., 40001) should reflect the actual running frequency.
Typical Data Mapping Example
The SKJ VFD uses standard Modbus register addresses. Below is a common mapping for basic control and monitoring:
| Modbus Address | Function | Data Type | Profinet I/O Address (Example) |
|---|---|---|---|
| 40001 (Holding Register) | Control word (start/stop, direction) | 16-bit word | QW0 (Output) |
| 40002 | Frequency reference (0-5000 = 0-50.00 Hz) | 16-bit word | QW2 (Output) |
| 40003 (Holding Register) | Status word (running, fault) | 16-bit word | IW0 (Input) |
| 40004 | Output frequency (actual) | 16-bit word | IW2 (Input) |
| 40005 | Output current (0.1 A) | 16-bit word | IW4 (Input) |
Note: Actual register addresses may vary depending on the SKJ model. Always refer to the VFD’s user manual for the exact Modbus register map.
Wiring and Installation Tips
Proper wiring is crucial for reliable communication. Follow these guidelines:
- Use shielded twisted-pair cable for RS485 (e.g., Belden 3105A). Connect the shield to ground at one end only to avoid ground loops.
- Terminate the RS485 network with 120-ohm resistors at both ends if the cable length exceeds a few meters.
- Keep RS485 cables away from power lines and VFD motor cables to minimize electromagnetic interference.
- Power the gateway from a clean 24V DC supply, preferably the same as the PLC’s power supply.
- Set unique Modbus slave IDs for each VFD on the same bus (1-247).
Troubleshooting Common Issues
| Symptom | Possible Cause | Solution |
|---|---|---|
| Gateway not connecting to PLC (no link LED) | IP address mismatch, wrong device name | Check IP settings and Profinet device name in TIA Portal and gateway configuration. |
| Modbus communication error (red LED on gateway) | Baud rate/parity mismatch, wrong slave ID, wiring issue | Verify Modbus parameters on both gateway and VFD. Check RS485 connections (A/B polarity). |
| Data values are zero or incorrect | Incorrect register mapping, data format mismatch | Cross-check register addresses and data scaling. Use a Modbus scanner tool to verify raw data. |
| Intermittent communication | Noise, missing termination, long cable | Add termination resistors, reduce baud rate, improve shielding. |
Advanced Features and Scalability
Modern gateways often support additional functions beyond basic data exchange:
- Web-based configuration: Built-in web server for parameter setting and diagnostics without extra software.
- Data logging: Some gateways can buffer Modbus data during Profinet disconnection.
- Multi-slave support: One gateway can communicate with up to 32 Modbus devices, reducing hardware costs.
- Firmware upgrade: Field-upgradable via Ethernet to support new features or bug fixes.
For larger systems, multiple gateways can be deployed, each handling a group of VFDs. The Profinet network ensures deterministic data exchange, making it suitable for coordinated drive applications like conveyors, pumps, and fans.
Conclusion
Integrating SKJ series VFDs with a Siemens S7-1200 PLC via a Modbus RTU to Profinet gateway is a cost-effective and reliable method to modernize industrial control systems. The gateway simplifies engineering, reduces downtime, and provides real-time access to drive parameters for improved process control and energy management. By following the configuration steps outlined above, engineers can quickly establish robust communication and focus on optimizing their automation applications.
Note: Always refer to the specific gateway and VFD manuals for detailed specifications and safety instructions. Proper grounding and EMC practices are essential when installing industrial communication equipment.