Sie sind auf Seite 1von 13

Mitsubishi Electric Corp.

Melsec-Q Ethernet (UDP) Driver

1 System Structure 2 Supported Device Addresses 3 Consecutive Device Addresses 4 Environment Setup 5 I/O Manager Configuration 6 Driver Configuration 7 Equipment Configuration 8 Device Address Configuration

2007 Schneider Electric Industries SAS

Melsec-Q Ethernet (UDP) Driver

Introduction
This manual describes the device driver communication settings in the Vijeo-Designer screen editing software. Vijeo-Designer enables you to design Magelis target machines to communicate with PLCs, drives, field devices, and other equipment. For more information about Vijeo-Designer and Magelis target machines, please refer to Vijeo-Designer user documentation.

Safety Information
Read these instructions carefully, and look at the equipment to become familiar with the device before trying to install, operate, or maintain it. The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure. The addition of either symbol to a Danger or Warning safety label indicates that an electrical hazard exists, which will result in personal injury if the instructions are not followed. This is the safety alert symbol. It is used to alert you to potential personal injury hazards. Obey all safety messages that follow this symbol to avoid possible injury or death.

DANGER
DANGER indicates an imminently hazardous situation, which, if not avoided, will result in death or serious injury.

WARNING
WARNING indicates a potentially hazardous situation, which, if not avoided, can result in death, serious injury, or equipment damage.

CAUTION
CAUTION indicates a potentially hazardous situation, which, if not avoided, can result in injury or equipment damage. Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. 2007 Schneider Electric USA All Rights Reserved

Melsec-Q Ethernet (UDP) Driver

WARNING
LOSS OF CONTROL The designer of any control scheme must consider the potential failure modes of control paths and, for certain critical control functions, provide a means to achieve a safe state during and after a path failure. Examples of critical control functions are emergency stop and overtravel stop. Separate or redundant control paths must be provided for critical control functions. System control paths may include communication links. Consideration must be given to the implications of unanticipated transmission delays or failures of the link.1 Each implementation of a Magelis XBTG, XBT GT, XBT GK and iPC must be individually and thoroughly tested for proper operation before being placed into service. Failure to follow these instructions can result in death, serious injury, or equipment damage.
1For

additional information, refer to NEMA ICS 1.1 (latest edition), Safety Guidelines for the Application, Installation, and Maintenance of Solid State Control

Validity Note
The data and illustrations found in this book are not binding. We reserve the right to modify our products in line with our policy of continuous product development. The information in this document is subject to change without notice and should not be construed as a commitment by Schneider Electric.

Documentation Conventions
Target Machine: Human-Machine Interface (HMI) that runs user applications designed in VijeoDesigner screen editing software. A target machine is also known as a terminal.

Melsec-Q Ethernet (UDP) Driver

System Structure
The following table describes the basic system setup for connecting targets machine to Mitsubishi Melsec-Q Series PLCs.
Series CPU Q00CPU Q00JCPU Q01CPU Q02CPU Q02HCPU Q06HCPU Q12HCPU Q25HCPU Ethernet Module

MELSEC-Q Series

QJ71E71 QJ71E71-B2

NOTE

Use a 100BASE-TX connection for iPC Series, XBTGTW Series, XBTGT2000 Series or higher, and XBTGT1005 Series target machines. Use a 10BASE-T connection for XBTG Series or XBTGT1130 target machines.

Melsec-Q Ethernet (UDP) Driver

Supported Device Addresses


