M340 Modbus Plus Proxy Module: User Guide
M340 Modbus Plus Proxy Module: User Guide
12/2009
EIO0000000245.02
www.schneider-electric.com
WARNING
UNINTENDED EQUIPMENT OPERATION
The application of this product requires expertise in the design and programming
of control systems. Only persons with such expertise should be allowed to
program, install, alter, and apply this product.
Follow all local and national safety codes and standards.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
2 EIO0000000245 12/2009
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Chapter 1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
M340 EGD Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Integrating Modicon M340 on Modbus Plus . . . . . . . . . . . . . . . . . . . . . . . 14
Physical Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
About Modbus Plus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
M340 Offset Data Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Chapter 2 M340 EGD Module Specifications . . . . . . . . . . . . . . . . . . 29
M340 EGD Module Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Chapter 3 M340 EGD Module Installation . . . . . . . . . . . . . . . . . . . . 31
3.1 Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.2 Removing the M340 EGD Mounting Plate . . . . . . . . . . . . . . . . . . . . . . . . 33
The M340 EGD Mounting Plate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Removing the M340 EGD Mounting Plate . . . . . . . . . . . . . . . . . . . . . . . . 35
3.3 M340 EGD Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Modbus Plus Rotary Switches. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
IP Address Switch Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Restore Factory Settings Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3.4 External Cabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Front Panel Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Connecting the Power Supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Connecting to the Modbus Plus Network . . . . . . . . . . . . . . . . . . . . . . . . . 43
Connections for Ethernet Communication. . . . . . . . . . . . . . . . . . . . . . . . . 44
Connection Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3.5 Connecting the M340 EGD to PE (Protective Earth). . . . . . . . . . . . . . . . . 48
M340 EGD PE Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
3.6 Configuring the IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
The IP Address Configuration Process . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.7 Mounting the M340 EGD on a Rack or DIN Rail . . . . . . . . . . . . . . . . . . . . 52
Dimensions and Mounting of the M340 EGD . . . . . . . . . . . . . . . . . . . . . . 52
EIO0000000245 12/2009 3
3.8 LED Diagnostic Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Front Panel LEDs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Module Status LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Ethernet Connector LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Modbus Plus Diagnostic LEDs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Power Supply Diagnostic LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Chapter 4 Embedded Web Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
4.1 Embedded Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Introduction to the Embedded Web Server . . . . . . . . . . . . . . . . . . . . . . . 63
User Selections on the M340 EGD Home Page . . . . . . . . . . . . . . . . . . . 65
4.2 Setup Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Setup Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
M340 IP Address Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
M340 Register Offset Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Modbus Plus Peer Cop Global Output Setup . . . . . . . . . . . . . . . . . . . . . 73
Modbus Plus Peer Cop Global Input Setup . . . . . . . . . . . . . . . . . . . . . . . 75
Modbus Plus Peer Cop Specific Output Setup . . . . . . . . . . . . . . . . . . . . 77
Modbus Plus Peer Cop Specific Input Setup . . . . . . . . . . . . . . . . . . . . . . 79
Modbus Plus Routing Table Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
4.3 Advanced Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
IP Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Configuring the SNMP Agent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Password Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
4.4 Diagnostic Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Diagnostic Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Modbus Plus Peer Cop Health Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Ethernet TCP/IP Statistics Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Ethernet Port Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Modbus TCP Port Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Modbus TCP Port Connections Statistics . . . . . . . . . . . . . . . . . . . . . . . . 96
Modbus Plus Network Statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
M340 Communication Statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
SNMP Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Chapter 5 Function Codes and Modbus Exception Codes . . . . . . . 101
Function Code Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Modbus Exception Code Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Chapter 6 Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Updating Firmware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
The M340 EGD Configuration Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
4 EIO0000000245 12/2009
Appendices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Appendix A M340 EGD Performance and Communication Planning 117
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Appendix B Replacing a Compact PLC Rack with a Modicon M340
Rack and M340 EGD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Installing a Modicon M340 Rack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Appendix C M340 EGD Application Note . . . . . . . . . . . . . . . . . . . . . . 123
Using the Read_Var Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
EIO0000000245 12/2009 5
6 EIO0000000245 12/2009
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.
EIO0000000245 12/2009 7
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 the installation, and has received safety
training to recognize and avoid the hazards involved.
8 EIO0000000245 12/2009
About the Book
At a Glance
Document Scope
This manual describes the installation and configuration of the TCSEGDB23F24FA
M340 Modbus Plus Proxy module (M340 EGD) allowing the integratation of an
M340 PLC into a Modbus Plus network.
NOTE: The M340 EGD is also available with a conformal coat. The part number for
this version is TCSEGDB23F24FK.
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.
EIO0000000245 12/2009 9
Related Documents
You can download these technical publications and other technical information from
our website at www.schneider-electric.com.
User Comments
We welcome your comments about this document. You can reach us by e-mail at
[email protected].
10 EIO0000000245 12/2009
Introduction
EIO0000000245 12/2009
Introduction
1
Introduction
The chapter begins with an introduction of the M340 EGD module and a discussion
of its role as the Modbus Plus interface for the M340 PLC. It includes a description
of the major characteristics of Modbus Plus.
EIO0000000245 12/2009 11
Introduction
General Description
The M340 EGD is a network device that allows the Unity M340 PLC to communicate
with legacy Modbus Plus devices. Existing Modbus Plus device applications do not
have to be modified to communicate with M340. The M340 EGD accommodates
PLC CPU platform addressing and communications function differences between
M340 and other PLC platforms (including 984LL). The M340 EGD is a key
component for Modbus Plus PLC users looking to introduce the M340 to their
Modbus Plus network, or to incrementally migrate from other PLC models to M340
and Unity.
The M340 EGD operates by continuously exchanging data between the Ethernet
interface of M340 and a Modbus Plus network, including Modbus Plus Peer Cop and
Global Data. This allows the M340 to participate as a Peer Cop or Global Data node
in a Modbus Plus network. The data is refreshed cyclically with the Modbus Plus
token rotation (see page 119).
The M340 EGD monitors the operational state of the M340 PLC. When M340 PLC
operational state is in Run mode the M340 EGD will check the PLC operational state
at a rate of 1/2 the Peer Cop Health Timeout. If the PLC operational state goes to
Stop mode the M340 EGD will stop sending Peer Cop and Global Data. When M340
PLC operational state is in Stop mode the M340 EGD will check the PLC operational
state at a rate of 10 ms. If PLC state goes to Run mode the M340 EGD will start
sending Peer Cop and Global Data.
The M340 EGD uses 5 of the 8 available transactions processed per M340 CPU
scan, allowing additional transactions for Unity programming and monitoring of
M340. For peer to peer M340 communications over Ethernet, an M340 NOE is
recommended to allow the M340 access to the M340 EGD.
Unity programming is also supported through the M340 EGD from a Modbus Plus
equipped Unity station to the M340.
How the M340 EGD Manages Modbus Plus Nodes and the M340 Platform
The M340 EGD accommodates the register types and starting address differences
between Modbus Plus nodes and the Unity M340 platform.
NOTE: Legacy Modbus Plus devices support four data types: 0x, 1x, 3x and 4x. The
M340 on Unity supports two data types: %M (bits) and %MW (words).
The M340 EGD uses an offset value applied to 1x and 3x registers to separate them
from 0x and 4x. The offset value used by the M340 EGD points to a location in M340
memory separate from 0x and 4x requests. This requires that the M340 application
0x requests for output bits are passed on to %M location in M340 by the M340 EGD,
while requests for 1x input bits are redirected by the M340 EGD to a separate %M
location.
12 EIO0000000245 12/2009
Introduction
The same applies for 3x and 4x. Requests for 4x are passed on natively to %MW
memory locations while the requests for 3x are redirected to a separate location in
%MW M340 memory.
There is also a feature in the M340 EGD to increment requests by 1 for applications
that have been converted from Concept/ProWORX to accommodate the differences
in starting register locations between platforms. The M340 CPU starts addressing at
%M0 and %MW0. Concept/ProWORX application CPUs start at 000001, 100001,
300001 and 400001. Applications converted from Concept and ProWORX will have
a starting register of %M1/%MW1. The offset by 1 feature of the M340 EGD
redirects communications by 1 to reflect the difference.
For more information about M340 offset register management and configuring
offsets (see page 70).
EIO0000000245 12/2009 13
Introduction
1 2
SI 1x
SO 0x
9
7 RD 3x 3
8
SI 3x
RD 4x
6
5
4
Label/Symbol Meaning
1 Compact PLC 1
2 Compact PLC 2
3 Compact PLC 3
4 Drive or RTU
5 Compact PLC 4
6 Modbus Plus token rotation
7 SCADA
8 Modbus Function
SI Specific Input
SO Specific Output
14 EIO0000000245 12/2009
Introduction
1 2
SO 0x SI 1x
13 10
7
6 RD 3x
9
8
SI 3x
RD 4 x 12
5
11
4
3
EIO0000000245 12/2009 15
Introduction
Label/Symbol Meaning
Compact Modbus Plus Network
1 Compact PLC 1
2 Compact PLC 2
3 Drive or RTU
4 Compact PLC 3
5 Modbus Plus token rotation
5 SCADA
7 Modbus Function
SI Specific Input
SO Specific Output
Modicon M340 Network with M340 EGD
9 Modicon M340
10 M340 EGD
11 PC with Internet Explorer and Unity
Ethernet (Offset Handling)
12 Redirected
13 Not Redirected
16 EIO0000000245 12/2009
Introduction
Physical Description
5
4
1. Product number
2. Module status LED Display: Indicates the operating status of the module
(see page 56)
3. Dual Port Ethernet connectors and activity LEDs
4. Redundant Modbus Plus connectors and Modbus Plus activity/status LEDs
5. MAC label: Indicates the module’s global Ethernet MAC address assigned at the
factory
6. PE (protective earth ground) screw terminal
7. Redundant power supply connectors and LEDs
8. Mounting plate screw
EIO0000000245 12/2009 17
Introduction
RESTORE
1 FACTORY
SETTINGS
MB+ SW1
(TENS)
2
MB+ SW2
(ONES)
IP SETTINGS
TENS
3
ONES
18 EIO0000000245 12/2009
Introduction
Communication Method
The Modbus Plus protocol is based on a logical token bus (token rotation). Each
node on the network needs to be assigned a unique address in the range 1 to 64,
and a node can access the network once it receives the token. A Modbus Plus
communication channel supports three primary functions:
z Point-to-point data exchanges between nodes using the MSTR function block.
The MSTR function block can be used for transferring, reading and clearing
statistics, and accessing the network’s global database. The MSTR is a general
function for transacting messages with any type of networked node. It is
programmed into the user logic program of the legacy controller.
NOTE: Quantum PLC/Compact PLC use the MSTR function block;
Premium PLC/M340 PLC use Read_Var and Write_Var functions instead. Refer to
the appendix for an example of using the Read_Var function block (see page 123).
z Cyclic broadcast exchanges of global data between participating nodes.
When a node rotates the token, it can broadcast up to 32 words (16 bits each) of
global information to all other nodes on the network. The information is contained
in the token frame. The process of sending global data when transmitting the
token is controlled independently by the application program in each node.
z Multi-point exchange of specific data via Peer Cop.
Specific inputs and outputs act as a point-to-point-service. Every message
contains one or more receive addresses for transferring the data. This function
enables data to be forwarded to several stations without repetition.
Modbus Plus networks can be interconnected using Modbus Plus bridges. The
M340 EGD supports full 5 byte routing across up to 4 Modbus Plus networks to a
node destination.
For more information, refer to the Modbus Plus Network Planning and Installation
Guide (890 USE 100).
EIO0000000245 12/2009 19
Introduction
Compact PLC M340 PLC M340 PLC using the M340 EGD
0x output bits %M IO bits %M output bit memory space
1x input bit %M input bit memory space (offset)
3x input registers %MW input register memory space (offset)
4x holding registers %MW registers %MW holding register memory space
To manage the offsets, the M340 PLC application must provide range in memory to
separate the two different bit types and the two different register types. The M340
PLC application allocates a memory range for:
z %M I/O bits
z %MW register words
20 EIO0000000245 12/2009
Introduction
To manage this conflict, the M340 PLC programmer identifies two additional
memory ranges for input bits and input registers. When developing the M340 PLC
application, choose a free range in memory for %M input bits and %MW input
registers large enough to accommodate the application. The difference between the
starting location %M0 for example, and the starting location for input bits is called
the offset.
The default offset range for input bits (1x data type) and input registers (3x data type)
is 2048. This is an upper memory area that is out of reach for default Compact PLC
applications but easily addressable using the increased memory capacity of M340.
Using default offset ranges, communications from a Compact PLC are forwarded
directly or redirected to the offset range depending on the data type. Only the 1x and
3x Modbus functions are redirected.
NOTE: The automatic application of the offset redirection only applies to Modbus
functions such as MSTR blocks on Compact PLC’s, HMI and SCADA type requests.
Peer Cop and global data functions are not automatically redirected to the offset
range space.
An example of a SCADA system on Modbus Plus making four Modbus function
requests for different data types would be as follows using the default 2048 offset for
1x and 2048 for 3x.
EIO0000000245 12/2009 21
Introduction
Evaluate your M340 PLC application and find a range of free memory to locate the
objects representing the two additional object data types for input bits and input
registers. Assign the starting memory location of that range as your M340 EGD
offset value for each of the two data types.
22 EIO0000000245 12/2009
Introduction
EIO0000000245 12/2009 23
Introduction
24 EIO0000000245 12/2009
Introduction
Peer Cop Health writes 12 words to the M340 CPU starting by default at %MW3072.
To accommodate the Health block at this default location, configure the CPU for a
minimum of %MW3084 words. If these 12 words are not configured in the CPU and
reserved for the Health block, Peer Cop and Global Data services are disabled on
Modbus Plus.
Using Comm Functions in the M340
When using Comm functions such as Read_Var or Write_Var in the M340 CPU,
insert a nonzero value in the timeout register of the Management Parameter table of
each function. A value of zero in the register imposes an infinite timeout, and you will
not be able to recover the function after a connection has been interrupted.
EIO0000000245 12/2009 25
Introduction
Memory protect
2 In the Maximum Values screen, make sure Number of %M and Number %MW in the Max field have been
checked off.
Maximum Values
CPU
Max
3 Click OK.
26 EIO0000000245 12/2009
Introduction
You must make sure that the 1x/3x offset plus the addressable input bits and
registers are a valid, partitioned memory location in the M340 PLC. Not allocating
addressable memory will result in the M340 EGD recording Modbus Exception
errors writing to that location. Refer to the M340 EGD RUN LED (see page 56) flash
code status. The M340 EGD will flash the RUN LED 3x at 500ms intervals if the area
of memory in the M340 PLC is not available and the M340 EGD configuration is
attempting reads and writes to that address location.
EIO0000000245 12/2009 27
Introduction
28 EIO0000000245 12/2009
M340 EGD Module Specifications
EIO0000000245 12/2009
2
M340 EGD Module Specifications
General Specifications
General specifications for the M340 EGD module are described in the following
table.
Storage Conditions
Temperature –40...+85°C
Humidity 0...95% Rh non-condensing @ 60°C
Free Fall 1 m unpackaged
Shock +/– 15 g, 11 ms, half sine wave
EIO0000000245 12/2009 29
M340 EGD Module Specifications
Agency Approvals
z UL: UL 508
z CSA: CSA 22.2.142
z CE: EMI EN55011, EN61131-2
z C-TICK
30 EIO0000000245 12/2009
M340 EGD Module
EIO0000000245 12/2009
3
Introduction
This chapter describes the M340 EGD installation, configuration, connections and
cabling, power requirements, switch settings, and LED diagnostic indicators.
EIO0000000245 12/2009 31
M340 EGD Module
Package Contents
Before you begin installing the M340 EGD, review the table below and make sure
you have received the following items:
NOTE: A medium-sized (#2) flat head screwdriver is also required for securing the
M340 EGD to the mounting plate.
32 EIO0000000245 12/2009
M340 EGD Module
EIO0000000245 12/2009 33
M340 EGD Module
Each M340 EGD comes delivered mounted on a support plate (Part #: 35002712),
which allows attachment to either a rack (Part # AM1-DE200 or AM1-DP200) and
on a DIN rail (Part # AM1-PA).
1
2
4
1
1 Two 7/32 in (5.5 mm) holes for securing the plate to a panel or to an AM1-PA pre-slotted
plate, with fixing centers of 5.51 in (140 mm, Micro fixing centers). The tightening torque
is: 8.85 to 10.62 lb-in (1 to 1.2 n-m).
2 M4 fixing hole for securing the M340 EGD.
3 Two 0.255 in (6.5 mm) holes for securing the plate to a panel or to an AM1-PA pre-slotted
plate, with fixing centers of 3.5 in (88.9 mm).
4 Slots to hold the support posts on the back of the M340 EGD.
34 EIO0000000245 12/2009
M340 EGD Module
To remove the M340 EGD from the mounting plate proceed as follows:
EIO0000000245 12/2009 35
M340 EGD Module
36 EIO0000000245 12/2009
M340 EGD Module
Switch Location
The two blue rotary switches indicated in the figure below are located on the rear
panel of the M340 EGD. They are used together to set the Modbus Plus node and
Modbus port address for the module. These settings are applied only on power-up.
Rotary SW1 (top switch) sets the upper digit (tens), and rotary SW2 (bottom switch)
sets the lower digit (ones) of the Modbus Plus node address.
RESTORE
FACTORY
SETTINGS
Address Settings
The following table shows the highest valid node address settings for the SW1 and
SW2 switches. Any setting above 64 is invalid.
EIO0000000245 12/2009 37
M340 EGD Module
Switch Locations
The M340 EGD must obtain a unique IP address, subnet mask, and gateway
address to communicate over an Ethernet network. The settings of the two red
rotary switches determine the source of these settings. These settings are applied
only on power-up. As shown below, the TENS switch is located above the ONES
switch.
IP SETTINGS
IP Address Rotary
TENS
Switch (Tens)
NOTE: If you are required to change the IP address settings, the M340 EGD must
be rebooted for the changes to take effect.
Switch Settings
The settings of the rotary switches determine the source of the M340 EGD address
parameters as follows:
38 EIO0000000245 12/2009
M340 EGD Module
Button Location
A push-button is located at the middle top, facing the rear of the module and is
labeled RESTORE FACTORY SETTINGS. The button must be held for 5 s to clear
the M340 EGD configuration, including the IP address, and returns the module’s
default parameter settings. This does not clear the user defined password.
NOTE: A power cycle is required for the settings to take effect.
RESTORE
FACTORY
SETTINGS
EIO0000000245 12/2009 39
M340 EGD Module
40 EIO0000000245 12/2009
M340 EGD Module
There are three sets of connectors and the PE (protective earth) screw terminal on
the front panel of the M340 EGD:
1 Power supply connectors
2 PE screw terminal
3 Dual port Ethernet RJ45 connectors
4 Modbus Plus connectors
EIO0000000245 12/2009 41
M340 EGD Module
PWR1
+
-
Power Supply
Connectors
+
-
PWR2
NOTE: Refer to the power supply LED diagnostic table (see page 60) for a list of
power supply LED connector diagnostic codes.
42 EIO0000000245 12/2009
M340 EGD Module
MB+ A ERR-A
MB+ACT
ERR-B
MB+ B
The connectors include one LED (MB+ACT) indicating network status and two LEDs
(ERR-A and ERR-B) indicating communication status. For a list of Modbus Plus
diagnostic codes, refer to the Modbus Plus LED diagnostic table (see page 59).
EIO0000000245 12/2009 43
M340 EGD Module
Overview
The M340 EGD module is a device with two embedded Ethernet ports that function
as an Ethernet switch. The M340 EGD, Modicon M340, or PC can be connected to
either Ethernet port using Cat5e shielded cable.
44 EIO0000000245 12/2009
M340 EGD Module
Pin Assignments
A straight pinned or crossover cable can be used to connect the M340 EGD to the
M340 PLC.
NOTE: The M340 EGD supports MDI-MDI-X Autocrossing.
8
7
6
5
4
3
2
1
RJ-45 Pin
1 Tx+
2 Tx-
3 Rx+
6 Rx-
EIO0000000245 12/2009 45
M340 EGD Module
1
M
3
4
0
E
G
D 2
5
4 3
1 Modicon M340
2 Ethernet
3 2nd Ethernet port
4 Redundant Modbus Plus
5 Redundant Power Supply
6 Up to 328 ft (100 m)
The following straight-through ConneXium cables fit these requirements for
connecting terminal devices:
NOTE: Install the M340 EGD where the M340 EGD diagnostic LEDs can be easily
viewed.
46 EIO0000000245 12/2009
M340 EGD Module
Connection Example
2
1
8
11 10
Modicon M340 Ethernet
Communications Network
6 5
4
1 M340 EGD
2 Modicon M340
3 Ethernet switch
4 PC with Internet Explorer and Unity
5 Compact PLC 1
6 PC with Unity and Modbus Plus adapter
7 Compact PLC 2
8 ... 11 Modbus Plus taps
EIO0000000245 12/2009 47
M340 EGD Module
48 EIO0000000245 12/2009
M340 EGD Module
Introduction
To use the M340 EGD module’s embedded web pages to assign the desired IP
address, you can either use the Bootp setting and a Bootp server to assign an IP
address, or use the module’s default IP address.
The following procedure shows how to access the module using the default IP
address.
This process includes the following parts:
z determine the M340 EGD module’s default IP address
z modify your PC’s local area connection to connect to the M340 EGD default IP
address
z configure the module’s IP address
z save the IP address configuration and reboot the module to enable the newly
configures IP address of the M340 EGD
Step Action
1 Obtain the MAC address from the front of the module.
2 Write down the last two bytes of the MAC address.
3 Convert the last two bytes from Hexadecimal to Decimal. For example, if the MAC
address is 00:00:54:12:AB:CD, the last 2 bytes are AB:CD.
NOTE: You can perform a hexadecimal to decimal conversion by using a Windows
calculator in scientific mode. Access the Windows calculator at Start → Programs
→ Accessories → Calculator.
4 Create the 4 byte default IP address by concatenating the last two bytes of the MAC
address (converted to Decimal) to the first two byes, which are always 85.16. In this
example, because the last 2 bytes of the MAC address are AB:CD (hex) their
decimal values are 171.205, and the default IP address is 85.16.171.205.
EIO0000000245 12/2009 49
M340 EGD Module
Step Action
1 Select your Local Area Connection from the Windows Start menu by clicking
Settings and Network Connections.
2 In the General tab, use the scroll bar to view and select Internet Protocol (TCP/IP).
3 Click Properties, as displayed below:
Step Action
1 In Windows, select Start → Run and enter cmd.
A black command prompt window will appear.
50 EIO0000000245 12/2009
M340 EGD Module
Step Action
2 Enter the default IP address of the M340 EGD with the following command:
Ping the <default IP address of the M340 EGD>
3 If a reply is received, your configuration has been verified and you can enter the
stored IP address.
Step Action
1 Open Internet Explorer and enter the module’s default IP address in the browser’s
Address line and click Enter. A dialog opens.
2 In the dialog, enter the default user name of USER and default password of USER
and click OK. The Home page opens.
3 Click Setup on the menu bar. The Setup Home page opens.
4 In the Setup Home page, select IP Setup, on the left. The IP Setup page opens.
5 In the IP Setup page, complete the following fields to assign to the M340 EGD:
z Ethernet Frame Format: select Ethernet II
z IP Address: type in the desired IP address
z Subnet Mask: type in the subnet mask (required)
z Default Gateway: type in the IP address of the default gateway (optional)
6 Click Apply to save your changes to RAM memory, then click Save to Flash to save
your changes to persistent flash memory.
NOTE: Your new IP address settings are applies only after module is rebooted.
Step Action
1 Reboot the M340 EGD to apply the newly configured IP address. The STS LED is
solid after the power cycle is complete,
2 Ping the <new IP address of the M340 EGD>.
If a reply is received, communications are successful.
3 Connect the M340 EGD to an Internet Explorer to verify the new IP address.
4 A Login screen displays to indicate the module’s acceptance of the IP address.
EIO0000000245 12/2009 51
M340 EGD Module
mm
in
40.39 116 .7
1 .59 4.594
150
150
5.905
5 .905
XX X X X X XX X X XX
52 EIO0000000245 12/2009
M340 EGD Module
1
2
NOTE: For installations where the expected vibration is over 1G, screw down the
M340 EGD using the mounting plate to a panel, instead of DIN rail mount.
EIO0000000245 12/2009 53
M340 EGD Module
54 EIO0000000245 12/2009
M340 EGD Module
There are four sets of LEDs on the front panel of the M340 EGD:
1 Power supply LEDs
2 Module status LEDs
3 Ethernet status LEDs
4 Modbus Plus status LEDs
1
2
EIO0000000245 12/2009 55
M340 EGD Module
Indications
As you refer to these tables, keep in mind the following:
z Individual flashes are approximately 500 ms. There is a two-second interval
between flash sequences. For example:
z flashing - flashes steadily, alternating between 500 ms on and 500 ms off
z flash 2 - flashes twice (500 ms), then 2 seconds off
z flash N - flashes N (some number of) times, then 2 seconds off
PWR LED
The PWR LED indicates whether or not the M340 EGD is receiving adequate power.
The following table summarizes the PWR LED states.
56 EIO0000000245 12/2009
M340 EGD Module
STS LED
The table that follows describes the Ethernet status communicated by the STS LED,
and the color and flash patterns used to indicate each condition.
EIO0000000245 12/2009 57
M340 EGD Module
Port 1
Port 2
Indications
Use the LEDs to diagnose the state of the module as follows:
58 EIO0000000245 12/2009
M340 EGD Module
ERR-A
MB+ACT
ERR-B
Indications
The following table describes the colors and flash patterns of the Modbus Plus
connector LEDs. These LEDs indicate the communication status on the M340 EGD.
EIO0000000245 12/2009 59
M340 EGD Module
PWR1
PWR2
Indications
Use the LEDs to diagnose the state of the module as follows:
PWR Green z On: Indicates input power from this power supply.
(see page 56) z Off: Indicates no input power from this power supply.
NOTE: In addition to the power supply LEDs, refer to the PWR LED (see page 56)
on the front panel for the operating condition of the M340 EGD.
60 EIO0000000245 12/2009
Embedded Web Pages
EIO0000000245 12/2009
4
Introduction
This chapter presents the contents of the embedded Web pages contained in the
M340 EGD. These Web pages enable you to access diagnostic information, view
configuration information, and change the online configurations for the module.
EIO0000000245 12/2009 61
Embedded Web Pages
62 EIO0000000245 12/2009
Embedded Web Pages
All data is presented as standard web pages in HTML format. To access web pages,
use Internet Explorer 6.0 or higher and Java 1.5 or higher.
Step Action
1 Open a browser.
2 Enter the IP address of the M340 EGD in the address or location box of the browser window.
Use the following format: http://hostname (where hostname is the full IP address).
EIO0000000245 12/2009 63
Embedded Web Pages
Step Action
3 Enter the current user name (the default is USER) and password (the default is USER) and click OK.
Connect to 85.16.81.34
BrickAuthorization
User name:
Password:
Remember my password
OK Cancel
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Home
Language
English
French
German
Italian
Spanish
Identification
About
64 EIO0000000245 12/2009
Embedded Web Pages
Links
From the M340 EGD home page, you can access the following pages:
z Setup (see page 66)
z Diagnostics (see page 90)
z Control
z Documentation
EIO0000000245 12/2009 65
Embedded Web Pages
66 EIO0000000245 12/2009
Embedded Web Pages
Setup Page
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
Security
Password Change
IP Setup
SNMP Agent
M340 Interface
IP Address
Register Offsets
Routing Table
Links
To set the operational parameters for the services you require, click on the
appropriate link, below, to open a page where you can configure that service:
z Security
z Password Change (see page 88)
z User Administration
EIO0000000245 12/2009 67
Embedded Web Pages
Command Description
Apply Saves your edits.
Undo If you select Undo before clicking the Apply command, it clears your
edits, and restores the present screen’s prior settings. Once Apply is
selected, the Undo feature is inactive.
Save to Flash Effects a real-time change to the setup configuration, by saving the entire
M340 EGD module configuration to flash memory.
68 EIO0000000245 12/2009
Embedded Web Pages
Step Action
1 Open the IP Address page by navigating to Setup → M340 Interface → IP Address.
The following window opens:
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
M340 Interface - IP Address Help
Security
Password Change
M340 Interface P Address
IP Setup IP Address
SNMP Agent
Apply Undo Save to Flash
M340 Interface
IP Address
Register Offsets
Routing Table
2 In the IP Address field, enter an IP address of the master M340 PLC that will
communicate with the M340 EGD.
Also note that the M340 PLC should be configured on the same subnet as the M340
EGD.
NOTE: The M340 EGD can communicate with only one master M340 PLC.
3 Save (see page 68) your edits.
EIO0000000245 12/2009 69
Embedded Web Pages
CAUTION
Overwritten Memory Locations
Make sure that the offsets are configured such that all input and output data are
segregated into different areas of M340 PLC memory.
Failure to follow these instructions can result in equipment damage.
NOTE: Standard inputs and outputs are data transmitted to the M340 PLC from
Modbus functions such as MSTR blocks, and HMI and SCADA requests. Peer Cop
and Global Data functions are not automatically redirected by these offset settings;
this data must be addressed manually by a programmer on the Global Output
(see page 73), Specific Output (see page 77), Global Input (see page 75), and/or
Specific Input (see page 79) setup pages.
Access this page by navigating to Setup → M340 Interface → Register Offsets
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
M340 Register Offsets Configuration Help
Security
Password Change
M340 Register Address
IP Setup 0
1X I/O Bit Offset 2048 Bits (Multiple of 16)
70 EIO0000000245 12/2009
Embedded Web Pages
1x Bit Offset
M340 register offsets The M340 EGD provides a default 1x (input bit) offset at
%M2049 (if the legacy compatibility offset in enabled, %M2048 if it is disabled). You
may change the default if it suits your application.
If you change the offset, the value must be on a 16-bit boundary:
z %M0, %M15, %M31, ... %M32607 if the legacy compatibility offset is disabled
z %M1, %M16, %M32, ... %M32608 if the legacy compatibility offset is enabled
Be sure to set the offset to a value that is greater than the number of standard output
bits in your application.
3x Register Offset
M340 register offsets The M340 EGD provides a default 3x (input word) offset at
%MW2049 (if the legacy compatibility offset in enabled, %MW2048 if it is disabled).
You may change the default if it suits your application.
If you change the offset, the value may be an integer in range:
z 0 ... 32463 if the legacy compatibility offset is disabled
z 1 ... 32464 if the legacy compatibility offset is enabled
Be sure to set the offset to a value that is greater than the number of standard output
words in your application.
EIO0000000245 12/2009 71
Embedded Web Pages
Sample Logic
72 EIO0000000245 12/2009
Embedded Web Pages
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
Modbus Plus Peer Cop - Global Output Configuration Help
Security
Password Change
Global Output
IP Setup
SNMP Agent Data Type Source Ref. Length(1-32) Bin/BCD
M340 Interface
All Nodes %MW-Registers BIN
IP Address
Register Offsets
Routing Table
ApplyApply Undo
Undo Help
Save to Flash
Modbus Plus Peer Cop
Health
Global Output
Global Input
Specific Output
Specific Input
EIO0000000245 12/2009 73
Embedded Web Pages
Step Action
1 Open the Global Output Configuration page by navigating to Setup →
Modbus Plus Peer Cop → Global Output.
2 Enter configuration data in to the following fields:
Data Type Indicate if the data to be sent is bits (%M) or words (%MW).
Source Specify the starting address of M340 data to be sent to other nodes
Reference using Global Data.
NOTE: The acceptable range of values depends upon the settings of
the following fields:
z the Data Type setting, above, and
z the Legacy Compatibility Offset 0x & 4x by 1 setting entered in
the M340 Register Offsets Setup (see page 70) page.
For data type %M with the legacy compatibility offset:
z enabled, the range is 1...32609, in increments of 16
z disabled, the range is 0...32608, in increments of 16
Length Specify the source reference starting address and the number of
words of data (up to 32 words output) to be sent to all other local
nodes.
NOTE: Setting the length to 0 disables Global Output to the Modbus
Plus network.
BIN/BCD Determine the output format (BCD or binary) when entering a %MW
reference destination. This format is used for data conversion before
the data is delivered to its destination. %M references are only
supplied as binary data.
3 Save (see page 68) your changes.
74 EIO0000000245 12/2009
Embedded Web Pages
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
Modbus Plus Peer Cop - Global Input Configuration Help
Security
Password Change Global Input
IP Setup S ource Node (1-64) Subfield Data Type Dest. Ref. Index (1-32) Length(1-32) Bin/BCD
1 %MW-Registers 0 0 0 BIN
SNMP Agent
%MW-Registers 0 0 0 BIN
M340 Interface %MW-Registers 0 0 0 BIN
IP Address %MW-Registers 0 0 0 BIN
Register Offsets
Routing Table %MW-Registers 0 0 0 BIN
%MW-Registers 0 0 0 BIN
Modbus Plus Peer Cop %MW-Registers 0 0 0 BIN
Health %MW-Registers 0 0 0 BIN
Global Output
Global Input
Specific Output Clear All Subfields
Specific Input
EIO0000000245 12/2009 75
Embedded Web Pages
Step Action
1 Open the Global Input Configuration page by navigating to Setup → Modbus Plus Peer Cop →
Global Input.
2 In the Source Node list, select a node from which data is to be received. Available nodes are: 1...64.
3 Configure the first subfield—Subfield 1—by entering settings for the following parameters.
NOTE: The M340 EGD can receive up to 32 words from each node; up to 8 subfields can be defined per
node.
Data Type Select the type of data to be received:
z %M-I/O Bits
z %MW-Registers
Destination Type in the starting reference (%M or %MW) of the destination in the M340 for Global Input
Reference data received. A %M reference must begin on a 16 bit boundary.
NOTE: The acceptable range of values depends upon the settings of the following fields:
z the Data Type setting, above, and
z the Legacy Compatibility Offset 0x & 4x by 1 setting entered in the
M340 Register Offsets Setup (see page 70) page.
For data type %M with the legacy compatibility offset:
z enabled, the range is 1...32609, in increments of 16
z disabled, the range is 0...32608, in increments of 16
Index (1-32) Type in the starting location of the Global Output data to be read. This field, together with
the Length field, lets the M340 EGD Global Input configuration to read all or a portion of
the Global Output data from another PLC.
For example, if 32 words of Global Output data were sent by another PLC, but only the last
4 words were needed by M340, the Index value would be 28 and the Length would be 4.
This allows the M340 to conserve RAM by accepting only the data it requires.
Length Type in the number of words to be read field length for each subfield, an integer value from
1...32. Each word contains 16 discrete references.
NOTE: Setting the length to 0 disables the Global Input subfield from this node.
Bin/BCD Select the data format:
z BCD (binary coded decimal)
z BIN (binary)
NOTE: This format is used for data conversion before the data is delivered to its
destination. %M references are supplied only as binary data.
Use the Clear All Subfields command to return all numeric parameters to 0 for all subfield entries.
4 Repeat step 3 for each additional subfield to be configured for the selected node.
5 Save (see page 68) your edits.
76 EIO0000000245 12/2009
Embedded Web Pages
See the configuration steps (see page 78), below, for specific configuration
procedures.
NOTE: The address area for output words must not overlap.
Access this page by navigating to Setup → Modbus Plus Peer Cop → Specific
Output
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
Modbus Plus Peer Cop - Specific Output Configuration Help
Security
Password Change Specific Output
IP Setup Dest. Node Data Type Source Ref. Length(1-32) Bin/BCD
SNMP Agent %MW-Registers 0 0 BIN
%MW-Registers 0 0 BIN
M340 Interface
IP Address %MW-Registers 0 0 BIN
Register Offsets %MW-Registers 0 0 BIN
Routing Table
%MW-Registers 0 0 BIN
Modbus Plus Peer Cop %MW-Registers 0 0 BIN
Health %MW-Registers 0 0 BIN
Global Output
Global Input %MW-Registers 0 0 BIN
Specific Output %MW-Registers 0 0 BIN
Specific Input
%MW-Registers 0 0 BIN
%MW-Registers 0 0 BIN
%MW-Registers 0 0 BIN
Apply
Apply Undo
Undo Help
Save to Flash
EIO0000000245 12/2009 77
Embedded Web Pages
Step Action
1 Open the Specific Output page by navigating to Setup → Modbus Plus Peer Cop
→ Specific Output.
2 Configure specific output data for the first destination node—Destination Node 1—
by entering configuration data for the following fields.
NOTE: You can configure up to 64 Modbus Plus destination nodes (1-64) on the
local Modbus Plus network to which the M340 can send specific output data.
Data Type Select the type of data to be sent:
z %M-I/O Bits
z %MW-Registers
Source Type in the starting address of M340 data (%M, %MW) sent to
Reference specified nodes. %M references must begin on a 16 bit boundary.
NOTE: The acceptable range of values depends upon the settings
of the following fields:
z the Data Type setting, above, and
z the Legacy Compatibility Offset 0x & 4x by 1 setting entered
in the M340_Register Offsets Setup (see page 70) page.
For data type %M with the legacy compatibility offset:
z enabled, the range is 1...32609, in increments of 16
z disabled, the range is 0...32608, in increments of 16
NOTE: This format is used for data conversion before the data is
delivered to its destination. %M references are supplied only as
binary data.
3 Repeat step 2 for each additional destination node to be configured.
4 Save (see page 68) your edits.
78 EIO0000000245 12/2009
Embedded Web Pages
See the configuration steps (see page 80), below, for specific configuration
procedures.
NOTE: The address area for input and output words must not overlap.
Access this page by navigating to Setup → Modbus Plus Peer Cop → Specific
Input
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
Modbus Plus Peer Cop - Specific Input Configuration Help
Security
Password Change Specific Input
Apply
Apply Undo
Undo Helpto Flash
Save
EIO0000000245 12/2009 79
Embedded Web Pages
Step Action
1 Open the Specific Input Configuration page by navigating to Setup →
Modbus Plus Peer Cop → Specific Input.
2 Configure specific Input data for the first source node—Source Node 1—by entering
configuration data for the following fields:
z Where to locate data received in M340 memory from each node that is
transmitting Specific Output data to the M340 EGD/M340. %M references must
begin on a 16 bit boundary.
z Length
Define the data field length for each destination in your program. The length is
indicated in words (16 discrete references per word) and can have a range of
words between 1 and 32 for each node.
z BIN/BCD
BCD or binary format for a %M reference destination. This format is used for data
conversion before the data is delivered to its destination. %M references are
supplied only as binary data and must begin on a 16 bit boundary.
Data Type Select the type of data to be sent:
z %M-I/O Bits
z %MW-Registers
Destination Type in the starting address in M340 memory (%M, %MW) where the
Reference received data will be located. %M references must begin on a 16 bit
boundary.
NOTE: The acceptable range of values depends upon the settings of
the following fields:
z the Data Type setting, above, and
z the Legacy Compatibility Offset 0x & 4x by 1 setting entered in
the M340 Register Offsets Setup (see page 70) page.
For data type %M with the legacy compatibility offset:
z enabled, the range is 1...32609, in increments of 16
z disabled, the range is 0...32608, in increments of 16
Length Type in the number of words to be received from each source node:
an integer value from 1...32. Each word contains 16 discrete
references.
NOTE: Setting the length to 0 disables Specific Input from this node.
Bin/BCD Select the data format:
z BCD (binary coded decimal)
z BIN (binary)
80 EIO0000000245 12/2009
Embedded Web Pages
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
M340 Routing Table Configuration Help
Security
Password Change M340 Routing Table
IP Setup Destination Modbus Plus Routing Index
Index
SNMP Agent
M340 Interface
IP Address
Register Offsets
Routing Table
EIO0000000245 12/2009 81
Embedded Web Pages
Step Action
1 Open the M340 Routing Table Configuration page by navigating to Setup →
M340 Interface → Routing Table.
2 Enter the first Modbus Plus path into the routing table at Destination Index 1, by
completing one or more of the Modbus Plus Routing Index values.
NOTE:
z By default the index will point an M340 communication request to a logical
Modbus Plus node. For example requests for index number 10 will be directed to
Modbus Plus node 10.0.0.0.0. The index however can redirect M340 request to
nodes on remote Modbus Plus networks. For example, to send an M340 request
to node 20 across a Modbus Plus bridge at address 15 using index value 10
would be entered as 15.20.0.0.0.
z The index for routing is 1-n by default. Index 1 points to Modbus Plus node 1.
However, node 1 or node 10 can be pointed in a completely different direction.
Pointing a Read_Var to node 10 could route the request off of the local Modbus
Plus network to a remote destination. M340 function blocks only support a single
index value.
Modbus Plus Enter integer values in up to five cells for a Modbus Plus routing
Routing Index index item (row). the 5 cells in a row provide the path information
(1 to 5) that steers messages along the proper route to reach its related
node destination. The value range of cell position 1 is 0 to 64; the
value range of cells 2 through 5 is 0 to 254.
A route of 0.0.0.0.0 disables the route for an Index. Any request
directed to an Index whose Modbus Plus Routing Index is
0.0.0.0.0, will result in following exception response: Target
Device Unavailable.
3 Add additional Modbus Plus path destination indexes, by repeating step 2 as many
times as necessary. You can enter up to 254 Modbus Plus routing indexes.
4 Save (see page 68) your edits.
82 EIO0000000245 12/2009
Embedded Web Pages
EIO0000000245 12/2009 83
Embedded Web Pages
IP Setup
The stored IP addressing parameters set in this page are applied during power-up
when:
z the ONES IP address rotary switch is set to STORED, or
z the module is configured to obtain its IP parameters from either a DHCP or a
BootP server, but no valid parameters are received
Access this page by navigating to Setup IP → Setup
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
IP SETUP Help
Security
Password Change
SNMP Agent
M340 Interface
IP Address IP Address
Register Offsets Subnet Mask
Routing Table
Default Gateway
Modbus Plus Peer Cop
Health
Global Output Apply Undo Save to Flash
Global Input
Specific Output
Specific Input
NOTE: A change made to the Ethernet Frame Format setting takes effect only
after you reboot the M340. Navigate to the reboot command at Control → Reboot.
84 EIO0000000245 12/2009
Embedded Web Pages
Step Action
1 Open the IP Setup page by navigating to Setup → IP Setup.
2 Input values for the following fields:
IP Address Type in 4 octet values—from 0...255—as a unique IP address.
Subnet Mask Type in 4 octet values—from 0...255.
Default Gateway (Optional) Type in 4 octet values. This value must reside on the
same subnet as the IP address.
3 Save (see page 68) your edits.
NOTE:
z Changes made to the stored IP configuration take effect only after you reboot the
M340 EGD. in the Reboot page. Navigate to the reboot command at Control →
Reboot.
z Changes to rotary switch settings take effect only after a power cycle of the M340
EGD.
EIO0000000245 12/2009 85
Embedded Web Pages
SNMP Basics
An SNMP (simple network management protocol) is a software component that
reports management data about the module to a system diagnostic tool such as
ConneXview.
The SNMP service includes:
z automatic discovery and identification of the M340 EGD by a diagnostic tool
z authentication checking by the M340 EGD of any SNMP system that sends
requests to it
Access this page by navigating to Setup → SNMP Agent
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
SNMP AGENT CONFIGURATION Help
Security Manager’s IP Address Enabled Traps
Password Change Manager 1 0 0 0 0
IP Setup Manager 2 0 0 0 0
Agent
SNMP Agent System Name M340 Modbus Plus
M340 Interface System Location North Andover, Ma
IP Address System Contact Local Support
Register Offsets
Routing Table Community Names
Get public
Modbus Plus Peer Cop
Set public
Health
Global Output Trap public
Global Input
Specific Output Apply Undo
Specific Input
86 EIO0000000245 12/2009
Embedded Web Pages
Step Action
1 In the Agent section, type in values for the following fields can be edited:
System Name User -defined, case-sensitive ASCII string describing
the device—up to 32 characters.
System Location Case-sensitive ASCII string describing the location of
the device—up to 32 characters.
System Contact Case-sensitive ASCII string identifying the contact
person for the device—up to 32 characters.
2 In the Community Names section, type in values for the following passwords:
Get Up to 16 printable ASCII characters; can be blank.
Set Up to 16 printable ASCII characters; can be blank.
Trap Up to 16 printable ASCII characters; can be blank.
NOTE: The default setting for each community name is public.
3 Save (see page 68) your edits. Power cycle the module so that your changes
will take effect.
EIO0000000245 12/2009 87
Embedded Web Pages
Password Change
Use this web page to edit the password that must be entered (along with a user
name) when accessing the setup web pages.
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
PASSWORD CHANGE Help
Security
Password Change Password Change
IP Setup Name
Password
SNMP Agent
New Password
M340 Interface
IP Address Confirm New Password
Register Offsets
Routing Table Apply Undo
Modbus Plus Peer Cop
Health
Global Output
Global Input
Specific Output
Specific Input
NOTE: The embedded web pages support the use of a single, non-editable user
name: USER. Both this user name and the password are case sensitive.
Step Action
1 Open the Password Change page by navigating to Setup → Security →
Password Change.
2 In the Password Change page, type in values for the following fields:
z Name: user name (always USER)
z Password: existing password (default = USER)
z New Password: new password
z Confirm New Password: new password (again)
NOTE: The password is case-sensitive.
3 Save (see page 68) your edits.
88 EIO0000000245 12/2009
Embedded Web Pages
EIO0000000245 12/2009 89
Embedded Web Pages
Diagnostic Page
Links
To access the service you require, click on a link:
z Ethernet Statistics
z Global (see page 93)
z Port (see page 94)
z Modbus Statistics
z TCP Port (see page 95)
z TCP Port Connections (see page 96)
90 EIO0000000245 12/2009
Embedded Web Pages
Overview
Use the Modbus Plus Peer Cop Health Setup page to configure:
z the timeout period the M340 EGD waits—after losing Global Input, Specific Input,
and Specific Output data communications—before setting inputs to their fall back
state, and
z the fall back behavior of inputs after the expiration of the timeout period
NOTE:
z The default memory location that the M340 EGD will write the 12 word Peer Cop
Health block to in the M340 PLC starts at %MW3072. Adjust the M340 PLC Unity
CPU memory configuration to accommodate this parameter.
z Modbus Plus Peer Cop health can be monitored in the M340 using the block
array.
z This page is accessed by navigating to Setup → Modbus Plus Peer Cop →
Health.
Home Documentation
Monitoring Diagnostic Control Maintenance Setup
Setup
Modbus Plus Peer Cop - Health Configuration Help
Security
Password Change Modbus Plus Peer Cop Health Parameters
IP Setup
Health Timeout 500 ms
SNMP Agent
M340 Interface
IP Address Input Fall Back Mode
Register Offsets
Routing Table Maintain Last Value
Modbus Plus Peer Cop Reset to Zero
Health
Global Output
Global Input
Specific Output
Specific Input
Apply Undo Save to Flash
Step Action
1 Configure the following two fields:
Health Use the spin control to set the timeout period the M340 EGD waits
Timeout before setting inputs to their fall back state. Enter a value from 20
to 2000 ms in increments of 20 ms (Default = 500 ms).
The timer is reset each time data is either successfully received or
transmitted.
EIO0000000245 12/2009 91
Embedded Web Pages
Step Action
Fallback Select the condition to which Global and Specific Inputs bits and
Mode registers will be set if the health timeout expires before receiving
new data:
z Maintain Last Value: retains the previous data
z Reset to Zero: sets the associated bit or register to zero
The default starting register for the 12 word Peer Cop health block in the M340 is
%MW3072. Make sure that the M340 CPU memory is configured to accommodate
this address range.
NOTE: These 12 words that are transferred to the M340 are monitored by logic.
Also, a Peer Cop health memory location must be configured for a writing status
block to the M340.
92 EIO0000000245 12/2009
Embedded Web Pages
z Click on the Reset Counters button to re-set the Frames Received and Frames
Transmitted counting statistics to 0.
NOTE: The counting statistics on this page are automatically refreshed.
Access this page by navigating to Diagnostic → Ethernet Statistics → Global
EIO0000000245 12/2009 93
Embedded Web Pages
94 EIO0000000245 12/2009
Embedded Web Pages
EIO0000000245 12/2009 95
Embedded Web Pages
The statistics on this page include the following data for each active connection:
Field Description
Index The connection sequence number.
Remote IP The IP address of the connected remote device.
Remote Port The port number of the connected remote device used to make
the connection.
Local Port The port number of theM340 EGD used to make the
connection.
Transmitted Messages A count of the number of Modbus messages sent over this
connection.
Received Messages A count of the number of Modbus messages received on this
connection.
Sent Errors A count of the number of Modbus TCP sent errors detected
over this connection.
96 EIO0000000245 12/2009
Embedded Web Pages
z access the Clear Errors button, which resets the counting statistics to zero
Access this page by navigating to Diagnostic → MB+ Proxy Statistics →
Network Statistics
EIO0000000245 12/2009 97
Embedded Web Pages
The following table contains details related to the statistic fields on this page.
Statistic Description
Node Information
Node Address The Modbus Plus address of the M340 EGD.
Node Type The node types include:
z Unknown
z Controller
98 EIO0000000245 12/2009
Embedded Web Pages
You can also access the Clear Errors button, which resets the counting statistics to
zero.
Access this page by navigating to Diagnostic → MB+ Proxy Statistics →
M340 Communication
The following table contains details related to the statistic fields on this page.
Statistic Description
Communication Errors to M340 (Ethernet Interface
%M Read – Error The number of unsuccessful read requests of configured I/O bits on the
Count M340 PLC.
%MW Read – The number of unsuccessful read requests of configured registers on the
Error Count M340 PLC.
%M Write – Error The number of unsuccessful write requests of configured I/O bits on the
Count M340 PLC.
%MW Write – The number of unsuccessful write requests of configured registers on the
Error Count M340 PLC.
Connection The number of healthy TCP sockets the M340 EGD has open to the
Status M340. Up to 5 sockets are supported simultaneously. A value of:
z 5, indicates a healthy connection
z less than 5, indicates a degraded connection. The smaller the value,
the more degraded the connection.
Read/Write A count of read and write exception messages received by the M340
Exception Errors EGD from the M340 since the last power-up or clear.
EIO0000000245 12/2009 99
Embedded Web Pages
SNMP Statistics
This section provides the function codes used by the M340 EGD for communication
requests from the M340's Read_Var (see page 123), Write_VAR, and the
Data_Exch functions. These function codes are also used by the M340 EGD to
transfer data to and from the M340 as needed for Modbus Plus Peer Cop Data,
Global Data, as well as requests from other Modbus Plus network devices.
The following table lists the codes that may be returned in a Modbus exception
response.
Utilities
6
Introduction
This chapter describes the various utilities used by the M340 EGD.
Updating Firmware
Description
The M340 EGD firmware can be updated using the Unity Loader tool. You must do
the following before updating the firmware.
z Disconnect the M340 EGD from the Modbus Plus network.
z Disconnect the M340 EGD from the M340 PLC.
z Connect the M340 EGD to the PC and make sure they are configured on the
same IP subnet address.
CAUTION
COMMUNICATION LOSS
During the firmware download:
z Do not power OFF the PC.
z Do not shut down Unity Loader.
You must have Unity Loader installed on your computer before you can update the
module’s firmware. Follow the below steps if you do not have Unity Loader on your
computer.
Step Action
1 The Unity Loader tool can be found on www.schneider-electric.com.
2 In the search form input field, enter Unity Loader.
3 Select the appropriate entry for Unity Loader Software.
4 Follow the instructions provided to save the file to your local computer.
5 Run the program’s setup and follow the onscreen instructions to install Unity
Loader.
Open Unity Loader on your PC and follow the steps below to update the firmware
for the M340 EGD.
Step Action
1 In the Project tab, select Ethernet from the Media drop-down menu and enter the IP address of the M340
EGD in the Address field.
Enable Transfer
Name: Name:
Version: Version:
Enable Transfer
Name:
Last Build:
Enable Transfer
User Web Files: Data Storage: User Web Files: Data Storage:
Step Action
2 Open the Firmware tab and click the ... button to browse to the location of the M340 EGD firmware. Select
the firmware file.
M340EG D
M340EGD.Idx
Step Action
3 Click the Connect button.
PLC PLC
MAC Address:
Step Action
4 Make sure the arrow in the middle of the screen is green, and then click Transfer.
NOTE: Only click Transfer if the arrow is green. A yellow arrow indicates that the firmware on your
computer is newer than the file selected for transfer, and a red arrow indicates that the computer’s firmware
is not compatible with the M340 EGD.
PC PLC
M340EGD WEB 00.01 TREK2 M340EGD WEB M340EGD WEB 00.01 M340 Modbusplus Proxy WEB
Media: Ethernet Address: 192.168.1.50 PLC: RUN State: OK Free Space: 99,999,999
NOTE: Do not use the Stop PLC/Start PLC button when updating firmware for the M340 EGD.
Step Action
5 Click yes on the two pop-up windows that appear. A third window then appears, which indicates the transfer
status with the blue bars at the bottom of the screen.
Initializing transfer
Abort
Initializing transfer
Transfer completed
Abort
Step Action
7 Click Disconnect, and then close the window.
PC PLC
M340EG D WEB 00.01 TREK2 M340EG D WEB M340EGD WEB 00.01 M340 Modbusplus Proxy WEB
Media: Ethernet Address: 192.168.1.50 PLC: RUN State: OK Free Space: 99,999,999
Perform the steps in the following table to run the M340 EGD utility:
Step Action
1 The Unity Loader tool can be found on the M340 Modbus Plus Proxy
Documentation and User Tools CD shipped with the M340 EGD.
2 Select the User Tools folder on the CD.
3 Select the M340 EGD Configuration Utility folder.
4 Select and open the M340 EGD configuration utility.
Disconnected
Actions
Backup M340 EGD Configuration Restore M340 EGD Configuration M340 EGD Configuration Report
Step Action
5 Enter a valid IP address in the M340 EGD for M340 IP Address field.
85.16.16.1 Connecting
Actions
Backup M340 EGD Configuration Restore M340 EGD Configuration M340 EGD Configuration Report
Appendices
Introduction
These technical appendices supplement the information in this guide.
Introduction
As the M340 EGD exchanges data on Ethernet with the M340 CPU Ethernet
interface, and with Modbus Plus nodes using the embedded Modbus Plus interface,
there are variables which affect overall communications performance.
M
3
4
0
M340 may also open up to 8
E
G
additional Modbus server sockets
D on Proxy for Modbus function
such as Read_Var, etc.
NOTE: The M340 supports more than 8 Modbus server sockets, but processes only
8 transactions per CPU scan.
The M340 EGD uses the M340 Ethernet Modbus server to exchange all data
including:
z Peer Cop
z Global data
z Peer Cop health block
z Modbus functions originating from Modbus Plus
The M340 EGD polls the M340 to read/write peer cop and global data every 50 ms.
Event communications such as MSTR or SCADA requests originating from Modbus
Plus are passed immediately
These transactions from the M340 EGD are queued in memory by the M340 until
the end of the M340 CPU scan. At the end of scan, the M340 CPU services the
Ethernet communications interface and exchanges data to receive incoming
requests from the M340 EGD, and send outgoing responses that have been solved
in the M340 logic application. Note that on Modbus Plus, interfaces are also serviced
at the end of CPU scan. This is the case of Modbus Plus CPU interfaces and option
cards such as the Quantum NOM module.
Therefore, the combination of the M340 EGD poll rate and the M340 CPU scan time
for your application are some of the key components in calculating system
performance. For the calculations in this section, CPU represents the M340 CPU
scan and EPR represents the Ethernet interface poll rate by the M340 EGD to the
M340.
Drive or token
RTU rotation
HMI
3 1
Proxy
M M340
SCADA 3 2
Modbus Plus 4
0
token rotation time Ethernet
E
G
D
6
5 7
4
Compact Compact
token
rotation
Replacing a
Compact PLC Rack
with a Modicon M340 Rack B
and M340 EGD
Overview
The following example shows the dimensions and requirements when replacing two
5-slot Compact PLC racks with one 6-slot Modicon M340 rack and the M340 EGD.
NOTE: The M340 EGD is 0.30 in/0.76 cm taller than the Compact racks.
5.60 in
14.22 cm
16.84 in
42.77 cm
0.5 in
1.27 cm
16.84 in
42.77 cm
C
Using the Read_Var Function Block
Introduction
The M340 can be programmed to direct a Read or Write_Var request through the
M340 EGD to read and write data to Modbus Plus nodes. This application example
details how this is done.
Read_Var Example
This example directs a Read_Var to read 10 words at starting register 400300 from
Modbus Plus node address 2. The M340 EGD Ethernet interface address is
192.168.1.50.
ADDM Block
The ADDM block is used for convenient addressing. The block converts a string
address into a 5 byte array which can be tied to the input of the Read_Var. The
Read_Var is the block that actually executes the read function. There are other
variations of the ADDM block, this is just one example. For additional information,
refer to the Help available in Unity regarding this block.
The format shown is:
'CPU_CoPro{192.168.1.50}2'
Note the use of apostrophes and braces in the address syntax.
z ‘CPU_CoPro{192.168.1.50}2’
CPU_CoPro represents the network name assigned in the Unity communications
network. This directs the block to reference which PLC interface will be used for
the read.
z ‘CPU_CoPro{192.168.1.50}2’
In the braces is the IP address of the Ethernet device or the M340 EGD if you are
directing the Read_Var to read from Modbus Plus devices. In this case the IP
address of the M340 EGD is 192.168.1.50
z ‘CPU_CoPro{192.168.1.50}2’
The 2 outside the braces represents the Modbus Plus address of the device you
wish to communicate. In this case the address is Modbus Plus node 2.
Read_Var Block
Inputs
z ADR
ADR receives in input string with the addressing parameters from the ADDM
block described above.
z OBJ
The data type you want to read:
z %MW for word
z %M for bits
z NUM
The starting memory address to read on the slave/remote device. In this
example, the read requests 10 words from the slave are starting register address
300.
z NB
The number of registers to read.
z GEST
A 4 byte register array of management parameters that describe the current
communication and operation status. See Unity Help for details on how the status
is decoded.
13 6 22 0 0
The routing table will take the read to node 2 and redirect it using the routing table
values. A Read_Var sent to Modbus Plus node 2 in this example is routed to a
Modbus Plus bridge at node 13, onto another Modbus Plus network. Then it is
routed to another Modbus Plus bridge at destination node 6.
Index
B
AC
C M340 interface page, 81
M340 interface page, 70
configuration
MB+ proxy statistics page, 97
Modbus Plus communication, 19
MB+ Proxy Statistics page
M340 communication, 99
D Modbus Plus network statistics, 97
Modbus Plus Peer Cop, 73, 75
Diagnostic page Modbus Plus Peer Cop page, 77, 79, 91
accessing, 90 Modbus statistics, 95
services, 90 Modbus statistics page
dimensions, 52 TCP port connections, 96
mounting, 52
mounting plate, 34
E
edits
save to flash, 68 S
embedded web pages, 61 save to flash, 68
embedded web server security page, 88
getting started, 62 services
introduction, 63 embedded web pages, 61
Ethernet statistics page, 94 Setup page
Ethernet global statistics, 93 accessing, 67
services, 67
SNMP
I configuring agent, 87
IP address settings, 49 SNMP agent page, 86
IP parameters, 93
IP setup page, 84
T
TCP/IP statistics, 93
M
M340 communication statistics, 99
W
web pages, 61, 84, 86
Diagnostic page, 90
Ethernet port statistics, 94
Ethernet TCP/IP statistics, 93
global input, 75
global output, 73
health, 91
M340 communication statistics, 99
M340 EGD Home page, 65
Modbus Plus network statistics, 97
Modbus TCP port statistics, 95
password change, 88
register offsets, 70
routing table, 81
Setup page, 67
SNMP statistics, 100
specific input, 79
specific output, 77
TCP messaging statistics, 96
web server
getting started, 62
introduction, 63