The QJ71C24 computer link module provides a serial communication link to a Mitsubishi Q-Series PLC Device. Fernhill SCADA can use this module to monitor and control a Mitsubishi Q-Series PLC Device.
The information in this guide applies to a range of Mitsubishi Melsec Q-Series serial communication modules:
Module | Interface |
---|---|
QJ71C24 | Dual RS-232 ports |
QJ71C24N | Dual RS-232 ports |
QJ71C24-R2 | One RS-232 and one RS422/485 port |
QJ71C24N-R2 | One RS-232 and one RS422/485 port |
QJ71C24-R4 | Two RS422/485 ports |
QJ71C24N-R4 | Two RS422/485 ports |
The rest of this article uses the name QJ71C24 to refer to any of the above modules.
There are two types of connection on the Q-Series serial communication modules:
Connection Type | Description |
---|---|
RS-232 DE-9 | RS-232 using a D-Subminiature 9 pin female connector |
RS-422/485 Screw Terminals | RS-422/485 using screw terminals |
The RS-232 port on a QJ71C24 can connect directly to a serial port on a PC. The serial port on a PC is usually a 9 pin D-subminiature connector. To connect the QJ71C24 to a PC, a connection cable with this wiring is required:
QJ71C24 RS-232![]() |
PC![]() | ||
---|---|---|---|
RXD | 2 | 3 | TXD |
TXD | 3 | 2 | RXD |
DTR | 4 | 6 | DSR |
GND | 5 | 5 | GND |
DSR + DCD | 6 + 1 | 4 | DTR |
RTS | 7 | 8 | CTS |
CTS | 8 | 7 | RTS |
Note: All other pins not shown in the above diagram have no connection.
Use this table to select the appropriate wiring between the screw terminals on the module and common RS-422 adapters:
Mitsubishi Melsec | ||||
---|---|---|---|---|
RDA | RDB | SDA | SDB | |
Advantech ADAM-4520 | TX+ | TX- | RX+ | RX- |
StarTech IC485S IC485SGB IC485SEU | 1 (TX-) | 2 (TX+) | 4 (RX-) | 3 (RX+) |
For more information about connecting a PLC Device to a computer using an RS-422 link, see RS-422 Communication with PLC Devices.
Setting up a serial communication link can be difficult because of the wide variety of communication options. For example:
For Fernhill SCADA to communicate with a QJ71C24 module, both need to use the same communication options. There are two main ways to achieve this:
The QJ71C24 module has two communication ports labelled Ch 1 and Ch 2. The communications settings of each port are configured by writing values to the switch settings of the module.
Fernhill SCADA is configured using properties of the Channel and PLC tags:
You can use GX Developer to set the switch settings of the QJ71C24 module. Writing values to the switch settings will configure the communication parameters of the QJ71C24 module. To configure a QJ71C24 module:
1. Open a project in GX Developer and expand the Parameter branch of the project:
2. Double-click the PLC Parameter branch to open the Parameter window. Select the I/O assignment tab:
Note: The actual contents of the I/O Assignment table will depend on the module(s) fitted.
3. Click the Switch Setting button. The Switch setting for I/O and intelligent function module dialog opens:
4. Enter appropriate values for the settings Switch 1 to Switch 5. The following section describes how the switch settings map to the Mode property of the Mitsubishi Melsec serial channel.
The QJ71C24 switch settings consist of five 16-bit word values labelled as: Switch 1 to Switch 5.
Switch 1 to Switch 4 define the communication settings of Ch 1 and Ch 2. Switch 1 to 4 should be configured as:
Ch 1 | Ch 2 | Description | Comment |
---|---|---|---|
Switch 1 Bit 0 | Switch 3 bit 0 | Independent Ports | Must be off for Ch 1 Can be on or off for Ch 2 |
Switch 1 bit 1 | Switch 3 bit 1 | Data Bits | Should match the Mode property |
Switch 1 bits 2-3 | Switch 3 bits 2-3 | Parity | Should match the Mode property |
Switch 1 bit 4 | Switch 3 bit 4 | Stop Bits | Should match the Mode property |
Switch 1 Bit 5 | Switch 3 bit 5 | Sum Check | Must be set to On |
Switch 1 Bit 6 | Switch 3 bit 6 | Controls in Run Mode | Must be set to On to allow controls from Fernhill SCADA |
Switch 1 Bit 7 | Switch 3 bit 7 | Allow configuration | Can be set to On or Off |
Switch 1 bits 8-15 | Switch 3 bits 8-15 | Baud Rate | Should match the Mode property |
Switch 2 | Switch 4 | Frame Format | Should match the CommFormat property |
Switch 5 defines the station number of the QJ71C24. The value of the Switch 5 must match the value of the StationNumber property of the Mitsubishi Melsec PLC Tag.
Bit 1 of switch 1 defines the number of data bits in each character transmitted on Ch 1. Bit 1 of switch 3 defines the number of data bits in each character transmitted on Ch 2. The Mode property of the Mitsubishi Melsec serial channel should contain a matching Data clause:
Switch 1/3 Bit 1 | Mode String Clause |
---|---|
Off | Data=7 |
On | Data=8 |
Bits 8-15 of switch 1 define the parity bits added to each character transmitted on Ch 1. Bits 8-15 of switch 3 define the parity bits added to each character transmitted on Ch 2. The Mode property of the Mitsubishi Melsec serial channel should contain a matching Parity clause:
Switch 1/3 Bit 2 | Switch 1/3 Bit 3 | Mode String Clause |
---|---|---|
Off | * | Parity=N |
On | Off | Parity=O |
On | On | Parity=E |
Note: The asterisk (*) means not applicable.
Bit 4 of switch 1 defines the number of stop bits in each character transmitted on Ch 1. Bit 4 of switch 3 defines the number of stop bits in each character transmitted on Ch 2. The Mode property of the Mitsubishi Melsec serial channel should contain a matching Stop clause:
Switch 1/3 Bit 4 | Mode String Clause |
---|---|
Off | Stop=1 |
On | Stop=2 |
Bits 8-15 of switch 1 define the baud rate of Ch 1. Bits 8-15 of switch 3 define the baud rate of Ch 2. The Mode property of the Mitsubishi Melsec serial channel should contain a matching Baud clause:
Switch 1/3 Bits 8-15 | Mode String Clause |
---|---|
00h | Baud=300 |
01h | Baud=600 |
02h | Baud=1200 |
03h | Baud=2400 |
04h | Baud=4800 |
05h | Baud=9600 |
07h | Baud=19200 |
09h | Baud=38400 |
0Ah | Baud=57600 |
0Bh | Baud=115200 |
Fernhill SCADA supports communication modes 1, 2, 3 and 4. The CommFormat property of the Mitsubishi Melsec serial channel should be set to the matching value:
Switch 2/4 | CommFormat |
---|---|
1 | Format 1 |
2 | Format 2 |
3 | Format 3 |
4 | Format 4 |
This table shows an example configuration for a QJ71C24 module:
Switch 1 | Switch 2 | Switch 3 | Switch 4 | Switch 5 |
---|---|---|---|---|
077C | 0001 | 0566 | 0002 | 0005 |
The matching configuration in Fernhill SCADA would be:
Parameter | Ch 1 | Ch 2 |
---|---|---|
Channel Mode | Baud=19200 Data=7 Parity=E Stop=2 | Baud=9600 Data=8 Parity=O Stop=1 |
Channel CommFormat | Format 1 | Format 2 |
Device StationNumber | 5 | 5 |
For more information refer to the QJ71C24 User Manual.
Mitsubishi Melsec Serial Autodetect Wizard
For how to automatically configure Fernhill SCADA to communicate with a Mitsubishi serial communication module.
Mitsubishi Melsec serial channel
For information about Mitsubishi Melsec serial channel configuration.
For information about Mitsubishi Melsec device configuration.
For background information on serial communications.
For information about other drivers available in Fernhill SCADA.
For the meaning of terms used in Fernhill SCADA.