Mitsubishi Mel Sec QT Cpe

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

EIO0000001199 04/2013

Mitsubishi Electric Corp.


Melsec-Q Ethernet (TCP) Driver
03/2014
EIO0000001199.00

www.schneider-electric.com
2 EIO0000001199 03/2014
Table of Contents

Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 Melsec-Q Ethernet (TCP) Driver . . . . . . . . . . . . . . . . . . 9
System Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Supported Device Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Consecutive Equipment Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Environment Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
I/O Manager Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Equipment Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Device Address Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

EIO0000001199 03/2014 3
4 EIO0000001199 03/2014
Safety Information
§

Important Information

NOTICE
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.

EIO0000001199 03/2014 5
PLEASE NOTE
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.
A qualified person is one who has skills and knowledge related to the construction
and operation of electrical equipment and its installation, and has received safety
training to recognize and avoid the hazards involved.

6 EIO0000001199 03/2014
About the Book

At a Glance

Document Scope
This manual describes the device driver communication settings in the Vijeo
Designer screen editing software. Vijeo Designer enables you to design Magelis
target machines that 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.

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 Vijeo Designer screen editing software. A target machine is also known
as a terminal.

EIO0000001199 03/2014 7
Product Related Information

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.*
 Each implementation of a Magelis XBTGT, HMISTO, HMISTU, HMIGTO,
HMIGTU, XBTGH, XBTGK, XBTGC, iPC, and XBTGTW 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.

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

User Comments
We welcome your comments about this document. You can reach us by e-mail at
techcomm@schneider-electric.com.

8 EIO0000001199 03/2014
Melsec-Q Ethernet (TCP) Driver
EIO0000001199 04/2013

Melsec-Q Ethernet (TCP) Driver

1
Subject of this Chapter
This chapter explains the Melsec-Q Ethernet (TCP) Driver.

What's in this Chapter?


This chapter contains the following topics:
Topic Page
System Structure 10
Supported Device Addresses 11
Consecutive Equipment Addresses 14
Environment Setup 15
I/O Manager Configuration 17
Equipment Configuration 18
Device Address Configuration 20

EIO0000001199 03/2014 9
Melsec-Q Ethernet (TCP) Driver

System Structure

Overview
The following table describes the basic system setup for connecting the target
machine to Mitsubishi Melsec-Q Series PLCs.

Connection

Series CPU Ethernet Module


Melsec-Q Series Q00CPU QJ71E71
Q00JCPU QJ71E71-B2
Q01CPU
Q02CPU
Q02HCPU
Q06HCPU
Q12HCPU
Q25HCPU

Note:
 Use a 100BASE-TX connection for iPC Series, XBTGTW Series, XBTGT2000
Series or higher, XBTGH2000 Series, XBTGC2000 Series or higher,
XBTGT1005 Series, HMIGTO Series, HMIGTU Series, HMISTO Series, and
HMISTU Series target machines.
 Use a 10BASE-T connection for XBTGT1130 target machines.

10 EIO0000001199 03/2014
Melsec-Q Ethernet (TCP) Driver

Supported Device Addresses

Overview
The following tables list the device address ranges you can enter from the Device
Address keypad.

WARNING
UNINTENDED EQUIPMENT OPERATION
Incorrect values will result if conflicting writes to the same register are requested
simultaneously by the target and PLC program.
Design your system to avoid conflicting write processes between the target
machine and PLC program.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.

For actual device address ranges supported by the PLC, refer to the corresponding
PLC manual.

EIO0000001199 03/2014 11
Melsec-Q Ethernet (TCP) Driver

Device Bit Address Word Address 16 bit 32 bit


*1
Input Relay X0000-XFFFF X0000-XFFF0
*1
Output Relay Y0000-YFFFF Y0000-YFFF0
*2
Internal Relay M00000-M65535 M00000-M65520
*2
Latch Relay L00000-L65535 L00000-L65520
*2
Special Relay SM0000-SM9999 SM0000-SM9984
*2
Annunciator F00000-F65535 F00000-F65520
*2
Edge Relay V00000-V65535 V00000-V65520
*2
Step Relay S0000-S9999 S0000-S9984
*1
Link Relay B0000-BFFFF B0000-BFFF0
*1
Special Link Relay SB000-SBFFF SB000-SBFF0
Timer (contact) TS00000-TS65535 --
Timer (coil) TC00000-TC65535 --
Retentive Timer (contact) SS00000-SS65535 --
Retentive Timer (coil) SC00000-SC65535 --
Counter (contact) CS00000-CS65535 --
*6 *6
Counter (coil) CC00000-CC65535 -- L/H L/H
Timer (current value) -- TN00000-TN65535

