Mitsubishi Electric MELSEC iQ-R Series User Manual
Mitsubishi Electric MELSEC iQ-R Series User Manual

Mitsubishi Electric MELSEC iQ-R Series User Manual

Devicenet master/slave module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Quick Links

MELSEC iQ-R DeviceNet Master/Slave Module
User's Manual (Application)
-RJ71DN91
Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC iQ-R Series

  • Page 1 MELSEC iQ-R DeviceNet Master/Slave Module User's Manual (Application) -RJ71DN91...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable controller system, refer to the MELSEC iQ-R Module Configuration Manual.
  • Page 4 [Design Precautions] WARNING ● Configure safety circuits external to the programmable controller to ensure that the entire system operates safely even when a fault occurs in the external power supply or the programmable controller. Failure to do so may result in an accident due to an incorrect output or malfunction. (1) Emergency stop circuits, protection circuits, and protective interlock circuits for conflicting operations (such as forward/reverse rotations or upper/lower limit positioning) must be configured external to the programmable controller.
  • Page 5 [Design Precautions] WARNING ● Especially, when a remote programmable controller is controlled by an external device, immediate action cannot be taken if a problem occurs in the programmable controller due to a communication failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions to be taken between the external device and CPU module in case of a communication failure.
  • Page 6 [Design Precautions] CAUTION ● Do not install the control lines or communication cables together with the main circuit lines or power cables. Doing so may result in malfunction due to electromagnetic interference. Keep a distance of 100mm or more between those cables. ●...
  • Page 7 Also, attach an extension connector protective cover to each unused extension cable connector as necessary. Directly touching any conductive parts of the connectors while power is on may result in electric shock. *1 For details, please consult your local Mitsubishi Electric representative.
  • Page 8 [Wiring Precautions] CAUTION ● Individually ground the FG and LG terminals of the programmable controller with a ground resistance of 100 ohms or less. Failure to do so may result in electric shock or malfunction. ● Use applicable solderless terminals and tighten them within the specified torque range. If any spade solderless terminal is used, it may be disconnected when the terminal screw comes loose, resulting in failure.
  • Page 9 [Wiring Precautions] CAUTION ● Programmable controllers must be installed in control panels. Connect the main power supply to the power supply module in the control panel through a relay terminal block. Wiring and replacement of a power supply module must be performed by qualified maintenance personnel with knowledge of protection against electric shock.
  • Page 10 [Startup and Maintenance Precautions] CAUTION ● When connecting an external device with a CPU module or intelligent function module to modify data of a running programmable controller, configure an interlock circuit in the program to ensure that the entire system will always operate safely. For other forms of control (such as program modification, parameter change, forced output, or operating status change) of a running programmable controller, read the relevant manuals carefully and ensure that the operation is safe before proceeding.
  • Page 11 [Startup and Maintenance Precautions] CAUTION ● Startup and maintenance of a control panel must be performed by qualified maintenance personnel with knowledge of protection against electric shock. Lock the control panel so that only qualified maintenance personnel can operate it. ●...
  • Page 12: Conditions Of Use For The Product

    Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC iQ-R series programmable controller to handle the product correctly. When applying the program examples provided in this manual to an actual system, ensure the applicability and confirm that it will not cause system control problems.
  • Page 13 MEMO...
  • Page 14: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 15 List of Error Codes ..............59 Error code for module diagnostics (own node error) .
  • Page 16: Relevant Manuals

    System configuration, parameter settings, and online operations of GX Works3 e-Manual [SH-081215ENG] e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated tool. e-Manual has the following features: • Required information can be cross-searched in multiple manuals.
  • Page 17: Terms

    TERMS Unless otherwise specified, this manual uses the following terms. Term Description Buffer memory Memory in an intelligent function module to store data such as setting values and monitor values. For CPU modules, it refers to memory to store data such as setting values and monitor values of the Ethernet function, or data used for data communication of the multiple CPU system function.
  • Page 18: Generic Terms And Abbreviations

    Unless otherwise specified, this manual uses the following generic terms and abbreviations. Generic term/abbreviation Description C Controller module A generic term for the MELSEC iQ-R series C Controller modules CPU module A generic term for the MELSEC iQ-R series CPU modules Process CPU...
  • Page 19: Chapter 1 Functions

    FUNCTIONS Master Function (I/O Communication) This function communicates the I/O data with each slave node (63 at maximum) using the buffer memory of the RJ71DN91. Input 512 bytes (256 bytes at maximum per node) and output 512 bytes (256 bytes at maximum per node) can be communicated.
  • Page 20: Flow Of I/O Data

    Flow of I/O data The following figure shows the I/O communication between the RJ71DN91 (master node) and two slave nodes as an example. CPU module RJ71DN91 Master function receive data area Transmit data 0700H Transmit data 07FFH Master function transmit data area Receive data 0900H Receive data...
  • Page 21: Flow Of Operation

    Flow of operation This section describes the flow of operation of the I/O communication with each slave node. Starting the I/O communication with 'I/O communication request' (Y11) 'Module READY' (X0F) 'Auto configuration request' (Y15) OFF Ô 'Request for saving/clearing OFF Ô parameters to Flash ROM' (Y17) Õ...
  • Page 22 Starting the I/O communication automatically at power-on For auto communications, set 'Auto communication start setting' (Un\G1585) to "Start". Ó 'Module READY' (X0F) Ö 'I/O communication request' (Y11) Ô 'I/O communicating' (X01) Õ 'Master function error set signal' (X03) 'Master function error information' (Un\G432) 'Master function parameters' Ò...
  • Page 23: Overview Of Each Connection Type

    Overview of each connection type One of the following connection types, which are defined by the DeviceNet specification, can be selected for each slave node. • Polling • Bit strobe • Change of state • Cyclic For the connection type available for the slave node, refer to the manual of each slave node. Polling The polling is the communication method that repeats the following communication from ...
  • Page 24 Bit strobe The bit strobe is the communication method that repeats the following communication from  to  to each slave node. RJ71DN91 Ó Ò Õ Ô (1) Master node (2) Slave node  Messages are transmitted to each slave node simultaneously. ...
  • Page 25 Change of state The change of state is the communication method that performs the following communication,  and , along with the change of the I/O data. When the I/O data is not changed, the data is not transmitted. RJ71DN91 Ó...
  • Page 26 Cyclic The cyclic is the communication method that repeats the following communication,  and , regularly to each slave node. RJ71DN91 Ó Ò (1) Master node (2) Slave node  The master node transmits the data in it to the slave node. ...
  • Page 27: Master Function (Message Communication)

    Master Function (Message Communication) This function reads/writes the attribute data of the slave node, acquires communication error information, and requests a reset message using the buffer memory of the RJ71DN91. For details on other message communications, refer to DeviceNet common service in THE CIP NETWORKS LIBRARY Volume 3 DeviceNet Adaptation of CIP Edition 1.14.
  • Page 28: Writing Attribute Data

    Writing attribute data CPU module RJ71DN91 Slave node (MAC ID) 0110H Class Ô Ò Instance 011FH 0130H Ó 01A7H Ô Class Message communication request Instance 0120H 012FH Instance Õ Message communication completion Next processing Ö X02 X05 Message communication completion Class Instance Instance...
  • Page 29: Acquiring Communication Error Information

    Acquiring communication error information CPU module RJ71DN91 Slave node (MAC ID) 0110H communication Class 1 Ò Instance 011FH Ó Message communication request Instance Ó 0120H Ö FROM X02 X05 012FH 0130H Class Instance 01A7H Ô Message communication completion FROM Õ X02 X05 Message communication completion...
  • Page 30: Reset

    Reset CPU module RJ71DN91 Slave node (MAC ID) 0110H Class Ò Ó Instance 011FH Ó Message communication request Instance 0120H Ô Õ FROM X02 X05 012FH Message communication completion (1) Message communication command (2) Message communication result (3) Attribute  Set the command data in 'Message communication command' (Un\G272 to Un\G287) (0110H to 011FH). ...
  • Page 31: Slave Function (I/O Communication)

    Slave Function (I/O Communication) This function enables the communications of I/O data between the master node and the slave nodes using the buffer memory of the RJ71DN91. Input 128 bytes and output 128 bytes can be communicated. The connection type is polling. Setting for I/O communication with the master node •...
  • Page 32: Flow Of I/O Data

    Flow of I/O data The following figure shows the I/O communication between the RJ71DN91 (slave node) and the master node as an example. RJ71DN91 CPU module Master function Slave function transmit data area receive data 0B00H Receive data 0B3FH Slave function Slave function receive data transmit data...
  • Page 33: Flow Of Operation

    Flow of operation This section describes the flow of the operation of the I/O communication with the master node. Starting the I/O communication with 'I/O communication request' (Y11) 'Module READY' (X0F) 'Auto configuration request' (Y15) OFF Ô 'Request for saving/clearing OFF Ô...
  • Page 34 Starting the I/O communication automatically at power-on For auto communications, set 'Auto communication start setting' (Un\G1585) to "Start". Ó 'Module READY' (X0F) Ö 'I/O communication request' (Y11) Ô 'I/O communicating' (X01) Õ 'Slave function error set signal' (X08) 'Slave function error information' (Un\G1537) 'Slave function receive size setting' (Un\G1550),...
  • Page 35: Auto Configuration Function

    Auto Configuration Function The auto configuration function detects the slave node on the network and automatically creates the slave node information of the parameter for master function. By saving the slave node information to the RJ71DN91, the same slave node information can be used even after the CPU module is reset and the system is powered off and on.
  • Page 36: Flow Of The Auto Configuration Operation

    Flow of the auto configuration operation This section describes the flow of the operation when the auto configuration is used for setting parameters. 'I/O communication request' (Y11) Ó 'I/O communicating' (X01) 'Request for saving/clearing OFF Ó parameters to Flash ROM' (Y17) Ô...
  • Page 37: Operation Type

    Operation type There are two types of configuration: The all configuration that detects all slave nodes on the network and the add configuration that detects the slave node added to the network. This section describes the operation type of the all configuration and the add configuration. All configuration This type of configuration detects all slave nodes on the network, and overwrites every area of 'Master function parameters' (Un\G468 to Un\G975) from 1st to 63rd.
  • Page 38: Setting Details

    Setting details This section describes the values that are automatically detected and set by the auto configuration function. When changing the value, use the TO instruction from the program. Item Description Node address of the slave node Lower byte • Node address of the 1st slave node (MAC ID) 0 to 63 Message group of the slave node Upper byte •...
  • Page 39: Chapter 2 Parameter Settings

    PARAMETER SETTINGS This chapter describes the parameter setting necessary for the RJ71DN91. Setting Parameters Add the RJ71DN91 to the engineering tool. [Navigation window]  [Parameter]  [Module Information]  Right-click  [Add New Module] "Basic Setting", "Applied Setting", and "Refresh Setting" are included in the module parameter. Select the settings from the tree in the following window and configure them.
  • Page 40 Whether the parameter of the basic setting can be set or not depends on the setting of the master function and slave function. The following table lists the parameter availability of each function. : Can be set, : Cannot be set Item Availability Master...
  • Page 41 Master Function Parameters Set the master function parameters. Item Description Setting range Constant Scan Set the link scan time. (ms) 0 to 65535 Set a larger value than "Maximum link scan time". If "Current link scan time" is (Default: 0) longer than the set link scan time, the module operates according to "Current link scan time".
  • Page 42 Slave Function Parameters Set the slave function parameter. Item Description Setting range Slave Receive Size Set the I/O receive data size as the slave function. 0 to 128 (Byte) (Default: 8) Slave Transmit Size Set the I/O transmit data size as the slave function. 0 to 128 (Byte) (Default: 8)
  • Page 43 Connection Type EXPECTED PACKET RATE PRODUCTION INHIBIT TIME Bit strobe The communication watchdog timer value for the Minimum transmission cycle of slave = Set the slave is set. When the communication between the minimum time in which the slave can prepare the master and slave is cut out for the specified period transmit data.
  • Page 44: Applied Setting

    Applied Setting Set the application setting of the RJ71DN91. The application setting can be set both in the master function and in the slave function. CPU error output mode setting Set the output mode upon CPU error. Item Description Setting range CPU error output mode setting Whether to clear or hold the output to the module •...
  • Page 45: Refresh Settings

    Refresh Settings Set the buffer memory of the RJ71DN91 to refresh. This refresh setting eliminates the need for reading and writing with a program. Start the module parameter. [Navigation window]  [Parameter]  [Module Information]  [RJ71DN91]  [Refresh Setting] Click "Target", and set the refresh target.
  • Page 46: Refresh Processing Time

    Refresh Processing Time The refresh processing time [s] composed the scan time of the CPU module. For the scan time, refer to the following.  MELSEC iQ-R CPU Module User's Manual (Application) The refresh processing time [s] spent on the refresh setting is as follows. •...
  • Page 47: Chapter 3 Dedicated Instruction

    DEDICATED INSTRUCTION The dedicated instructions simplify the programming to use the function of the intelligent function module. For details on the dedicated instructions, refer to the following.  MELSEC iQ-R Programming Manual (Module Dedicated Instructions) Dedicated Instruction List Dedicated instruction list The following table lists the dedicated instructions that can be used with the RJ71DN91.
  • Page 48: Precautions For Dedicated Instructions

    Precautions for Dedicated Instructions Before executing the dedicated instruction Always check the following points before executing the data consistency dedicated instruction. ■Enabling the dedicated instructions Set the data consistency setting according to the setting of the mode switch as follows. ( Page 40 Master/Slave Function Common Parameters) Mode switch setting Data consistency setting...
  • Page 49 Operation when the dedicated instruction is unexecuted If the dedicated instruction is not executed in three sequence scans after the data consistency setting is enabled, an error occurs. • When the master function is used, 'Master function error set signal' (X03) turns on and the error code is stored in 'Master function error information' (Un\G433).
  • Page 50: Chapter 4 Troubleshooting

    TROUBLESHOOTING This chapter describes troubleshooting of the RJ71DN91. Checking with LEDs This section describes troubleshooting using the LEDs. If an error has occurred in the RJ71DN91, identify the error cause using the engineering tool. ( Page 50 Checking the Module Status) Error status can be determined by status of the RUN LED and the ERR LED.
  • Page 51 When the NS LED is flashing in red When the NS LED is flashing in red, check the following. Check item Action Does any error occur in the communication with the slave node? An I/O communication error occurs on communications with one or more slave nodes.
  • Page 52: Checking The Module Status

    Checking the Module Status Module diagnostics The following functions can be used in the "Module Diagnostics" window of the RJ71DN91. Functions Usage Error Information Displays the details of the errors currently occurring. Module Information List Displays various status information of the RJ71DN91. Error Information Check the details of the error currently occurring and action to remove the error.
  • Page 53 Module Information List Switch to the [Module Information List] tab to check various status information of the RJ71DN91. Item Description LED information Displays the status of the RJ71DN91 LED. ADDRESS 10 SW information Displays the setting status of the node address setting switch. ADDRESS 1 MODE Displays the setting status of the mode switch.
  • Page 54: Hardware Test

    Hardware test Checks if the module operates normally. The ROM check, RAM check, and self-loopback test is performed. Procedure Wire the power for network, and turn it on. Set the mode switch to 9. Reset or power off and on the CPU module to start the test. Do not perform a hardware test while connected to the slave node.
  • Page 55: Checking The Network Status

    Checking the Network Status Communication test Performs the transmit test and receive test with the RJ71DN91 connected to another DeviceNet device using a DeviceNet cable. Set the different node address from the own node to the communication target. Procedure Connect the terminating resistors to both ends of the DeviceNet cable. Connect RJ71DN91 and other DeviceNet device with the DeviceNet cable.
  • Page 56: Re-Setting Parameters At Module Replacement

    Re-setting Parameters at Module Replacement When the parameter is saved to the flash ROM of the RJ71DN91, the content of the flash ROM is deleted by the replacement of the RJ71DN91. Therefore, the parameter needs to be re-set. This section describes the procedure to take over the parameter setting in the RJ71DN91 after the replacement. By using M+RJ71DN91_ReadParam of the module function block, save the parameter, which is set in the buffer memory of the RJ71DN91 before being replaced, in the internal device of the CPU module.
  • Page 57: Troubleshooting By Symptom

    Troubleshooting by Symptom This section describes troubleshooting method by symptom. If an error has occurred in the RJ71DN91, identify the error cause using the engineering tool. ( Page 50 Checking the Module Status) Unable to communicate with any slave node (master function) When the communication cannot be performed with any slave node, check the following items.
  • Page 58 Check item Action Does the setting value of the watchdog timeout match the Check the following parameter and set the correct value. specifications of the slave node? • When using the engineering tool: [Basic Setting]  [Master Function Parameters]  [Slave Node Information]  [Watch Dog Time out] •...
  • Page 59 Other troubleshooting For other troubleshooting, check the following items. Situation Check item Action The auto configuration is not executed. Is the following output signal on? Turn off the output signal on the left column, and turn off • 'I/O communication request' (Y11) and on 'Auto configuration request' (Y15) again.
  • Page 60 Situation Check item Action When the data consistency dedicated Is data consistency dedicated instruction executed? • Execute the data consistency dedicated instruction at instruction is used, the transmission every scan. delay time is abnormally long. Data consistency cannot be maintained Is the data refreshed with methods other than the data •...
  • Page 61: List Of Error Codes

    List of Error Codes The error codes for troubleshooting are divided into the following three types. • Error code for module diagnostics: This type of error code is displayed in the "Module Diagnostics" window. These codes are issued for errors which occur on the own node (while the master function or slave function is used). ( Page 59 Error code for module diagnostics (own node error)) •...
  • Page 62 Error Communication Error details and causes Action Detection mode code error code Master Slave function function   3006H 06FEH The slave node whose node address is • Set "Node Address" in "Slave Node Information" of the same as the node address of the "Master Function Parameters"...
  • Page 63 Error Communication Error details and causes Action Detection mode code error code Master Slave function function   302FH 25FEH When the slave function is used, the I/ Set the data consistency setting of the master function to O communication starts with the data Disable in "Data Consistency Setting"...
  • Page 64: Event Code (Other Node Error)

    Event code (other node error) There are three types of event codes: system, error, and operation. The error codes can be checked with the [Event History] button in the [Error Information] tab in the "Module Diagnostics" window of the RJ71DN91. ( Page 50 Error Information) System Event code Overview...
  • Page 65 Event Communication Overview Cause code error code  2AnnH Polling response data length The polling response data length differs from the data length read from the slave node at abnormality connection establishment. 00C08 2BnnH Polling response divide receive For divide receive of the polling response, the first divided data has been received twice. abnormality [Example] •...
  • Page 66: List Of Parameter Numbers

    List of Parameter Numbers This section lists the parameter numbers. Item Parameter No. Basic Settings 7200H Applied Setting 7101H Refresh Settings 7400H 4 TROUBLESHOOTING 4.7 List of Parameter Numbers...
  • Page 67: Appendices

    APPENDICES Appendix 1 Module Label The I/O signals and buffer memory of RJ71DN91 can be set using the module label. Structure of the module label The module label name is defined with the following structure. "Instance name"_"Module number"."Label name" "Instance name"_"Module number"."Label name"_D RDN91_1.bSts_Watchdog_Timer_Error ■Instance name The following is the instance name of the RJ71DN91.
  • Page 68: Appendix 2 I/O Signals

    Appendix 2 I/O Signals This section describes the I/O signals for the CPU module. The I/O signal assignment of when the start I/O number of the RJ71DN91 is "0" is listed below. List of I/O signals The following table lists I/O signals. The device X is an input signal from the RJ71DN91 to the CPU module. The device Y is an output signal from the CPU module to the RJ71DN91.
  • Page 69: Details Of Master I/O Signals

    Details of master I/O signals For message communication (X02), (X05), (Y12) Use 'Message communication completion' (X02), 'Message communication error signal' (X05), 'Message communication request' (Y12) for message communication. Execute when 'Master function communication status' (Un\G432) is "OPERATE (C0H)" or "STOP (40H)". For the message communication, set the parameter for master function.
  • Page 70 Slave down signal (X04) This signal indicates whether there is any slave node (down node) in which the I/O communication is stopped. • Off: All nodes normally perform communications. • On: A communication error occurs on a node. When the communications with the down node is recovered, 'Slave down signal' (X04) turns off. •...
  • Page 71: Details Of Slave I/O Signals

    Details of slave I/O signals For slave function error (X08), (Y18) 'Slave function error set signal' (X08) and 'Slave function error reset request' (Y18) are used for the notification of an error while executing the slave function and the reset of the error code. •...
  • Page 72: Details Of I/O Signal Common In The Master Function And The Slave Function

    Details of I/O signal common in the master function and the slave function Watchdog timer error (X00) This signal turns on when a hardware failure occurs on the RJ71DN91. • Off: Module normal • On: Module failure 'Watchdog timer error' (X00) 'Module READY' (X0F) I/O communicating (X01), I/O communication request (Y11) Use this signal when starting the I/O communication with each slave node.
  • Page 73 When parameter check abnormally completes 'Module READY' (X0F) 'I/O communication request' (Y11) 'I/O communicating' (X01) 'Master function error set signal' (X03) (1) Parameter check • Even though 'I/O communication request' (Y11) is turned on while 'Auto configuration request' (Y15) or 'Request for saving/clearing parameters to Flash ROM' (Y17) is on, 'I/O communicating' (X01) does not turn on.
  • Page 74 For flash ROM (X06), (X07), (Y17) Use 'Parameter saving/clearing to Flash ROM' (X06), 'Parameter save/clear completion to Flash ROM' (X07), and 'Request for saving/clearing parameters to Flash ROM' (Y17) for saving the parameter of the buffer memory to the flash ROM of the RJ71DN91 or clearing parameters saved in the flash ROM.
  • Page 75 When parameter check abnormally completes 'I/O communication request' (Y11) 'I/O communicating' (X01) 'Parameter save/clear selection bit' 0000H (Un\G1584) 'Request for saving/clearing parameters to Flash ROM' (Y17) 'Parameter saving/clearing to Flash ROM' (X06) 'Parameter save/clear completion to Flash ROM' (X07) 'Master function error set signal' (X03) 'Slave function error set signal' (X08)
  • Page 76: Details Of I/O Signal Other Than The Master Function And The Slave Function

    Details of I/O signal other than the master function and the slave function For hardware test (X0A), (X0B), (X0C) 'Hardware testing' (X0A), 'Hardware test completion' (X0B), and 'Hardware test error detection' (X0C) indicate the status of the hardware test. For the hardware test, refer to the following. Page 52 Hardware test •...
  • Page 77: Appendix 3 Buffer Memory

    Appendix 3 Buffer Memory The buffer memory is used to exchange data between the RJ71DN91 and the CPU module. Buffer memory values are defaulted when the CPU module is reset or the system is powered off and on. List of buffer memory addresses Address Address Name...
  • Page 78 Address Address Name Description Read, write (decimal) (hexadecimal) master slave function function   1280 to 1531 0500H to 05FBH Master function I/O Stores the start addresses and sizes (in Read address increments of words) of the master function receive data (address: 0700H to 07FFH) and master function transmit data (address: 0900H to 09FFH) used by each slave node.
  • Page 79 Address Address Name Description Read, write (decimal) (hexadecimal) master slave function function 3136 to 32767 0C40H to 7FFFH System area *1 This buffer memory address can be saved to the flash ROM. The parameters of the buffer memory areas are cleared when the CPU module is reset or powered off and on unless they are saved to the flash ROM.
  • Page 80: Details Of Buffer Memory Addresses

    Details of buffer memory addresses The following shows the buffer memory addresses of the RJ71DN91. Master function message communication area This area is used for the message communication of the master function. For the execution timing, refer to the following. Page 67 Details of master I/O signals ■Message communication command (Un\G272 to Un\G287) Set the message communication command.
  • Page 81 ■Message communication result (Un\G288 to Un\G303) The processing result of the message communication is stored. • Reading the attribute data of the slave node Buffer memory address Item Description Un\G288 Command number 0101H = Reading attribute (Get Attribute) Un\G289 Execution error code for message communication At normal completion: 0000H At error completion: Execution error code for message communication...
  • Page 82 The following table lists the message communication execution error codes stored at the error completion. • Message communication execution error codes (only when the master function is used) Error code Error Description Remedy (decimal) detection Slave node The object could not use the resources required for •...
  • Page 83 Error code Error Description Remedy (decimal) detection RJ71DN91 The data length set in the buffer memory exceeds 241. • The data length must be 240 or less. RJ71DN91 An illegal value is set for the command number in the • Set one of 0001H, 0101H, 0102H, 0201H, or FE**H for message communication command area of the buffer the command number.
  • Page 84 • Reading the communication error information of the slave node The read communication error is stored. The following table lists the data to be stored in each address. Buffer memory Item Description address Un\G304 Slave status Whether the slave node is set in the parameters, and whether the slave node responded or not are stored.
  • Page 85 Master function own node area This area is used to store the communication status and error information of the master function. ■Master function communication status (Un\G432) The communication status of the master function is stored. • Upper byte The I/O communication status of the master function is stored. The following table lists the values to be stored depending on the communication status.
  • Page 86 Master function each node status area This area is used to store the operation status of each slave node. ■Configuration status of nodes (Un\G436 to Un\G439) The parameter setting status of the slave node is stored. When the corresponding bit is on: The parameters have already been set. When the corresponding bit is off: No parameter is set.
  • Page 87 ■Error status of nodes (Un\G452 to Un\G455) The communication trouble status of the slave node is stored. When the corresponding bit is on: Trouble information exists. When the corresponding bit is off: No trouble information When the communication error information reading of the corresponding node is performed in the message communication, the corresponding bit turns off.
  • Page 88 Master function parameter setting area This area is used to set the master function parameters. Set the information such as the connection type and number of I/O points for the I/O communications with each slave node (63 at maximum). ■Master function parameters (Un\G468 to Un\G975) When setting the master function parameters using the auto configuration, refer to the following.
  • Page 89 To change the master function parameter, set the default values in the areas following the parameter is set. To change the number of slave nodes which perform I/O communications from six to four, set the default values in the areas of the 5th and 6th slave node. ■Auto configuration operation setting (Un\G1008) Set the auto configuration operation.
  • Page 90 Master function transmit/receive data area This area is used to store the master function transmit/receive data. ■Master function receive data (Un\G1792 to Un\G2047) The data received from each slave node is stored. The data is sorted on the word border for each module. For the double-word module, it is stored in the order from lower word to upper word.
  • Page 91 ■Master function I/O address (Un\G1280 to Un\G1531) The start addresses and sizes (in increments of words) of 'Master function receive data' (Un\G1792 to Un\G2047) and 'Master function transmit data (Un\G2304 to Un\G2559)' used by each slave node are stored. The following buffer memory addresses can be used for checking the start address of each node. Buffer memory address Stored data Un\G1280...
  • Page 92 Slave function own node area The communication status of the slave function and error information are stored. ■Slave function communication status (Un\G1536) The I/O communication status of the slave function is stored. The following table lists the values to be stored depending on the communication status. Value Name Operation...
  • Page 93 Slave function parameter setting area This area is used to set the parameters for slave function. ■Slave function receive size setting (Un\G1550)/Slave function transmit size setting (Un\G1551) Set the number of I/O points for the slave function. The following table lists the slave function parameters. Buffer memory address Item Description...
  • Page 94 Own node information area This area is used to store the own node (RJ71DN91) information. ■Model display (Un\G1568 to Un\G1572) "RJ71DN91" is stored with the ASCII code. Buffer memory address Model display Un\G1568 "J" "R" Un\G1569 "1" "7" Un\G1570 "N" "D"...
  • Page 95 Parameter save/Clear selection area This area is used to select whether to save the parameter of the buffer memory in the flash ROM or clear the parameter saved in the flash ROM. ■Parameter save/clear selection bit (Un\G1584) This area is set whether to save the parameter of the buffer memory to the flash ROM or clear the parameter saved in the flash ROM when 'Request for saving/clearing parameters to Flash ROM' (Y17) is turned on.
  • Page 96 Data consistency area This area is used to maintain data consistency. For details on the data consistency dedicated instruction, refer to the following.  MELSEC iQ-R Programming Manual (Module Dedicated Instructions) ■Data consistency setting (Un\G1587) Set whether to enable the data consistency for refresh or the data consistency dedicated instruction. •...
  • Page 97: Appendix 4 Processing Time

    Appendix 4 Processing Time Link scan time The link scan time is a time taken for the following sequential operation in the I/O communication whose connection type is polling or bit strobe: The RJ71DN91 (master node) issues a request, the request is transmitted to all slave nodes and responses are waited, and the RJ71DN91 issues another request.
  • Page 98: Communication Cycle Time

    Communication cycle time The communication cycle time is an interval between the following operations: the master node issues a polling or bit strobe type request to a slave node, and the master node issues another request to the same slave node. The communication cycle time for each slave node can be calculated with the following calculation formula.
  • Page 99: Appendix 5 Setting The Parameter With A Program

    Appendix 5 Setting the Parameter with a Program This section describes how to set the parameter with a program without using an engineering tool when the MELSEC-Q series project is used. Procedure Set the parameter setting method to "Program" in the module parameter of the engineering tool. [Module Parameter] ...
  • Page 100 APPX Appendix 5 Setting the Parameter with a Program...
  • Page 101 APPX Appendix 5 Setting the Parameter with a Program...
  • Page 102 (0) The following settings are applied by the master function parameter setting command. ■1st slave node • Node address = 1, Message group = 4 • Connection type = Polling • Input byte module = 1, Output byte module = 0 •...
  • Page 103 Setting the parameter for slave function Set the parameter to the RJ71DN91 slave node without using the engineering tool or auto configuration tool. Classification Label name Description Device Module label RDN91_1.bSts_IO_Communicating I/O communicating RDN91_1.bSet_IO_Communication_Request I/O communication request RDN91_1.uBFM_Control_Direct.uSlave_Function_Receive_Bytes_Setting_Area_D Slave function receive size U2\G1550 setting Label to be defined...
  • Page 104 Setting the master/slave function common parameter Set the master/slave function common parameter to the RJ71DN91 master node. Classification Label name Description Device Module label RDN91_1.bSts_IO_Communicating I/O communicating RDN91_1.bSet_IO_Communication_Request I/O communication request RDN91_1.uBFM_Control_Direct.uAuto_Communication_Start_Setting_D Auto communication start setting U0\G1585 Label to be defined Define global labels as shown below.
  • Page 105 Creating the slave node information with auto configuration Execute the auto configuration function to create the slave node information, and use it as the master function parameter. ( Page 33 Auto Configuration Function) • Execute the auto configuration function by turning off and on 'Auto configuration request' (Y15). •...
  • Page 106 (0) The auto configuration operation setting is set to All configuration, and the maximum detection node address is set to 4. The setting data is written to 'Auto configuration operation setting' (U0\G1008). (40) 'Auto configuration request' (Y15) is turned on. The flag of 'Auto configuration executing' is turned on.
  • Page 107 Saving the parameter of the master node Save the parameter to the flash ROM on the RJ71DN91 master node. When 'Request for saving/clearing parameters to Flash ROM' (Y17) is turned off and on, the parameter is saved to the flash ROM. Classification Label name Description...
  • Page 108 Saving the parameter of the slave node Save the parameter to the flash ROM on the RJ71DN91 slave node. When 'Parameter save request to Flash ROM' (Y37) is turned off and on, the parameter is saved to the flash ROM. Classification Label name Description...
  • Page 109 I/O communication with the slave nodes Perform the I/O communication between the RJ71DN91 master node and the slave nodes without the refresh setting and the auto communication start setting. ■Without data consistency Set "Data consistency setting" of "Master/Slave Function Common Parameters" to "Disable". [Navigation window] ...
  • Page 110 APPX Appendix 5 Setting the Parameter with a Program...
  • Page 111 (0) The transmit data default value is set. 'I/O communication request' (Y11) is turned on. (25) The communication status is acquired from 'Communication status of nodes' (U0\G444). (31) When the communication status with the slave node (node address 1) is off, the number of communication errors is counted. (50) (56) When the communication status with the slave node (node address 1) is on, the receive data is read from 'Master function receive data' (U0\G1792).
  • Page 112 ■With data consistency (using the module function block) Perform the I/O communication between the RJ71DN91 master node and the slave nodes maintaining the data consistency. Set "Data consistency setting" of "Master/Slave Function Common Parameters" to "Only master function instruction is enabled".
  • Page 113 APPX Appendix 5 Setting the Parameter with a Program...
  • Page 114 APPX Appendix 5 Setting the Parameter with a Program...
  • Page 115 (0) The transmit data default value is set. 'I/O communication request' (Y11) is turned on. (25) The communication status of nodes is read. (31) The master function data consistency dedicated instruction setting status is read. (36) The receive data is read from the master function receive data area. (149) When M+RJ71DN91_MasterRead is normally completed, the read data is copied, and the copy is stored in each slave node area.
  • Page 116 I/O communication with the master node Perform the I/O communication between the RJ71DN91 slave node and the master node without the refresh setting. ■Without data consistency Set "Data consistency setting" of "Master/Slave Function Common Parameters" to "Disable". [Navigation window]  [Parameter]  [Module Information]  [RJ71DN91]  [Module Parameter]  [Basic Setting] To secure the consistency of transmit/receive data of multiple words, check the data communication by providing the area for handshake at the end of the transmit/receive data.
  • Page 117 ■With data consistency (using the module function block) Perform the I/O communication between the RJ71DN91 master node and the slave nodes maintaining the data consistency. Set "Data consistency setting" of "Master/Slave Function Common Parameters" to "Only slave function instruction is enabled".
  • Page 118 APPX Appendix 5 Setting the Parameter with a Program...
  • Page 119 (0) The transmit data default value is set. 'I/O communication request' (Y31) is turned on. (24) The slave function data consistency dedicated instruction setting status is read. (29) (142) The receive data is read from the slave function receive data area. (147) The receive data is stored.
  • Page 120: Appendix 6 Using The Module In The Redundant System With Redundant Extension Base Unit

    Appendix 6 Using the Module in the Redundant System with Redundant Extension Base Unit This section describes restrictions and precautions for using the RJ71DN91 that is mounted on the extension base unit in the redundant system. Restrictions on functions and specifications Dedicated instructions Any dedicated instructions of the RJ71DN91 cannot be used.
  • Page 121: Appendix 7 Differences Between Qj71Dn91 And Rj71Dn91

    Differences between QJ71DN91 and RJ71DN91 This section describes the differences in the DeviceNet master/slave module between the MELSEC-Q series (QJ71DN91) and the MELSEC iQ-R series (RJ71DN91). Function The following table lists the differences in functions between the QJ71DN91 and the RJ71DN91.
  • Page 122: Parameter

    Parameter The following table lists the differences in parameters between the QJ71DN91 and the RJ71DN91. Basic settings : Can be set, : Cannot be set, : Can be set (different in specifications), : No item Item QJ71DN91 RJ71DN91 Set with Set with Set with Set with...
  • Page 123 Application settings : Can be set, : Cannot be set, : No item Item QJ71DN91 RJ71DN91 Set with Set with Set with Set with configuration program engineering program software tool Output mode upon CPU Output mode upon CPU error  ...
  • Page 124: Buffer Memory

    Buffer memory The following table lists the differences in buffer memory between the QJ71DN91 and the RJ71DN91. Address Address QJ71DN91 RJ71DN91 (decimal) (hexadecimal) Name Description Name Description 1152 0480H Not available Master function Stores the communication error communication error code occurred on the own node. information It is valid only when the own node uses the master function.
  • Page 125 MEMO APPX Appendix 7 Differences between QJ71DN91 and RJ71DN91...
  • Page 126: Index

    INDEX ......59 List of error codes ......66 List of I/O signals .
  • Page 127 ....68 Slave down signal (X04) ..29 Slave function (I/O communication function) ..90 Slave function communication status .
  • Page 128: Revisions

    Japanese manual number: SH-081766-E 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 129: Warranty

    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 130: Trademarks

    TRADEMARKS DeviceNet is a trademark of ODVA, Inc. The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies.   In some cases, trademark symbols such as ' ' or ' ' are not specified in this manual.
  • Page 132 SH(NA)-081767ENG-E(2206)MEE MODEL: RJ71DN91-U-OU-E MODEL CODE: 13JX75 HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission.

This manual is also suitable for:

Melsec iq-rj71dn91

Table of Contents