WARNING
UNINTENDED EQUIPMENT OPERATION Design your system to avoid conflicting write processes between the target machine and PLC program. Values on the PLC and target machine will be wrong if: The target machine and PLC program attempt to simultaneously write to the same register. PLC programs or other devices write 16-bit word values to registers being accessed in a bitwise manner. Failure to follow this instruction can result in death, serious injury, or equipment damage. The following table lists the device address ranges you can enter from the Device Address keypad. For actual device address ranges supported by the PLC, refer to the corresponding PLC manual
Device Input Relay Output Relay Internal Relay Latch Relay Special Relay Annunciator Edge Relay Step Relay Link Relay Special Link Relay Tim er (contact) Tim er (coil) Retentive Tim er (contact) Retentive Tim er (coil) Counter (contact) Counter (coil) Tim er (current value) Retentive Tim er (current value) Counter (current value) Data Register*3 Special Regis ter*3 Link Regis ter*3 Special Link Regis ter*3 File Regis ter(Norm al)*3 Bit Addres s X0000-XFFFF Y0000-YFFFF M00000-M65535 L00000-L65535 SM0000-SM9999 F00000-F65535 V00000-V65535 S0000-S9999 B0000-BFFFF SB000-SBFFF TS00000-TS65535 TC00000-TC65535 SS00000-SS65535 SC00000-SC65535 CS00000-CS65535 CC00000-CC65535 ---D00000:0-D65535:15 SD0000:0-SD9999:15 W0000:0-WFFFF:F SW000:0-SWFFF:F R00000:0-R65535:15 0R0000:0-0R7FFF:F 1R0000:0-1R7FFF:F 2R0000:0-2R7FFF:F ... 30R0000:0-30R7FFF:F 31R0000:0-31R7FFF:F Word Addres s X0000-XFFF0 *1 Y0000-YFFF0 *1 M00000-M65520 *2 L00000-L65520 *2 SM0000-SM9984 *2 F00000-F65520 *2 V00000-V65520 *2 S0000-S9984 *2 B0000-BFFF0 *1 SB000-SBFF0 *1 ------TN00000-TN65535 SN00000-SN65535 CN00000-CN65535 D00000-D65535 *4 SD0000-SD9999 *4 W0000-WFFFF*5 SW000-SWFFF*5 R00000-R65535 *4 0R0000-0R7FFF*5 1R0000-1R7FFF*5 2R0000-2R7FFF*5 ... 30R0000-30R7FFF*5 31R0000-31R7FFF*5 16 bit 32 bit

L/H *6

L/H *6

File Regis ter(0R-31R)*3

Melsec-Q Ethernet (UDP) Driver

*1 To use as word address, the bit number (last digit) must be 0. *2 To use as word address, must be multiple of 16. *3 Read-modify-write. When you write to one of these bit addresses, the target machine reads the entire word address, sets the defined bit, then returns the new value to the PLC. If the ladder program writes data to this word address during the bit read/write process, the resulting data may be incorrect. *4 You can define a bit address by adding a colon followed by the bit position (0~15) at the end of the word. (e.g. D0000:15) *5 You can define a bit address by adding a colon followed by the bit position (0~F) at the end of the word. (e.g. W0000:F) *6 16-bit and 32-bit data, High and Low, refer to data as defined in the following examples.
Byte 0 1 7 15 16 bit ... ... 0 8 L (Low) H (High) Word 0 1 15 31 32 bit ... ... 0 16 L (Low) H (High)

Melsec-Q Ethernet (UDP) Driver

Consecutive Device Addresses


The following table lists the maximum number of consecutive addresses and the gap span (the maximum gap span between PLC device addresses that are used as consecutive device addresses) that be read by each PLC. Refer to these tables to utilize Block Transfer.
NOTE

To speed up data communication, use consecutive device addresses on the same panel screen. The following situations increase the number of times that the device is read, and reduces the data communication speed between the target machine and the PLC: when the number of consecutive addresses exceeds the maximum when different device types are used
Device Max. Consecutive Addresses

Gap Span

Input Relay (X) Output Relay (Y) Internal Relay (M) Latch Relay (L) Special Relay (SM) Annunciator (F) Edge Relay (V) Step Relay (S) Link Relay (B) Special Link Relay (SB) Timer [contact] (TS) Timer [coil] (TC) Retentive Timer [contact] (SS) Retentive Timer [coil] (SC) Counter [contact] (CS) Counter [coil] (CC) Timer [current value] (TN) Retentive Timer [current value] (SN) Counter [current value] (CN) Data Register (D) Special Register (SD) Link Register (W) Special Link Register (SW) File Register (R) File Register (0R-31R) 480 words 48 words 7680 bits 752 bits

Melsec-Q Ethernet (UDP) Driver

Environment Setup

WARNING
UNINTENDED EQUIPMENT OPERATION Read and understand the instructions in this section to ensure data is properly transferred. If you do not follow these instructions, incorrect data could be written to the PLC and the target machine, which could result in system failures. Failure to follow this instruction can result in death, serious injury, or equipment damage. Prior to the target machine starting communciation with a Melsec-Q PLC, the MNET/10H Ethernet settings must be set in the PLC's ladder logic software. The setting values are as shown below. 1. Network Parameter MNET/10H Ethernet Settings 2. Ethernet Operation Settings 3. OPEN Settings

1. Network Parameter MNET/10H Ethernet Settings


Items Network Classification First I/O No. Network No. Group No. Machine No. Mode PLC Settings Ethernet Any number *1 Any number *1 Any number *1 Any number *1 Online

*1 This setting does not effect the communication with the target machine.

2. Ethernet Operation Settings


