Beruflich Dokumente
Kultur Dokumente
Users Manual
(Hardware)
QJ71MB91
Thank you for purchasing the Mitsubishi programmable logic controller MELSEC-Q Series. Prior to use, please read both this and the detailed manual thoroughly and familiarize yourself with the product.
QJ71MB91-U-HW 13JP83
IB(NA)-0800329-B(0610)MEE
2005 MITSUBISHI ELECTRIC CORPORATION
SAFETY PRECAUTIONS
(Always read these instructions before using this product.)
Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly. This manual contains precautions for this product only. For the safety instructions of the programmable controller system, please read the user's manual of the CPU module to use. In this manual, the safety precautions are ranked as "DANGER" and "CAUTION".
DANGER CAUTION
Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury. Indicates that incorrect handling may cause hazardous conditions, resulting in medium or minor injury or physical damage.
Note that failure to observe the CAUTION level instructions may also lead to a serious consequence depending on the circumstances. Be sure to observe the instructions of both levels to ensure the safety. Please keep this manual in a safe place for future reference and also pass this on to the end user.
[Design Precautions]
DANGER
For the operating status of each station in the case of a communication error, see the manual of each station. Erroneous output or malfunction may cause an accident.
A-1
[Design Precautions]
DANGER
When controlling a running PLC (modifying data) by connecting peripheral devices to the CPU module or connecting a personal computer to the intelligent function module, configure an interlocking circuit in a sequence program so that the safety of the overall system is always maintained. Also, before performing other control operations (program modifications and operation status modifications (status control)) on the running PLC, be sure to read the manual carefully and thoroughly confirm the safety. Especially in the above mentioned control operations that are performed from an external device to a remote PLC, any problems on the PLC side may not be dealt with promptly due to faulty data communication. In addition to configuring an interlocking circuit in a sequence program, determine how the system handles data communication errors between the devices and the PLC CPU. Do not write any data in the "system area (Use prohibited)" of the buffer memory of the intelligent function module. Also, do not output (turn on) the "use prohibited" signal, which is one of the output signals from the PLC CPU to the intelligent function module. If data is written to the "system area (Use prohibited)" or the "use prohibited" signal is output, there is a risk that the PLC system may malfunction.
CAUTION
Do not bundle the control wires and the communication cables with the main circuit and the power wires, and do not install them close to each other. They should be installed at least 100 mm (3.94 in.) away from each other. Failure to do so may generate noise that may cause malfunctions.
[Installation Precautions]
CAUTION
Use the PLC in the operating environment that meets the general specifications described in the user's manual of the CPU Module to use. Using the PLC in any other operating environments may cause electric shocks, fires or malfunctions, or may damage or degrade the module.
A-2
[Installation Precautions]
CAUTION
While pressing the installation lever located at the bottom of module, insert the module fixing tab into the fixing hole in the base unit until it stops. Then, set the module in position using the fixing hole as a supporting point. Incorrect mounting may cause malfunctions, failure or a drop of the module. Secure the module with screws in an environment of frequent vibrations. Be sure to tighten the screws using the specified torque. If the screws are loose, it may cause a short circuit, malfunctions or a drop of the module. Overtightening the screws may damage the screws and/or module, resulting in a short circuit, malfunctions or a drop of the module. Before mounting/dismounting the module, be sure to shut off all phases of the external power supply used by the system. Failure to do so may cause product damage. Do not directly touch the conductive area or electronic components of the module. Doing so may cause malfunction or failure in the module.
[Wiring Precautions]
CAUTION
Be sure to shut off all phases of the external power supply used in the system before wiring. Failure to do so may result in an electric shock or damage to the product. When powering up the system for operation after completing the wiring, make sure that supplied terminal covers are correctly attached. Not attaching the terminal covers could result in an electric shock. Properly crimp, press-fit or solder the wires of the connector for external connections using the manufacturer-specified tools. Incomplete connection may cause a short circuit, fire, or malfunction.
A-3
[Wiring Precautions]
CAUTION
Fully connect the connector to the module. Before wiring the module, check the rated voltage and the terminal layout. Connecting a power supply that is different from the rating or incorrectly wiring the product could result in fire or damage. Make sure to place the communication and power cables to be connected to the module in a duct or fasten them using a clamp. If the cables are not placed in a duct or fastened with a clamp, their positions may be unstable or moved, and they may be pulled inadvertently. This may damage the module and the cables or cause the module to malfunction due to poor cable connection. Wire the module correctly after confirming the type of the connected interface. If the cable is connected to a different interface or wired incorrectly, it may cause a fire or breakdown. Tighten the terminal screws within the range of the specified torque. If the terminal screws are loose, it may result in a short circuit or malfunction. If the screws are tightened too much, it may cause damage to the screw and/or the module, resulting in a drop of the module, short circuit or malfunction. When removing a communication or power cable from the module, do not pull the cable part. For the cable with connector, hold the connector part connected to the module. When removing the cable connected to the terminal block, first loosen the screws on the terminal block. Pulling the cable that is still connected to the module may cause malfunction or damage to the module and/or cable. Carefully prevent foreign matter such as wire chips from entering the module. Failure to do so may cause a fire, breakdown or malfunction of the module. A protective film is attached onto the module top in order to prevent foreign matter such as wire chips from entering the module while wiring. Do not remove this protective film during wiring work. However, be sure to remove it for heat dissipation before system operation.
A-4
[Startup/Maintenance Precautions]
DANGER
Do not touch the terminals while power is on. Doing so could cause an electric shock. Before cleaning up and retightening terminal screws and module mounting screws, be sure to shut off all phases of the external power supply used by the system. Not doing so may cause failure or malfunction of the module. If the screws are loose, it may cause a drop of the module, short circuit, or malfunction. If the screws are tightened too much, it may cause damages to the screws and/or the module, resulting in a drop of the module, short circuit or malfunction.
CAUTION
Before performing online operations (especially, program modification, forced output or operating status change) by connecting a peripheral device to a running CPU, read the manual carefully and ensure the safety. Incorrect operation will cause mechanical damage or accidents. Do not disassemble or modify each module. Doing so could cause failure, malfunction, injury or fire. When using a wireless communication device such as a cellular phone, keep a distance of 25cm (9.85 inch) or more from the PLC in all directions. Failure to do so can cause a malfunction. Before mounting/dismounting the module, be sure to shut off all phases of the external power supply used by the system. Failure to do so may cause module failure or malfunctions. Do not install/remove the module to/from the base unit, or the terminal block to/from the module more than 50 times after the first use of the product. (IEC 61131-2 compliant) Failure to do so may cause malfunction. Before handling the module, touch a grounded metal object to discharge the static electricity from the human body. Failure to do so may cause a failure or malfunctions of the module.
A-5
[Operating Precautions]
CAUTION
Please read the manual carefully and ensure the safety before performing control operations (especially, data or program modification and operation status change) to a running PLC. Incorrect data or program modifications or improper operating status change may cause system malfunctions, mechanical damages or accidents.
[Disposal Precautions]
CAUTION
When disposing of this product, treat it as industrial waste.
A-6
Revisions
* The manual number is noted at the lower right of the cover. Print Date Sep., 2005 Oct., 2006 *Manual Number IB(NA)-0800329-A First Edition IB(NA)-0800329-B Partial correction SAFETY PRECAUTIONS,CHAPTER 6, CHAPTER 7. Revision
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. 2005 MITSUBISHI ELECTRIC CORPORATION
A-7
CONTENTS
1. Overview ........................................................................................................ 1 2. Performance Specifications ........................................................................... 2 3. Mounting and Installation ............................................................................... 4 3.1 Handling Precautions .............................................................................. 4 3.2 Installation Environment .......................................................................... 4 4. Part Names .................................................................................................... 5 5. External Wiring ............................................................................................... 7 5.1 Connecting the RS-232 line ..................................................................... 7 5.2 Connecting the RS-422/485 line ............................................................ 10 6. Setting from GX Developer .......................................................................... 16 7. External Dimensions .................................................................................... 19
A-8
Manuals
The relevant manual is given in the following table. Please order the manual if necessary. Relevant Manual Manual name MODBUS Interface Module User's Manual Manual No. (Model code) SH-080578ENG (13JR86)
Before using this module, be sure to read the MODBUS Interface Module User's Manual.
A-9
1. Overview
This manual explains how to install the QJ71MB91 MODBUS Interface Module (hereinafter referred to as QJ71MB91) and how to wire it to other devices. MODBUS is a registered trademark of Schneider Electric SA.
Table 1.1 Packing list Model name Product name QJ71MB91 MODBUS Interface Module QJ71MB91 Terminating resistor 330 communication) *1 Terminating resistor 110 communication) *1 1/4 W (for RS-422 1/2 W (for RS-485 Quantity 1 2 2
2. Performance Specifications
The following describes the performance specifications of the QJ71MB91. For the general specifications of the QJ71MB91, refer to the user's manual of the CPU module used.
Table 2.1 Performance specifications Item Number of interfaces Specifications RS-232 1 channel RS-422/485 1 channel 300 Transmission specifications Transmission speed 4800 28800 600 9600 38400 1200 14400 2400 19200
Total transmission speed of two interfaces must be 115200 bps or less. Transmission distance (Overall distance) RS-232 RS-422/485 Number of slaves *1 Function (for Automatic communication send) function Input area size Output area size Master function Number of instructions that can be executed concurrently *2 Function (for send) Input area size Output area size Max. 15m (49.2 ft.) Max. 1200m (3936.9 ft.) (Overall distance) 32 per channel 7 functions 4k words 4k words
1 per channel
Dedicated instruction
MBRW instruction: 9 functions MBREQ instruction: 19 functions Max. 253 bytes per instruction Max. 253 bytes per instruction (Continued to next page)
Table 2.1 Performance specifications (Continued) Item Automatic response function Function (for receive) Coil Input Slave function MODBUS device size Input register Holding register Extended file register No. of simultaneously acceptable request messages Station No. Number of occupied I/O points 5VDC internal current consumption External dimensions Weight Specifications 17 functions 64k points 64k points 64k points 64k points Max. 1018k points 1 request per channel 1 to 247 32 points 0.31A 98 (3.86 in.) (H) 27.4 (1.08 in) (W) 90 (3.54 in) (D) [mm] 0.20kg
*1 Indicates the maximum number of slaves that can be communication targets. *2 Indicates the maximum number of dedicated instructions that can be activated simultaneously from a sequence program.
*1 The module can be easily fixed to the base unit with the hook on the top of the module. In the operating environment where high vibration and/or strong impact are observed, however, it is recommended to fix the module with the module fixing screws.
4. Part Names
This section provides the names of the QJ71MB91 parts.
Figure 4.1 QJ71MB91 appearance Table 4.1 Names of Part Name 1) Indicator LEDs Description Indicator LEDs ( (1)) This chapter
2)
RS-232 interface for serial communication with external devices (D-Sub 9 pin) RS-422/485 interface for serial communication with external devices (2-piece terminal block)
3)
Table 4.2 Indications of indicator LEDs LED Name RUN ERR. Indication Normal operation Error indication Neutral status Master function Slave function Description On/flashing Normal Error occurred Request message not transmitted Waiting for request message from master Off Watch dog timer error, hardware fault Normal Waiting for response message from slave Request message being processed
Transmission status Data being transmitted Data not transmitted Reception status Data being received Data not received
5. External Wiring
5.1 Connecting the RS-232 line
This section explains the standard method for connecting the RS-232 line.
Pin No. 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7*1 8*1 9 Signal code (Use prohibited) RD(RXD) SD(TXD) (Use prohibited) SG(GND) (Use prohibited) Signal name Signal direction External QJ71 device MB91
(Use prohibited) Reception data Transmission data (Use prohibited) Signal ground (Use prohibited) Output for cable disconnection detection Input for cable disconnection detection (Use prohibited) (Use prohibited)
*1 Make connection between Pin 8 and Pin 7. If not, Pin 8 is identified as OFF and the CS signal may turn OFF (Error code: 7403H). (1) Connection precaution (a) Connection cable's FG signal line and shield Connect the connection cable's FG signal line and shield as follows:
Table 5.1 Connection of FG signal line and shield Items Connection cable's FG signal line Connection cable's shield Connection on the QJ71MB91 side Connect to the QJ71MB91 side connector housing. Connect to the external device's FG terminal or the QJ71MB91 side connector housing. Notes Do not make connection between the FG and SG signal lines of the connection cable. When the FG and SG signal lines are connected inside the external device, do not connect the FG signal line to the QJ71MB91.
(b) Connection diagram Connect the lines as shown below. Connect the FG terminal on the external device and the QJ71MB91 side connector housing using the shield of the connection cable. Each signal line other than SG should be connected with the SG signal line as a twisted pair.
To connector housing SD RD Output for cable disconnection detection Input for cable disconnection detection SG
Figure 5.2 RS-232 connection diagram
QJ71MB91
Shield
External device FG RD SD
SG
(2) Interface connector For the QJ71MB91 RS-232 interface, use a 9-pin D sub (female) screw type connector. Use metric screws.
1 2 3 4 5 6 7
Output for cable disconnection detection Input for cable disconnection detection
8 9
*1 For other signal wiring on the external device, refer to the instruction manual of the external device.
SDA Transmission data ( ) SDB Transmission data ( ) RDA Reception data ( ) RDB Reception data ( ) SG Signal ground FG FG
(1) Connection precautions (a) When connecting SG and FG signal lines When connecting the QJ71MB91 side SG and FG signal lines to the external device, connect them according to the specifications of the external device. (b) Shield of connection cable Connect the shield of the connection cable to either FG terminal on the connected device. If normal data communication is not available due to external noise even in the above-mentioned wiring, observe the following wiring instructions.
Table 5.2 When external noise disturbs normal communications Preventive measures Make connection between the FGs of both stations with the shield of the connection cable. For the external device side, follow the instruction manual of the external device. Connect the (FG) of the QJ71MB91 to the FG terminal of the power supply module on the station to which the QJ71MB91 is installed, or to the FG terminal of the control panel on which the QJ71MB91 PLC is installed. Connect nnA and nnB of each signal line of the connection cable as a pair.
10
QJ71MB91
SDA SG SDB FG RDA FG RDB
(c) Terminating resistor Terminating resistor setting (or connection) is required for the stations of both line ends. For the QJ71MB91 side, connect a terminating resistor (packed with the QJ71MB91), referring to this section and according to the specifications of the external device. For the external device side, connect or set a terminating resistor according to the instruction manual of the external device. (Terminating resistor to be connected to the QJ71MB91) For RS-422 communication, connect a "330 1/4 W" resistor. For RS-485 communication, connect a "110 1/2 W" resistor. (How to discriminate between the terminating resistors)
330 Orange Orange Brown 110 Brown Brown Brown
(d) When data communications are not possible at all If data cannot be exchanged with the external device at all, check the polarity of the external device. If the polarities of the QJ71MB91 and the external device do not match, reverse the polarity of each signal on either device side. This may enable the data communications.
11
(e) Devices connected to RS-422/485 interface Devices connected to the QJ71MB91 RS-422/485 interface must be all RS-422 devices or all RS-485 devices. (f) Preventive measures against erroneous data reception on the external device in RS-422/485 connection If the external device may receive erroneous data, install a pullup or pull-down resistor to the external device as shown below. Installing a pull-up or pull-down resistor (resistance value: approx. 4.7 k , 1/4 W) can prevent the reception of erroneous data.
+ Receive data -
External device
Figure 5.7 Measures against erroneous data reception
When the external device has a pull-up or pull-down resistor, erroneous data are not received. (2) RS-422/485 cable specifications Use a cable of 1200 m (3937 ft.) or less, which satisfies the following specifications. The overall cable distance must be within 1200 m (3937 ft.) when two or more devices are connected in a 1:n configuration.
Table 5.3 RS-422/485 cable specifications Item Cable type Number of pairs Conductor resistance (20 Insulation resistance Dielectric withstand voltage Electrostatic capacitance (1 kHz) Characteristic impedance (100 kHz) ) Description Shielded cable 3P 88.0 /km or less - km or more
10000 M
12
Terminating resistor
SG FG
(b) Connection for 1:n communication when local station is master For 4-wire communications
QJ71MB91
Figure 5.9 1:n communication when local station is master (4 wires) For 2-wire communications
QJ71MB91
Terminating R resistor
13
(c) Connection for 1:n communication when local station is slave and communicating with third party master (RS-422/485 interface) For 4-wire communications
QJ71MB91 QJ71MB91
Figure 5.11 1:n communications when local station is slave (4 wires) For 2-wire communications
QJ71MB91
QJ71MB91
Terminating R resistor
(d) Connection for 1:n communication when local station is slave and communicating with third party master (RS-232 interface) (Link operation setting) For 4-wire communications
Third party master
SD RD SG QJ71MB91 RS-232 SD RD SG
Output for cable disconnection detection Input for cable disconnection detection
QJ71MB91
R R
Figure 5.13 1:n communications when local station is slave (in link operation setting) (4 wires)
14
QJ71MB91
Terminating resistor
Figure 5.14 1:n communications when local station is slave (in link operation setting) (2 wires)
15
(1) Mode setting (Switch 1,3) Set the operation mode of the QJ71MB91.
Table 6.2 Mode setting Set value *1 Switch 1 0000H 0000H 0001H 0001H 0002H Switch 3 0000H 0001H 0000H 0001H 0002H Operation mode CH1 Master function Master function Slave function Slave function CH2 Master function Slave function Master function Slave function With the link operation function, data are relayed between CH1 and CH2. The QJ71MB91's RAM and ROM are checked by this test. Selecting the master or slave function allows communications as a master or a slave respectively. Description
Hardware test Self-loopback test Self-loopback test Self-loopback test Self-loopback test
The send/receive function of the QJ71MB91 and communications with the PLC CPU are checked by this test.
*1 Setting a value other than those given in the table results in a switch error. *2 For the link operation (slave function), set "0002H" to both Switch 1and 3. Setting it to only one of them results in a switch error.
16
(2) Transmission Specification setting (Switch 2,4) Set the transmission speed and other specifications for communications with the external device.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 Transmission speed setting b2 b1 b0 Transmission setting
The MODBUS device assignment parameter starting method must be set only for Switch 2 regardless of the channel used. When "Start with the default parameters" is set, the QJ71MB91 is started with the parameters Start with Start with assigned by default. the user-set the default When "Start with the user-set parameters" are parameters set, it is started with the MODBUS device parameters *2 assignment parameters set on the sequence program or GX Configurator-MB. When setting parameters using the GX Configurator-MB, turn the MODBUS device assignment parameter start method ON. 8 Present 7 Set data bits.
Specify whether parity bit is present or not. Not present In the case of "Present", vertical parity check is performed. Odd 2 ASCII Set even or odd parity. This setting is valid only when "Parity bit presence" is set to "Present". Set the stop bit. Set the frame mode. Set whether to enable or disable data writing to the RUN-status PLC CPU by a request message from the master. If this is set to "Disable", when a message requesting the device write is received from the master, the QJ71MB91 returns an error response. This setting is valid only when the slave function is set for the channel.
b3
Even 11
b4 Stop bit
b6
Online change
Disable
Enable
b7 Not used
(Fixed to OFF)
17
*1 Set Switch 4 to OFF. (Fixed to OFF) *2 Set the MODBUS device assignment parameters before sending request messages to the QJ71MB91. If a request message is sent before the setting, the QJ71MB91 will send a response message (error completion). (The slave function does not work.) *3 For the RTU mode, set it to OFF (8 bits). (b) Transmission speed setting *1*2
Table 6.4 Transmission speed setting Transmission speed 300bps 600bps 1200bps 2400bps 4800bps 9600bps Bit location b15 to b8 00H 01H 02H 03H 04H 05H Transmission speed 14400bps 19200bps 28800bps 38400bps 57600bps 115200bps Bit location b15 to b8 06H 07H 08H 09H 0AH 0BH
*1 Total transmission speed for 2 channels can be set within 115200bps. *2 Do not set any value or set 07H (Initial value) in the transmission speed setting for an unused channel. (3) CH1, 2 Station No. setting (Switch 5) Set slave station No. of the QJ71MB91. For the master function, set 00H.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 CH2 side station No. b2 b1 b0
Figure 6.2 CH1/2 station No. setting Table 6.5 H1/CH2 station No. setting Set value *1 1H ~ F7H Description Set a slave station No. (1 to 247).
*1 Setting a value outside the range shown in the table results in a switch error.
18
7. External Dimensions
*1 R1(Bending radius near terminal block):Outside cable diameter 4 *2 R2(Bending radius near connector) :Outside cable diameter 4 *3 r1(Bending radius near crimp contact) :Connectable as long as not bended extremely MODBUS is a registered trademark of Schneider Electric SA. Other company names and product names used in this document are trademarks or registered trademarks of respective owners.
19
Warranty
Mitsubishi will not be held liable for damage caused by factors found not to be the cause of Mitsubishi; machine damage or lost profits caused by faults in the Mitsubishi products; damage, secondary damage, accident compensation caused by special factors unpredictable by Mitsubishi; damages to products other than Mitsubishi products; and to other duties.
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.
Specifications subject to change without notice. Printed in Japan on recycled paper.