Mitsubishi Q03UDE PLC Ethernet Communication with Barcode Scanner

In modern manufacturing, the need for real-time material tracking and high-speed data exchange has become critical. A heavy-duty electromechanical parts factory producing two million precision bearings annually faced a challenge: their assembly line, controlled by a Mitsubishi Q03UDE PLC, required a new full-process material traceability system. The existing RS232 serial barcode scanning solution was too slow (1.5 seconds per read) and prone to disconnections and data corruption in the harsh electromagnetic environment of the workshop. To meet the demanding cycle time of 200 parts per hour, the factory upgraded to an Ethernet-based communication system using an Ethernet communication module, enabling fast, reliable, and interference-resistant data transmission without modifying the original PLC control program.

System Architecture and Equipment List

The upgraded system integrates several key components to achieve seamless communication between the barcode scanner and the PLC. The core controller remains the Mitsubishi MELSEC Q series Q03UDE PLC (firmware version 20CX), which handles logic control, servo drives, pneumatic actuators, and process parameter acquisition. An Ethernet communication module (rail-mounted, with dual serial ports COM1 RS-232 and COM2 RS-485/422, and a 10/100M adaptive RJ45 port) acts as a bridge, supporting both Mitsubishi MC protocol and Modbus TCP concurrently, allowing up to eight simultaneous connections from host systems.

For identification, a Datalogic Matrix 320 industrial barcode scanner (IP65 rated, Ethernet interface, Modbus TCP support, response time under 3ms) reads 2D codes on material packaging, even if worn or soiled. Network infrastructure includes an industrial switch (8-port Fast Ethernet, ring redundancy with <15ms recovery) that meets industrial EMC standards, ensuring stable operation near high-power equipment. Additional devices include an industrial PC running SCADA software for monitoring and data archiving, a Mitsubishi GOT2000 HMI for on-site operator control, and a customized WMS system that receives production data via OPC UA.

Hardware Connections and IP Planning

The Ethernet communication module’s COM1 port connects to the Q03UDE PLC’s RS-232 programming port via a QC30R2 cable, establishing serial communication. COM2 is reserved for future expansion, such as a temperature and humidity sensor. All devices—the module, barcode scanner, HMI, and industrial PC—are connected to the industrial switch within the 192.168.2.0/24 subnet. The IP assignments are as follows:

Device IP Address Role/Port
Ethernet Module 192.168.2.100 TCP Server, Port 5001
Barcode Scanner 192.168.2.101 TCP Client, connects to 192.168.2.100:5001
GOT2000 HMI 192.168.2.102 MC Protocol Client
Industrial PC 192.168.2.103 SCADA/HMI
Gateway 192.168.2.1 Remote access

All network cables are shielded Cat5e, with 360° grounding to avoid interference from power cables and VFDs. The measured interference margin exceeds 25dB, ensuring robust data transmission.

Software Configuration and Commissioning Steps

The configuration process involves setting up the Ethernet module, barcode scanner, PLC program, and HMI/SCADA systems. Each step is crucial for reliable operation.

Ethernet Module Setup

Access the module’s web configuration page via a browser at 192.168.2.100:80. Set the serial port parameters to match the PLC: baud rate 115200 bps, 8 data bits, even parity, 1 stop bit, no flow control. Select the “Mitsubishi MC protocol and Modbus TCP coexistence” mode. Then, configure the address mapping table to link Modbus registers 40001–40018 to PLC data registers D2000–D2017, which will store decoded barcode information such as material batch, model, production batch, and supplier code. Save and reboot the module.

Barcode Scanner Configuration

Using the scanner’s setup tool, configure it as a Modbus TCP Client with a polling cycle of 40ms. Set the communication parameters: function code 03, starting address 40001, data length 18, target IP 192.168.2.100, port 5001. For triggering, use a diffuse photoelectric sensor connected to DI1 to initiate scanning on a rising edge, preventing false reads when no material is present.

PLC Program Modifications

The existing ladder logic for assembly control remains unchanged. Only a simple addition is needed: use the PLC’s built-in “external device write” function block to handle incoming data. In the D2000–D2017 area, add a non-zero check; when valid data is detected (UID non-zero), the corresponding bearing assembly subroutine is called, matching torque and clearance parameters. After assembly, results (pass/fail, actual process values) are written to D2018–D2027, which the module maps to Modbus 40019–40028 for the SCADA and WMS systems.

HMI and SCADA Integration

For the SCADA (WinCC 7.6), create a new driver for the Ethernet module using its IP and the MC protocol. Add tags Tag001–Tag018 linked to D2000–D2017 for material info, and Tag019–Tag028 for assembly results. Set data logging every 0.5 seconds in CSV format and push data to the WMS via TCP/IP. For the GOT2000 HMI, in GT Designer3, set up an Ethernet connection to the PLC using MC protocol (IP 192.168.2.102). Design screens for material display, parameter adjustment, and alarms, allowing operators to verify scans and tweak settings directly.

Performance and Benefits

The Ethernet upgrade dramatically improved data transmission speed and reliability. The barcode reading and data transfer now complete within 150ms, meeting the high-speed assembly requirements. The system is immune to electromagnetic interference, eliminating previous issues of disconnections and data errors. By retaining the original PLC program, the upgrade minimized downtime and risk. The dual protocol support allows simultaneous access from the HMI, SCADA, and WMS, enabling comprehensive traceability and real-time monitoring.

Future Expansion Possibilities

This Ethernet communication architecture provides a solid foundation for future enhancements. The factory can easily integrate additional equipment such as AGVs for material delivery, vision inspection systems, or more sensors by leveraging the module’s second serial port and the switch’s available ports. The scalable design supports the evolution toward a fully automated, intelligent assembly line with enhanced productivity and product traceability.

Key Takeaway: Upgrading legacy PLC systems with Ethernet communication modules is a cost-effective way to achieve high-speed, reliable data exchange for modern traceability requirements without overhauling existing control logic.

Similar Posts