Items Data Code Settings Initial Timing Settings IP Address Settings Write Possible in RUN mode *1 PLC Settings BINARY Code Always waiting for OPEN Any number Any number

*1 When performing Write from the target machine in RUN mode, set the Write Possible in RUN mode to "Allowed".
NOTE

Consult your network administrator when setting up IP addresses. Do not set up duplicate addresses.

Melsec-Q Ethernet (UDP) Driver

3. OPEN Settings
Items Protocol SRC Port No. DEST IP Address DEST Port Address Fixed Buffer Fixed Buffer Method Pairing Open Confirming PLC Settings UDP/IP Should be the same DEST Port No No. as the target machine. *1 Should be the same IP Address as the target machine. Should be the same UDP Port No. as the target machine. Any number *2 yes Any number *2 Any number *2

*1 Only one (1) target machine can be connected to a single PLC Station port number. If multiple (2 or more) target machines are connected to a PLC, be sure each target machine uses a unique PLC Station port number. *2 This setting does not effect the communication with the target machine.

NOTE

Consult your network administrator when setting up IP addresses. Do not set up duplicate addresses.

When the Auto Open UDP Port feature is used, the Table 3. OPEN Settings are not needed. When these settings are used, however, the PLC's port number is 5000. Multiple (2 or more) target machines can be connected to a [Auto Open UDP Port]. For details, refer to Mitsubishi Electric's Q and QnA Series Ethernet Interface User Manuals.

Melsec-Q Ethernet (UDP) Driver

I/O Manager Configuration


The driver and equipment , which enable communication between the target machine and the PLC, depends on the PLC type.
NOTE

For information on how to display the [New Driver] dialog box, see the online help.

10

Melsec-Q Ethernet (UDP) Driver

Driver Configuration

WARNING
UNINTENDED EQUIPMENT OPERATION Read and understand the instructions in this section to ensure data is properly transferred. If you do not follow these instructions, incorrect data could be written to the PLC and the target machine, which could result in system failures. Failure to follow this instruction can result in death, serious injury, or equipment damage. Use the [Driver Configuration] dialog box to define communication settings on the target machine.

NOTE

For information on how to display the [Driver Configuration] dialog box, see the online help.

Command Time Interval Not applicable. Timeout Defines the length of time the target machine waits for a communication packet before it retries communication or outputs an error. (1-180) UDP Retry Count Defines the number of times the target machine resends a packet before it outputs an error. (0-255) UDP Port No. Enter a value to identify on the target machine, the port number used for UDP communication. (1025-65534)

11

Melsec-Q Ethernet (UDP) Driver

Equipment Configuration

WARNING
UNINTENDED EQUIPMENT OPERATION Read and understand the instructions in this section to ensure data is properly transferred. If you do not follow these instructions, incorrect data could be written to the PLC and the target machine, which could result in system failures. Failure to follow this instruction can result in death, serious injury, or equipment damage. To set up details about the communication process between the target machine and the PLC, use the [Equipment Configuration] dialog box.

NOTE

For information on how to display the [Equipment Configuration] dialog box, see the online help.

Destination IP Address Specifies the Destination IP address (PLC).


NOTE

Consult your network administrator when setting up IP addresses. Do not set up duplicate addresses.

Destination Port No. Enter a value (1025-65534) to match the PLCs Ethernet port number. Port No.s 5001 and 5002 are not available. They are reserved for use by the ethernet unit system and the PLC's ladder logic software. When using the Auto Open UDP Port feature, enter 5000 for the Port No. Network No. Designates the network number when communicating via the network. Specify an integer value between 1 and 239, both inclusive, or 254, to identify the communicating PLC. If the network will not be used for communication, enter 0. PLC No. Designates the PLC number when communicating via the network. Specify an integer value between 1 and 64, both inclusive to identify the communicating PLC. If not communicating via the network, enter 255.

12

Melsec-Q Ethernet (UDP) Driver

Device Address Configuration

WARNING
UNINTENDED EQUIPMENT OPERATION Read and understand the instructions in this section to ensure data is properly transferred. If you do not follow these instructions, incorrect data could be written to the PLC and the target machine, which could result in system failures. Failure to follow this instruction can result in death, serious injury, or equipment damage. To set up a PLC variable in the Variable List, use the Device Address Keypad from the variable properties. See Section 2 Supported Device Addresses.
NOTE

For information on how to display the Device Address Keypad, see the online help.

Device Lists the PLCs discrete and word device types. Address Enter the device address for the PLC variable. The keypad ensures that you enter the correct format for bit and word devices.

13

Das könnte Ihnen auch gefallen