Mitsubishi Electric QJ71DN91 User Manual
Mitsubishi Electric QJ71DN91 User Manual

Mitsubishi Electric QJ71DN91 User Manual

Melsec system q programmable controller devicenet master-slave module gx configurator-dn
Hide thumbs Also See for QJ71DN91:
Table of Contents

Advertisement

Quick Links

MITSUBISHI ELECTRIC
Programmable Controller
User's Manual
QJ71DN91
DeviceNet Master-Slave Module
GX Configurator-DN
Art. no. 139835
INDUSTRIAL AUTOMATION
MITSUBISHI ELECTRIC
01012008
SH(NA)-080143
Version J

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric QJ71DN91

  • Page 1 MITSUBISHI ELECTRIC Programmable Controller User's Manual QJ71DN91 DeviceNet Master-Slave Module GX Configurator-DN Art. no. 139835 INDUSTRIAL AUTOMATION MITSUBISHI ELECTRIC 01012008 SH(NA)-080143 Version J...
  • Page 3: Safety Precautions

    DANGER • If a communications error occurs on a DeviceNet network, faulty nodes will behave as follows: (1) The master node (QJ71DN91) holds input data which had been received from slave nodes before the error occurred. (2) Whether output signals of a slave node are turned off or held is determined by the slave node's specifications or the parameters set at the master node.
  • Page 4 [INSTALLATION PRECAUTIONS] CAUTION • Use the programmable controller in an environment that meets the general specifications contained in the User's Manual of the CPU module used. Using it in an environment that does not meet them may result in an electric shock, fire, malfunction, and damage to or deterioration of the product.
  • Page 5 [STARTUP/MAINTENANCE PRECAUTIONS] DANGER • Do not touch any terminal unless all phases of the external power supply have been shut off. Doing so may cause a malfunction. • Always turn off all phases of the external power supply before cleaning or retightening the terminal screws.
  • Page 6: Revisions

    REVISIONS *The manual number is given on the bottom left of the back cover. Print Date *Manual Number Revision Dec. 2000 SH (NA)-080143-A First Printing Jun. 2001 SH (NA)-080143-B Addition Section 2.3, 2.4 Delete Section 2.2.1, 2.2.2 Correction SAFETY PRECAUTIONS, About the Generic Terms and Abbreviations, Product Configuration, Section 2.2, 2.4, Section 6.2, 6.2.1, 6.2.2, 6.3.3, Feb.
  • Page 7 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 product, please read this manual carefully to understand the functions and performance of the Q series programmable controller to ensure correct use. CONTENTS SAFETY PRECAUTIONS..........................A- 1 REVISIONS ..............................A- 4 INTRODUCTION............................A- 6 CONTENTS..............................A- 6 Compliance with the EMC and Low Voltage Directives................A-10...
  • Page 9 3.4.12 Hardware test area.......................... 3-44 3.4.13 Parameter saving area selection area.................... 3-46 3.4.14 Auto communication start setting area ................... 3-46 3.5 Communication Performance ........................3-47 3.5.1 Transmission delay ........................... 3-47 3.5.2 Communication cycle time........................ 3-47 3.5.3 Link scan time............................ 3-48 4 FUNCTIONS 4- 1 to 4-13 4.1 Master Function (I/O Communication Function) ..................
  • Page 10 6.5.4 Node configuration status monitor....................6-22 6.5.5 Node communication status monitor ....................6-22 6.5.6 Node communication error status monitor ..................6-23 6.5.7 Node fault status monitor ........................6-23 6.5.8 Failed node detection setting......................6-24 6.5.9 Message communication area monitor/test ..................6-25 6.5.10 I/O address area monitor for master function ................
  • Page 11 9.2.2 Execution error codes of message communication (for the master function only)......9-13 9.2.3 General DeviceNet error codes of message communication (for the master function only)..9-16 9.3 Checking the QJ71DN91 Status by System Monitor in GX Developer ..........9-17 APPENDIXES App- 1 to App- 7 Appendix 1 External Dimensions.......................App- 1...
  • Page 12: Compliance With The Emc And Low Voltage Directives

    No additional measures are necessary for this product to ensure compliance with these directives. Generic Terms and Abbreviations Unless otherwise specified, this manual uses the following generic terms and abbreviations to explain the QJ71DN91 DeviceNet master/slave module. Generic term/abbreviation Description ®...
  • Page 13: Definitions Of Terminology

    Master/slave node Parameters for setting information such as connection type or I/O points, which are used to Master function exchange I/O data with respective slave nodes when the QJ71DN91 is used as a master parameters node. Configured in sequence programs or GX Configurator-DN.
  • Page 14 Definition Used to specify a method for communicating I/O data between a master and slave nodes. When the QJ71DN91 is used as a master node, one of the following connection types can be selected for each slave node. • Polling Connection type •...
  • Page 15: Packing List

    Packing List The following are included in the package. Model Product name Quantity QJ71DN91 DeviceNet master/slave module QJ71DN91 Terminating resistor 121 , 1/4W Connector SW1D5C-QDNU-E GX Configurator-DN Version 1 (single license product) (CD-ROM) SW1D5C-QDNU-EA GX Configurator-DN Version 1 (volume license product)
  • Page 16: Overview

    Volumes 1 and 2. DeviceNet is a registered trademark of Open DeviceNet Vendor Association, Inc. POINT The QJ71DN91 is assumed to be compatible with most of DeviceNet products on the market. However, the compatibility with products manufactured by other vendors is not guaranteed.
  • Page 17 1 OVERVIEW MELSEC-Q Message communication function (Refer to Section 4.2.) Using the buffer memory of the QJ71DN91, attribute data can be read from or written to slave nodes. For details of other message communications, refer to the DeviceNet common service in the DeviceNet Specifications (Release2.0).
  • Page 18 1 OVERVIEW MELSEC-Q (3) Operating as a DeviceNet master/slave node The QJ71DN91can operate as a master and slave node concurrently. QJ71DN91 master QJ71DN91 master/slave (node No.1) (node No.4) I/O communication Master function Slave function Master function DeviceNet slave DeviceNet slave...
  • Page 19: System Configuration

    The number of modules connectable to a DeviceNet network is 64, including master, slave and master/slave nodes. The QJ71DN91 can be used as a master node, a slave node or a master/slave node. The following shows an example of a system configuration:...
  • Page 20 2 SYSTEM CONFIGURATION MELSEC-Q Remarks Please inquire to ODVA about the following devices that are required to construct a DeviceNet network. • Network power supply unit • Power supply tap • Tap • Terminating resistor • DeviceNet cable Contact: Open DeviceNet Vendor Association, Inc. http://www.odva.org/ 2 - 2 2 - 2...
  • Page 21: Applicable Systems

    *1: Limited within the range of I/O points for the CPU module *2: Can be installed to any I/O slot of a base unit. *3: Use the QJ71DN91 whose serial No. (first five digits) is 03052 or later. Mounting to a MELSECNET/H remote I/O station The QJ71DN91 cannot be mounted to any MELSECNET/H remote I/O station.
  • Page 22 2 SYSTEM CONFIGURATION MELSEC-Q (2) Support of the multiple CPU system When using the QJ71DN91 in a multiple CPU system, refer to the QCPU User’s Manual (Multiple CPU System) first. Compatible QJ71DN91 The function version of the first released QJ71DN91 is B, and it supports multiple CPU systems.
  • Page 23: How To Check The Function Version, Serial No. And Software Version

    This section describes how to check the function version and serial No. of the QJ71DN91 and GX Configurator-DN software version. (1) Checking the function version and serial No. of the QJ71DN91 Checking at "the SERIAL field of the rating plate" located on the side of the module The serial No.
  • Page 24 2 SYSTEM CONFIGURATION MELSEC-Q POINT The serial No. on the rating plate may be different from the serial No. displayed on the product information screen of GX Developer. • The serial No. on the rating plate indicates the management information of the product.
  • Page 25: Precautions On System Configuration

    2.4 Precautions on System Configuration (1) DeviceNet products manufactured by other vendors The QJ71DN91 is assumed to be compatible with most of the DeviceNet products on the market. However, the compatibility with products manufactured by other vendors is not guaranteed.
  • Page 26: Specifications

    This chapter provides the performance specifications of the QJ71DN91, I/O signals used with a programmable controller CPU, and buffer memory specifications. For the general specifications for the QJ71DN91, refer to the User’s Manual (Hardware) of the CPU module used. 3.1 Performance Specifications Table 3.1 shows the performance specifications of the QJ71DN91.
  • Page 27: Maximum Trunk Line Distance When Using Thick And Thin Cables

    3 SPECIFICATIONS MELSEC-Q 3.1.1 Maximum trunk line distance when using thick and thin cables The maximum transmission distance in the case of using thick and thin cables is shown below. Table 3.2 Maximum trunk line distance when using thick and thin cables Maximum trunk line distance when using thick Communication speed and thin cables...
  • Page 28: Function Lists

    Master The connection type is selectable for each slave node. function The QJ71DN91 master node can read attribute data from or write them to slave nodes, using its own buffer memory. Message For further details, refer to the DeviceNet common service in communication the DeviceNet Specifications (Release2.0).
  • Page 29: I/O Signals For Programmable Controller Cpu

    3 SPECIFICATIONS MELSEC-Q 3.3 I/O Signals for Programmable Controller CPU This section explains the input/output signals that the QJ71DN91 sends to or receives from a programmable controller CPU. 3.3.1 I/O signal list The I/O signal assignments shown are based on the case where the start I/O No. of the QJ71DN91 is "0000"...
  • Page 30: I/O Signals For The Master Function

    This section describes the ON/OFF timings and conditions of the I/O signals used for the master function. (1) Watchdog Timer Error (X00) This is set to ON when a hardware failure occurs in the QJ71DN91. OFF: Module normal Module error When Watchdog Timer Error (X00) is set to ON, Module Ready (X0F) is set to OFF.
  • Page 31 3 SPECIFICATIONS MELSEC-Q When parameter check failed Module Ready (X0F) I/O Communication Request (Y11) I/O Communicating (X01) Error Set Signal for Master Function (X03) Parameter check POINT (1) I/O Communicating (X01) is not set to ON even if I/O Communication Request (Y11) is turned ON with the following output signals set to ON, •...
  • Page 32 3 SPECIFICATIONS MELSEC-Q When starting I/O communication automatically at power-up Set "Start" in Automatic Communication Start Setting (address: 0631 • When power is turned ON, Module Ready (X0F) is set to ON and parameters are checked. • If the parameter check is completed successfully, I/O communication with each slave node is started and I/O Communicating (X01) is set to ON.
  • Page 33 3 SPECIFICATIONS MELSEC-Q (3) Message Communication Completion (X02), Message Communication Error Signal (X05), Message Communication Request (Y12) These signals are used for message communication. Execute each signal action when Master Function Communication Status (address: 01B0 ) is "OPERATE )" or "STOP (40 )".
  • Page 34 3 SPECIFICATIONS MELSEC-Q (4) Error Set Signal for Master Function (X03), Error Reset Request for Master Function (Y13) These signals are used for notification of an error occurred during master function execution and for error code resetting. When a master function error occurs, the error information is stored in Error Information for Master Function (address: 01B1 ), and Error Set Signal for Master Function (X03) is set to ON.
  • Page 35 3 SPECIFICATIONS MELSEC-Q (6) Saving Parameters to Flash ROM (X06), Parameters Saved to Flash ROM (X07), Request for Saving Parameters to Flash ROM (Y17) These signals are used to save the parameters in the buffer memory to the flash ROM. Execute each signal action while I/O Communicating (X01) is OFF. When Request for Saving Parameters to Flash ROM (Y17) is set to ON, parameters are checked.
  • Page 36 (7) Module Ready (X0F) This signal indicates whether or not the QJ71DN91 is operable. When the QJ71DN91 is ready to operate, it is set to ON. When Watchdog Timer Error (X00) turns ON, this Module Ready (X0F) is set to OFF.
  • Page 37 3 SPECIFICATIONS MELSEC-Q (8) Auto-Configuring (X14), Auto Configuration Completion (X15), Auto Configuration Request (Y15) These signals are used to configure parameters automatically. Execute them while I/O Communicating (X01) is OFF. When Auto Configuration Request (Y15) is set to ON, auto configuration starts and Auto-Configuring (X14) is set to ON.
  • Page 38: I/O Signals For The Slave Function

    3 SPECIFICATIONS MELSEC-Q 3.3.3 I/O signals for the slave function This section describes the ON/OFF timings and conditions of the I/O signals used for the slave function. (1) Watchdog Timer Error (X00) Refer to Section 3.3.2 (1). (2) I/O Communicating (X01), I/O Communication Request (Y11) These are used to start I/O communication with a master node.
  • Page 39 3 SPECIFICATIONS MELSEC-Q When parameter check failed Module Ready (X0F) I/O Communication Request (Y11) I/O Communicating (X01) Error Set Signal for Slave Function (X08) Parameter check POINT (1) I/O Communicating (X01) is not set to ON even if I/O Communication Request (Y11) is turned ON with the following output signals set to ON, •...
  • Page 40 3 SPECIFICATIONS MELSEC-Q When starting I/O communication automatically at power-up Set "Start" in Automatic Communication Start Setting (address: 0631 • When power is turned ON, Module Ready (X0F) is set to ON and parameters are checked. • If the parameter check is completed successfully, I/O communication with the master node is started and I/O Communicating (X01) is set to ON.
  • Page 41 3 SPECIFICATIONS MELSEC-Q (4) Error Set Signal for Slave Function (X08), Error Reset Request for Slave Function (Y18) These signals are used for notification of an error occurred during slave function execution and for error code resetting. When a slave function error occurs, the error information is stored in Error Information for Slave Function (address: 0601 ), and Error Set Signal for Slave Function (X08) is set to ON.
  • Page 42: Buffer Memory

    3 SPECIFICATIONS MELSEC-Q 3.4 Buffer Memory This section explains the buffer memory of the QJ71DN91. 3.4.1 Buffer memory list The buffer memory list is shown in Table 3.6. Table 3.6 Buffer memory list (1/2) Address Availability Reference Item Description Read/Write *1...
  • Page 43 0631 1585 3.4.14 Setting *2 the flash ROM at the time of power ON from OFF or CPU reset. Set whether or not to reset the QJ71DN91’s Operation Setting Area for CAN chip (communication chip) to restart 0632 1586 3.4.3...
  • Page 44 3 SPECIFICATIONS MELSEC-Q *1: Indicates whether or not data can be read or written from sequence programs. R: Read only, R/W: Read/Write *2: Can be saved to a flash ROM. Parameters in the buffer memory are cleared when power is turned off or when the CPU module is reset, unless they are saved to a flash ROM.
  • Page 45: Message Communication Area For Master Function

    3 SPECIFICATIONS MELSEC-Q 3.4.2 Message communication area for master function This area is used for the message communication of the master function. For the execution timing, refer to Section 3.3.2 (3). (1) Message Communication Command (address: 0110 to 011F /272 to 287) Set a command for message communication.
  • Page 46 3 SPECIFICATIONS MELSEC-Q Other message communications Data to be set are shown below. For details, refer to DeviceNet common service in the DeviceNet Specifications (Release2.0). Table 3.11 Other message communications Buffer memory address Item Description (Hex.) 0110 Command No. FE** : Refer to DeviceNet Common Service for**.
  • Page 47 3 SPECIFICATIONS MELSEC-Q Reading communication error information of a slave node Table 3.14 Read communication error information Buffer memory Item Description address (Hex.) 0120 Command No. 0001 =Read communication error information Normal completion: 0000 0121 Execution error code Failed: Execution error code (Refer to Section 9.2.2.) Resetting Table 3.15 Reset Buffer memory...
  • Page 48 3 SPECIFICATIONS MELSEC-Q (3) Message Communication Data (address: 0130 to 01A7 /304 to 423) This area stores data sent/received by message communications. Getting attribute data of a slave node Attribute data is stored in units of bytes. 0130 2nd byte 1st byte 4th byte 3rd byte...
  • Page 49 Stores an additional error code sent from the slave 0134 Additional error code node. *2 Stores the number of times the QJ71DN91 has 0135 Heartbeat timeout count detected failure of each slave node. *1: Refer to the manual of each slave node for actual failures and troubleshooting.
  • Page 50: Own Node Status Area For Master Function

    3 SPECIFICATIONS MELSEC-Q 3.4.3 Own node status area for master function This area stores the communication status, error information, etc. of the master function. (1) Master Function Communication Status (address: 01B0 /432) The communication status of the master function is stored. High byte The I/O communication status of the master station is stored.
  • Page 51 3 SPECIFICATIONS MELSEC-Q Low byte The communication status of the network is stored. Depending on the communication status, each bit turns ON/OFF as shown below. Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 A faulty node exists.
  • Page 52 An increase of this value means that communications are unreliable. (4) Bus Off Counter (address: 01B3 /435) The number of times that the QJ71DN91 was placed in the bus off status is stored. An increase of this value means that communications are unreliable.
  • Page 53 MELSEC-Q After resetting the CAN chip The LED and relevant values in the buffer memory are changed as follows: When the CAN chip is reset, the NS LED status on the QJ71DN91 changes as follows: turning ON (red) flashing (green) remaining ON (green).
  • Page 54: Node Status Area For Master Function

    3 SPECIFICATIONS MELSEC-Q 3.4.4 Node status area for master function The operation status of each slave node is stored in this area. (1) Node Configuration Status (address: 01B4 to 01B7 /436 to 439) The parameter setting status of each slave node is stored. •...
  • Page 55 3 SPECIFICATIONS MELSEC-Q (3) Node Communication Error Status (address: 1C0 to 1C3 /448 to 451) The I/O communication error status of each slave node is stored. While I/O Communicating (X01) is OFF, all bits are OFF. Note that no error is detected for the node whose corresponding bit is ON in Failed Node Detection Setting (address: 01CC to 01CF •...
  • Page 56 3 SPECIFICATIONS MELSEC-Q (5) Failed Node Detection Setting (address: 01CC to 01CF /460 to 463) Whether or not to detect a failed node is set in this area. The setting determines whether or not the OFF status in Node Communication Status (address: 01BC to 01BF ) is reflected to Slave Down Signal (X04).
  • Page 57: Master Function Parameter Setting Area

    3 SPECIFICATIONS MELSEC-Q 3.4.5 Master function parameter setting area Parameters for master function are set in this area. To exchange I/O data with each slave node (up to 63 nodes), information such as connection types and I/O points is set. (1) Parameters for Master Function (address: 01D4 to 03CF /468 to...
  • Page 58 3 SPECIFICATIONS MELSEC-Q Buffer memory Item Description address (Hex.) Set an action for watchdog timeout of the slave node. 0000 : Equivalent to the following Timeout (Default) 0001 : Timeout The connection is placed in timeout status. Not recovered until an operator stops the communication and then resumes it.
  • Page 59 3 SPECIFICATIONS MELSEC-Q Table 3.25 Details of the expected packet rate and production inhibit time Expected packet rate Production inhibit time (1) Set a communication watchdog timer value for the (1) Set a minimum transmit interval of the slave node, slave node.
  • Page 60 3 SPECIFICATIONS MELSEC-Q (2) Auto Configuration Operation Setting (address: 03F0 /1008) The operation of auto configuration is set in this area. For the execution timing, refer to Section 7.3 (2). Setting details High byte Set an auto configuration type. : All configuration (Default) : Add configuration Low byte Set the maximum detection node No.
  • Page 61 3 SPECIFICATIONS MELSEC-Q Contents of Parameters for Master Function set by auto configuration An execution of auto configuration reads parameters of each slave node and writes them to Parameters for Master Function (address: 01D4 to 03CF Set values can be changed in sequence programs or GX Configurator-DN. Table 3.26 Auto configuration settings Buffer memory Item...
  • Page 62: Communication Data Area For Master Function

    3 SPECIFICATIONS MELSEC-Q 3.4.6 Communication data area for master function Communication data for the master function are stored in this area. (1) Master Function Receive Data (address: 0700 to 07FF /1792 to 2047) Data received from each slave node are stored. Data are aligned on word boundaries of slave nodes and stored as shown below.
  • Page 63 3 SPECIFICATIONS MELSEC-Q (2) Master Function Transmit Data (address: 0900 to 09FF /2304 to 2559) Data to be sent to each slave node are set in this area. Data are aligned on word boundaries of slave nodes and stored as shown below. For double-word data, the low word is stored first and then the high word.
  • Page 64: Link Scan Time Area For Master Function

    3 SPECIFICATIONS MELSEC-Q (3) I/O Address Area for Master Function (address: 0500 to 05FB /1280 to 1531) This area stores the start addresses and sizes (number of words) of Master Function Receive Data (address: 0700 to 07FF /1792 to 2047) and Master Function Transmit Data (address: 0900 to 09FF /2304 to 2559) for each node.
  • Page 65: Own Node Status Area For Slave Function

    An error code is stored. (Refer to Section 9.2.1.) Low byte The number of the node (MAC ID), where an error occurred, is stored. , FF (254, 255): Own node (QJ71DN91) to 3F (0 to 63): Node No. (MAC ID) of the node where an error occurred.
  • Page 66: Parameter Setting Area For Slave Function

    3 SPECIFICATIONS MELSEC-Q 3.4.9 Parameter setting area for slave function Parameters for the slave function are set in this area. (1) Slave Function Receive-Bytes Setting Area (address: 060E /1550)/Slave Function Transmit-Bytes Setting Area (address: 060F /1551) Input/output points for the slave function are set. For saving parameters to a flash ROM, refer to Section 8.2 (2).
  • Page 67: Communication Data Area For Slave Function

    6th byte POINT When the QJ71DN91 is used as a master node, set an even number of byte modules. If an odd number is set and when word modules and double-word modules are set at the same time, these word and double-word data cannot be sent or received normally.
  • Page 68: Own Node Information Area

    3 SPECIFICATIONS MELSEC-Q 3.4.11 Own node information area Information of the own node (QJ71DN91) is stored in this area. (1) Model Name (address: 0620 to 0624 /1568 to 1572) "QJ71DN91" is stored in ASCII code format. 0620 "J" "Q" 0621 "1"...
  • Page 69: Hardware Test Area

    3 SPECIFICATIONS MELSEC-Q 3.4.12 Hardware test area This area is used for hardware test and communication test. For the hardware test, refer to Section 5.4. For the communication test, refer to Section 5.6. (1) Hardware Test Item Area (address: 062E /1582) The test item No.
  • Page 70 3 SPECIFICATIONS MELSEC-Q (2) Hardware Test Result Area (address: 062F /1583) The hardware or communication test result is stored. Table 3.31 Hardware test results Error code Error Action 0000 No error Hardware test completed normally. 60AA RAM error Hardware failure. Please consult your local Mitsubishi 61AA ROM error service center or representative, explaining a detailed...
  • Page 71: Parameter Saving Area Selection Area

    3 SPECIFICATIONS MELSEC-Q 3.4.13 Parameter saving area selection area This area is used to save parameters in the buffer memory to a flash ROM. For the execution timing, refer to Section 7.3 (3) and 8.2 (2). (1) Parameter Area Select Bit (address: 0630 /1584) Select an area of the parameters that are to be saved to a flash ROM.
  • Page 72: Communication Performance

    3 SPECIFICATIONS MELSEC-Q 3.5 Communication Performance 3.5.1 Transmission delay (1) Input transmission delay The calculation formulas for the input transmission delay are shown below. Reading receive data by sequence Using auto refresh program Maximum value 2 + ST [ms] Normal value LC +ST 0.5 [ms] LC: Communication cycle time [ms] (Refer to Section 3.5.2.)
  • Page 73: Link Scan Time

    3 SPECIFICATIONS MELSEC-Q 3.5.3 Link scan time The link scan time represents a time during which the QJ71DN91 waits for responses from all nodes after sending a polling request or bit-strobe requests. The following shows the link scan time calculation formulas.
  • Page 74: Functions

    4 FUNCTIONS MELSEC-Q 4 FUNCTIONS This chapter explains the functions of the QJ71DN91. 4.1 Master Function (I/O Communication Function) This function allows I/O data communication with respective slave nodes (up to 63 nodes), using the buffer memory of the QJ71DN91.
  • Page 75 4 FUNCTIONS MELSEC-Q (3) Operation flow This section explains how I/O communication is performed with each slave node. When starting I/O communication by I/O Communication Request (Y11) Module Ready (X0F) Auto Configuration Request (Y15) Request for Saving Parameters to Flash ROM (Y17) I/O Communication Request (Y11)
  • Page 76 4 FUNCTIONS MELSEC-Q When starting I/O communication automatically at power-up Set "Start" in Automatic Communication Start Setting (address: 0631 Module Ready (X0F) I/O Communication Request (Y11) I/O Communicating (X01) Error Set Signal for Master Function (X03) Error Information for MOV/FROM Master Function (01B1 instruction Parameters for Master...
  • Page 77 4 FUNCTIONS MELSEC-Q (4) Overview of each connection type One of the connection types shown below can be selected for each slave node. For available connection types, refer to the manual for each slave node. • Polling • Bit strobe •...
  • Page 78 4 FUNCTIONS MELSEC-Q Bit strobe Bit strobe is a communication method by which the following steps 1) to 4) are repeated to each slave node. 1) Up to one bit of output information is simultaneously sent to respective slave nodes. 2) Step 1) triggers input data transmission from the slave node.
  • Page 79 4 FUNCTIONS MELSEC-Q Change of state Change of state is a communication method by which the following steps 1) and 2) are performed to each slave node by changes in I/O data. No data transmission is performed unless any change is made in I/O data, 1) When output data of the master node changes, the master node sends the data to the slave node.
  • Page 80 4 FUNCTIONS MELSEC-Q Cyclic Cyclic is a communication method by which the following steps 1) and 2) are repeated to each slave node at fixed intervals. 1) Data of the master node are sent to the slave node. 2) Data of the slave node are sent to the master node. The cycle of cyclic transmission can be specified for each slave node.
  • Page 81: Master Function (Message Communication Function)

    4 FUNCTIONS MELSEC-Q 4.2 Master Function (Message Communication Function) The QJ71DN91 can read or write attribute data of slave nodes using its own buffer memory. For details of other message communications, refer to DeviceNet Common Service in DeviceNet Specifications (Release 2.0).
  • Page 82 4 FUNCTIONS MELSEC-Q Set Attribute Programmable controller CPU QJ71DN91 Slave node (MAC ID) 0110 Class Message Comm. Instance Command area 011F Attribute 0130 Message Attribute Comm. Data area 01A7 Message Comm. SET Y12 Request Class 0120 Instance Message Comm. Attribute...
  • Page 83 011F When Message Communication Request (Y12) is set to ON, the communication error information of the relevant slave node, which has been accumulated in the QJ71DN91, is stored in Message Communication Data (address: 0130 to 01A7 Upon completion of reading, the processing result is stored in...
  • Page 84: Slave Function (I/O Communication Function)

    4.3 Slave Function (I/O Communication Function) This function allows I/O data communication with the master node, using the buffer memory of the QJ71DN91. Communications of 128 input bytes and 128 output bytes are available. The polling method is used as the connection type.
  • Page 85 4 FUNCTIONS MELSEC-Q (3) Operation flow This section explains how I/O communication is performed with the master node. When starting I/O communication by I/O Communication Request (Y11) Module Ready (X0F) Auto Configuration Request (Y15) Request for Saving Parameters to Flash ROM (Y17) I/O Communication Request (Y11)
  • Page 86 4 FUNCTIONS MELSEC-Q When starting I/O communication automatically at power-up Set "Start" in Automatic Communication Start Setting (address: 0631 Module Ready (X0F) I/O Communication Request (Y11) I/O Communicating (X01) Error Set Signal for Slave Function (X08) Error Information for MOV/FROM Slave Function (0601 instruction Parameters for Slave...
  • Page 87: Setup And Preparation

    (See Section 5.3.2.) Set mode to 0, 1, or 2. (See Section 5.3.3.) (See Section 5.5.) Connect DeviceNet cable to QJ71DN91. Not use Use GX Configurator-DN? Auto configuration (See Section 7.3.1 (1).) *1 Auto configuration (See Section 7.3.1 (1).) *1 Create sequence program for executing auto Execute auto configuration.
  • Page 88: When Using The Slave Function

    (See Section 5.3.2.) Set mode to 3, 4, or 5. (See Section 5.3.3.) (See Section 5.5.) Connect DeviceNet cable to QJ71DN91. Not use Use GX Configurator-DN? Parameters for slave function (See Section 8.2.1 (1).) Parameters for slave function (See Section 8.2.2 (1).) Set parameters for slave function.
  • Page 89: When Using Both The Master And Slave Functions

    Perform hardware test. (Mode 9) Set node No. (See Section 5.3.2.) Set mode to 6, 7, or 8. (See Section 5.3.3.) Connect DeviceNet cable to QJ71DN91. (See Section 5.5.) Not use Use GX Configurator-DN? Auto configuration *1 Auto configuration *1 Create sequence program for executing auto Execute auto configuration.
  • Page 90: Implementation And Installation

    MELSEC-Q 5.2 Implementation and Installation This section describes handling precautions to be taken from unpacking to mounting the QJ71DN91. For more details, refer to the User's Manual of your programmable controller CPU. 5.2.1 Handling precautions (1) Do not drop the module casing or connector, or do not subject it to strong impact.
  • Page 91: Part Names And Settings

    5 SETUP AND PREPARATION MELSEC-Q 5.3 Part Names and Settings This section describes the part names, LED indications, and respective switch settings of the QJ71DN91. QJ71DN91 ERR. NODE ADDRESS Node No. switches MODE/DR 0 : M/125 1 : M/250 2 : M/500...
  • Page 92: Led Indications

    MELSEC-Q 5.3.1 LED indications The following explains the names of the LEDs on the QJ71DN91 and their indications in mode 0 to 8. For the LED indications in mode 9 to C, refer to Section 5.4 Hardware Test or 5.6 Communication Test.
  • Page 93: Node No. Switches

    5 SETUP AND PREPARATION MELSEC-Q 5.3.2 Node No. switches The following explains the node No. switches of the QJ71DN91. Table 5.2 Node No. switches Name Description Node No. switch Used to set the node No. of the module. (Factory default: 0) Do not change the node No.
  • Page 94: Hardware Test

    5 SETUP AND PREPARATION MELSEC-Q 5.4 Hardware Test The hardware test checks whether or not the module operates normally in stand- alone condition. It performs ROM check, RAM check, self-loopback test, etc. Be sure to perform the hardware test before building a system. For the test related to DeviceNet communications, refer to Section 5.6 Communication Test and perform it after wiring.
  • Page 95: Wiring

    5 SETUP AND PREPARATION MELSEC-Q 5.5 Wiring (1) Connecting a DeviceNet cable The following explains how to connect a DeviceNet cable to the QJ71DN91. V+ (red) CAN_H (white) Shield (drain wire) CAN_L (blue) V- (black) The figure above shows the QJ71DN91's DeviceNet connector.
  • Page 96: Communication Test

    5 SETUP AND PREPARATION MELSEC-Q 5.6 Communication Test The transmission and reception tests are performed after connecting the QJ71DN91 and other DeviceNet devices with DeviceNet cables. There is no restriction on the node No. setting of the communication target. Execute the test in the following sequence:...
  • Page 97: Precautions For Network Power Supply

    5 SETUP AND PREPARATION MELSEC-Q 5.7 Precautions for Network Power Supply This section describes the precautions for network power supply. 5.7.1 Network power supply unit position Follow the procedure below to determine the position to install the network power supply unit. Calculate the current consumption of each node on the network.
  • Page 98: Network Power Supply Unit Position And Current Capacity Calculation

    5 SETUP AND PREPARATION MELSEC-Q 5.7.2 Network power supply unit position and current capacity calculation This section describes where to install the network power supply unit and how to calculate the current capacity. (1) Connecting the network power supply unit to one end of the network When the network is 200m long in total and uses thick cables, the current capacity can be calculated as shown below.
  • Page 99 5 SETUP AND PREPARATION MELSEC-Q (3) When the network power supply current capacity is insufficient In the case where the network power supply unit is connected to the following network that uses thick cables: Network power supply unit Terminating Terminating resistor resistor Master node...
  • Page 100 5 SETUP AND PREPARATION MELSEC-Q (4) When using both trunk and drop lines The current capacity is calculated as shown below when the network power supply unit is connected to a network that has a 200m-long trunk line of thick cables and a 6m-long drop line of a thin cable.
  • Page 101: Utility Package (Gx Configurator-Dn)

    Description section (1) The QJ71DN91’s buffer memory is configured for automatic refresh. (2) Values set for auto refresh and stored in the QJ71DN91’s buffer memory are Auto refresh automatically read out when the END instruction is executed in the programmable controller CPU.
  • Page 102: Installing And Uninstalling The Utility Package

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.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. 6.2.1 Handling precautions The following explains the precautions on using the GX Configurator-DN. (1) For safety Since GX Configurator-DN is add-in software for GX Developer, read "Safety Precautions"...
  • Page 103 The number of parameters that can be set for one module in GX Configurator-DN is as shown below. Target module Initial setting Auto refresh setting QJ71DN91 0 (Not used) 18 (Max.) Example) Counting the number of parameter settings in Auto refresh setting This one row is counted as one setting.
  • Page 104: Operating Environment

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.2.2 Operating environment This section explains the operating environment of the personal computer that runs GX Configurator-DN. 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 following table "Operating system and performance required for personal...
  • Page 105 6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q POINT • The functions shown below are not available for Windows XP and Windows ® Vista If any of the following functions is attempted, this product may not operate normally. Start of application in Windows compatible mode Fast user switching Remote desktop...
  • Page 106: Utility Package Operation

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.3 Utility Package Operation 6.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 107 6 UTILITY PACKAGE (GX Configurator-DN) 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 6.1 shows respective data or files are handled in which operation.
  • Page 108 Auto refresh setting, or Monitor/Test screen. The text files can be utilized to create user documents. GX Developer/ Disk GX Configurator-DN Project Project Personal computer QCPU QJ71DN91 QJ71DN91 Q25HCPU MODE ERR. ERR. USER NODE ADDRESS A: Intelligent function module parameters B: Flash ROM data.
  • Page 109: Operation Overview

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.3.2 Operation overview GX Developer screen [Tools] - [Intelligent function utility] - [Start] Screen for selecting a target intelligent function module Enter "Start I/O No.", and select "Module type" and "Module model name". Refer to Section 6.3.3. Auto refresh Auto refresh setting screen Refer to Section 6.4.
  • Page 110 6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q [Tools] - [Flash ROM setting] [Online] - [Monitor/Test] Selecting monitor/test module screen Flash ROM setting Select "Module type" Select and "Module model name." Select a module to be monitored/tested. Monitor/Test Flash ROM setting screen Monitor/Test screen Refer to Section 6.6.
  • Page 111: Starting The Intelligent Function Module Utility

    Starting the Intelligent function module utility from GX Developer, activate the screen for selecting a module to set parameters. From this screen, the screen for configuring auto refresh of the QJ71DN91, and the screen for selecting a module to be monitored/tested can be started.
  • Page 112 6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q (3) Menu bar (a) File menu Intelligent function module parameters of the project opened by GX Developer are handled. [Open parameters]: Reads a parameter file. [Close parameters]: Closes the parameter file. If any data are modified, a dialog asking for file saving will appear.
  • Page 113: Auto Refresh

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.4 Auto Refresh [Purpose] Configure the QJ71DN91's buffer memory for automatic refresh. This auto refresh setting eliminates the need for reading and writing by sequence programs. [Operating procedure] "Start I/O No.* " "Module type"...
  • Page 114 6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q [Setting items] Reference Item Buffer memory address (Hex.) section Master Function Communication Status 01B0 Error Information for Master Function 01B1 3.4.3 Bus Error Counter 01B2 Bus Off Counter 01B3 Node Configuration Status 01B4 to 01B7 Node Communication Status, Node Communication Error 01BC to 01C3...
  • Page 115 6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q Command buttons Creates a file containing the screen data in text file format. Make text file Saves the set data and ends the operation. End setup Cancels the setting and ends the operation. Cancel POINT •...
  • Page 116: Monitoring/Test

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5 Monitoring/Test [Purpose] Start buffer memory monitoring/testing and I/O signal monitoring/testing from this screen. [Operating procedure] "Select monitor/test module" screen "Start I/O No. " "Module type" "Module model name" Monitor/test * Enter the start I/O No. in hexadecimal. The screen can also be started from System monitor of GX Developer Version 6 or later.
  • Page 117 6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q Reference Item Buffer memory address (Hex.) section X/Y Monitor/Test 6.5.1 Parameter Area Monitor/Test 6.5.2 Save Parameters to Flash ROM 6.5.3 Node Configuration Status Monitor 6.5.4 Node Communication Status Monitor 6.5.5 Node Communication Error Status Monitor 6.5.6 Node Fault Status Monitor 6.5.7...
  • Page 118 Enter or select values to be written into the buffer memory for test operation. (2) Command buttons Writes parameters to the flash ROM of the QJ71DN91. Write to module Reads parameters from the flash ROM of the Read from module QJ71DN91.
  • Page 119: X/Y Monitor/Test

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.1 X/Y monitor/test [Purpose] Monitor I/O signals and tests output signals. [Operating procedure] Monitor/Test screen X/Y Monitor/Test [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section X00: Watchdog Timer Error 3.3.2 (1) 3.3.2 (2) X01: I/O Communicating 3.3.3 (2)
  • Page 120: Parameter Area Monitor/Test

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.2 Parameter area monitor/test [Purpose] Configure parameters for master function, parameters for slave function, and auto communication start settings. For auto configuration of the parameters for master function, refer to Section 6.5.15. For saving parameters to the flash ROM, refer to Section 6.5.3. [Operating procedure] Monitor/Test screen Param.
  • Page 121: Save Parameters To Flash Rom

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.3 Save parameters to flash ROM [Purpose] Save parameters to the flash ROM. Follow the instructions shown in the Setting item column. [Operating procedure] Monitor/Test screen Flash ROM Save [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section...
  • Page 122: Node Configuration Status Monitor

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.4 Node configuration status monitor [Purpose] Monitor the parameter setting status of each slave node. [Operating procedure] Monitor/Test screen Config. Status Mon. [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section Node 0 to Node 63 01B4 to 01B7 3.4.4 (1)
  • Page 123: Node Communication Error Status Monitor

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.6 Node communication error status monitor [Purpose] Monitor the I/O communication error status of each slave node. [Operating procedure] Monitor/Test screen Comm. Err. Status Mon. [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section Node 0 to Node 63 01C0...
  • Page 124: Failed Node Detection Setting

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.8 Failed node detection setting [Purpose] Test whether or not to detect a failed node. [Operating procedure] Monitor/Test screen Failed Node Detection Setting [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section Node 0 to Node 63 01CC to 01CF...
  • Page 125: Message Communication Area Monitor/Test

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.9 Message communication area monitor/test [Purpose] Test the message communication area. For the execution timing, refer to Section 3.3.2 (3). [Operating procedure] Monitor/Test screen Msg. Comm. Area [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section Message Communication Command 0110...
  • Page 126: I/O Address Area Monitor For Master Function

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.10 I/O address area monitor for master function [Purpose] Monitor the start address and size (words) for each slave node in Master Function Receive Data (address: 0700 to 07FF ) and Master Function Transmit Data (address: 0900 to 09FF [Operating procedure]...
  • Page 127: Master Function Receive Data Monitor

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.11 Master function receive data monitor [Purpose] Monitor the data received from each slave node. [Operating procedure] Monitor/Test screen Master Receive Data [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section Master Function Receive Data 0700 to 07FF 3.4.6 (1)
  • Page 128: Slave Function Receive Data Monitor

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.13 Slave function receive data monitor [Purpose] Monitor the data received from the master node. [Operating procedure] Monitor/Test screen Slave Receive Data [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.) section Slave Function Receive Data 0B00 to 0B3F 3.4.10 (1)
  • Page 129: Auto Configuration

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.15 Auto configuration [Purpose] Using the auto configuration, set the parameters for master function. Follow the instructions shown in the Setting item column. [Operating procedure] Scroll down on the Monitor/Test screen. [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.)
  • Page 130: Flash Rom Parameter Clear

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.16 Flash ROM parameter clear [Purpose] Clear the parameters from the flash ROM. Follow the instructions shown in the Setting item column. [Operating procedure] Scroll down on the Monitor/Test screen. [Setting screen] [Setting items] Reference Item Buffer memory address (Hex.)
  • Page 131: Parameter Backup

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.5.17 Parameter backup [Purpose] Read the parameters saved in the QJ71DN91’s flash ROM, and save them in the personal computer. Or, read the parameters saved in the personal computer, and save them in the QJ71DN91’s flash ROM.
  • Page 132: Flash Rom Setting

    6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q 6.6 Flash ROM Setting [Purpose] Edit the flash ROM settings offline. Edited parameters can be written to the module from the "Parameter Backup" screen under "Monitor/Test". [Operating procedure] Flash ROM setting screen "Module type" "Module model name"...
  • Page 133 6 UTILITY PACKAGE (GX Configurator-DN) MELSEC-Q [Explanation of items] (1) Items Setting item: Displays parameter names. Setting value: Enter or select values to be set in the flash ROM. (2) Command button Save file Saves the parameters on the hard disk, etc. Load file Reads the parameters saved on the hard disk, etc.
  • Page 134: Programming For Executing The Master Function

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION This chapter explains programming for executing the master function. When applying the program examples introduced in this chapter to the actual system, make sure to examine the applicability and confirm that it will not cause system control problems.
  • Page 135 Transmit Receive data D101 Receive data Transmit data data D102 (Transmit request flag) (Receive complete flag) Transmitting node (QJ71DN91 master) Stores transmit data in Master function transmit data area. Transmit complete Transmit request Transmit Master function flag: 703H flag: 903H...
  • Page 136 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q Transmission command turns ON. Data in D0 to D2 are stored in the transmit data area (address: 900 Upon completion of storing the transmit data, the transmit request flag (address: 903 ) turns ON. The master function transmit data are sent through I/O communication, and the receive complete flag (address: B03 ) turns ON.
  • Page 137: System Configuration

    (DRT1-OD08) + 16-point input (1794ADN+IB16)* *1: The QJ71DN91 (master node) is installed to slot 0 of the base unit, with the start I/O No. set to "0000 ". *2: The QJ71DN91 (slave node) is installed to slot 1 of the base unit, with the start I/O No. set to "0020...
  • Page 138 Node No. Node No.2 Communication speed 125kbaud Connection type Polling I/O points 8 output points 3rd slave node (QJ71DN91(slave node)) Item Setting Node No. (Node No. switches) Node No.4 (04) Communication speed (Mode switch) 125kbaud (Mode 3) Connection type Polling...
  • Page 139 8-point input Receive data FROM X100 to X107 I00 to I07 Node No. 1 Input 00 to input 07 QJ71DN91 slave node (node No. 4) FROM Node No. 4 X110 to X14F 8-byte transfer Node No. 3 status Transmit data...
  • Page 140: Parameters For Master Function

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.3 Parameters for Master Function (1) Setting items The following table lists the parameters for master function, which are set in a program example. For details of the parameters for master function, refer to Section 3.4.5. For setting by auto configuration, refer to (2) in this section.
  • Page 141 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q (2) Operation flow of auto configuration The following explains the operation flow in the case of using auto configuration. When using the utility package, refer to Section 7.3.1 (1). When not using the utility package, refer to Section 7.3.2 (1). I/O Communication Request (Y11) I/O Communicating (X01) Request for Saving Parameters...
  • Page 142 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q (3) Operation flow of parameter saving to flash ROM The following explains the operation flow in the case of saving parameters to the flash ROM. When using the utility package, refer to Section 7.3.1 (3). When not using the utility package, refer to Section 7.3.2 (3).
  • Page 143: Program Example Using The Utility Package

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.3.1 Program example using the utility package (1) When using auto configuration POINT (1) Pre-determine the slave node settings (e.g. connection type) before executing auto configuration. (2) Check that the power of the slave nodes and the network is ON and the wiring is correct.
  • Page 144 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q [1. Stop I/O Communication.] Clicking the I/O Comm. Stop button on the [Monitor/Test] screen will display the [1. Stop I/O Communication.] screen. Follow the setting instructions. When the current value for "Y11: I/O Communication Request" is "I/O Comm.
  • Page 145 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q When the current value for "Y17: Request for Saving Parameters to Flash ROM" is "Save Request", set "OFF" for it. Select "OFF" Execute test button Click the Close button. [2. Set Auto Configuration Operation.] Clicking the Operation Setting button on the [Monitor/Test] screen will display the [1.
  • Page 146 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q [3. Execute Auto Configuration.] Clicking the Auto Config button on the [Monitor/Test] screen will display the [3. Execute Auto Configuration.] screen. Follow the setting instructions. Set "Config. Request" for "Y15: Auto Configuration Request". Select "Config.
  • Page 147 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q [4. Confirm Auto-Configured Parameters.] Clicking the Param. Check button on the [Monitor/Test] screen will display the [4. Confirm Auto-Configured Parameters.] screen. Check the parameters for master function. Check that the settings such as node No., connection type, and I/O points are correct.
  • Page 148 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q POINT (1) Slave node settings detected by auto configuration are stored in order of node (2) When changing parameters for master function, set default values in the areas after the parameter-set areas. (Example) When changing the number of slave nodes that can perform I/O communication from 6 to 4, set default values in the areas for 5th and 6th slave nodes.
  • Page 149 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q (2) When setting parameters manually Set the parameters for master function. Clicking the Parameter Area Monitor/Test button on the [Monitor/Test] screen will display the [Parameter Area Monitor/Test] screen. For information on how to display the [Monitor/Test] screen, refer to Section 6.3.
  • Page 150 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q Save parameters to a flash ROM (Refer to (3) in this section.) POINT When changing parameters for master function, set default values in the areas after the parameter-set areas. (Example) When changing the number of slave nodes that can perform I/O communication from 6 to 4, set default values in the areas for 5th and 6th slave nodes.
  • Page 151 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q When saving the parameters to a flash ROM Clicking the Flash ROM Save button on the [Monitor/Test] screen will display the [5. Save Parameters to Flash ROM.] or [Save Parameters to Flash ROM] screen. (The same setting details are displayed on the both screens.) Follow the setting instructions.
  • Page 152 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q Select the parameter saving area. When saving the parameters for master function and the auto communication start setting, set "Master/Auto Comm." for "Parameter Saving Area Selection". Select "Master/Auto Comm. " Execute test button Set "Save Request"...
  • Page 153 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q If parameter check has failed, "Error Occurred" is displayed for "X03: Error Set Signal for Master Function". Check the error code in the current value column of "Error Information for Master Function", and take corrective actions. (Refer to Section 9.2.1.) After completing the parameter saving to the flash ROM, set "OFF"...
  • Page 154 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q When clearing parameters from the flash ROM Clicking the Flash ROM Clear button on the [Monitor/Test] screen will display the [Flash ROM Parameter Clear] screen. Follow the setting instructions. Set "Param. Clear" for "Flash ROM Parameter Clear". Select "Param.
  • Page 155 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q After completion of clearing the flash ROM parameters, set "OFF" for "Request for Saving Parameters to Flash ROM". Select "OFF" Execute test button Click the Close button. 7 - 22 7 - 22...
  • Page 156: Program Example Not Using The Utility Package

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.3.2 Program example not using the utility package When using auto configuration Device list Reference Device Description section Parameter Setting Command for Master Function ― M300 Auto Configuration Command M301 Auto-Configuration Flag I/O Communicating Auto-Configuring Auto Configuration Completion...
  • Page 157 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q When setting parameters manually Device list Reference Device Description section Parameter Setting Command for Master Function ― I/O Communicating I/O Communication Request Parameters for Master Function (for 1st to 4th slave D4 to D35 3.4.5 nodes) Program example...
  • Page 158 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q Parameters for master function [3rd slave node] Node No.= 4, message group = 3 Connection type = Polling Input byte module = 8 Output byte module = 8 Input word module = 0 Output word module = 0 Input double-word module = 0 Output double-word module = 0...
  • Page 159 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q When saving parameters to a flash ROM Device list Reference Device Description section M302 Parameter Saving Command ― M303 Saving Parameters to Flash ROM Flag I/O Communicating Saving Parameters to Flash ROM Parameters Saved to Flash ROM 3.3.2 (6) I/O Communication Request...
  • Page 160: I/O Communication Function

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.4 I/O Communication Function 7.4.1 Program example using the utility package Device list Reference Device Description section I/O Communication Start Command ― M96 to M111* Node Communication Status 3.4.4 X100 to X10F* 1st slave node: Node No.1 Master Function X110 to X14F*...
  • Page 161 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q Writing intelligent function module parameters (Refer to Section 6.3.3.) Write parameters of the intelligent function modules (auto refresh settings) to the CPU module. Perform this operation from the screen for selecting a target intelligent function module.
  • Page 162: Program Example Not Using The Utility Package

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.4.2 Program example not using the utility package Device list Reference Device Description section I/O Communication Command ― M100 to M115 Node Communication Status 3.4.4 I/O Communicating 3.3.2 (2) X100 to X107 1st slave node: Node No.1 Master Function 3.4.6...
  • Page 163 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q Program example Setting parameters for master function (See Section 7.3.) I/O communication function Sets initial transmit data values. Set I/O Communication Request to ON. Reads node communication status. 1st slave node: Node No.1 Error handling program for node No.1 Input data processing program for node No.1 2nd slave node: Node No.2...
  • Page 164: Message Communication Function

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.5 Message Communication Function This section explains an example of a sequence program created for message communication. 7.5.1 Example of reading message communication data An example program in this section performs Get Attribute to node No.3. For the area enclosed with a dotted line, refer to the manual for the relevant slave node since the class ID, instance ID, and attribute ID are different depending on the actual area and the slave node.
  • Page 165 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q Program example Reads master function communication status. Executes Get Attribute if Master Function Comm. Status is C0 or 40 Get Attribute Node No.3, Class ID = 1 Instance ID = 1 Attribute ID = 7 Writes message comm.
  • Page 166: Example Of Writing Message Communication Data

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.5.2 Example of writing message communication data An example program in this section performs Set Attribute to node No.3. For the area enclosed with a dotted line, refer to the manual for the relevant slave node since the class ID, instance ID, and attribute ID are different depending on the actual area and the slave node.
  • Page 167: Obtaining Error Information

    7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q 7.6 Obtaining Error Information This section explains an example of a sequence program that obtains the error information for the master function. Device list Reference Device Description section Error Reset Command ― Error Set Signal for Master Function 3.3.2 (4) Error Reset Request for Master Function...
  • Page 168: Allocating Transmit/Receive Data Storage Devices For Future Expansion

    ) is stored in D1000 to D1251, and the FROM or TO instruction is executed using the start buffer memory address of this information and the data length. QJ71DN91 master node Remote I/O (node No. 1) Programmable controller CPU 8-point input...
  • Page 169 7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION MELSEC-Q The following explains a sequence program example for this case. Device list Reference Device Description section I/O Communication Start Command ― I/O Communicating 3.3.2 (2) X200 to X23F 1st slave node: Node No.1 X240 to X27F Master Function 2nd slave node: Node No.2...
  • Page 170: Programming For Executing The Slave Function

    8.1 System Configuration The explanation of the programs in this chapter is based on the system shown in Section 7.2. Note that the transmit/receive data of the QJ71DN91 (slave node) are assigned to the following devices. Item Device Receive data...
  • Page 171 8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q Operation flow of parameter saving to flash ROM The following explains the operation flow in the case of saving parameters to the flash ROM. When using the utility package, refer to Section 8.2.1 (2). When not using the utility package, refer to Section 8.2.2 (2).
  • Page 172: Program Example Using The Utility Package

    8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q 8.2.1 Program example using the utility package Setting example Setting the parameters for slave function. Clicking the Parameter Area Monitor/Test button on the [Monitor/Test] screen will display the [Parameter Area Monitor/Test] screen. For information on how to display the [Monitor/Test] screen, refer to Section 6.3.
  • Page 173 8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q When saving parameters to flash ROM Clicking the Flash ROM Save button on the [Monitor/Test] screen will display the [5. Save Parameters to Flash ROM.] or [Save Parameters to Flash ROM] screen. (The same setting details are displayed on the both screens.) Follow the setting instructions.
  • Page 174 8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q Select the parameter saving area. When saving the parameters for slave function and the auto communication start setting, set "Slave/Auto Comm." for "Parameter Saving Area Selection". Select "Slave/Auto Comm." Execute test button Set "Save Request"...
  • Page 175 8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q If parameter check has failed, "Error Occurred" is displayed for "X08: Error Set Signal for Slave Function". Check the error code in the current value column of "Error Information for Slave Function", and take corrective actions. (Refer to Section 9.2.1.) After completing the parameter saving to the flash ROM, set "OFF"...
  • Page 176: Program Example Not Using The Utility Package

    8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q 8.2.2 Program example not using the utility package Setting example Device list Reference Device Description section Parameter Setting Command for Slave Function — I/O Communicating I/O Communication Request Slave Function Receive-Bytes (Input Sizes) Setting Area 3.4.9 Slave Function Transmit-Bytes (Output Sizes) Setting...
  • Page 177 8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q When saving parameters to a flash ROM Device list Reference Device Description section M402 Parameter Saving Command — M403 Saving Parameters to Flash ROM Flag I/O Communicating Saving Parameters to Flash ROM Parameters Saved to Flash ROM 3.3.2 (6) I/O Communication Request...
  • Page 178: I/O Communication Function

    8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q 8.3 I/O Communication Function 8.3.1 Program example using the utility package Device list Reference Device Description section I/O Communication Start Command — I/O Communicating 3.3.3 (2) X200 to X23F Slave Function Receive Data 3.4.10 I/O Communication Request 3.3.3 (2)
  • Page 179 8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q Program example Setting parameters for slave function (See Section 8.2.) I/O communication function Sets I/O Communication Request to ON. Input data processing program Output data processing program POINT To ensure consistency of transmit/receive data of multiple words, take a measure such as providing a handshake area at the end of transmit/receive data to check the data transfer.
  • Page 180: Program Example Not Using The Utility Package

    8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q 8.3.2 Program example not using the utility package Device list Reference Device Description section I/O Communication Start Command — I/O Communicating 3.3.3 (2) X200 to X23F Slave Function Receive Data 3.4.10 I/O Communication Request 3.3.3 (2) Y200 to Y23F Slave Function Transmit Data...
  • Page 181: Obtaining Error Information

    8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION MELSEC-Q 8.4 Obtaining Error Information This section explains an example of a sequence program that obtains the error information for the slave function. Device list Reference Device Description section Error Reset Command — Error Set Signal for Slave Function 3.3.3 (4) Error Reset Request for Slave Function...
  • Page 182: Troubleshooting

    9 TROUBLESHOOTING MELSEC-Q 9 TROUBLESHOOTING This chapter describes the errors that may occur while using the QJ71DN91 as well as their troubleshooting procedures. This chapter contains the following information: Section 9.1 Problem Identification Troubleshooting procedures are shown according to symptoms.
  • Page 183: Problem Identification

    9 TROUBLESHOOTING MELSEC-Q 9.1 Problem Identification This section explains checking procedures and actions to be taken when a problem occurs. 9.1.1 Checking the LEDs Problem occurred Set Mode switch in range of 0 to 8 Mode switch set in 0 to 8? and reset.
  • Page 184: When Unable To Communicate With All Slave Nodes (When Using Master Function)

    Terminating resistors connected? Connect terminating resistors. Is there a slave node having same node No. as Eliminate node No. duplication. QJ71DN91? Have the parameters been written? Are the parameters matched with hardware configuration of the Configure and write correct parameters.
  • Page 185: When Unable To Communicate With A Specific Slave Node (When Using Master Function)

    9 TROUBLESHOOTING MELSEC-Q 9.1.3 When unable to communicate with a specific slave node (when using master function) Unable to communicate with a specific slave node. (NS LED is flashing red.) Power ON the slave node. Is the slave node powered ON? Is DeviceNet cable connected to the slave no Connect DeviceNet cable securely.
  • Page 186: When Unable To Communicate With Master Node (When Using Slave Function)

    Mode switch set in 3 to 8? Set Mode switch in range of 3 to 8 and reset. Is DeviceNet Connect DeviceNet cable securely. cable connected to QJ71DN91's connector securely Is network power supply ON? Turn ON the network power supply.
  • Page 187: Troubleshooting For Other Cases

    • Is the network powered ON? powered up and the wiring is correct. • Is the wiring correct? • If the target slave node is the QJ71DN91, When the auto communication start setting is check if "Start" is set in Auto Communication...
  • Page 188 9 TROUBLESHOOTING MELSEC-Q Symptom Check Action • Set "Not start" in Auto Communication Start Setting (address: 0631 ), and save the After power-up, I/O • Is "Start" set in Auto Communication Start parameters to a flash ROM. communication starts Setting (address: 0631 •...
  • Page 189: Error Codes

    • Set the node No. within the range of 0 to The node No. (MAC ID) value is out of QJ71DN91 range. • Set the mode switch to any other than D The mode switch value is out of range.
  • Page 190 Zero (0) is set for both the input and • Set the input and output points according QJ71DN91 output points of a slave node. to the slave node specifications. The low byte of the slave node No. in the QJ71DN91 •...
  • Page 191 • Set I/O points of slave nodes in Parameters for Master Function. When using both the master and slave • Set transmit/receive bytes in Parameters QJ71DN91 functions, the number of I/O points is set for Slave Function. to 0 for both of them.
  • Page 192 • Check the slave node manual, and prevent any data of the function not Response data of the function that is not supported by the QJ71DN91 from being QJ71DN91 supported by the QJ71DN91 was sent from the slave node.
  • Page 193 The number of bytes received by polling • Set the master node’s I/O points that QJ71DN91 is greater than the max. number of match the settings of the QJ71DN91. receive points. 9 - 12 9 - 12...
  • Page 194: Execution Error Codes Of Message Communication (For The Master Function Only)

    When reading communication error information Error Detected code Description Action (Dec.) QJ71DN91 The specified slave node No. is other than 0 to 63. • Specify a slave node No. within the range of 0 to 63. When getting/setting attribute, or resetting Error Detected code...
  • Page 195 • Check the entire network and slave node states for QJ71DN91 Slave node did not respond. any fault such as slave node failure, or disconnection of a terminating resistor.
  • Page 196 Description Action (Dec.) • Check whether the parameter value for the message QJ71DN91 Failed to open a message connection. group is set correctly or not. • Verify that the transmit message can be responded by Slave node The response data length is too long.
  • Page 197: General Devicenet Error Codes Of Message Communication (For The Master Function Only)

    9 TROUBLESHOOTING MELSEC-Q 9.2.3 General DeviceNet error codes of message communication (for the master function only) A general DeviceNet error code is stored in Message Communication Data (address: 0133 Read it when Message Communication Completion signal (X02) is set to ON, and check the error details.
  • Page 198: Checking The Qj71Dn91 Status By System Monitor In Gx Developer

    9 TROUBLESHOOTING MELSEC-Q 9.3 Checking the QJ71DN91 Status by System Monitor in GX Developer Error codes and LED status can be checked by selecting the detailed information of the QJ71DN91 from System monitor of GX Developer. Operation procedure Select "Diagnostics" – "System monitor", choose a module, and then "Module's Detailed Information"...
  • Page 199 9 TROUBLESHOOTING MELSEC-Q H/W LED Information The LED status of the QJ71DN91 is displayed. (0: OFF, 1: ON) ERR: Indicates the "ERR" LED status. MS RED: Indicates the "MS (red)" LED status. MS GREEN: Indicates the "MS (green)" LED status.
  • Page 200: Appendixes

    APPENDIXES MELSEC-Q APPENDIXES Appendix 1 External Dimensions The external dimensions of the QJ71DN91 are shown below. QJ71DN91 ERR. NODE ADDRESS MODE/DR 0 : M/125 1 : M/250 2 : M/500 3 : S/125 4 : S/250 5 : S/500 6 : D/125...
  • Page 201: Appendix 2 Functional Upgrade Of The Qj71Dn91

    APPENDIXES MELSEC-Q Appendix 2 Functional upgrade of the QJ71DN91 The table below lists new functions of the QJ71DN91 and serial No. and software version of the products that support each function. First 5 digits of serial Reference Software version Upgraded item...
  • Page 202: Appendix 4 Parameter Setting Sheet (For The Master Function)

    APPENDIXES MELSEC-Q Appendix 4 Parameter Setting Sheet (For the Master Function) Buffer memory Item Description Set value address (Hex.) Specify a value to make the link scan time constant. 01D7 Constant scan (Setting range: 0 to 65535ms (FFFF th slave node] Buffer memory Item Description...
  • Page 203: Appendix 5 Parameter Setting Sheet (For The Slave Function)

    APPENDIXES MELSEC-Q Appendix 5 Parameter Setting Sheet (For the Slave Function) Buffer memory Item Description Set value address (Hex.) Slave function receive-bytes Set a size of I/O data that can be received for the slave function. 060E (input size) setting area (Setting range: 0 to 128 bytes, Default: 8 bytes) Slave function transmit-bytes Set a size of I/O data that can be sent for the slave function.
  • Page 204: Appendix 6 List Of Communication Parameters Of Slave Nodes From Various Manufactures

    UCMM manufacturer type group Timeout Rate Time Output Input Output Input Output Input Action DeviceNet 200ms Timeout 10ms QJ71DN91 master/slave Polling (H1) (K201) (H1) (H0) Mitsubishi module Electric A500 Series Corporation inverter 1000ms Timeout 10ms FR-A5ND Polling (H1) DeviceNet (K1001)
  • Page 205: Appendix 7 Eds File Of The Qj71Dn91

    APPENDIXES MELSEC-Q Appendix 7 EDS File of the QJ71DN91 The following shows the EDS file of the QJ71DN91. The EDS file is stored in the CD- ROM of GX Configurator-DN. $ Mitsubishi Master/Slave EDS file $ File Description Section [File] DescText="QJ71DN91 EDS file";...
  • Page 206 APPENDIXES MELSEC-Q MEMO App - 7 App - 7...
  • Page 207: Index

    INDEX Add configuration .......... 3-35 Failed node detection setting ......3-31 All configuration..........3-35 Flash ROM setting .........6-32 Auto-configuring (X14) ........3-12 Functions of the utility package .......6-1 Auto configuration .........A-11 Function version........2-5,9-17 Auto configuration completion (X15) .... 3-12 Auto communication start setting ....3-46 Auto configuration operation setting .....
  • Page 208 Slave function receive data ......3-42 Message communication result ....3-21 Slave function receive-bytes setting area ..3-41 Minimum link scan time......... 3-39 Slave function transmit data ......3-42 Mode switch............. 5-8 Slave function transmit-bytes setting area..3-41 Mode switch No........... 3-43 Starting the intelligent function module utility Model name...........
  • Page 209 WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
  • Page 210 Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium is a registered trademark of Intel Corporation in the United States and other countries. Other company and product names herein are either trademarks or registered trademarks of their respective owners.
  • Page 212 Phone: +370 (0)5 / 232 3101 Fax: +370 (0)5 / 232 2980 MITSUBISHI ELECTRIC Mitsubishi Electric Europe B.V. /// FA - European Business Group /// Gothaer Straße 8 /// D-40880 Ratingen /// Germany Tel.: +49(0)2102-4860 /// Fax: +49(0)2102-4861120 /// info@mitsubishi-automation.com /// www.mitsubishi-automation.com FACTORY AUTOMATION...

Table of Contents