The A(1S)J71QE71N Ethernet module provides an Ethernet communication link to a Mitsubishi QnA-Series PLC Device. Fernhill SCADA can use this module to monitor and control a Mitsubishi QnA-Series PLC Device.
The information in this guide applies to a range of Mitsubishi Melsec QnA-Series Ethernet modules:
Module | Interface |
---|---|
AJ71QE71N3-T | 10Base-T |
AJ71QE71N-T | 10Base-T |
AJ71QE71N-B5 | 10Base-5 |
AJ71QE71N-B2 | 10Base-2 |
AJ71QE71N-B5T | 10Base-5 & 10Base-T |
A1SJ71QE71N3-T | 10Base-T |
A1SJ71QE71N-T | 10Base-T |
A1SJ71QE71N-B5 | 10Base-5 |
A1SJ71QE71N-B2 | 10Base-2 |
A1SJ71QE71N-B5T | 10Base-5 & 10Base-T |
The rest of this article uses the name A(1S)J71QE71N to refer to any of the above modules.
This guide shows you how to set up a A(1S)J71QE71N Ethernet module to use MC Protocol over UDP.
To connect Fernhill SCADA to an A(1S)J71QE71N Ethernet module you will need to first configure the module. The A(1S)J71QE71N Ethernet module configuration consists of:
The module has an Operating Mode switch and Communication Exchange switches. The Operating Mode switch should be set to 0 (Online). The Communication Exchange switches should be set to these positions:
Switch | Description | Recommended setting |
---|---|---|
SW1 | Line processing during TCP timeout error | Off (close the circuit) |
SW2 | Data code setting | Off (binary mode) |
SW3 | Automatic startup mode | Off (Runs following Y19) |
SW4 | Not used | Off |
SW5 | Not used | Off |
SW6 | Not used | Off |
SW7 | CPU Exchange setting | On (writing approved) |
SW8 | Initial timing | Off (quick start) |
The A(1S)J71QE71N Ethernet module is configured by writing values to the buffer memory of the Ethernet module. As a minimum you need to set values for the IP Address, and values for each Open Connection.
IP Address Setting:
Setting Name | Buffer Memory address | Recommended Value |
---|---|---|
IP Address | 0 to 1 | IP Address of the PLC |
Recommended Open Connection Settings
Setting Name | Buffer Memory address | Recommended Value |
---|---|---|
Fixed buffer | 16 to 23 bit 0 | 1 - Receive |
Protocol | 16 to 23 bit 8 | 1 - UDP |
Open system | 16 to 23 bits 14-15 | 00 - Active Open |
Local station port no. | 24, 31, 38, 45, 52, 59, 66, 73 | 1281 (501h) |
Destination IP address | 25-26, 32-33, 39-40, 46-47, 53-54, 60-61, 67-68, 74-75 | 4294967295 (FFFFFFFFh) - 255.255.255.255 |
Destination port no. | 27, 34, 41, 48, 55, 62, 69, 76 | 65535 (FFFFh) - Any |
You can configure the A(1S)J71QE71N Ethernet module using a PLC program. The PLC program writes the appropriate values to the buffer memory of the module. The program will also need to interact with the I/O signals of the A(1S)J71QE71N Ethernet module to successfully initialize it.
This example code shows the minimum steps to configure the A(1S)J71QE71N Ethernet module using an A-Series PLC program. The program configures the IP Address to 192.168.1.23, and two open UDP ports at 1280 (500h) and 1281 (501h). Both UDP ports will allow any inbound address. This example writes 8003h to buffer address 1F0h, which allows the ethernet module to communicate even if the host PLC is in STOP mode. This is useful if you want to configure the PLC via the ethernet network from GX Developer.
The program assumes the A(1S)J71QE71N Ethernet module is fitted to slot 0 (zero) of the main PLC rack.
| | | M9038 *<IP Addr 192.168.1.23 | +--| |------+-----------[DTOP H0 K0 H0C0A80117 K1]--+ | | | | | *<Start the module | | +----------------------------[SET Y19]--+ | | | | | Y19 *<Allow access during stop | +--| |-----------------------[TO H0 H1F0 H8003 K1]--+ | | | | | X10 Y19 *<Conn 1: UDP Port 1280 (500h) | +--|/|--| |--+----------------[TOP H0 K16 H101 K1]--+ | | | | +----------------[TOP H0 K24 H500 K1]--+ | | | | +---------[DTOP H0 K25 H0FFFFFFFF K1]--+ | | | | +--------------[TOP H0 K27 H0FFFF K1]--+ | | | | +----------------------------[SET Y8]--+ | | | | | X11 Y19 *<Conn 2: UDP Port 1281 (501h) | +--|/|--| |--+----------------[TOP H0 K17 H101 K1]--+ | | | | +----------------[TOP H0 K31 H501 K1]--+ | | | | +---------[DTOP H0 K32 H0FFFFFFFF K1]--+ | | | | +--------------[TOP H0 K33 H0FFFF K1]--+ | | | | +----------------------------[SET Y9]--+ | | | | +--------------------------------------------[END]--+
If for security reasons you wish to restrict the computers that can connect to the PLC you can set a specific destination IP address. For example, if you were to write H0C0A80101 to buffer address 25, then connection 1 would only accept messages from 192.168.1.1.
For more information refer to A(1S)J71QE71N User Manual.
The easiest way to configure Fernhill SCADA is to use the Mitsubishi Melsec UDP Autodetect Wizard. Based on the options you select the wizard will try different IP Addresses and Port numbers until the module is found. If a module is found you will be given an option to automatically create the correct configuration to communicate with the module.
If the autodetect wizard is unsuitable you can configure Fernhill SCADA manually:
To communicate with the A(1S)J71QE71N Ethernet module configured as in the previous example:
Property | Value | Comment |
---|---|---|
Host | 192.168.1.23 | The IP address of the A(1S)J71QE71N Ethernet module |
Port | 1281 | The port number of Connection 2 in the A(1S)J71QE71N Ethernet module |
To learn about Mitsubishi Melsec UDP communication channels.
Mitsubishi Melsec TCP Autodetect Wizard
To learn about automatically detecting Mitsubishi PLC Devices using TCP/IP.
Mitsubishi Melsec UDP Autodetect Wizard
To learn about automatically detecting Mitsubishi PLC Devices using UDP.
For information about the Mitsubishi Melsec Driver.
For the meaning of terms used in Fernhill SCADA.