Retentive Timer (current value) -- SN00000-SN65535


Counter (current value) -- CN00000-CN65535
*3 *4
Data Register D00000:0-D65535:15 D00000-D65535
*3 *4
Special Register SD0000:0-SD9999:15 SD0000-SD9999
*3 *5
Link Register W0000:0-WFFFF:F W0000-WFFFF
*3 *5
Special Link Register SW000:0-SWFFF:F SW000-SWFFF
*3 *4
File Register(Normal) R00000:0-R65535:15 R00000-R65535
*5
0R0000:0-0R7FFF:F 0R0000-0R7FFF
*5
1R0000:0-1R7FFF:F 1R0000-1R7FFF
*5
*3 2R0000:0-2R7FFF:F 2R0000-2R7FFF
File Register(0R-31R)
... ...
*5
30R0000:0-30R7FFF:F 30R0000-30R7FFF
*5
31R0000:0-31R7FFF:F 31R0000-31R7FFF

*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)

12 EIO0000001199 03/2014
Melsec-Q Ethernet (TCP) Driver

*6 16-bit and 32-bit data, High and Low, refer to data as defined in the following
examples.

EIO0000001199 03/2014 13
Melsec-Q Ethernet (TCP) Driver

Consecutive Equipment Addresses

Overview
The following table lists the maximum number of consecutive addresses that can be
read by each PLC. Refer to this table when using block transfers.
Note:
 To speed up data communication, use consecutive variable addresses on the
same panel screen.
 The following situations increase the number of times that the equipment is
read, which reduces the data communication speed between the target
machine and the equipment:
 when the number of consecutive addresses exceeds the maximum
 when different register/device types are used.

Max. Consecutive
Device Gap Span
Addresses
Input Relay (X)
Output Relay (Y)
Internal Relay (M)
Latch Relay (L)
Special Relay (SM)
Annunciator (F)
Edge Relay (V)
Step Relay (S)
7680 bits 752 bits
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)
480 words 48 words
Special Register (SD)
Link Register (W)
Special Link Register (SW)
File Register (R)
File Register (0R-31R)

14 EIO0000001199 03/2014
Melsec-Q Ethernet (TCP) Driver

Environment Setup

Overview

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.
Failure to follow these instructions 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

Network Parameter MNET/10H Ethernet Settings

Items PLC Settings

Network Classification Ethernet


*1
First I/O No. Any number
*1
Network No. Any number
*1
Group No. Any number
*1
Machine No. Any number

Mode Online

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

Ethernet Operation Settings

Items PLC Settings


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

EIO0000001199 03/2014 15
Melsec-Q Ethernet (TCP) Driver

*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.

OPEN Settings

Items PLC Settings


Protocol TCP/IP
OPEN Format Unpassive

Should be the same DEST Port No.


SRC Port No.
as the target Machine. *1
*2
Fixed Buffer Any number
Fixed Buffer Method Yes
*2
Pairing Open Any number
*2
Confirming Any number

*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.

16 EIO0000001199 03/2014
Melsec-Q Ethernet (TCP) Driver

I/O Manager Configuration

Overview
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 Vijeo
Designer Help.

Screen example of I/O Manager Configuration

EIO0000001199 03/2014 17
Melsec-Q Ethernet (TCP) Driver

Equipment Configuration

Overview

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.
Failure to follow these instructions 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.

For an overview of the driver and equipment settings, see Environment Setup.
Note:
 For information on how to display the [Equipment Configuration] dialog box, see
the Vijeo Designer Help.

Screen example of Equipment Configuration

18 EIO0000001199 03/2014
Melsec-Q Ethernet (TCP) Driver

Screen Description

Area Description
Destination IP Ad- Specifies the Destination IP address (PLC).
dress
Destination Port No. Enter a value (1025-65534) to match the PLC’s Ethernet port
number.
Port numbers 5000, 5001 and 5002 are not available. They are
reserved for use by the Ethernet unit system and the PLC's ladder
logic software.
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, inclusive, to identify the
communicating PLC. If not communicating via the network, enter
255.

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

EIO0000001199 03/2014 19
Melsec-Q Ethernet (TCP) Driver

Device Address Configuration

Overview

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.
Failure to follow these instructions 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 Supported Device Addresses.


Note:
 For information on how to display the Device Address Keypad, see the Vijeo
Designer Help.

Screen example of Device Address Keypad

20 EIO0000001199 03/2014
Melsec-Q Ethernet (TCP) Driver

Screen Description

Area Description
Device Lists the PLC’s 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.

EIO0000001199 03/2014 21
Melsec-Q Ethernet (TCP) Driver

22 EIO0000001199 03/2014

You might also like