Lexium 32M - Ethernet TCP - IP Modbus
Lexium 32M - Ethernet TCP - IP Modbus
Lexium 32M - Ethernet TCP - IP Modbus
0198441113843 07/2020
LXM32M
Ethernet TCP/IP Module (Protocol Modbus-
TCP)
Fieldbus manual
07/2020
0198441113843.00
www.schneider-electric.com
The information provided in this documentation contains general descriptions and/or technical character-
istics of the performance of the products contained herein. This documentation is not intended as a
substitute for and is not to be used for determining suitability or reliability of these products for specific user
applications. It is the duty of any such user or integrator to perform the appropriate and complete risk
analysis, evaluation and testing of the products with respect to the relevant specific application or use
thereof. Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for
misuse of the information contained herein. If you have any suggestions for improvements or amendments
or have found errors in this publication, please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of this
document on any medium whatsoever without permission of Schneider Electric, given in writing. You also
agree not to establish any hypertext links to this document or its content. Schneider Electric does not grant
any right or license for the personal and noncommercial use of the document or its content, except for a
non-exclusive license to consult it on an "as is" basis, at your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and using this
product. For reasons of safety and to help ensure compliance with documented system data, only the
manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant instructions must
be followed.
Failure to use Schneider Electric software or approved software with our hardware products may result in
injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
© 2020 Schneider Electric. All rights reserved.
2 0198441113843 07/2020
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Fieldbus Devices on the Modbus TCP Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Chapter 2 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.1 Modbus TCP Fieldbus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Modbus TCP Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Modbus TCP Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.2 Modbus TCP Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Connection management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Modbus Response to a Modbus Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Reading and Writing Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
I/O Scanning to "Drive Profile Lexium" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
I/O Scanning - Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
I/O Scanning - Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
I/O Scanning - Parameter Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.3 Modbus Services - "Function Code" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
"Function Code" 3 (Read Multiple Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
"Function Code" 8 (Diagnostics) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
"Function Code" 16 (Write Multiple Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
"Function Code" 23 (ReadWrite Multiple Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
"Function Code" 43 (Encapsulated Interface Transport) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Example of "Function Code" 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Example of "Function Code" 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Chapter 3 Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Installation of the Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Chapter 4 Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Preparation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Performing a “First Setup” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Network Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Settings for Communication with I/O Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Settings for Communication without I/O Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Chapter 5 Operating States and Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.1 Operating States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Indication of the Operating State via Fieldbus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Changing the Operating State via Fieldbus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.2 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Indicating an Operating Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Starting and Changing an Operating Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Overview of Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Operating Mode Jog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Operating Mode Electronic Gear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Operating Mode Profile Torque . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Operating Mode Profile Velocity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Operating Mode Profile Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Operating Mode Homing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Operating Mode Motion Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
0198441113843 07/2020 3
Chapter 6 Diagnostics and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Fieldbus Communication Error Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Fieldbus Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Fieldbus Status LEDs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Error Indication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4 0198441113843 07/2020
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, service, 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.
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.
QUALIFICATION OF PERSONNEL
Only appropriately trained persons who are familiar with and understand the contents of this manual and
all other pertinent product documentation are authorized to work on and with this product. These persons
must have sufficient technical training, knowledge and experience and be able to foresee and detect
potential hazards that may be caused by using the product, by modifying the settings and by the
mechanical, electrical and electronic equipment of the entire system in which the product is used.
The qualified person must be able to detect possible hazards that may arise from parameterization,
modifying parameter values and generally from mechanical, electrical, or electronic equipment.
The qualified person must be familiar with the standards, provisions, and regulations for the prevention of
industrial accidents, which they must observe when designing and implementing the system.
0198441113843 07/2020 5
INTENDED USE
The products described or affected by this document are, along with software, accessories and options,
servo-drive systems for three-phase servo motors. The products are intended for industrial use according
to the instructions, directions, examples and safety information contained in the present user guide and
other supporting documentation.
The product may only be used in compliance with all applicable safety regulations and directives, the
specified requirements and the technical data.
Prior to using the products, you must perform a risk assessment in view of the planned application. Based
on the results, the appropriate safety-related measures must be implemented.
Since the products are used as components in an overall machine or process, you must ensure the safety
of persons by means of the design of this overall machine or process.
Operate the products only with the specified cables and accessories. Use only genuine accessories and
spare parts.
Any use other than the use explicitly permitted as described herein is prohibited and may result in
unanticipated hazards.
6 0198441113843 07/2020
About the Book
At a Glance
Document Scope
The information provided in this manual supplements the user guide of the drive LXM32M.
The functions described in this manual are only intended for use with the associated product. You must
read and understand the appropriate user guide.
Validity Note
This manual applies to the module Ethernet TCP/IP (protocol Modbus-TCP) for the product LXM32M,
module identification ETH (VW3A3616).
For product compliance and environmental information (RoHS, REACH, PEP, EOLI, etc.), go to
www.schneider-electric.com/green-premium.
The technical characteristics of the devices described in the present document also appear online. To
access the information online, go to the Schneider Electric home page
https://www.se.com/ww/en/download/.
The characteristics that are described in the present document should be the same as those character-
istics that appear online. In line with our policy of constant improvement, we may revise content over time
to improve clarity and accuracy. If you see a difference between the document and online information, use
the online information as your reference.
Related Documents
You can download these technical publications and other technical information from our website at
www.schneider-electric.com/en/download.
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, power outage
and restart.
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.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment 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.
0198441113843 07/2020 7
1
For additional information, refer to NEMA ICS 1.1 (latest edition), “Safety Guidelines for the Application,
Installation, and Maintenance of Solid State Control” and to NEMA ICS 7.1 (latest edition), “Safety
Standards for Construction and Guide for Selection, Installation and Operation of Adjustable-Speed Drive
Systems” or their equivalent governing your particular location.
For reasons of Internet security, TCP/IP forwarding is disabled by default. Therefore, you must manually
enable TCP/IP forwarding. However, doing so may expose your network to possible cyberattacks if you do
not take additional measures to protect your enterprise. In addition, you may be subject to laws and
regulations concerning cybersecurity.
WARNING
UNAUTHENTICATED ACCESS AND SUBSEQUENT NETWORK INTRUSION
Observe and respect any and all pertinent national, regional and local cybersecurity and/or personal
data laws and regulations when enabling TCP/IP forwarding on an industrial network.
Isolate your industrial network from other networks inside your company.
Protect any network against unintended access by using firewalls, VPN, or other, proven security
measures.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Consult the Schneider Electric Cybersecurity Best Practices for additional information.
Use the latest firmware version. Visit https://www.se.com or contact your Schneider Electric representative
for information on firmware updates that may involve Ethernet connections.
Standard Description
IEC 61131-2:2007 Programmable controllers, part 2: Equipment requirements and tests.
ISO 13849-1:2015 Safety of machinery: Safety related parts of control systems.
General principles for design.
EN 61496-1:2013 Safety of machinery: Electro-sensitive protective equipment.
Part 1: General requirements and tests.
ISO 12100:2010 Safety of machinery - General principles for design - Risk assessment and risk
reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part 1: General
requirements
ISO 14119:2013 Safety of machinery - Interlocking devices associated with guards - Principles
for design and selection
ISO 13850:2015 Safety of machinery - Emergency stop - Principles for design
IEC 62061:2015 Safety of machinery - Functional safety of safety-related electrical, electronic,
and electronic programmable control systems
IEC 61508-1:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: General requirements.
IEC 61508-2:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Requirements for electrical/electronic/programmable
electronic safety-related systems.
IEC 61508-3:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Software requirements.
IEC 61784-3:2016 Industrial communication networks - Profiles - Part 3: Functional safety
fieldbuses - General rules and profile definitions.
2006/42/EC Machinery Directive
2014/30/EU Electromagnetic Compatibility Directive
8 0198441113843 07/2020
Standard Description
2014/35/EU Low Voltage Directive
In addition, terms used in the present document may tangentially be used as they are derived from other
standards such as:
Standard Description
IEC 60034 series Rotating electrical machines
IEC 61800 series Adjustable speed electrical power drive systems
IEC 61158 series Digital data communications for measurement and control – Fieldbus for use in
industrial control systems
Finally, the term zone of operation may be used in conjunction with the description of specific hazards, and
is defined as it is for a hazard zone or danger zone in the Machinery Directive (2006/42/EC) and
ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific products cited in the present
documentation. For more information concerning the individual standards applicable to the products
described herein, see the characteristics tables for those product references.
0198441113843 07/2020 9
10 0198441113843 07/2020
LXM32M
Introduction
0198441113843 07/2020
Chapter 1
Introduction
Introduction
Overview
Different products with a Modbus TCP interface can be operated via a fieldbus. Modbus TCP is a fieldbus
that allows multiple devices to be networked.
Features
The product supports the following functions via Modbus TCP:
Automatic IP address assignment via BOOTP/DHCP or manual IP address
Commissioning via commissioning software
Reading and writing parameters
Controlling the drive with or without motion libraries
Monitoring inputs and outputs
Diagnostics and monitoring functions
0198441113843 07/2020 11
Introduction
12 0198441113843 07/2020
LXM32M
Basics
0198441113843 07/2020
Chapter 2
Basics
Basics
The information contained in this chapter provides a general overview of the various protocols of the
fieldbus as it applies to the equipment in the present document. It is not intended as a thorough treatment
of the subject, nor is it a sufficient basis to design and deploy a fieldbus network in any given application.
The following information is intended to be consulted in an as needed, as is basis. Only appropriately
trained persons who are familiar with and have the education and training necessary to understand the
contents of this information, as well as all other pertinent product documentation, are authorized to work
on and with this equipment.
0198441113843 07/2020 13
Basics
Section 2.1
Modbus TCP Fieldbus
14 0198441113843 07/2020
Basics
Function Principle
Modbus TCP is an Ethernet fieldbus. Modbus TCP describes the transmission of the Modbus protocol via
the Ethernet interface and the TCP/IP transport and network layers.
The Modbus TCP client (master) connects to the Modbus TCP server (slave). Once the connection is
established, the client sends Modbus requests to the server. These requests are processed by the server.
The result is returned to the client as a Modbus response.
The Modbus TCP services are identical to the Modbus RTU services.
Bus Topology
Modbus TCP allows for the use of hubs or switches. Use switches in the case of high bus loads with many
devices.
The maximum length of a segment is 100 m (328 ft). A segment consists of devices and hubs. A network
can be subdivided into several segments by means of gateways or switches. For a fast bus cycle, keep the
cables short and use a star topology.
The transmission rate is 10 or 100 MBit/s in half-duplex mode. If switches are used, transmission is also
possible in full duplex mode.
Client-Server Model
The Modbus messaging service implements client-server communication between devices connected by
means of a TCP/IP network. Modbus TCP does not use an object dictionary.
The client-server model is based on four types of messages:
Request: Message sent by the client to initiate a transaction.
Indication: Request as received by the server.
Response: Response message to the request sent by the server.
Confirmation: Response as received by the client.
A communication cycle consists of the request from the client (request from the fieldbus master) and a
response from the server (response from the fieldbus slave). Modbus request and Modbus response have
the same structure. If an error is detected on receipt of the Modbus request or if the slave cannot execute
the action, the slave sends an error message in the Modbus response.
The drive analyzes the Modus requests received. Depending on the Modbus request, the drive triggers
actions or provides requested data.
0198441113843 07/2020 15
Basics
Overview
The Modbus protocol defines a Modbus PDU (Protocol Data Unit) which is independent of the underlying
communication layers. This Modbus PDU consists of the fields “Function Code” and “Data”. Depending on
the mapping to the different network protocols, the Modbus PDU is extended by additional fields in the
Modbus ADU (Application Data Unit). The Modbus PDU and the Modbus ADU constitute the Modbus
message, also referred to as “Frame”.
Structure of a Modbus message
The “Function Code” of a message specifies the Modbus service to be triggered. The “Data” field can
contain additional information, depending on the “Function Code”.
Due to the encapsulation of “Function Code” and “Data” in the Modbus PDU, different Modbus versions
can use same Modbus services and object model.
The maximum size of a Modbus ADU is 260 bytes. The size of an embedded Modbus PDU is 253 bytes.
MBAP Header
The MBAP header contains the information allowing the recipient to uniquely identify a message.
The MBAP header has a length of seven bytes and contains the following fields:
16 0198441113843 07/2020
Basics
Section 2.2
Modbus TCP Communication
0198441113843 07/2020 17
Basics
Connection management
Establishing of a Connection
The Modbus TCP server allows for TCP connections via the default port 502. A client can establish a new
connection via this port. If the client is to exchange data with a remote server, a new client connection via
remote port 502 must be established.
Closing a Connection
After the Modbus communication between the client and a server is finished, the client causes the
connection used to be closed.
The server does not close the connection under normal circumstances.
However, when errors are detected, the server closes the connection, for example:
Communication error detected
Communication inactivity
Maximum number of connections reached
The product can manage up to 8 TCP connections. If an attempt is made to establish a further connection
beyond this maximum, the oldest unused connection is closed. If it is impossible to close the oldest unused
connection, a new connection cannot be established.
18 0198441113843 07/2020
Basics
Overview
The Modus server generates a Modbus response after having processed a Modbus request.
Two types of Modbus responses are possible:
Positive Modbus response
The "Function Code" in the Modbus response corresponds to the "Function Code" in the Modbus
request.
Negative Modbus response
The client receives pertinent information on error detection during processing;
The "Function Code" in the Modbus response corresponds to the "Function Code" in the Modbus
request + 80h.
The "Exception Code" indicates the cause of the error.
If a syntactically incorrect Modbus PDU (Protocol Data Unit) is transmitted, the connection is terminated.
In the case of other errors, a negative Modbus response is sent.
0198441113843 07/2020 19
Basics
Overview
Parameters are processed as 32 bit values. 16 bit values must also be processed as 32 bit values. Two
consecutive 16 bit parameters must be read or written to process a 16 bit parameter. The Modbus address
of the first 16-bit parameter must be used.
If several consecutive parameters are to be processed, a single Modbus command with the corresponding
Modbus address and the length indication is sufficient.
NOTE: This does not apply to reading and writing parameters with addresses in the range from 17408
(4400 hex) to 17663 (44FF hex).
In this range, only a single parameter can be addressed with one Modbus command.
Example
Reading the parameter CTRL1_KPp "Position controller P gain".
Modbus address: 4614
When the parameter CTRL1_KPp with the Modbus parameter address 4614 and length 2 is read, the two
parameter addresses 4614 and 4615 are read. Result:
Address Value
4614 0000 hex
4615 00C8 hex
20 0198441113843 07/2020
Basics
Overview
I/O scanning is used for cyclic interchange of data between master and slave.
I/O scanning must be configured on the master. The master can use 2 different approaches for I/O
scanning:
"Function Code" 23 (17h), Read-Write Multiple Registers
"Function Code" 3 (03h), Read Multiple Registers and "Function Code" 16 (10h), Write Multiple
Registers
The read value is 0 until the first write command is executed.
Settings
The following setting must be made on the master before you can use I/O scanning:
The "Unit Identifier" is 255.
The Modbus parameter address is 0.
The data length is 13.
In addition, you can use up to 3 mappable parameters. If these parameters are used, the data length
changes to 15, 17 or 19.
The Modbus addresses for I/O scanning do not differ from the addresses for normal Modbus access.
Output - Input
Output and input refer to the direction of data transmission from the perspective of the master.
Output: Commands from the master to the slave
Input: Status messages from the slave to the master
0198441113843 07/2020 21
Basics
Overview
The table below shows the structure of the cyclic data for the commands from the master to the product.
See the user guide of the drive for a description of the parameters.
Word “dmControl”
The word "dmControl" is used to set the operating state and the operating mode.
See chapters Changing the Operating State via Fieldbus (see page 54) and Starting and Changing an
Operating Mode (see page 57) for a detailed description of the bits.
22 0198441113843 07/2020
Basics
Overview
The table below shows the structure of the cyclic data for the status messages from the product to the
master. See the user guide for a description of the parameters.
Word “driveStat”
The current operating state is indicated with the "driveStat" word.
For a detailed description of the bits, see chapter Indication of the Operating State via Fieldbus
(see page 53).
Word “mfStat”
The word "mfStat" is used to indicate the current operating mode.
For a detailed description of the bits, see chapter Indicating an Operating Mode (see page 56).
Word “motionStat”
The word "motionStat" is used to provide information on the motor and profile generator.
Bit Meaning
0 Positive limit switch triggered(1)
1 Negative limit switch triggered(1)
2 ... 5 Reserved
6 MOTZ: Motor at a standstill
7 MOTP: Motor movement in positive direction
8 MOTN: Motor movement in negative direction
9 Setting via parameter DS402intLim
10 Setting via parameter DPL_intLim
11 TAR0: Profile generator at standstill
12 DEC: Profile generator decelerates
13 ACC: Profile generator accelerates
14 CNST: Profile generator moves at constant velocity
15 Reserved
(1) With firmware version ≥V01.14
0198441113843 07/2020 23
Basics
Word “driveInput”
The word "driveInput" is used to indicate the state of the digital signal inputs.
Word “_I_act”
The word "_I_act" indicates the actual current. The value corresponds to the parameter _I_act.
24 0198441113843 07/2020
Basics
Overview
The master can request a parameter value from the slave or modify a parameter value via the parameter
channel. Each parameter can be addressed via the index and subindex.
Word “Index”
The word "Index" contains the parameter address.
See the user guide of the drive for a list of the parameters.
Byte “Subindex”
The byte "Subindex" must be set to the value 00 hex.
Byte “Ctrl”
Byte "Ctrl" contains the request to read or write a parameter.
The transmit data contains the information whether a parameter is to be read or written. The receive data
contains the information whether the read request or the write request were successful.
Transmit data:
Ctrl Function
02 hex No request
12 hex Read request
22 hex Write request (word)
32 hex Write request (double word)
Receive data:
Ctrl Function
02 hex Request not yet completed
12 hex Read request or write request successfully completed (word)
22 hex Read request or write request successfully completed (double word)
72 hex Error message
Only one request can be processed at a time. The slave provides the response until the master sends a
new request. If a response includes parameter values, the slave responds with the current value in the
case of a repetition.
Read requests are only executed by the slave if the value changes from 02 hex to 12 hex. Write requests
requests are only executed by the slave if the value changes from 02 hex to 22 hex or to 32 hex.
0198441113843 07/2020 25
Basics
Receive data:
Receive data:
See the user guide of the drive for information on the error numbers.
26 0198441113843 07/2020
Basics
Section 2.3
Modbus Services - "Function Code"
0198441113843 07/2020 27
Basics
Description
The "Function Code" 3 (Read Multiple Registers) allows you to read several consecutive parameters,
starting at any address.
Modbus Request
Structure of the Modbus request:
Modbus Response
Structure of the positive Modbus response:
28 0198441113843 07/2020
Basics
Description
The "Function Code" 8 (Diagnostics) allows you to read diagnostics data of the slave.
Modbus Request
Structure of the Modbus request:
Modbus Response
Structure of the positive Modbus response:
Sub-Function Code
The following diagnostics functions are available:
0198441113843 07/2020 29
Basics
Description
The "Function Code" 16 (Write Multiple Registers) allows you to write several consecutive parameters,
starting at any address.
Modbus Request
Structure of the Modbus request:
Modbus Response
Structure of the positive Modbus response:
30 0198441113843 07/2020
Basics
Description
The "Function Code" 23 (ReadWrite Multiple Registers) allows you to read and write several consecutive
parameters, starting at any address.
Modbus Request
Structure of the Modbus request:
Modbus Response
Structure of the positive Modbus response:
0198441113843 07/2020 31
Basics
Description
The "Function Code" 43 / 14 (Read Device Identification) allows you to read device-specific data.
Modbus Request
Structure of the Modbus request:
Modbus Response
Structure of the positive Modbus response:
Object ID
The following object IDs are available:
32 0198441113843 07/2020
Basics
Description
Reading an error memory entry. Since the Modbus addresses of the parameters of an error memory entry
are contiguous (ascending order), a single Modbus request is sufficient.
Parameters _ERR_number (15362), _ERR_class (15364), _ERR_time (15366) and _ERR_qual
(15368).
Modbus Request
Structure of the Modbus request:
Modbus Response
Structure of the positive Modbus response:
0198441113843 07/2020 33
Basics
Description
Writing of the software limit switches. Since these parameters have consecutive addresses, a single
Modbus request is sufficient:
Parameters MON_swLimP (1544) and MON_swLimN (1546).
Modbus Request
Structure of the Modbus request:
Modbus Response
Structure of the positive Modbus response:
34 0198441113843 07/2020
LXM32M
Installation
0198441113843 07/2020
Chapter 3
Installation
Installation
Mechanical Installation
Electrostatic discharge (ESD) may permanently damage the module either immediately or over time.
NOTICE
EQUIPMENT DAMAGE DUE TO ESD
Use suitable ESD measures (for example, ESD gloves) when handling the module.
Do not touch internal components.
Failure to follow these instructions can result in equipment damage.
Install the module according to the instructions in the user guide of the drive.
Cable Specifications
Shield: Required
Twisted Pair: Required
PELV: Required
Cable composition: 8 x 0.25 mm2 (8 x AWG 22)
Maximum cable length: 100 m (328 ft)
Note the pertinent information on equipotential bonding conductors in the user guide of the drive.
Use pre-assembled cables to reduce the risk of wiring errors.
Pin Assignment
A Port A
B Port B
0198441113843 07/2020 35
Installation
36 0198441113843 07/2020
LXM32M
Commissioning
0198441113843 07/2020
Chapter 4
Commissioning
Commissioning
0198441113843 07/2020 37
Commissioning
Preparation
WARNING
LOSS OF CONTROL
Ensure that connection monitoring is enabled.
Set the shortest, practical monitoring time cycles to detect communication interruptions as quickly as
possible.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only start the system if there are no persons or obstructions in the zone of operation.
Do not write values to reserved parameters.
Do not write values to parameters unless you fully understand the function.
Run initial tests without coupled loads.
Verify correct word order for fieldbus communication.
Do not establish a fieldbus connection unless you have fully understood the communication principles.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Required Components
The following is required for commissioning:
Commissioning software “Lexium32 DTM Library”
https://www.se.com/ww/en/download/document/Lexium_DTM_Library/
Fieldbus converter for the commissioning software for connection via the commissioning interface
Modbus TCP master
User guide of the drive LXM32M
38 0198441113843 07/2020
Commissioning
0198441113843 07/2020 39
Commissioning
40 0198441113843 07/2020
Commissioning
0198441113843 07/2020 41
Commissioning
Network Settings
42 0198441113843 07/2020
Commissioning
0198441113843 07/2020 43
Commissioning
44 0198441113843 07/2020
Commissioning
WARNING
UNINTENDED EQUIPMENT OPERATION DUE TO UNLIMITED ACCESS
Verify that you have set the correct master IP address.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Set the IP address of the master for I/O scanning with the parameters EthIPmaster1 ... EthIPmaster4.
0198441113843 07/2020 45
Commissioning
46 0198441113843 07/2020
Commissioning
WARNING
LOSS OF CONTROL
Ensure that connection monitoring is enabled.
Set the shortest, practical monitoring time cycles to detect communication interruptions as quickly as
possible.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Set communication monitoring for I/O scanning with the parameter EthMbScanTimeout.
0198441113843 07/2020 47
Commissioning
48 0198441113843 07/2020
Commissioning
Overview
It is also possible to establish communication without I/O scanning.
The following settings must be made to establish communication without I/O scanning:
Activation of communication monitoring
Exclusive use of access channel
WARNING
LOSS OF CONTROL
Ensure that connection monitoring is enabled.
Set the shortest, practical monitoring time cycles to detect communication interruptions as quickly as
possible.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Communication monitoring triggers an error of error class 2 if communication is interrupted. After the error
message is reset, communication monitoring is active again.
0198441113843 07/2020 49
Commissioning
50 0198441113843 07/2020
LXM32M
Operating States and Operating Modes
0198441113843 07/2020
Chapter 5
Operating States and Operating Modes
0198441113843 07/2020 51
Operating States and Operating Modes
Section 5.1
Operating States
Operating States
52 0198441113843 07/2020
Operating States and Operating Modes
0198441113843 07/2020 53
Operating States and Operating Modes
Bits 8 ... 15 of the word "dmControl" are used to set the operating state.
In the case of an access, the bits respond to a 0->1 change to trigger the corresponding function.
If a request for changing the operating state is not successful, this request is ignored. There is no error
response.
If the bits 8 ... 15 are set to 0, the power stage will be disabled.
Ambivalent bit combinations are treated in accordance with the following priority list (highest priority bit 8,
lowest priority bit 14 and bit 15):
Bit 8 (disable power stage) prior to bit 9 (enable power stage)
Bit 10 ("Quick Stop") prior to bit 11 ("Fault Reset")
Bit 13 (execute "Halt") prior to bit 14 (clear "Halt") and bit 15 (resume operating mode interrupted by
"Halt")
In the case of an error of error class 2 or error class 3, a "Fault Reset" can only be performed when bit 9
(enable power stage) is no longer set.
54 0198441113843 07/2020
Operating States and Operating Modes
Section 5.2
Operating Modes
Operating Modes
0198441113843 07/2020 55
Operating States and Operating Modes
56 0198441113843 07/2020
Operating States and Operating Modes
Via the following values the operating mode can be activated or target values can be changed:
Target values, depending on required operating mode
Operating mode in “dmControl”, bits 0 ... 4 (MODE).
Action for this operating mode in bit 5 and bit 6 (ACTION)
Toggle bit 7 (MT)
The following chapters describe the possible operating modes, functions and the corresponding target
values.
0198441113843 07/2020 57
Operating States and Operating Modes
58 0198441113843 07/2020
Operating States and Operating Modes
Status Information
The word "driveStat" provides information on the operating mode.
0198441113843 07/2020 59
Operating States and Operating Modes
Status Information
The word "driveStat" provides information on the operating mode.
60 0198441113843 07/2020
Operating States and Operating Modes
Status Information
The word "driveStat" provides information on the operating mode.
0198441113843 07/2020 61
Operating States and Operating Modes
Status Information
The word "driveStat" provides information on the operating mode.
62 0198441113843 07/2020
Operating States and Operating Modes
Status Information
The word "driveStat" provides information on the operating mode.
0198441113843 07/2020 63
Operating States and Operating Modes
Status Information
The word "driveStat" provides information on the operating mode.
64 0198441113843 07/2020
Operating States and Operating Modes
Status Information
The word "driveStat" provides information on the operating mode.
0198441113843 07/2020 65
Operating States and Operating Modes
66 0198441113843 07/2020
LXM32M
Diagnostics and Troubleshooting
0198441113843 07/2020
Chapter 6
Diagnostics and Troubleshooting
0198441113843 07/2020 67
Diagnostics and Troubleshooting
Verifying Connections
A properly operating fieldbus is essential for evaluating status and error messages.
If the product cannot be addressed via the fieldbus, first verify the connections.
Verify the following connections:
System power supply
Supply connections
Fieldbus cables and wiring
Fieldbus connection
68 0198441113843 07/2020
Diagnostics and Troubleshooting
Fieldbus Test
0198441113843 07/2020 69
Diagnostics and Troubleshooting
Overview
The status of the module is indicated by four LEDs.
Overview of the LEDs at the module
70 0198441113843 07/2020
Diagnostics and Troubleshooting
Error Indication
Asynchronous Errors
Asynchronous errors are triggered by internal monitoring (for example, temperature) or by external
monitoring (for example, limit switch). An error response is initiated if an asynchronous error is detected.
Asynchronous errors are indicated in the following way:
Transition to operating state 7 Quick Stop Active or to operating state 9 Fault.
Information in the words "driveStat", "mfStat", "motionStat" and "driveInput" during I/O scanning, see
chapter I/O Scanning - Input (see page 23)
Error number is written to parameter _LastError
The parameters _LastError or _LastWarning can be used in the input mapping for I/O scanning. This
way, error numbers are easy to read out.
Modbus Response
Depending on the type of processing, two types of Modbus responses are possible:
Positive Modbus response
The "Function Code" in the Modbus response corresponds to the "Function Code" in the Modbus
request.
Negative Modbus response
The client receives pertinent information on error detection during processing;
The "Function Code" in Modbus response corresponds to the "Function Code" in the Modbus request
+ 80h.
The "Exception Code" indicates the cause of the error.
If a syntactically incorrect Modbus PDU (Protocol Data Unit) is transmitted, the connection is terminated.
In the case of other other error, a negative Modbus response is sent.
0198441113843 07/2020 71
Diagnostics and Troubleshooting
72 0198441113843 07/2020
LXM32M
Glossary
0198441113843 07/2020
Glossary
C
CIP
Common Industrial Protocol, general specification for communication between fieldbus devices.
Client
First transmitter, then recipient of fieldbus messages in the client-server relationship. Starts transmission
with a transmission to the server; the reference point is the server object dictionary.
D
DOM
Date of manufacturing: The nameplate of the product shows the date of manufacture in the format
DD.MM.YY or in the format DD.MM.YYYY. For example:
31.12.19 corresponds to December 31, 2019
31.12.2019 corresponds to December 31, 2019
E
Error
Discrepancy between a detected (computed, measured or signaled) value or condition and the specified
or theoretically correct value or condition.
Error class
Classification of errors into groups. The different error classes allow for specific responses to errors, for
example by severity.
F
Factory setting
Factory settings when the product is shipped
Fault
Fault is a state that can be caused by an error. Further information can be found in the pertinent standards
such as IEC 61800-7, ODVA Common Industrial Protocol (CIP).
Fault reset
A function used to restore the drive to an operational state after a detected error is cleared by removing
the cause of the error so that the error is no longer active.
I
Input
Output and input refer to the direction of data transmission from the perspective of the master. Input: Status
messages from the slave to the master, see also Output.
M
Master
Active bus device that controls the data traffic on the network.
O
Output
Output and input refer to the direction of data transmission from the perspective of the master. Output:
Commands from the master to the slave, see also Input.
0198441113843 07/2020 73
Glossary
P
Parameter
Device data and values that can be read and set (to a certain extent) by the user.
Persistent
Indicates whether the value of the parameter remains in the memory after the device is switched off.
Q
Quick Stop
The Quick Stop function can be used for fast deceleration of a movement in the case of an error or via a
command.
U
User-defined unit
Unit whose reference to motor movement can be determined by the user via parameters.
74 0198441113843 07/2020
LXM32M
Index
0198441113843 07/2020
Index
B Q
before you begin qualification of personnel, 5
safety information, 5
I
intended use, 6
M
Modbus TCP
ADU, 16
client-server model, 15
function principle, 15
MBAP header, 16
PDU, 16
protocol, 16
SNMP, 15
topology, 15
O
operating states, 52
P
parameter AccessExcl, 50
parameter EthIPgate1, 42
parameter EthIPgate2, 42
parameter EthIPgate3, 43
parameter EthIPgate4, 43
parameter EthIPmask1, 41
parameter EthIPmask2, 41
parameter EthIPmask3, 41
parameter EthIPmask4, 41
parameter EthIPmaster1, 45
parameter EthIPmaster2, 45
parameter EthIPmaster3, 46
parameter EthIPmaster4, 46
parameter EthIpMode, 40
parameter EthIPmodule1, 40
parameter EthIPmodule2, 40
parameter EthIPmodule3, 40
parameter EthIPmodule4, 40
parameter EthMbIPswap1, 43
parameter EthMbIPswap2, 43
parameter EthMbIPswap3, 44
parameter EthMbIPswap4, 44
parameter EthMbScanner, 45
parameter EthMbScanTimeout, 48
parameter EthMode, 42
parameter EthOptMapInp1, 46
parameter EthOptMapInp2, 46
parameter EthOptMapInp3, 47
parameter EthOptMapOut1, 47
parameter EthOptMapOut2, 47
parameter EthOptMapOut3, 47
parameter EthRateSet, 42
parameter MBnode_guard, 49
0198441113843 07/2020 75