Mitsubishi QJ71MT91 User Manual

Modbus/tcp interface module melsec-q series
Hide thumbs Also See for QJ71MT91:
Table of Contents

Advertisement

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi QJ71MT91

  • Page 3: Safety Precautions

    • SAFETY PRECAUTIONS • (Always read these instructions before using this equipment.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly. The instructions given in this manual are concerned with this product.
  • Page 4 CAUTION • Do not bundle the control wires and the communication cables with the main circuit and the power wires, and do not install them close to each other. They should be installed at least 100 mm (3.94 in.) away from each other. Failure to do so may generate noise that may cause malfunctions.
  • Page 5 CAUTION • Securely connect the connector to the module. • Make sure to place the communication and power cables to be connected to the module in a duct or fasten them using a clamp. If the cables are not placed in a duct or fastened with a clamp, their positions may be unstable or moved, and they may be pulled inadvertently.
  • Page 6 CAUTION • Before performing online operations (especially, program modification, forced output or operating status change) by connecting a peripheral device to a running CPU, read the manual carefully and ensure the safety. Incorrect operation will cause mechanical damage or accidents. •...
  • Page 7: Revisions

    This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 8: Table Of Contents

    INTRODUCTION Thank you for purchasing the MELSEC-Q series programmable controller. Before using the equipment, please read this manual carefully to develop full familiarity with the functions and performance of the Q series programmable controller you have purchased, so as to ensure correct use. CONTENTS SAFETY PRECAUTIONS..........................A- 1 REVISIONS ..............................A- 5...
  • Page 9 7.4.3 Default assignment parameters......................7-29 ® 7.4.4 MODBUS extended file register assignment.................. 7-31 7.4.5 QJ71MT91 buffer memory assignment.................... 7-32 8 UTILITY PACKAGE (GX Configurator-MB) 8- 1 to 8-36 8.1 Functions of the Utility Package ......................8- 1 A - 7...
  • Page 10 10.3 Z(P).MBREQ ............................10-11 11 TROUBLESHOOTING 11- 1 to 11-48 11.1 Troubleshooting ........................... 11- 1 11.2 Confirming QJ71MT91 Status ......................11-10 11.3 Error Codes ............................11-13 11.3.1 Error code storage areas ......................11-13 11.3.2 Exception code list ........................11-19 11.3.3 Error code list ..........................11-21...
  • Page 11 11.4.1 From GX Configurator-MB......................11-37 11.4.2 Program example for use of sequence program ................. 11-40 11.5 Conducting PING Test to Check QJ71MT91 Connection ..............11-41 11.5.1 From GX Configurator-MB......................11-42 11.5.2 Program example for use of sequence program ................. 11-46...
  • Page 12: Compliance With The Emc And Low Voltage Directives

    (1) For programmable controller system To configure a system meeting the requirements of the EMC and Low Voltage Directives when incorporating the Mitsubishi programmable controller (EMC and Low Voltage Directives compliant) into other machinery or equipment, refer to Chapter 9 "EMC AND LOW VOLTAGE DIRECTIVES" of the QCPU User's Manual (Hardware Design, Maintenance and Inspection).
  • Page 13: The Manual's Usage And Structure

    (a) Section 2.1 describes the applicable programmable controller CPUs and compatible software packages. (b) Section 2.2 describes the devices necessary to configure a network. (c) Section 2.3 describes the system configurations that use the QJ71MT91 and the accessible range. (3) Performance and specifications (Chapter 3) (a) Section 3.1 provides the performance specifications of the QJ71MT91.
  • Page 14 (6) Settings and procedures necessary to operate the system (Chapter Chapter 6 describes the pre-operation settings and procedures. (7) Parameter setting of the QJ71MT91 (Chapter 7) Chapter 7 describes the parameter setting procedures and parameter details. (8) Parameter setting from the utility package (Chapter 8) Chapter 8 describes the utility package operation method.
  • Page 15: About The Generic Terms And Abbreviations

    A machine-specific address that is also referred to as the MAC (Media Access Control) address. This is used to identify the addresses of external devices over a network. Ethernet Address The Ethernet address of the QJ71MT91 can be verified on the MAC ADD column of the rating plate. MELSECNET/H The MELSECNET/H network system.
  • Page 16: Meanings And Definitions Of Terms

    Memory provided for the programmable controller CPU to record the data handled in Device memory sequence program operation. Product Configuration The following indicates the product configuration of the QJ71MT91 MODBUS /TCP interface module. Item name Model...
  • Page 17: Overview

    This manual explains the specifications, functions, programming, troubleshooting, etc. of the MELSEC-Q series QJ71MT91 MODBUS /TCP interface module (hereafter abbreviated to the QJ71MT91). The QJ71MT91 is used to connect the MELSEC-Q series programmable controller to a MODBUS /TCP network. MODBUS is a registered trademark of Schneider Electric SA.
  • Page 18 MELSEC-Q (b) Communication using dedicated instruction Dedicated instructions can be used to make communication from a sequence program at any timing. The QJ71MT91 supports the following two dedicated instructions. 1) MBRW instruction Reads/writes MODBUS device data from/to a slave. This enables slave data to be read out to the programmable controller CPU device memory or programmable controller CPU data to be written to the slave.
  • Page 19 The slave function supports the following two functions. (a) Automatic response function The QJ71MT91 can automatically respond to a request message received from the master. A sequence program for the slave function is not needed. (b) MODBUS...
  • Page 20 Slave Master Slave Ethernet 1) In response to a request message from the master, the QJ71MT91 operates as a slave and returns a response message. 2) The QJ71MT91 operates as a master, and issues a request message to the slave.
  • Page 21 ( 1) 1: It is recommended to use the utility package with the QJ71MT91. By making various parameter settings with the utility package, communication can be made without sequence programs.
  • Page 22: System Configuration

    2 SYSTEM CONFIGURATION MELSEC-Q 2 SYSTEM CONFIGURATION This chapter explains the system configuration of the QJ71MT91. 2.1 Applicable Systems This section describes the applicable systems. (1) Applicable modules and base units, and No. of modules (a) When mounted with a CPU module The table below shows the CPU modules and base units applicable to the QJ71MT91 and quantities for each CPU model.
  • Page 23 (b) Mounting to a MELSECNET/H remote I/O station The table below shows the network modules and base units applicable to the QJ71MT91 and quantities for each network module model. Depending on the combination with other modules or the number of mounted modules, power supply capacity may be insufficient.
  • Page 24 2 SYSTEM CONFIGURATION MELSEC-Q (2) Support of the multiple CPU system When using the QJ71MT91 in a multiple CPU system, refer to the QCPU User's Manual (Multiple CPU System) first. (a) Compatible QJ71MT91 The function version of the first released QJ71MT91 is B, and it supports multiple CPU systems.
  • Page 25: Devices Necessary For Network Configuration

    Please note that the network must be installed by qualified networking specialists to take sufficient safety measures. The 10BASE-T or 100BASE-TX can be used to connect the QJ71MT91 to a network. The QJ71MT91 will distinguish between 10BASE-T and 100BASE-TX, and between the full duplex and half duplex communication mode according to the hub type.
  • Page 26: System Configuration And Access Range

    MELSEC-Q 2.3 System Configuration and Access Range This section provides the system configurations using the QJ71MT91. ( 1) The target devices available for communication with the QJ71MT91 are the following two kinds of devices. Master/slave device supporting the MODBUS /TCP protocol...
  • Page 27 QJ71MT91 Connected programmable controller MODBUS /TCP (b) Precautions for GX Developer connection When the QJ71MT91 and Ethernet module exist together on the same Ethernet, access cannot be made between the QJ71MT91 and Ethernet module. GX Developer QJ71MT91 Ethernet module Ethernet and MODBUS /TCP mixed network...
  • Page 28: Precautions For System Configuration

    2 SYSTEM CONFIGURATION MELSEC-Q 2.4 Precautions for System Configuration (1) For Use with Q12PRH/Q25PRHCPU (a) About dedicated instructions Dedicated instructions cannot be used. Instead of the MBRW instruction, use the automatic communication function. (Refer to Section 9.2 and 9.3.) The MBREQ instruction cannot be used. (b) GX Configurator-MB GX Configurator-MB cannot be used when accessing the Q12PRH/Q25PRHCPU via an intelligent function module on an extension...
  • Page 29: How To Check The Function Version And Software Version

    2 SYSTEM CONFIGURATION MELSEC-Q 2.5 How to Check the Function Version and Software Version Confirm the function version of the QJ71MT91 and the software version of GX Configurator-MB in the following methods. (1) Checking the function version of the QJ71MT91 (a) Checking at "the SERIAL field of the rating plate"...
  • Page 30 Serial No. printed on the rating plate is displayed in the Production No. column. *1 Note that, because the QJ71MT91 does not support the production No. display, "-" is displayed. *1: The Production No. column display is active only when the CPU used is a Universal model QCPU.
  • Page 31: Specifications

    3 SPECIFICATIONS MELSEC-Q 3 SPECIFICATIONS This chapter explains the QJ71MT91's performance specifications, I/O signals for programmable controller CPU, and buffer memory. For general specifications, refer to QCPU User's Manual (Hardware Design, Maintenance and Inspection). 3.1 Performance Specifications This section provides the performance specifications of the QJ71MT91.
  • Page 32: I/O Signals For Programmable Controller Cpu

    Use prohibited ON : Error completed OFF: 1: Turns ON when the QJ71MT91 is ready after the programmable controller is turned ON from OFF or after the programmable controller CPU is reset. (Continued on next page) 3 - 2...
  • Page 33 3 SPECIFICATIONS MELSEC-Q Signal Direction QJ71MT91 Programmable controller CPU Signal Direction Programmable controller CPU QJ71MT91 Device Reference Device Reference Signal name Signal name section section MODBUS device assignment parameter setting existence Section ON : Parameters set 9.1.3 OFF: No parameters set...
  • Page 34: Applications And Assignment Of Buffer Memory

    3 SPECIFICATIONS MELSEC-Q 3.3 Applications and Assignment of Buffer Memory 3.3.1 Buffer memory list A buffer memory list is given below. Read/ Initial Reference Address Application Name Initial Value Write Setting Section ( 1) ( 2) 0000 TCP ULP timer value (60) Set time = set value 500ms...
  • Page 35 3 SPECIFICATIONS MELSEC-Q Read Initial Reference /Write Setting Address Application Name Initial Value Section ( 1) ( 2) 0110 Local slave station port No. Section (272) 0111 Target slave port No. for automatic (273) communication function 0112 0113 System area (use prohibited) (274 to 275) 0114 MODBUS...
  • Page 36 3 SPECIFICATIONS MELSEC-Q Read/ Initial Reference Address Application Name Initial Value Write Setting Section ( 1) ( 2) 0900 Device code (2304) 0901 Coil Head device number (2305) assignment 0902 Head coil number (2306) 0903 Assignment points (2307) 0904 Coil 093F assignment (Same as coil assignment 1)
  • Page 37 3 SPECIFICATIONS MELSEC-Q Read/ Initial Reference Address Application Name Initial Value Write Setting Section ( 1) ( 2) Section 0C05 Module LED ON LED ON status (3077) status status Section 11.2 0C06 0C0F System area (use prohibited) (3078 to 3087) 0C10 Basic parameter error code storage area (3088)
  • Page 38 3 SPECIFICATIONS MELSEC-Q Read Initial Reference Address Application Name Initial Value /Write Setting Section ( 1) ( 2) 0E00 H / W Ethernet Ethernet 0E02 Local station Ethernet address information address address (3584 to 3586) 0E03 0E0F System area (use prohibited) (3587 to 3599) 0E10 0E11...
  • Page 39 3 SPECIFICATIONS MELSEC-Q Read/ Initial Reference Address Application Name Initial Value Write Setting Section ( 1) ( 2) 0E70 0E71 UDP packet reception count (3696 to 3697) 0E72 Count of UDP packet reception Section 0E73 discarded due to sum check 11.3.1 (3698 to 3699) error...
  • Page 40: Modbusr Standard Functions

    1: The QJ71MT91 slave function does not support this function. However, it can be issued from the master (QJ71MT91) by use of the MBREQ instruction. 2: The function codes 07, 08, 11, 12 and 17 are the functions dedicated to the MODBUS serial protocol.
  • Page 41 In this case, an error code will be stored into the error log of the QJ71MT91, and an exception code will be returned to the master. 6: This function is not supported when the QJ71MT91 is mounted on a MELSECNET/H remote I/O station.
  • Page 42: Frame Specifications

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.2 Frame Specifications The frame specifications of MODBUS /TCP are indicated below. Ethernet Ethernet frame IP header TCP header Application data header (Error check) MODBUS /TCP ADU (MODBUS /TCP application data unit) MBAP header (MODBUS application header) (Protocol data unit) Message Transaction...
  • Page 43: Pdu Formats By Functions

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3 PDU Formats by Functions This section explains the PDU (protocol data unit) formats of the MODBUS standard functions. (1) Precautions for specifying device number in message When specifying a device number in a message, specify "(device number) - 1". However, it does not apply to the file number and device number specified for Read/Write file record.
  • Page 44 MELSEC-Q (3) Storage location of exception code and error code On error completion of processing in the slave (QJ71MT91), an exception code is sent to the master. (Refer to the "Response message format (when completed with an error)" given in Section 4.3.1 to 4.3.12.) The exception code is also stored into the QJ71MT91 buffer memory.
  • Page 45: Read Coils (Fc: 01)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.1 Read coils (FC: 01) Reads the statuses (ON/OFF) of one or more coils. Number of accessible devices with one message 1 to 2000 points (1) Request message format (Master Slave) Function code Data Head coil number Read points Function code (0000...
  • Page 46: Read Discrete Inputs (Fc: 02)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.2 Read discrete inputs (FC: 02) Reads the statuses (ON/OFF) of one or more inputs. Number of accessible devices with one message 1 to 2000 points (1) Request message format (Master Slave) Function code Data Head input number Read points Function code...
  • Page 47: Read Holding Registers (Fc: 03)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.3 Read holding registers (FC: 03) Reads the values of one or more holding registers. Number of accessible devices with one message 1 to 125 points (1) Request message format (Master Slave) Function code Data Head holding register number Read points Function code...
  • Page 48: Read Input Registers (Fc: 04)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.4 Read input registers (FC: 04) Reads the values of one or more input registers. Number of accessible devices with one message 1 to 125 points (1) Request message format (Master Slave) Function code Data Head input register number Read points Function code...
  • Page 49: Write Single Coil (Fc: 05)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.5 Write single coil (FC: 05) Writes a value (ON/OFF) to one coil. Number of accessible devices with one message 1 point (1) Request message format (Master Slave) Function code Data Coil number ON/OFF specification Function code (0000 to FFFF...
  • Page 50: Write Single Register (Fc: 06)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.6 Write single register (FC: 06) Writes a value to one holding register. Number of accessible devices with one message 1 point (1) Request message format (Master Slave) Function code Data Holding register number Write data Function code (0000 to FFFF...
  • Page 51: Write Multiple Coils (Fc: 15)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.7 Write multiple coils (FC: 15) Writes values (ON/OFF) to multiple coils. Number of accessible devices with one message 1 to 1968 points (1) Request message format (Master Slave) Function code Data Function code Head coil number Write points* Number Device data...
  • Page 52 4 MODBUS STANDARD FUNCTIONS MELSEC-Q (When completed with an error) Function code Data Function code Exception code* : When completed with an error, the exception code and error code are stored into the buffer memory. Refer to Section 11.3 for the storage location, confirmation method and more details.
  • Page 53: Write Multiple Registers (Fc: 16)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.8 Write multiple registers (FC: 16) Writes values to multiple holding registers. Number of accessible devices with one message 1 to 123 points (1) Request message format (Master Slave) Function code Data Number Device data Device data Head holding Write points...
  • Page 54: Read File Record (Fc: 20) (Sc: 06)

    (0001 to 007C (Number of bytes m 7) : The upper limit of the file number available for the QJ71MT91 slave function is equal to the file register size of the mounted programmable controller CPU. (Refer to Section 7.4.4.) (a) Specify the number of sub-requests "m" so that the PDU (protocol data unit) size in the request message does not exceed 253 bytes.
  • Page 55 4 MODBUS STANDARD FUNCTIONS MELSEC-Q (2) Response message format (Slave Master) (When completed normally) Function code Data Sub-request 1 Reference Number of Number of Device data Device data Function code number response read bytes data bytes (n1 2+1) (m 2+N 2) (Number of read bytes n1 2 + 1) (Number of response data bytes m...
  • Page 56: Write File Record (Fc: 21) (Sc: 06)

    (0001 to 007A (Number of bytes m : The upper limit of the file number available for the QJ71MT91 slave function is equal to the file register size of the mounted programmable controller CPU. (Refer to Section 7.4.4.) (a) Specify the total write points of all the sub-requests, N (n1 +...
  • Page 57 POINT Even if the slave (QJ71MT91) receives this function with the programmable controller CPU file register (ZR) set as read only (for example, the storage location of the file register [ZR] is a Flash card), the slave responds normally.
  • Page 58: Mask Write Register (Fc: 22)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.11 Mask write register (FC: 22) Masks the value stored in one holding register with AND or OR, and writes the masked value. Number of accessible devices with one message 1 point The masked value is written to the holding register as described below. (Target register’s current value AND mask value) (OR mask value AND mask value)
  • Page 59: Read/Write Multiple Registers (Fc:23)

    4 MODBUS STANDARD FUNCTIONS MELSEC-Q 4.3.12 Read/Write multiple registers (FC:23) Reads and writes data from and to multiple holding registers. Write is executed first and read is then executed. Number of accessible devices with one message Read: 1 to 125 points Write: 1 to 121 points (1) Request message format (Master Slave)
  • Page 60: Functions

    IEEE802.3 frame Section 6.6 IEEE802.3 frame. 1: Dedicated instructions are not available when the QJ71MT91 is installed to a MELSECNET/H remote I/O station or a redundant system. 2: When the QJ71MT91 is mounted on a MELSECNET/H remote I/O station, there is a restriction on the function code supported by the automatic response function.
  • Page 61 Allows connection of up to eight GX Developers via the GX Developer connection function Section 5.6 QJ71MT91. Checks the operations of the QJ71MT91 and send/receive QJ71MT91 status check function functions. Hardware test Tests the RAM and ROM of the QJ71MT91.
  • Page 62: Master Function

    5 FUNCTIONS MELSEC-Q 5.2 Master Function This section explains the functions of the QJ71MT91 as a master of MODBUS /TCP. 5.2.1 Automatic communication function The automatic communication function allows device read/write request messages to be automatically issued from the QJ71MT91 to the MODBUS /TCP-compatible slave devices.
  • Page 63 5 FUNCTIONS MELSEC-Q When the QJ71MT91 starts communication with the slave device with the automatic communication function, the SD and RD LEDs turn ON. (Only when communicating) On the "Automatic communication status" screen of GX Configurator-MB, the start/stop test of the automatic communication function can be performed.
  • Page 64 (Refer to Section 8.6.3) (2) The QJ71MT91 guarantees the data between the programmable controller devices and the network line in units of one word (16 bits). 5 - 5...
  • Page 65 Using the set automatic communication parameters, the automatic communication function operates according to the repeat interval timer and response monitoring timer settings as shown below. Repeat interval timer expires. QJ71MT91 sends a request message to the slave. Response monitoring timer starts. Slave’s response condition...
  • Page 66 2) Transfer direction in automatic communication function buffer output area When sending a request message to the slave, the QJ71MT91 creates it by reading data from the automatic communication function buffer output area in descending order of the addresses in 1 word (16 bits) unit.
  • Page 67 5 FUNCTIONS MELSEC-Q (c) Data transfer between automatic communication function buffer areas and programmable controller CPU device memory Data can be transferred between the automatic communication buffer area and programmable controller CPU device memory by either of the following methods. Transfer Method Transfer by auto refresh setting Transfer by auto refresh...
  • Page 68: Dedicated Instructions

    (holding register 400500 read request) Response message Device memory (holding register 400500 = 1234 1234 Ethernet Dedicated instruction list The list of the dedicated instructions supported by the QJ71MT91 is indicated below. Dedicated Description Reference Instruction Issues a MODBUS device read/write request message to MBRW Section 10.2...
  • Page 69: Slave Function

    5 FUNCTIONS MELSEC-Q 5.3 Slave Function This section explains the functions of the QJ71MT91 as a slave of MODBUS /TCP. 5.3.1 Automatic response function The automatic response function allows the QJ71MT91 (slave function) to automatically execute the processing requested by the function code of a request message from the master and return a response message to the master.
  • Page 70: Modbus Device Assignment Function

    This allows direct access from the MODBUS /TCP-compatible master device to the programmable controller CPU device memory. Since the QJ71MT91 supports large capacities of MODBUS devices, all the device memories of the programmable controller CPU can be assigned. Refer to Section 7.4.1 for the MODBUS device sizes.
  • Page 71: Keepalive Function

    KeepAlive ACK message is sent from the QJ71MT91 to the target device. The alive status of the target device can be checked by whether a response message is returned or not to that ACK message.
  • Page 72 5 FUNCTIONS MELSEC-Q <Operation of KeepAlive function> QJ71MT91 <KeepAlive resend count: 3 times> Timeout Timeout Timeout (Alive check error) KeepAlive Start Start Start Start Stop interval timer Timeout Start Start Timeout KeepAlive start timer Message Message Message Message Message Message...
  • Page 73: Router Relay Function

    Ethernet, communication can be made without use of the router relay function. (2) A system using a Proxy router need not use the router relay function. (3) The router relay function is not the function that operates the QJ71MT91 as a router. 5 - 14...
  • Page 74: Gx Developer Connection Function

    (1) GX Developer connection function The GX Developer connection function allows connection to GX Developer via the QJ71MT91. The QJ71MT91 can connect a maximum of eight GX Developer. Refer to Section 7.2.3 for the GX Developer connection setting. (2) Accessible range Refer to Section 2.3 for details of the accessible range.
  • Page 75: Pre-Operational Procedures And Setting 6- 1 To

    6.1 Handling Precautions This section explains the precautions for handling the QJ71MT91. (1) Since the case of the QJ71MT91 is made of resin, do not drop or give it hard impact. (2) Always make sure to touch the grounded metal to discharge the electricity charged in the body, etc., before touching the module.
  • Page 76 Refer to Section 6.6. Set the intelligent function module switches wirh Refer to Section 6.6. GX Developer. Connect the Ethernet cable to the QJ71MT91 and Refer to Section 6.4. connect it to the network. Refer to Section 6.6. Set the operation mode to "Online" using GX Developer.
  • Page 77 "Use prohibited" signal among the output signals. Doing so may cause malfunction of the programmable controller system. (3) When having replaced the QJ71MT91, reset the other device of communication target. If the device holds the Ethernet address of the communication target, communication may not be continued since the Ethernet address is changed by the replacement of the QJ71MT91.
  • Page 78: Part Names

    6 PRE-OPERATIONAL PROCEDURES AND SETTING MELSEC-Q 6.3 Part Names This section indicates the names of the QJ71MT91 parts. QJ71MT91 ERR. INIT. COM.ERR. OPEN 100M 10BASE-T/100BASE-TX QJ71MT91 Name Description Indicator LEDs Refer to the following section, (1) Indications of indicator LEDs.
  • Page 79 6 PRE-OPERATIONAL PROCEDURES AND SETTING MELSEC-Q (1) Indications of indicator LEDs QJ71MT91 ERR. INIT. COM.ERR. OPEN 100M LED Name Indication Operation status Normal Error Normal completion of basic Basic parameter setting in INIT. Initial processing status parameter setting progress or nonexistent...
  • Page 80: Connection To Ethernet

    6 PRE-OPERATIONAL PROCEDURES AND SETTING MELSEC-Q 6.4 Connection to Ethernet This section explains how to connect the QJ71MT91 to the 100BASE-TX or 10BASE-T network. (1) Connection precautions The following are the precautions for connection of the QJ71MT91. Handle the QJ71MT91 correctly, paying full attention to safety.
  • Page 81 (Step 2) Connect the twisted pair cable to the QJ71MT91. POINT (1) The QJ71MT91 detects whether 10BASE-T or 100BASE-TX, and the full or half duplex communication mode is used according to the hub. For connection with the hub that does not support the auto negotiation function, set the half duplex communication mode on the hub side.
  • Page 82: Unit Tests

    QJ71MT91 (Refer to Section 6.6). 6.5.1 Hardware test The RAM and ROM of the QJ71MT91 are tested in the following steps. The test result can be checked with the LEDs on the front of the QJ71MT91. LED Status Step...
  • Page 83: Self-Loopback Test

    The procedure for the self-loopback test is shown below. This test is run for about 5 seconds. The test result can be checked with the LEDs on the front of the QJ71MT91. LED Status Step Operation [RUN] [OPEN] [ERR.]...
  • Page 84: Intelligent Function Module Switch Setting

    3. Click the <<I/O assignment>> tab and click the [Switch setting] button. The "Switch seting for I/O and intelligent function module" screen is displayed. [Operation procedure] 1. I/O assignment setting screen Set the following to the slot where the QJ71MT91 is mounted. Type : Select "Intelli".
  • Page 85 REMARK For the operation method of GX Developer, refer to the GX Developer Operating Manual. (1) Operation mode setting (Switch 1) Set the operation mode of the QJ71MT91, such as the online or offline mode. Set value Item Description Normal operation mode. Communicates with the target...
  • Page 86 The QJ71MT91 starts up with its default basic parameters, and starts communication. [When corresponding bit is ON] The QJ71MT91 starts up with the basic parameters set using a sequence program or GX Configurator-MB, and starts communication. However, the user-set basic parameters are not registered to the QJ71MT91 until the following operation is performed.
  • Page 87 Refer to Section 6.6.1 for details of the communication starting conditions of this switch setting and each function. (c) Online change enable/disable setting (Bit 2) Set whether to enable or disable the slave (QJ71MT91) to write data to the programmable controller CPU while the programmable controller CPU is in RUN status.
  • Page 88 6 PRE-OPERATIONAL PROCEDURES AND SETTING MELSEC-Q (d) Send frame specification (Bit 3) Specify the frame format in which the QJ71MT91 will send data to the target device. [When corresponding bit is OFF] Data are sent in the Ethernet (V2.0)-compliant frame.
  • Page 89: Communication Starting Conditions Depending On Basic Parameter/Modbus

    1: Start with the user-set parameters. 1: Start with the user-set parameters. [Communication starting conditions] Default parameter Parameter setting setting not made processing by GX QJ71MT91 operation Configurator-MB Module READY Basic parameter setting request Basic parameter setting, normally completed...
  • Page 90 MODBUS device assignment parameter starting method 0: Start with the default parameters. 0: Start with the default parameters. [Communication starting conditions] Default parameter setting Basic parameters QJ71MT91 operation MODBUS device assignment parameters Module READY Basic parameter setting request Basic parameter...
  • Page 91 MODBUS device assignment parameter starting method 1: Start with the user-set parameters. 0: Start with the default parameters. [Communication starting conditions] Default parameter setting MODBUS device QJ71MT91 operation assignment parameters Module READY Basic parameter Basic parameter setting request creation Basic parameter...
  • Page 92 MODBUS device assignment parameter starting method 0: Start with the default parameters. 1: Start with the user-set parameters. [Communication starting conditions] Default parameter setting Basic parameters QJ71MT91 operation Module READY Basic parameter setting request Basic parameter setting, normally completed Basic parameter...
  • Page 93 MODBUS device assignment parameter Basic parameter starting method starting method 1: Start with the user-set parameters. 1: Start with the user-set parameters. [Communication starting conditions] Default parameter QJ71MT91 operation setting not made Module READY Basic parameter Basic parameter setting request creation...
  • Page 94: Device Assignment

    To use the QJ71MT91, set the following parameters as necessary. (a) Basic parameters Set the basic information necessary for the QJ71MT91. When using the preset initial values of the QJ71MT91, no setting is required. Refer to Section 7.2 for details.
  • Page 95 7 PARAMETER SETTING MELSEC-Q (3) Parameter setting procedures Set the parameters in the following procedures. Parameter setting procedures Are the parameters set using GX Configurator-MB? Set the basic parameter starting method (b0) of the communication condition setting (Switch 2) to ON (Refer to Section 6.6).
  • Page 96 7 PARAMETER SETTING MELSEC-Q Write the parameters to the programmable controller CPU. With the RUN/STOP switch set to RUN, reset the programmable controller CPU. Is COM.ERR. LED OFF? Is X3 (Basic parameter setting existence) ON? 1 <Basic parameter error> Take action according to troubleshooting (Refer to Section 11.1 (2)).
  • Page 97 7 PARAMETER SETTING MELSEC-Q Will the initial values of the basic parameters be changed? Turn ON b0 (the basic parameter starting Turn OFF b0 (the basic parameter starting method) method) of the communication condition of the communication condition setting (Switch 2) setting (Switch 2) (Refer to Section 6.6).
  • Page 98 7 PARAMETER SETTING MELSEC-Q Write the sequence programs to the programmable controller CPU. Reset and restart the programmable controller CPU. Is X2 (Basic parameter setting, error completed) <Basic parameter error> Take action according to troubleshooting (Refer to Section 11.1 (2)). Is X5 (Automatic communication parameter setting, error completed)
  • Page 99: Basic Parameters

    7 PARAMETER SETTING MELSEC-Q 7.2 Basic Parameters 7.2.1 Basic parameters details The basic parameters are classified into the following three types. (1) TCP/UDP/IP setting Address Parameter Name Setting Range Initial Value 0000 TCP ULP timer value 2 to 2400 Set time = set value 500ms 0001 TCP zero window timer value...
  • Page 100: Gx Developer Connection Information Setting

    7 PARAMETER SETTING MELSEC-Q (2) GX Developer connection information setting Address Parameter Name Setting Range Initial Value 0030 Number of TCP connections for GX Developer connection 0 to 8 (48) (3) MODBUS /TCP setting Address Parameter Name Setting Range Initial Value 1 to 4999, 0110 Local slave station port No.
  • Page 101 IP level due to the send/receive station buffer limitations. 2) Set the time for waiting for the next split data segment in the case where the QJ71MT91 receives and restores the split data. 3) No setting is required when the initial value is used.
  • Page 102 TCP/UDP level are received. No setting is required when the default value is used. REMARK (1) Specify the QJ71MT91 side timer values that will satisfy the following conditions. Automatic Split reception...
  • Page 103 (e.g. via a dial-up router) and the TCP split transmission count is as described below. When QJ71MT91 transmission message size 536 bytes, n = 1 When 536 bytes < QJ71MT91 transmission message size 1072 bytes, n = 2 When 1072 bytes < QJ71MT91 transmission message size...
  • Page 104 7 PARAMETER SETTING MELSEC-Q (2) KeepAlive function (a) KeepAlive Set whether the KeepAlive function will be used or not. Setting name Setting Not used KeepAlive function is not used Used KeepAlive function is used No setting is required when the default value is used. (b) KeepAlive start timer value Set the time interval from the stop of communication with the target device to the start of alive check for the TCP connection opened with...
  • Page 105 (a) Router relay function 1) Set whether the router relay function will be used or not. The router relay function is not needed when the QJ71MT91 communicates with the target device on the same Ethernet (the subnet address of the IP address is the same).
  • Page 106 QJ71MT91 differs from that of the target device. *2 Set the subnet address of the target device when the class (network address) of the local station QJ71MT91 is the same as that of the target device. 7 - 13...
  • Page 107 IP address : 81052902 (129.4.64.1) (113.4.64.1) (129.5.41.2) (Setting example 1) When the network addresses of the local station QJ71MT91 and target device differ Network address Local station QJ71MT91 IP address (Class B) 1 0 0 0 0 0 0 1...
  • Page 108 7 PARAMETER SETTING MELSEC-Q (Setting example 3) When the network addresses of the local station QJ71MT91 and target device are the same Network address Local station QJ71MT91 IP address (Class B) 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1...
  • Page 109 7 PARAMETER SETTING MELSEC-Q 7.2.3 GX Developer connection information setting (1) Number of TCP connections for GX Developer connection (a) TCP connections for GX Developer connection represents connections for connecting GX Developer using the TCP protocol. Set the desired number to the Number of TCP connections for GX Developer connection.
  • Page 110: Modbus ® /Tcp Setting

    7.2.4 MODBUS /TCP setting (1) Local slave station port No. Set the port No. on the QJ71MT91 side for receiving a request message from the master using the slave function of the QJ71MT91. POINT (1) The specifications of the MODBUS /TCP protocol define that "502"...
  • Page 111 7 PARAMETER SETTING MELSEC-Q (b) The QJ71MT91 starts the CPU response monitoring timer when it receives a request message from the master. (1) in the figure) The CPU response monitoring timer monitors the programmable controller CPU processing until the QJ71MT91 starts sending a response message to the master.
  • Page 112: Automatic Communication Parameters

    0 to 65535 (515) Set time = set value 10ms 0,2 to 2400 0204 Response monitoring timer value When the set value is 0, the QJ71MT91 (516) Set time = set value 500ms operates at 60 (30s). 0000 : Not specified...
  • Page 113 (b) Overlap of send and receive processings may cause delay and take more time than the interval time set to the repeat interval timer. (c) When the repeat interval timer value is 0, the QJ71MT91 will issue a next request message immediately after it has received a response message from the slave.
  • Page 114 7 PARAMETER SETTING MELSEC-Q ® (5) Type specification of the target MODBUS device ® (a) Set the type of the read/write target MODBUS device. b8 b7 Read target Write target Set Value Target MODBUS Device Type Not specified Coil Input Input register Holding register (b) Setting range...
  • Page 115 Target MODBUS device Access points target MODBUS device address head number 0200 (Input) 1000 16628 <QJ71MT91 buffer memory> <Target slave device area> 116629 Read 1000 116640 to 116625 1001 116656 to 116641 1002 116672 to 116657 116663 Remaining area is masked with 0.
  • Page 116: Modbus Device Assignment Parameters

    CPU device memory. This allows direct access from the MODBUS compatible master device to the programmable controller CPU device memory. Programmable MODBUS /TCP controller CPU QJ71MT91 (Slave function) master device Sequence program unnecessary MODBUS device assignment parameters Device memory Device memory...
  • Page 117 7 PARAMETER SETTING MELSEC-Q [Schematic image of MODBUS device assignment parameter setting] MODBUS device assignment Programmable controller CPU device MODBUS device parameter setting example Internal relay (M) Coil 000001 Coil assignment 1 3500 M1201 Device code M ( 0090 003500 3500 Head device number 1201...
  • Page 118: Modbus ® Device Sizes

    7 PARAMETER SETTING MELSEC-Q ® 7.4.1 MODBUS device sizes The MODBUS devices available for the QJ71MT91 are given in the following table. MODBUS Device Type Read/Write Access Points MODBUS Device Number Coil Read/Write 65536 points 000001 to 065536 Input Read...
  • Page 119: Modbus ® Device Assignment Parameters Details

    7 PARAMETER SETTING MELSEC-Q ® 7.4.2 MODBUS device assignment parameters details Default Address Parameter Name Setting Range Value 0900 0000 : Device code not assigned Device code (2304) Other than 0000 : Device code 0901 Head device number 0000 to FFFF (2305) Coil assignment 1 (*1)
  • Page 120 *2: Refer to Section 7.4.5 for device assignment to the QJ71MT91 buffer memory. *3: Only this device is supported when the QJ71MT91 is mounted on a MELSECNET/H remote I/O station. An error will occur if an access request is received from the MODBUS /TCP master with any other device assigned.
  • Page 121 16. Set different head MODBUS device numbers. The slave function of the QJ71MT91 is inactive if any of the device number settings are dupplicated. (4) Assignment points As the assignment points, set the device points of the programmable controller...
  • Page 122: Default Assignment Parameters

    Refer to Section 6.6 for details of the intelligent function module switches. The following shows how the MODBUS devices are assigned by the MODBUS device assignment parameters and the default assignment parameter values set to the QJ71MT91 buffer memory. [Assignment of MODBUS devices by default assignment parameters] Coil...
  • Page 123 7 PARAMETER SETTING MELSEC-Q [Set values of default assignment parameters] Default Assignment Parameter Setting Items Buffer Memory Assignment Name Device code Head device Head MODBUS Assignment Address (Device symbol) number device number (*1) points Coil assignment 1 0900 to 0903 009D 0000 8192...
  • Page 124: Modbus ® Extended File Register Assignment

    ZR4184063 604063 (2) Out-of-bounds read/write request The QJ71MT91 sends an exception response when the master makes a request to the programmable controller CPU on the QJ71MT91-mounted station to read from or write to a nonexistent file register (ZR). For the file register (ZR), refer to the QCPU user's manual (explanation, program fundamentals).
  • Page 125: Qj71Mt91 Buffer Memory Assignment

    Use any of the MODBUS device, 422529 to 426624. (Refer to Section 7.4.3) ® (3) MODBUS device assignment range The following QJ71MT91 buffer memory addresses can be assigned to the MODBUS devices. Buffer Memory Address Size Name Auto Refresh Setting...
  • Page 126 MELSEC-Q 1) The QJ71MT91 receives a "holding register 400500 read" request message from the master. 2) The QJ71MT91 reads data from its own buffer memory according to the value set to the MODBUS device assignment parameter. Faster processing is executed as access is not influenced by the sequence scan.
  • Page 127: Utility Package (Gx Configurator-Mb)

    Auto refresh setting Section 8.5 User free area (2) The data of the QJ71MT91 buffer memory areas set for auto refresh are automatically read from/written to the specified devices when the END instruction of the CPU module is executed. (1) Monitor/test The buffer memory and I/O signals of the QJ71MT91 are monitored or tested.
  • Page 128: Installing And Uninstalling The Utility Package

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.2 Installing and Uninstalling the Utility Package For how to install or uninstall the utility package, refer to "Method of installing the MELSOFT Series" included in the utility package. 8.2.1 Handling precautions The following explains the precautions on using the GX Configurator-MB. (1) For safety Since GX Configurator-MB is add-in software for GX Developer, read "Safety Precautions"...
  • Page 129 The number of parameters that can be set for one module in GX Configurator- MB is as shown below. Target module Initial setting Auto refresh setting QJ71MT91 3 (Fixed) 5 (Max.) Example) Counting the number of parameter settings in Auto refresh setting This one row is counted as one setting.
  • Page 130: Operating Environment

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.2.2 Operating environment This section explains the operating environment of the personal computer that runs GX Configurator-MB. Item Description Installation (Add-in) target Add-in to GX Developer Version 4 (English version) or later. Computer Windows -based personal computer Refer to the next page "Operating system and performance required for personal computer".
  • Page 131 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q Operating system and performance required for personal computer Performance required for personal computer Operating system Memory Windows 95 (Service Pack 1 or later) Pentium 133MHz or more 32MB or more Windows Pentium 133MHz or more 32MB or more Windows Pentium...
  • Page 132: Utility Package Operation

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.3 Utility Package Operation 8.3.1 Common utility package operations (1) Control keys Special keys that can be used for operation of the utility package and their applications are shown in the table below. Application Cancels the current entry in a cell.
  • Page 133 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q (2) Data created with the utility package The following data or files that are created with the utility package can be also handled in GX Developer. Figure 8.1 shows respective data or files are handled in which operation.
  • Page 134 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q <Text files> A text file can be created by clicking the Make text file button on the initial setting, Auto refresh setting, or Monitor/Test screen. The text files can be utilized to create user documents. GX Developer/ Disk GX Configurator-MB...
  • Page 135: Operation Overview

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.3.2 Operation overview GX Developer screen [Tools] - [Intelligent function utility] - [Start] Select a target intelligent function module screen Enter "Start I/O No." and select "Module type" and "Module model name". Refer to Section 8.3.3 Initial setting Auto refresh Initial setting screen...
  • Page 136 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q [Online] - [Monitor/Test] Select monitor/test module screen Select the module to be monitored/tested. Monitor/Test screen Refer to Section 8.6 8 - 10 8 - 10...
  • Page 137: Starting The Intelligent Function Module Utility

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.3.3 Starting the Intelligent function module utility [Operating procedure] Intelligent function module utility is started from GX Developer. [Tools] [Intelligent function utility] [Start] [Setting Screen] [Explanation of items] (1) Activation of other screens Following screens can be displayed from the intelligent function module utility screen.
  • Page 138 (b) Set a target programmable controller CPU in GX Developer [Online] [Transfer Setup] Only use the control CPU for the QJ71MT91 to write the intelligent function module parameters for a multiple CPU system to the programmable controller. (c) When the QJ71MT91 is mounted on a MELSECNET/H remote I/O station, [Read from PLC] and [Write to PLC] must be performed from GX Developer.
  • Page 139 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.4 Initial Setting [Purpose] Set parameters on the initial setting screen. This setting eliminates the need for parameter setting by sequence programs. The initial setting are as follows. Basic parameters Automatic communication parameters MODBUS device assignment parameters [Operating procedure] "Start I/O No."...
  • Page 140 CPU is reset (with the programmable controller CPU's RUN/STOP switch set to RUN). If the QJ71MT91 is mounted on a MELSECNET/H remote I/O station, the initial settings become effective when the remote I/O station receives the information notifying the status change (from STOP to RUN) of the remote master station's programmable controller CPU.
  • Page 141: Auto Refresh Setting

    MELSEC-Q 8.5 Auto Refresh Setting [Purpose] Make this setting to store the QJ71MT91 buffer memory data into the specified devices of the programmable controller CPU or to store the programmable controller CPU device data into the QJ71MT91 buffer memory automatically.
  • Page 142 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q (b) Display items 1) Module side Buffer size Displays the buffer memory size of the setting item. 2) Module side Transfer word count Displays the number of words to be transferred. 3) Module side buffer offset Displays the offset value of the buffer memory data to be transferred.
  • Page 143: Monitor/Test

    [Monitor/Test Purpose] From this screen, start the monitoring or test of the operating status, I/O signals, parameter setting status, automatic communication status, error log, communication status of the QJ71MT91 and perform PING test. [Operating procedure] Select monitor/test module screen "Start I/O No. *"...
  • Page 144 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q Buffer memory Reference Monitor/Test Items address section INIT. status 0C05 OPEN status Module status LED ON status Section 11.2 (3077) ERR. status COM. ERR. status COM. ERR. LED OFF request (*1) Section 11.4.1 X/Y Monitor/test (*2) Section 8.6.1 Basic/MODBUS device assignment parameter status (*2)
  • Page 145 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q [Monitor/Test screen - Sub screen shift] Refer to Section 8.6.2 Basic/MODBUS(R) device X/Y Monitor/test Automatic communication Refer to Section 8.6.1 Refer to Section 8.6.3 8 - 19 8 - 19...
  • Page 146 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q Refer to Section 8.6.4 Error log Communication status PING test Refer to Section 8.6.5 Refer to Section 8.6.6 8 - 20 8 - 20...
  • Page 147 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.6.1 X/Y Monitor/test [Monitor/Test Purpose] Monitor I/O signals and performs tests on output signals. [Operating procedure] Monitor/Test screen X/Y Monitor/test [Monitor/Test Screen] [Monitor/Test Items] (1) X: Input signals Buffer memory Reference Monitor/Test Item address section X00: Module READY X01: Basic parameter setting, normally completed...
  • Page 148 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q (2) Y: Output signals To perform a test on output signals, select any item in the Setting value column and click the Execute test button. Buffer memory Reference Monitor/Test Item address section Y01: Basic parameter setting request Y04: Automatic communication parameter setting request/automatic communication start request Section 3.2.1...
  • Page 149 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q ® 8.6.2 Basic/MODBUS device assignment parameter status [Monitor Purpose] Monitor the setting status of the basic parameters and MODBUS device assignment parameters. [Operating procedure] Monitor/Test screen Basic/MODBUS(R) device [Monitor Screen] [Monitor Items] Buffer memory Reference Monitor Item address...
  • Page 150: Automatic Communication Status

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.6.3 Automatic communication status [Monitor/Test Purpose] Monitor the communication status of the automatic communication function. [Operating procedure] Monitor/Test screen Automatic communication [Monitor/Test Screen] [Monitor/Test Items] Buffer memory Reference Monitor/Test Item address section Automatic communication operation status Section 5.2.1 0C11 Automatic communication parameter error code storage area...
  • Page 151 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q *1: To test the automatic communication start request or automatic communication stop request, select the corresponding item in the Setting column and click the Execute test button. value POINT When conducting a test on the automatic communication start request or automatic communication stop request with "Being requested"...
  • Page 152: Error Log

    MELSEC-Q 8.6.4 Error log [Monitor Purpose] Display the errors that occurred in the QJ71MT91. Error logs are displayed in reverse chronological order (the latest error is displayed as No.1). For details of the monitoring items, refer to Section 11.3.1 (8), (b) Number of error occurred and (d) Error log (error log 1 to 32).
  • Page 153: Communication Status

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.6.5 Communication status [Monitor Purpose] Monitor the communication status by communication protocol. [Operating procedure] Monitor/Test screen Communication status [Monitor Screen] [Monitor Items] Buffer memory Reference Monitor Item address section 0E10 to 0E11 IP packet reception count (3600 to 3601) 0E12 to 0E13...
  • Page 154 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q Buffer memory Reference Monitor Item address section 0E30 to 0E31 ICMP packet reception count (3632 to 3633) Count of ICMP packet reception discarded due to sum check 0E32 to 0E33 error (3634 to 3635) 0E34 to 0E35 Total number of sent ICMP packets...
  • Page 155: Ping Test

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.6.6 PING test [Monitor/Test Purpose] Display the execution and result of a PING test. Refer to Section 11.5 for details. [Operating procedure] Monitor/Test screen PING test [Monitor/Test Screen] [Monitor/Test Items] Buffer memory Reference Monitor/Test Item address section 0FE0...
  • Page 156: Parameter Setting Using Gx Configurator-Mb

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.7 Parameter Setting Using GX Configurator-MB 8.7.1 Basic parameters [Purpose] Set the basic parameters on the basic parameter screen. [Operating procedure] Initial setting screen Basic parameter [Setting screen] 8 - 30 8 - 30...
  • Page 157 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q [Setting items] For the basic parameter setting, set the data format or setting range value of each item in the Setting value column, and click the End setup button to save the set values. Buffer memory Reference Setting Item...
  • Page 158 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q Buffer memory Reference Setting Item address section 0110 Local slave station port No. (272) Target slave port No. for automatic communication 0111 function (273) TCP/UDP/ MODBUS Section 7.2 0114 IP setting TCP setting CPU response monitoring timer value (276) Preferred node specification 1 to 64 0115...
  • Page 159: Automatic Communication Parameters

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q 8.7.2 Automatic communication parameters [Purpose] Set the automatic communication parameters on the Automatic communication parameter screen. [Operating procedure] Initial setting screen Automatic communication parameter [Setting screen] 8 - 33 8 - 33...
  • Page 160 8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q [Setting items] For the automatic communication parameter setting, set the data format or setting range value of each item in the Setting value column, and click the End setup button to save the set values. Buffer memory Reference Setting Item...
  • Page 161: Modbus Device Assignment Parameters

    8 UTILITY PACKAGE (GX Configurator-MB) MELSEC-Q ® 8.7.3 MODBUS device assignment parameters [Purpose] Set the MODBUS device assignment parameters on the MODBUS device assignment parameter screen. [Operating procedure] Initial setting screen MODBUS(R) device assignment [Setting screen] 8 - 35 8 - 35...
  • Page 162 ) setting When the MODBUS device is the input register or holding register, the QJ71MT91 buffer memory (user free area) setting is available. For setting, enter a value as a hexadecimal constant as shown below. Example) 5000 Enter a value "H5000".
  • Page 163: Programming

    When applying the following program examples to the actual system, make sure to examine the applicability and confirm that it will not cause system control problems. On-screen parameter setting for the QJ71MT91 is available by use of the utility package (GX Configurator-MB), reducing sequence programs. Refer to Chapter 8 for details of the utility package (GX Configurator-MB) operation method.
  • Page 164 Basic parameter setting existence Basic parameter Error code 0C10 clear error code storage Executed by QJ71MT91 area Executed by sequence program (b) When setting is completed with an error Basic parameter Basic parameter setting, error setting, normally completed...
  • Page 165 9 PROGRAMMING MELSEC-Q (4) Precautions for basic parameter setting (a) When setting the basic parameters with a sequence program, set the basic parameter starting method (b0) of the intelligent function module switch 2 (refer to Section 6.6) to ON (Start with the user-set parameters). (b) Turn ON Basic parameter setting request (Y1) after Module READY (X0) has turned ON.
  • Page 166: Automatic Communication Parameter Setting

    9 PROGRAMMING MELSEC-Q 9.1.2 Automatic communication parameter setting (1) Automatic communication parameter setting method Make automatic communication parameter setting in the following procedure. 1) Store the parameters into the automatic communication parameter area (address: 0200 to 04FF ) of the buffer memory. 2) Turn ON Automatic communication parameter setting request/automatic communication start request (Y4).
  • Page 167 Error code storage area and setting result clear Automatic communication 0C12 parameter setting result Executed by QJ71MT91 storage area Executed by sequence program (b) When setting is completed with an error Automatic communication Automatic communication parameter setting, normally parameter setting, error...
  • Page 168 Identify the stored parameter, check its error code, take corrective action, and make a parameter setting request again. Refer to Section 11.3 for details of the error code. (c) The QJ71MT91 does not clear the automatic communication function buffer input area (address: 1000 to 1FFF...
  • Page 169: Modbus ® Device Assignment Parameter Setting

    9 PROGRAMMING MELSEC-Q ® 9.1.3 MODBUS device assignment parameter setting ® (1) MODBUS device assignment parameter setting method Make MODBUS device assignment parameter setting in the following procedure. 1) Store the parameters into the MODBUS device assignment parameter area (address: 0900 to 09FF ) of the buffer memory.
  • Page 170 MODBUS device assignment 0C13 parameter error code storage area Error code and setting result clear MODBUS device assignment 0C14 to 0C15 parameter setting Executed by QJ71MT91 result storage area Executed by sequence program 9 - 8 9 - 8...
  • Page 171 Error code Error code storage area and setting and setting result storage result clear MODBUS device assignment 0C14 to 0C15 parameter setting result storage area Executed by QJ71MT91 Executed by sequence program 9 - 9 9 - 9...
  • Page 172 Set the MODBUS device assignment parameters in the online mode (intelligent function module switch 1: 0000 (f) The QJ71MT91 sends an exception response to the master if it receives a MODBUS device data read/write request message from the master before the MODBUS device assignment parameters are set normally.
  • Page 173: Program Example For Normal System Configuration

    GX Developer QJ71MT91 QJ71MT91 MODBUS /TCP slave device 192.1.0.5 192.1.0.6 192.1.0.2 1: This QJ71MT91 is assumed to be mounted in Slot 0 of the base unit with the head I/O No. set to 0. 9 - 11 9 - 11...
  • Page 174 (a) Automatic communication function The setting target QJ71MT91 (192.1.0.1) and MODBUS /TCP slave device (192.1.0.2) communicate with each other using the automatic communication function. Set automatic communication parameters to the setting target QJ71MT91. [Communication details] Master/Slave Slave QJ71MT91 MODBUS /TCP slave device Programmable controller CPU (192.1.0.1)
  • Page 175 9 PROGRAMMING MELSEC-Q ® (b) MODBUS device assignment function The setting target QJ71MT91 (192.1.0.1) uses the MODBUS device assignment function. Set the MODBUS device assignment parameters to the setting target QJ71MT91. [Assignment details] Programmable controller MODBUS devices CPU device memory...
  • Page 176 9 PROGRAMMING MELSEC-Q (2) Parameter setting details The following table gives the setting details of the parameters set in the program example. (a) Basic parameters Setting Item Buffer Memory Address Set Value TCP ULP timer value 0000 60 (30s) TCP zero window timer value 0001 20 (10s) TCP/UDP/IP...
  • Page 177 9 PROGRAMMING MELSEC-Q (b) Automatic communication parameters Setting Item Buffer Memory Address Set Value C0010002 Target station IP address 0200 to 0201 (512 to 513) (192.1.0.2) Module ID 0202 (514) Repeat interval timer value 0203 (515) 1200(120s) Response monitoring timer value 0204 (516) 60(30s)
  • Page 178 Basic parameter setting, normally completed Basic parameter setting, error completed Basic parameter setting existence Input Automatic communication parameter setting, normally completed Automatic communication parameter setting, error completed QJ71MT91 Automatic communication operation status input/output MODBUS device assignment parameter setting, normally completed MODBUS...
  • Page 179 9 PROGRAMMING MELSEC-Q Device Name Device Application U0\G0 to U0\G19 U0\G48 U0\G272 to Basic parameter setting area U0\G273 U0\G276 to U0\G279 U0\G512 to U0\G520 U0\G524 to Automatic communication parameter setting area U0\G529 U0\G533 to U0\G535 U0\G2304 to U0\G2307 U0\G2432 to MODBUS device assignment parameter setting area U0\G2435...
  • Page 180: Program Using Utility Package

    9 PROGRAMMING MELSEC-Q 9.2.2 Program using utility package (1) Intelligent function module switch setting Set the intelligent function module switches by clicking Switch setting on <<I/O assignment>> of GX Developer. For the program example, set intelligent function module switches as described below.
  • Page 181 9 PROGRAMMING MELSEC-Q (b) Automatic communication parameters Set the automatic communication parameters on the [Automatic communication parameter] screen. Set the values shown in Section 9.2.1 (2) (b). ® (c) MODBUS device assignment parameters Set the MODBUS device assignment parameters on the [MODBUS(R) device assignment parameter] screen.
  • Page 182 9 PROGRAMMING MELSEC-Q (3) Auto refresh setting Make auto refresh setting from the Auto refresh setting screen of GX Configurator-MB. Set the following items for the program example. Module side Module side PLC side Setting Item Transfer word count Buffer offset Device Automatic communication function buffer input area 256(100...
  • Page 183 9 PROGRAMMING MELSEC-Q (5) Program example <<Processing for normal automatic communication: For automatic communication parameter 1>> When automatic communication Module Automatic parameter 1 is normal READY communication operation status Program for normal automatic communication parameter 1 <<Processing for normal automatic communication: For automatic communication parameter 2>> When automatic communication Module Automatic...
  • Page 184: Program Without Using Utility Package

    9 PROGRAMMING MELSEC-Q 9.2.3 Program without using utility package (1) Intelligent function module switch setting Set the intelligent function module switches by clicking Switch setting on <<I/O assignment>> of GX Developer. For the program example, set intelligent function module switches as described below.
  • Page 185 9 PROGRAMMING MELSEC-Q (2) Parameter setting Set the parameters using a sequence program. Parameter setting can be omitted under the following conditions. Parameter Setting Omitting Condition Parameter Condition Setting method With the intelligent function module switch 2, set the basic parameter starting method (bit Basic parameters Use the default parameters.
  • Page 186 9 PROGRAMMING MELSEC-Q (5) Program example <<Basic parameter setting>> TCP ULP timer value Parameter Module setting READY command TCP zero window timer value TCP resend timer value TCP end timer value IP reassembly timer value Split reception monitoring timer value KeepAlive KeepAlive start timer value KeepAlive interval timer value...
  • Page 187 9 PROGRAMMING MELSEC-Q Turns OFF Basic parameter Basic setting request (Y1) when parameter setting is completed normally. setting, normally completed Turns ON automatic communication parameter Parameter setting setting command. command Turns OFF Basic parameter Basic setting request (Y1) and stores parameter error code into D100 when setting,...
  • Page 188 9 PROGRAMMING MELSEC-Q <<Automatic communication parameter setting>> Initializes automatic Parameter Module Basic Automatic communication parameter setting setting READY parameter comm. area. command setting operation existence status Automatic communication parameter 1 <Read coils> Target station IP address Module ID Repeat interval timer value Response monitoring timer value Type specification of the target MODBUS device...
  • Page 189 9 PROGRAMMING MELSEC-Q <<MODBUS device assignment parameter setting>> Initializes MODBUS device assignment parameter setting Parameter Module Basic setting READY parameter area. command setting existence For coil assignment 1 Device code Head device number Head coil number Assignment points For input register assignment 1 Device code Head device number Head input register number...
  • Page 190 9 PROGRAMMING MELSEC-Q <<Refresh processing: Automatic communication function buffer input area>> Refreshes automatic Module Automatic communication function buffer READY communication input area. operation status <<Processing for normal automatic communication: For automatic communication parameter 1>> When automatic communication parameter 1 is normal Module Automatic READY...
  • Page 191: Program Example For Use In Melsecnet/H Remote I/O Network

    Ethernet QJ71MT91 QJ71MT91 MODBUS /TCP slave device 192.1.0.5 192.1.0.6 192.1.0.2 1 : This QJ71MT91 is assumed to be mounted in Slot 0 of the base unit with the head I/O No. set to "0". 9 - 29 9 - 29...
  • Page 192 9 PROGRAMMING MELSEC-Q (a) Automatic communication function The setting target QJ71MT91 (192.1.0.1) and MODBUS /TCP slave device (192.1.0.2) communicate with each other using the automatic communication function. Set the automatic communication parameters to the setting target QJ71MT91. [Communication details] MELSECNET/H remote master station...
  • Page 193 9 PROGRAMMING MELSEC-Q MELSECNET/H remote I/O station Slave QJ71MT91 MODBUS /TCP slave device MELSECNET/H (192.1.0.1) (192.1.0.2) remote I/O module Coil 0C20 (Bit register) (3104) Automatic communication operation status storage area 000001 0C23 (3107) 015001 0C28 (3112) Automatic communication Input data...
  • Page 194 9 PROGRAMMING MELSEC-Q ® (b) MODBUS device assignment function The setting target QJ71MT91 (192.1.0.1) uses the MODBUS device assignment function. Set the MODBUS device assignment parameters to the setting target QJ71MT91. [Assignment details] Refer to Section 9.2.1 (1) (b) for the assignment details.
  • Page 195 Basic parameter setting, error completed Basic parameter setting existence X1003 Input X1004 Automatic communication parameter setting, normally completed X1005 Automatic communication parameter setting, error completed QJ71MT91 X1006 Automatic communication operation status input/output X1008 MODBUS device assignment parameter setting, normally completed X1009...
  • Page 196 9 PROGRAMMING MELSEC-Q Device Name Device Application SB20 Module status Link special relay SB47 Baton pass status (host) SB49 Host data link status SW70.1 Baton pass status of each station Link special register SW74.1 Cyclic transmission status of each station SW78.1 Parameter communication status of each station Timer...
  • Page 197: Program Using Utility Package

    9 PROGRAMMING MELSEC-Q 9.3.2 Program using utility package (1) Intelligent function module switch setting Set the intelligent function module switches by clicking Switch setting on <<I/O assignment>> of GX Developer. Refer to Section 9.2.2 (1) for the intelligent function module switches. (2) Parameter setting Set the parameters from the Initial setting screen of GX Configurator-MB.
  • Page 198 9 PROGRAMMING MELSEC-Q (4) Network parameter setting Set the network parameters on "Network parameter" of GX Developer. 1) Network type : MNET/H (remote master) 2) Starting I/O No. : 0000 3) Network No. 4) Total number of (slave) stations : 1 5) Mode : Online 6) Network range assignment...
  • Page 199 9 PROGRAMMING MELSEC-Q (6) Program example (a) Interlock program example for remote master station and remote I/O station Provide interlocks depending on the link status of the remote master station (local station) and remote I/O station (other station). The following example shows communication program interlocks using the link status (SB47, SB49) of the remote master station and the link status (SW70 bit 0, SW74 bit 0, SW78 bit 0) of the remote I/O station (station No.
  • Page 200 9 PROGRAMMING MELSEC-Q (b) Program example for automatic communication function POINT After execution of the REMTO/REMFR instruction, it requires several scans until read/write of actual data is completed. <<Processing for normal automatic communication: For automatic communication parameter 1>> When automatic communication parameter 1 is normal Module Automatic...
  • Page 201: Program Without Using Utility Package

    9 PROGRAMMING MELSEC-Q 9.3.3 Program without using utility package (1) Intelligent function module switch setting Set the intelligent function module switches by clicking Switch setting on <<I/O assignment>> of GX Developer. Refer to Section 9.2.3 (1) for the intelligent function module switches. (2) Parameter setting Set the parameters using a sequence program.
  • Page 202 9 PROGRAMMING MELSEC-Q (3) Network parameter setting Set the network parameters on "Network parameter" of GX Developer. 1) Network type : MNET/H (remote master) 2) Starting I/O No. : 0000 3) Network No. 4) Total number of (slave) stations : 1 5) Mode : Online 6) Network range assignment...
  • Page 203 9 PROGRAMMING MELSEC-Q (6) Program example (a) Interlock program example for remote master station and remote I/O station Provide interlocks depending on the link status of the remote master station (local station) and remote I/O station (other station). The following example shows communication program interlocks using the link status (SB47, SB49) of the remote master station and the link status (SW70 bit 0, SW74 bit 0, SW78 bit 0) of the remote I/O station (station No.
  • Page 204 Default router IP address Number of routers set Subnet address Router IP address Number of TCP connections for GX Developer connection Transfers basic parameters to REMTO QJ71MT91 buffer memory. instruction completion Turns ON Basic parameter REMTO REMTO Parameter setting command (M200) when...
  • Page 205 MELSEC-Q Local slave station port No. Parameter setting command Target slave port No. for automatic communication function Transfers basic parameters to REMTO QJ71MT91 buffer memory. instruction completion Turns ON Basic parameter setting REMTO REMTO Parameter command (M400) when instruction instruction setting ZP.REMTO instruction is...
  • Page 206 Access points Turns OFF Automatic Parameter communication parameter setting setting command (M100). command Transfers automatic communication parameters to REMTO QJ71MT91 buffer memory. instruction completion Turns ON Automatic communication parameter setting REMTO REMTO request/automatic communication instruction instruction start request (Y1004) when...
  • Page 207 9 PROGRAMMING MELSEC-Q Turns OFF Automatic communication parameter setting Automatic comm. request/automatic parameter communication start request setting, (Y1004) when setting is normally completed completed normally. Turns ON MODBUS device Parameter assignment parameter setting setting command (M200). command Turns OFF Automatic communication parameter setting request/automatic Automatic...
  • Page 208 Turns OFF MODBUS device assignment parameter setting Parameter setting command (M200). command Transfers MODBUS device REMTO assignment parameters to instruction QJ71MT91 buffer memory. completion Turns ON MODBUS device assignment parameter setting REMTO REMTO request (Y1008) when instruction instruction completion result ZP.REMTO instruction is...
  • Page 209 9 PROGRAMMING MELSEC-Q Turns OFF MODBUS device assignment parameter setting MODBUS device request (Y1008) when setting is parameter setting, completed normally. normally completed Turns OFF MODBUS device assignment parameter setting MODBUS request (Y1008) and stores error device parameter code and parameter setting result setting, error into D3091 when setting fails.
  • Page 210 9 PROGRAMMING MELSEC-Q <<Refresh processing: Automatic communication function buffer input area>> Refreshes automatic Module Automatic REMFR communication function buffer READY communication instruction input area. operation status completion Take corrective action for error completion, referring to Q Handling of Z.REMFR Corresponding MELSECNET/H Network System Reference instruction error REMFR REMFR...
  • Page 211 9 PROGRAMMING MELSEC-Q <<Handling of automatic communication error>> Module Automatic Automatic REMFR READY comm. comm. instruction operation error completion status status Turns ON External output (Y40) when automatic communication REMFR REMFR instruction instruction parameter 1 is invalid. completion result Acquires error code when automatic communication parameter 1 is invalid.
  • Page 212: Dedicated Instructions

    The dedicated instructions make programming easy for use of the intelligent function module functions. 10.1 Dedicated Instruction List and Available Devices (1) Dedicated instruction list The following table indicates a list of dedicated instructions supported by the QJ71MT91. Dedicated Description Reference Instruction...
  • Page 213: Z(P).Mbrw

    10 DEDICATED INSTRUCTIONS MELSEC-Q 10.2 Z(P).MBRW With this instruction, the MODBUS device data are read from and written to the slave. Usable Devices Internal device Link direct device Intelligent Constant Set Data Index register (System, user) function module File register Others device Word...
  • Page 214 10 DEDICATED INSTRUCTIONS MELSEC-Q Control data Setting Setting Device Item Set Data Side Range 1) Close option (Bit 0) Set whether a TCP connection will be closed or not after instruction (S1)+0 Execution type 0, 1 User completion. 0: TCP connection is not closed after instruction completion. 1: TCP connection is closed after instruction completion.
  • Page 215 10 DEDICATED INSTRUCTIONS MELSEC-Q Setting Setting Device Item Set Data Side Range Correspond- Specify the file number when the target MODBUS device is the extended file 0 to 65535 (S1)+9 User (*3, *4) register. ing file number Specify the head number of the read target MODBUS device.
  • Page 216 10 DEDICATED INSTRUCTIONS MELSEC-Q *4: Set "0" for the case of write only. *5: Set "0" for the case of read only. *6: The combinations of the read and write targets that can be set in the target MODBUS device type setting and the setting ranges of the access points are as indicated in the following table.
  • Page 217 Create a sequence program carefully so that the number of simultaneously executed MBRW instructions does not exceed 8. The QJ71MT91 automatically opens a TCP connection with a target slave when this instruction is executed. Whether TCP connection closing processing is performed or not can be selected in "Execution type ((S1)+0)"...
  • Page 218 10 DEDICATED INSTRUCTIONS MELSEC-Q [Operation for MBRW instruction execution] processing processing processing processing Sequence program Completion of MBRW instruction execution MBRW instruction Completion device Error (D2) completion Normal Completion status completion indication device 1 scan (D2)+1 Error When the dedicated instruction is completed with an error, the completion status indication device (D2)+1 turns ON and the error code is stored into the complete condition (S1)+1.
  • Page 219 Program example The following program is designed to read and write the device data in the holding register of the slave (IP address: 192.1.0.2). When the I/O signals of the QJ71MT91 are X/Y00 to X/Y1F MODBUS /TCP QJ71MT91 slave device (Master) (192.1.0.2)
  • Page 220 10 DEDICATED INSTRUCTIONS MELSEC-Q Execution type Dedicated Module Basic instruction READY parameter start setting command existence Clears the complete condition to 0. Clears the MODBUS exception code to 0. Target IP address Module ID (Station No.) Target slave port No. Response monitoring timer value Type specification of the target MODBUS device...
  • Page 221 10 DEDICATED INSTRUCTIONS MELSEC-Q REMARK The MODBUS /TCP frames used in communication with the slave in this sample program are as shown below. Request message format (Master (QJ71MT91) Slave) Function Data code Function Read head holding Read points Write head holding...
  • Page 222: Z(P).Mbreq

    10 DEDICATED INSTRUCTIONS MELSEC-Q 10.3 Z(P).MBREQ With this instruction, a request message can be sent to the slave in any given PDU (protocol data unit) format. Usable Devices Internal device Link direct device Intelligent Constant Set Data Index register (System, user) function module File register Others...
  • Page 223 10 DEDICATED INSTRUCTIONS MELSEC-Q Control data Setting Setting Device Item Set Data Range Side 1) Close option (Bit 0) Set whether a TCP connection will be closed or not after instruction (S1)+0 Execution type 0, 1 User completion. 0: TCP connection is not closed after instruction completion. 1: TCP connection is closed after instruction completion.
  • Page 224 10 DEDICATED INSTRUCTIONS MELSEC-Q Request message storing devices Setting Setting Device Item Set Data Side Range Request message (S2)+0 Set the size of the request message to be sent in byte units. 1 to 253 User size [byte] Set the contents (function code + data) of the request message to be sent. (Example) When a request message to read the data of holding registers 440001 to 440002 is sent by Read holding registers (FC: 03) <Frame of request message to be sent>...
  • Page 225 10 DEDICATED INSTRUCTIONS MELSEC-Q Response message storing devices Setting Setting Device Item Set Data Side Range Response (D1)+0 message size Set the size of the received response message in byte units. 0 to 253 System [byte] Set the contents (function code + data) of the received response message. (Example) When the response message with Read holding registers (FC: 03) is received <Received response message frame>...
  • Page 226 Create a sequence program so that the number of simultaneously executed MBREQ instructions does not exceed 8. The QJ71MT91 automatically opens a TCP connection with a target slave when this instruction is executed. Whether TCP connection closing processing is performed or not can be selected in "Execution type ((S1)+0)"...
  • Page 227 The following program is designed to send the request message to write the value OR- masked with 0008 to the holding register 400003 (Mask write register (FC: 22) of the slave (IP address: 192.1.0.2). When the I/O signals of the QJ71MT91 are X/Y00 to X/Y1F 10 - 16 10 - 16...
  • Page 228 (192.1.0.2) Ethernet <OR mask value> <Holding register 400003> Mask write (OR) (2) Frames sent and received by MBREQ instruction (a) Request message format (Master (QJ71MT91) Slave) Function code Data Function code Target holding register number AND mask value OR mask value...
  • Page 229 10 DEDICATED INSTRUCTIONS MELSEC-Q Execution type Dedicated Module Basic instruction READY parameter start setting command existence Clears the complete condition to 0. Sets 0 (fixed). Target IP address Module ID (Station No.) Target slave port No. Response monitoring timer value Request message size Request message Dedicated instruction (Z.MBREQ)
  • Page 230: Troubleshooting

    2 (communication condition Section 6.6 setting) value. Check the intelligent function module switch 3, 4 (IP address setting) value. Check if the QJ71MT91 is not mounted Mount the QJ71MT91 with the Q mode Section 2.1 with the A mode QCPU. QCPU.
  • Page 231 This section not flicker during executed.". (3)-1 data reception. When using slave function Refer to "Slave function of QJ71MT91 This section does not return response message to (3)-3 request message.". When using GX Developer connection Refer to "GX Developer cannot be This section connected.".
  • Page 232 11 TROUBLESHOOTING MELSEC-Q (2) Troubleshooting of errors indicated by X signals Reference Symptom Check Item Corrective Action Section 1 Module READY Refer to "RUN LED turned off.". (X0) turned off. This section 2 Watch dog timer (1)-1 error (X1F) turned 3 Basic parameter Refer to the basic parameter error code Take the corresponding corrective action...
  • Page 233 11 TROUBLESHOOTING MELSEC-Q Reference Symptom Check Item Corrective Action Section 8 Automatic Check the automatic communication Restart the automatic communication Section 7.3 communication stop request. function. Section 5.2.1 operation status Check whether the basic parameters Restart the automatic communication (X6) turned off. were re-set while the automatic function after completing basic Section 7.2...
  • Page 234 11 TROUBLESHOOTING MELSEC-Q (3) Troubleshooting for other symptoms Reference Symptom Check Item Corrective Action Section 1 Dedicated Check if the dedicated instruction is Start the dedicated instruction. instruction is not active. executed. Check whether the programmable RUN the programmable controller CPU. (Complete device controller CPU is in the RUN status or (D2) does not turn...
  • Page 235 Section 7.2 (The slave function stops when the basic parameters are re-set.) Check whether the QJ71MT91 has Confirm the exception code and take Section 11.3.2 returned an exception code or not. corrective action. Refer to the error log area (0CFE Take the corresponding corrective Section 11.3...
  • Page 236 MODBUS /TCP slave device. When the QJ71MT91 is a slave, check if Set a MODBUS /TCP master device as the communication target device is a the communication target device.
  • Page 237 Specify the nodes as preferred ones when necessary. • Reduce the number of simultaneously connected connections. Check whether the QJ71MT91 has If two or more send requests are issued, issued two or more send requests long time is required as they are concurrently.
  • Page 238 Reconnect and retry. Specify the nodes as preferred ones when necessary. 9 Normal Check if the power was reapplied after Reapply the power of the QJ71MT91 or communication is replacement of the QJ71MT91 or target target device. not available after device.
  • Page 239: Confirming Qj71Mt91 Status

    Refer to Section 8.6 for the Monitor/Test screen. (2) System monitor of GX Developer The module status of the QJ71MT91 can be confirmed from the system monitor. (a) When confirming the module status and error code on the Module's Detailed...
  • Page 240 * The alphabet at the end of the production information indicates the function version of the module. Function version of the QJ71MT91 is available from B. (Example) The product information that ends with "B" indicates that the module is of function version B.
  • Page 241 GX Developer [Diagnostics] [System monitor] Module's Detailed Information H/W Information [Display Data] The QJ71MT91 data stored in the following buffer memory areas are displayed. Display Data Corresponding Buffer Memory Area Address Left side of H/W LED Information Module status: LED status (*1) (*2) (*3)
  • Page 242: Error Codes

    11 TROUBLESHOOTING MELSEC-Q 11.3 Error Codes 11.3.1 Error code storage areas The error code of each error is stored into any of the following buffer memory areas. Error Type Storage Area Name Address 0C10 Basic parameter Basic parameter error code storage area (3088) Automatic communication parameter error code 0C11...
  • Page 243 11 TROUBLESHOOTING MELSEC-Q (2) Automatic communication parameter error code storage area (a) When an error occurs with the automatic communication parameter setting request/automatic communication start request (Y4) ON, the corresponding error code is stored in this area. (b) The error code is stored when the automatic communication parameter setting, error completed (X5) turns ON.
  • Page 244 Here is a program example. 1) Program condition The QJ71MT91 is mounted in slot 0 of the base unit with the head I/O No. set to "0" and the automatic communication parameter 1 is used. 2) Program example...
  • Page 245 11 TROUBLESHOOTING MELSEC-Q (7) Automatic communication function error code storage area (a) When an error occurs in the automatic communication function, the error code corresponding to the automatic communication parameter 1 to 64 is stored in this area. (b) When the automatic communication function operation status bit turns ON, the error code is stored into the corresponding area.
  • Page 246 11 TROUBLESHOOTING MELSEC-Q (d) Error log (error log 1 to 32) • The error log area stores the 32 latest errors. • The error log area stores the errors in order of occurrence, starting from the error log 1. • If 33 or more errors have occurred, the error logs are overwritten, starting from the area of the error log 1.
  • Page 247 11 TROUBLESHOOTING MELSEC-Q (9) Communication status of each protocol (a) The numbers of corresponding events of each protocol are stored. Error Name of Each Protocol Address 0E10 to 0E11 IP packet reception count (3600 to 3601) 0E12 to 0E13 Count of IP packet reception discarded due to sum check error (3602 to 3603) 0E14 to 0E15...
  • Page 248: Exception Code List

    (address: CFE to DFF ) of the buffer memory. (b) Exception code list The following is a list of exception codes used when the QJ71MT91 is a slave. Corrective Action Exception Error Name...
  • Page 249 (3) Error code for error completion of processing in slave (QJ71MT91) If the processing in the slave (QJ71MT91) results in error completion, an exception code is stored into the buffer memory. In the QJ71MT91, an error code is also stored into the buffer memory to identify the cause in detail.
  • Page 250: Error Code List

    11 TROUBLESHOOTING MELSEC-Q 11.3.3 Error code list When an error occurs in any processing of the QJ71MT91, the error code is stored into its buffer memory. This section explains the error details and corrective actions to be taken at error occurrence.
  • Page 251 11 TROUBLESHOOTING MELSEC-Q Error Occurrence Error Name Description Lit LED Corrective Action Code After power-on with parameters preset by GX Configurator-MB, before Basic parameter setting existence (X3) turns on, parameter settings were done When using parameters set by by any of the following: GX Configurator-MB, do not make Parameter •...
  • Page 252 11 TROUBLESHOOTING MELSEC-Q Error Occurrence Error Name Description Lit LED Corrective Action Code The number of TCP connections for GX Developer connection or the Review the setting of the Number of TCP total number of TCP number of TCP connections for 731A connections setting COM.ERR.
  • Page 253 COM.ERR. assignment parameters are overlap error assignment points. overlapped. The assigned range of the QJ71MT91 buffer memory Buffer memory Review the setting of the head set with the MODBUS 7333 assigned range device number and assignment COM.ERR.
  • Page 254 11 TROUBLESHOOTING MELSEC-Q Error Occurrence Error Name Description Lit LED Corrective Action Code The setting range of the buffer memory in the Buffer memory automatic communication Correct the buffer memory 7346 address range parameter is outside the COM.ERR. setting outside the range. error range of the automatic communication function...
  • Page 255 COM.ERR. • Resolve the problem that reception returned an exception code in occurred in the target slave reply to the request message device. sent by the QJ71MT91. In the automatic communication function or Byte count dedicated instruction, the 7361 COM.ERR.
  • Page 256 • Set a larger CPU response monitoring timer value. The request message of the Confirm the function code Function code function code not supported by supported by the QJ71MT91 7381 COM.ERR. error the QJ71MT91 slave function slave function, and review the was received.
  • Page 257 Description Lit LED Corrective Action Code The request message of the Confirm the sub-code supported sub-code not supported by by the QJ71MT91 slave 7382 Sub-code error COM.ERR. the QJ71MT91 slave function function, and review the request was received. message to be sent.
  • Page 258 CPU module. • Check whether the power capacity is sufficient or not. 739C The OS of the QJ71MT91 • Check the QJ71MT91, CPU System error COM.ERR. detected error. module and base unit to see if...
  • Page 259 IP address) of the PING test. test are incorrect. Counter the problem in the following procedure. • Check whether or not the QJ71MT91, power supply An error was detected in the module and CPU module are 73C0 RAM error ERR.
  • Page 260 73D0 the slave function of the COM.ERR. • Check the line status for an Response QJ71MT91 could not send a error. message response message. transmission As the TCP connection was • Check whether the operation...
  • Page 261 11 TROUBLESHOOTING MELSEC-Q Error Occurrence Error Name Description Lit LED Corrective Action Code The send/receive processing Send/receive Perform the basic parameter was forcibly interrupted by the 73D6 processing setting processing after the COM.ERR. basic parameter setting interruption send/receive processing is over. processing.
  • Page 262 11 TROUBLESHOOTING MELSEC-Q Error Occurrence Error Name Description Lit LED Corrective Action Code • Check whether the operation status of the target device is normal or not. 7404 A receive error occurred. COM.ERR. • Check the line status for an error.
  • Page 263 11 TROUBLESHOOTING MELSEC-Q Error Occurrence Error Name Description Lit LED Corrective Action Code • Review the setting of the router 7423 information. • Check whether the router 7424 operates normally. • Check the router 7425 communication path for any error. 7426 •...
  • Page 264 11 TROUBLESHOOTING MELSEC-Q Error Occurrence Error Name Description Lit LED Corrective Action Code • Check whether the operation • Transmission was attempted status of the target device is using the connection not normal or not. open. 7452 • Check the line status for an Connection not •...
  • Page 265 CPU module. • Check whether the power capacity is sufficient or not. 7480 The OS of the QJ71MT91 • Check the QJ71MT91, CPU System error COM.ERR. detected error. module and base unit to see if...
  • Page 266: Turning Off The Com.err. Led

    11 TROUBLESHOOTING MELSEC-Q 11.4 Turning Off the COM. ERR. LED This section explains how to turn off the COM. ERR. LED of the QJ71MT91 when it is lit. POINT (1) Remove possible error cause before turning off the COM.ERR. LED. (Refer to Section 11.1, 11.3)
  • Page 267 11 TROUBLESHOOTING MELSEC-Q (2) Turn off the COM. ERR. LED. In the Setting value field of the "COM. ERR. LED OFF request", select "Being requested" and click the Execute test button. (3) Confirm the COM. ERR. LED is turned off. When the processing is completed, a "Completed."...
  • Page 268 11 TROUBLESHOOTING MELSEC-Q (4) Change the Current value field of the "COM. ERR. LED OFF request" back to "Not requested". Because the "COM. ERR. LED OFF request" current value does not return to "Not requested" automatically after turn-off of the COM. ERR. LED, it must be manually returned to "Not requested"...
  • Page 269: Program Example For Use Of Sequence Program

    (1) Relationship between COM.ERR. LED and I/O signals Upon occurrence of a communication error, the COM.ERR. LED (COM.ERR. LED status (X1B): ON) on the front of the QJ71MT91 turns ON. (1) in the figure) (a) Turn ON the COM.ERR. LED OFF request (Y1B) to turn OFF the COM.ERR.
  • Page 270: Conducting Ping Test To Check Qj71Mt91 Connection

    (personal computer) having the specified IP address exists or not. (b) Perform a PING test to check the following. 1) Whether the QJ71MT91 is correctly connected to the other device on the line. 2) Whether the basic parameter setting of the QJ71MT91 is correct.
  • Page 271: From Gx Configurator-Mb

    11 TROUBLESHOOTING MELSEC-Q 11.5.1 From GX Configurator-MB This section explains how to conduct a PING test from GX Configurator-MB. (1) Display the PING test screen. (Refer to Section 8.6) (2) Set the PING test conditions. Set the "Communication time check", "Transmission count" and "IP address" in the Setting value field, and click the Execute test button with the values selected.
  • Page 272 11 TROUBLESHOOTING MELSEC-Q (3) Confirm the conditions set in (2). When the processing is completed, a "Completed." message appears, and the data set in (2) are displayed in the Current value field. Redo the settings if changing the conditions. (4) Conduct a PING test. Select "Being requested"...
  • Page 273 11 TROUBLESHOOTING MELSEC-Q (5) Check the status during PING test execution. • "PING test execution request" current value "Being requested" • "PING test completed" current value "OFF" (6) Check the status when the PING test is completed. • "PING test execution request" current value "Being requested"...
  • Page 274 11 TROUBLESHOOTING MELSEC-Q (7) Change the "PING test execution request" current value back to "Not requested". Because the "PING test execution request" current value does not automatically return to "Not requested" on completion of the PING test, it must be manually changed to "Not requested"...
  • Page 275: Program Example For Use Of Sequence Program

    Normal Normal Exception Normal response response response response QJ71MT91 Execution result: 0000 Total packet transmission count: 4 times Ethernet line Success count: 3 times Failure count: 1 time Target device Normal response is identified when the response of the PING test is received within the communication time check period.
  • Page 276 (Master) (192.1.0.1) Ethernet *1: The QJ71MT91 is mounted on Slot 0 of the base unit, and the head I/O No. is 0. (b) Program conditions This program executes a PING test when PING test execution request (Y1C) is turned on after the PING test conditions are set.
  • Page 277 11 TROUBLESHOOTING MELSEC-Q (c) Program example Data setting for PING test Communication time check: 1s Transmission count: 4 times IP address: 192.1.0.1 PING test execution request ON PING test execution request OFF PING test execution result Execution result Total packet transmission count Success count Failure count 11 - 48...
  • Page 278: Appendices

    APPENDICES MELSEC-Q APPENDICES Appendix 1 External Dimensions 27.4 (1.08) 90 (3.54) (Unit: mm (in.)) App - 1 App - 1...
  • Page 279: Appendix 2 Processing Time

    Appendix 2 Processing Time This section explains the processing time of the QJ71MT91 by function. The processing time of the QJ71MT91 may become longer than that calculated in this section depending on the network load factor (line congestion), number of TCP connections used simultaneously, and GX Developer connection existence.
  • Page 280 APPENDICES MELSEC-Q (b) Dedicated instruction performance (MBRW/MBREQ instruction) 1) Dedicated instruction processing time [Unit: ms] The dedicated instruction processing time is the time from when the dedicated instruction is started until the completed device turns on. 7 + St + (St or Ts, whichever is greater ) 2) Calculation items Setting Item Description...
  • Page 281 (2) Slave function performance 1) Request message processing time [Unit: ms] The request message processing time is the time from when the QJ71MT91 receives a request message from the master until it sends a response message after completion of processing. 5 + 7...
  • Page 282: Appendix 3 Gx Developer Connection Setup Example

    This section explains the setting of the GX Developer connection setup window when access is made from GX Developer to the programmable controller CPU via the QJ71MT91. For details of GX Developer, refer to the GX Developer Operating Manual. (1) Access route GX Developer IP address: 128.0.0.1...
  • Page 283 APPENDICES MELSEC-Q (2) Connection setup window (a) PC side I/F Select "Ethernet board" and double-click it to display the "PC side I/F Ethernet board setting" screen. Set "Protocol" on the "PC side I/F Ethernet board setting" screen. • Protocol • • • • • Select "TCP" or "UDP". Since "Network No."...
  • Page 284 Ethernet module" screen. • PLC • • • • • • • • • • Select "QJ71E71". • IP address • • • • • Set the IP address of the QJ71MT91 to be connected. • IP input format • • • Select "DEC." or "HEX.".
  • Page 285 INDEX 5VDC internal current consumption ....3- 1 Basic parameter setting........9- 1 I/O signals for setting ........9- 1 Setting method ..........9- 1 Access points ..........7-22 Setting precautions ........9- 3 Applicable system .......... 2- 1 Timing charts for setting......9- 2 Assignment points .........
  • Page 286 Error code list ..........11-21 Handling precautions ........6- 1 Error code storage areas ......11-13 Hardware test..........6- 8 Error codes ..........11-13 Head buffer memory address......7-21 Error log ..........8-26,11-16 Head coil number...........7-28 Error log area..........11-16 Head device number........7-28 Error log write pointer ........11-16 Head holding register number .......7-28 Ethernet function ..........
  • Page 287 I/O network ........9-29 Read coils ........... 4- 6 Read discrete inputs........4- 7 Read file record ......... 4-15 QJ71MT91 buffer memory assignment ..7-32 Read holding registers ....... 4- 8 QJ71MT91 status confirmation ....11-10 Read input registers ........4- 9 Read/Write multiple registers....
  • Page 288 Request message format....... 4- 4 Request message processing time ...App- 4 Utility Package ..........8- 1 Response message format......4- 4 GX Configurator-MB functions....8- 1 Response monitoring timer value ....7-20 Installation of utility package.......8- 2 Router information: Router IP address..7-15 Uninstallation of utility package ....8- 2 Router information: Subnet address.....
  • Page 289 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is discontinued.
  • Page 290 Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries. Ethernet is a registered trademarks of Xerox Corporation in the United States. MODBUS is the registered trademark of Schneider Electric SA.

Table of Contents