Inverted signalsInverted signals are represented by an overline, for example STO_A or
STO_B.
GlossaryExplanations of special technical terms and abbreviations.
0198441113843, V1.01, 01.2012
Modbus-TCP module7
About this manual
Further reading
User Associationhttp://www.modbus.org
LXM32M
IndexList of keywords with references to the corresponding page numbers.
8Modbus-TCP module
0198441113843, V1.01, 01.2012
L
N
LXM32M
1Introduction
1 Introduction
1
Different products with a Modbus TCP interface can be operated in
the same fieldbus. Modbus TCP provides a common basis for interchanging commands and data between the network devices.
Figure 1: Fieldbus products on the network
FeaturesThe product supports the following functions via Modbus TCP:
•
Automatic IP address assignment via BOOTP or DHCP
•
Automatically obtaining configuration data via the FDR (Fast
Device Replacement) service
•
Commissioning via commissioning software
•
Diagnostics and configuration via integrated web server
•
Reading and writing parameters
•
Controlling the drive
•
Monitoring inputs and outputs
•
Diagnostics and monitoring functions
0198441113843, V1.01, 01.2012
Modbus-TCP module9
1 Introduction
LXM32M
10Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
2 Before you begin - safety information
2Before you begin - safety information
2.1Qualification 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. In addition,
these persons must have received safety training to recognize and
avoid hazards involved. 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 changing the settings and by the mechanical, electrical and electronic equipment of the entire system in which the product is used.
All persons working on and with the product must be fully familiar with
all applicable standards, directives, and accident prevention regulations when performing such work.
2
2.2
Intended use
The functions described in this manual are only intended for use with
the basic product; you must read and understand the appropriate
product manual.
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 product, you must perform a risk assessment in view
of the planned application. Based on the results, the appropriate
safety measures must be implemented.
Since the product is used as a component in an entire system, you
must ensure the safety of persons by means of the design of this
entire system (for example, machine design).
Operate the product only with the specified cables and accessories.
Use only genuine accessories and spare parts.
Any use other than the use explicitly permitted is prohibited and can
result in hazards.
Electrical equipment should be installed, operated, serviced, and
maintained only by qualified personnel.
The product must NEVER be operated in explosive atmospheres
(hazardous locations, Ex areas).
0198441113843, V1.01, 01.2012
Modbus-TCP module11
2 Before you begin - safety information
2.3Hazard categories
Safety instructions to the user are highlighted by safety alert symbols
in the manual. In addition, labels with symbols and/or instructions are
attached to the product that alert you to potential hazards.
Depending on the seriousness of the hazard, the safety instructions
are divided into 4 hazard categories.
DANGER indicates an imminently hazardous situation, which, if not
avoided, will result in death or serious injury.
WARNING indicates a potentially hazardous situation, which, if not
avoided, can result in death, serious injury, or equipment damage.
CAUTION indicates a potentially hazardous situation, which, if not
avoided, can result in injury or equipment damage.
LXM32M
DANGER
WARNING
CAUTION
CAUTION
CAUTION used without the safety alert symbol, is used to address
practices not related to personal injury (e.g. can result in equipment
damage).
12Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
2.4Basic information
2 Before you begin - safety information
WARNING
LOSS OF CONTROL
•
The designer of any control scheme must consider the potential
failure modes of control paths and, for certain critical functions,
provide a means to achieve a safe state during and after a path
failure. Examples of critical control functions are emergency stop,
overtravel stop, power outage and restart.
•
Separate or redundant control paths must be provided for critical
functions.
•
System control paths may include communication links. Consideration must be given to the implication of unanticipated transmission delays or failures of the link.
•
Observe all accident prevention regulations and local safety
guidelines.
•
Each implementation of the product must be individually and thoroughly tested for proper operation before being placed into service.
Failure to follow these instructions can result in death or serious injury.
1)
1)
For USA: 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”.
0198441113843, V1.01, 01.2012
Modbus-TCP module13
2 Before you begin - safety information
2.5Standards and terminology
Technical terms, terminology and the corresponding descriptions in
this manual are intended to use the terms or definitions of the pertinent standards.
In the area of drive systems, this includes, but is not limited to, terms
such as "safety function", "safe state", "fault", "fault reset", "failure",
"error", "error message", "warning", "warning message", etc.
Among others, these standards include:
•
IEC 61800 series: "Adjustable speed electrical power drive systems"
•
IEC 61158 series: "Industrial communication networks - Fieldbus
specifications"
•
IEC 61784 series: "Industrial communication networks - Profiles"
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.
3 Basics
3
3.1.2Bus topology
The Modbus TCP services are identical to the Modbus RTU services.
Star and tree topologies can be used. It is possible to use hubs or
switches. In the case of high bus loads with many devices, it is recommended to use a switches.
The maximum length of a segment is 100 m. A segment consists of
devices and hubs. A network can be subdivided into several segments
by means of gateways or switches. Short cables and a star topology
are recommended to achieve a fast bus cycle.
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.
0198441113843, V1.01, 01.2012
Modbus-TCP module15
Modbus Client
Modbus Server
RequestIndication
Response
Confirmation
3 Basics
3.1.3Client / server model
LXM32M
Figure 2: 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 4 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 occurs on receipt of the Modbus
request or if the slave cannot execute the action, the slave sends an
error message in the Modbus response.
3.1.4Network service SNMP
SNMP agent ConneXviewThe product supports SNMP version 1.0. An SNMP agent must be
The product analyzes the Modus requests received. Depending on the
Modbus request, the product triggers actions or provides requested
data.
The Internet community has developed the SNMP standard "Simple
Network Management Protocol" to support the management of different network devices by means of a single system.
The Network Management System can exchange data with SNMP
devices. The tasks of the network management system comprise
monitoring, control and configuration of network components as well
as error detection and error messaging.
used to monitor a network with SNMP. Schneider Electric offers the
tool ConneXview for such purposes.
16Modbus-TCP module
0198441113843, V1.01, 01.2012
Function codeDataMBAP Header
MODBUS PDU
MODBUS TCP/IP ADU
LXM32M
3.2Modbus TCP protocol
The Modbus protocol defines a so-called 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 so-called Modbus
ADU (Application Data Unit). The Modbus PDU and the Modbus ADU
constitute the Modbus message, also referred to as "Frame".
Figure 3: Structure of a Modbus message
The "Function Code" of a message specified the Modbus service to be
triggered. The "Data" field can contain additional information, depending on the "Function Code".
3 Basics
Due to the encapsulation of "Function Code" and "Data" in the Modbus PDU, the Modbus services and the object model can be the same
in the case of all Modbus versions.
In the case of a "Function Code" for which the "Data" field in the Modbus PDU has a fixed length, the "Function Code" is sufficient.
In the case of a "Function Code" for which the "Data" field in the Modbus request or the Modbus response has a variable amount of data,
the "Data" field contains a byte counter.
The maximum size of a Modbus ADU is 260 bytes. The size of an
embedded Modbus PDU is 253 bytes.
NOTE: The fields are encoded in Big Endian format (highest-value
byte first).
0198441113843, V1.01, 01.2012
Modbus-TCP module17
3 Basics
3.2.1MBAP header
LXM32M
The MBAP header contains the information allowing the recipient to
uniquely identify a message. This is even possible if a message is split
into several packets for transmission.
Explicit and implicit length rules as well as the use of a CRC-32 error
check code (on Ethernet) results in an infinitesimal chance of undetected corruption to a request or response message.
DesignThe MBAP header has a length of 7 bytes and contains the following
fields:
FieldLengthDescription
Transaction Identifier2 bytesIdentification of a Modbus
request or Modbus response.
Protocol Identifier2 bytesValue 0 means Modbus proto-
col.
Length2 bytesNumber of bytes to follow.
Unit Identifier1 byteIdentification of a slave con-
nected to another bus via a
serial line.
•
Transaction Identifier
The field "Transaction Identifier" is used for "Pairing". The server
copies the "Transaction Identifier" of the Modbus request to the
Modbus response.
•
Protocol Identifier
The field "Protocol Identifier" is used to identify the protocol. The
Modbus protocol is identified by the value 0.
•
Length
The "Length" field is a byte counter for the following fields ("Unit
Identifier", "Function Code" and "Data").
•
Unit Identifier
The field "Unit Identifier" is used to identify the server in the slave.
18Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
3.3Modbus TCP communication
3.3.1Connection management
Establishing of a connectionThe 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.
Modbus data transferA Modbus request is sent via a suitable, open connection. This TCP
connection is found using the IP address of the remote device. The
connection remains open for all Modbus communication. Up to 8
simultaneous connections are possible.
As described in the next chapter, a Modbus client can initialize several
Modbus transactions without having to wait for the previous transaction to be finished.
Closing a connectionAfter 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.
3 Basics
However, when errors occur and in special cases, the server closes
the connection, for example:
•
Communication errors
•
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, the new connection is refused.
0198441113843, V1.01, 01.2012
Modbus-TCP module19
3 Basics
3.3.2Modbus response to a Modbus request
The Modus server generates a Modbus response after having processed a Modbus request.
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.
LXM32M
Exception Code
01Illegal Function Code The "Function Code" is unknown to the
02Illegal Data AddressDepends on the Modbus request
03Illegal Data ValueDepends on the Modbus request
04Server FailureThe server was unable to properly termi-
05AcknowledgeThe server has accepted the Modbus
06Server BusyThe server was unable to accept the
0AGateway ProblemThe gateway path is unavailable.
0BGateway ProblemThe targeted device does not respond.
NameDescription
server.
nate processing.
request. However, the execution takes a
relatively long time. The server therefore
only returns an acknowledgement confirming receipt of the service request.
Modbus request. It is the responsibility of
the application on the client to determine
whether and when to re-send the request.
The gateway generates this error.
20Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
3.3.3Reading and writing parameters
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 first Modbus
address must be specified.
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 (4400h) to 17663 (44FFh). In this
range, only a single parameter can be addressed with one Modbus
command.
ExampleReading 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:
AddressValue
46140000
461500C8
3 Basics
h
h
0198441113843, V1.01, 01.2012
Modbus-TCP module21
3 Basics
3.3.4I/O scanning to "Drive Profile Lexium"
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 of I/O scanning:
NOTE: The read value is 0 until the first write command is executed.
SettingsThe 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.
LXM32M
The Modbus addresses for I/O scanning do not differ from the
addresses for normal Modbus access.
Output - InputOutput 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
22Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
3.3.4.1 I/O scanning Output
3 Basics
The table below shows the structure of the cyclic data for the commands from the master to the product. See the product manual for a
description of the parameters.
ParChParameters can be read or written via "ParCh", see chapter
"3.3.4.3 Parameter channel".
dmControlThe word "dmControl" is used to set the operating state and the oper-
ating mode.
See chapters "6.1.2 Changing the operating state" and
"6.2.2 Starting and changing an operating mode" for a detailed
description of the bits.
RefA32, RefB32The two double words "RefA32" and "RefB32" are used to set two val-
ues for the operating mode. The meaning depends on the operating
mode; it is described in the chapters on the individual operating
modes.
Ramp_v_acc / Ramp_v_decThe double words "Ramp_v_acc" and "Ramp_v_dec" are used to set
the acceleration and the deceleration. They correspond to the parameters of the same name. See the product manual for a description.
EthOptMapOut1 ... EthOptMap-
Out3
The double words EthOptMapOut1 ... EthOptMapOut3 contain selectable parameters, see chapter
"5.7.3 Setting the mapping for I/O scanning".
0198441113843, V1.01, 01.2012
Modbus-TCP module23
3 Basics
3.3.4.2 I/O scanning Input
LXM32M
The table below shows the structure of the cyclic data for the status
messages from the product to the master. See the product manual for
a description of the parameters.
ParChParameters can be read or written via "ParCh", see chapter
"3.3.4.3 Parameter channel".
driveStatThe current operating state is indicated with the "driveStat" word.
For a detailed description of the bits, see chapter
"6.1.1 Indication of the operating state".
mfStatThe word "mfStat" is used to indicate the current operating mode.
For a detailed description of the bits, see chapter
"6.2.1 Indicating and monitoring the operating mode".
motionStatThe word "motionStat" is used to provide information on the motor and
profile generator.
bitMeaning
0 ... 5Reserved
6MOTZ: Motor at a standstill
7MOTP: Motor movement in positive direction
8MOTN: Motor movement in negative direction
9PWIN: Motor within position window
10Reserved
11TAR0: Profile generator at standstill
12DEC: Profile generator decelerates
13ACC: Profile generator accelerates
14CNST: Profile generator moves at constant velocity
15Reserved
24Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
3 Basics
driveInputThe word "driveInput" is used to indicate the status of the digital signal
inputs.
bitSignalFactory setting
0
1
2
3
4
5
6 ... 15
_p_actThe double word "_p_act" indicates the actual position. The value cor-
responds to the parameter _p_act.
_v_actThe double word "_v_act" indicates the actual velocity. The value cor-
responds to the parameter _v_act.
_I_actThe word "_I_act" is used to provide information on the total motor
current. The value corresponds to the parameter _I_act.
DI0
DI1
DI2
DI3
DI4
DI5
-
Signal input function Freely Available
Signal input function Reference Switch (REF)
Signal input function Positive Limit Switch (LIMP)
Signal input function Negative Limit Switch (LIMN)
Signal input function Freely Available
Signal input function Freely Available
Reserved
EthOptMapInp1 ... EthOptMapInp3The double words EthOptMapInp1 ... EthOptMapInp3 contain selecta-
ble parameters. The product manual provides descriptions of the
parameters EthOptMapInp1 ... EthOptMapInp3 which explain parameter mapping.
0198441113843, V1.01, 01.2012
Modbus-TCP module25
76543210Byte
Ctrl
Subindex
Index
PV
3 Basics
3.3.4.3 Parameter channel
LXM32M
The master can request a parameter value from the slave or change a
parameter value via the parameter channel. Each parameter can be
uniquely addressed via the index and subindex.
Figure 4: Parameter channel
CtrlByte "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:
CtrlFunction
02
12
22
32
h
h
h
h
No request
Read request
Write request (word)
Write request (double word)
Receive data:
CtrlFunction
02
12
22
72
h
h
h
h
Request not yet completed
Read request or write request successfully completed (word)
Read request or write request successfully completed (double
word)
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.
NOTE: Read requests are only executed by the slave if the value
changes from 02h to 12h. Write requests requests are only executed
by the slave if the value changes from 02h to 22h or to 32h.
Subindex
The byte "Subindex" must be set to the value 00h.
IndexThe word "Index" contains the parameter address.
See the product manual for a list of the parameters.
26Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
PVThe double word "PV" contains the parameter value.
In the case of a read request, the value in the transmit data has no
significance. The receive data contains the parameter value.
In the case of a write request, the transmit data contains the value to
be written to the parameter. The receive data contains the parameter
value.
If a read request or a write request were not successful, the double
word "PV" contains the error number of the error.
Example: Reading a parameterIn the example, the program number of the product is read from the
parameter _prgNoDEV. The parameter _prgNoDEV has the parameter address 258 (01h 02h).
The parameter value read has the decimal value 91200 which corresponds to 01h 64h 40h.
Transmit data:
CtrlSubindexIndexPV
12
h
Receive data:
00
h
01h 02
h
00h 00h 00h 00
3 Basics
h
Example: Writing of an invalid
parameter
CtrlSubindexIndexPV
22
h
00
h
01h 02
h
00h 01h 64h 40
h
In this example, the value of a non-existent parameter is to be
changed. The parameter has the parameter address 101 (00h 65h).
The value of the parameters is to be changed to 222 (DEh).
Before the slave can accept a new request, the value 02h must first be
transmitted in byte "Ctrl".
Since the slave cannot address the parameter, a synchronous error
message is transmitted with the receive data. Byte "Ctrl" is set to 72h.
Double word "PV" is set to the error number (error number 1101h:
Parameter does not exist).
Transmit data:
CtrlSubindexIndexPV
32
h
00
h
00h 65
h
00h 00h 00h DE
h
Receive data:
CtrlSubindexIndexPV
72
h
00
h
00h 65
h
00h 00h 11h 01
h
See the product manual for information on the error numbers.
0198441113843, V1.01, 01.2012
Modbus-TCP module27
3 Basics
3.4Modbus services - "Function Code"
The table below provides an overview of the available Modbus services:
LXM32M
"Function
Code"
3Read Multiple RegistersReading a parameter
8DiagnosticsDiagnostics
16Write Multiple RegistersWriting a parameter
23Read/Write Multiple RegistersReading and writing parame-
43
Subcode14
90UMAS File Transfer (Upload)–
Meaning under ModbusMeaning from device per-
spective
ters
Read Device Identification–
3.4.1"Function Code" 3 (Read Multiple Registers)
This "Function Code" 3 (Read Multiple Registers) allows you to read
several consecutive parameters, starting at any address.
Modbus requestStructure of the Modbus request:
FieldBytesValueMeaning
Function Code13 = 03
Starting Address2(various)Address of the first parameter to be read
Quantity Of Registers
22 * nNumber of 16 bit values to be read
h
Read Multiple Registers
(1 parameter has the value 2 since a parameter
consists of a 32 bit value)
Modbus responseStructure of the positive Modbus response:
FieldBytesValueMeaning
Function Code13 = 03
Byte Count14 * nNumber of data bytes
Registers Value4 * n(various)Parameter values
h
Read Multiple Registers
Structure of the negative Modbus response
FieldBytesValueMeaning
Function Code103h + 80h = 83
Exception Code101h ... 04
h
h
Read Multiple Registers
See chapter
"3.3.2 Modbus response to a Modbus request"
28Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
3 Basics
3.4.2"Function Code" 8 (Diagnostics)
This "Function Code" 8 (Diagnostics) allows you to read diagnostics
data of the slave.
Modbus requestStructure of the Modbus request:
FieldBytesValueMeaning
Function Code18 = 08
Sub-function Code2(various)Diagnostics function
Data2(various)Data (depending on diagnostics function)
h
Modbus responseStructure of the positive Modbus response:
FieldBytesValueMeaning
Function Code18 = 08
Sub-function Code2(various)Diagnostics function
Data2(various)Diagnostics data
h
Structure of the negative Modbus response
FieldBytesValueMeaning
Function Code108h + 80h = 88
Exception Code101h ... 04
h
h
Diagnostics
Diagnostics
Diagnostics
See chapter
"3.3.2 Modbus response to a Modbus request"
Sub-function CodeThe following diagnostics functions are available:
Sub-function CodeDiagnostics function
00Return Query DataReturn request as a response
01Restart Communication Option Re-initialize the communication port
02Return Diagnostic RegisterReturn the error number in the case of synchronous errors
03(reserved)–
04Force Listen Only ModeForce "Listen Only" mode
05 ... 09(reserved)–
10Clear Counters and Diagnostic
Register
11Return Bus Message CountReturn number of detected "Bus Message"s
12Return Bus Communication
Error Count
13Return Bus Exception Error
Count
14 ... 15(reserved)–
16Return Slave NAK CountReturn number of detected "Slave Not-Acknowledged"s
17Return Slave Busy CountReturn number of detected "Slave Busy"s
18Return Bus Char Overrun
Count
>18(reserved)–
Clear all statistical counters
Return number of detected "Bus Communication Error"s
This "Function Code" 43 / 14 (Read Device Identification) allows you
to read device-specific data.
Modbus requestStructure of the Modbus request:
FieldBytesValueMeaning
Function Code143 = 2B
Modbus Encapsula-
114 = 0E
h
h
ted Interface Type
Read Device ID
101Read all objects
Code
Object ID10x00Object ID
Modbus responseStructure of the positive Modbus response:
FieldBytesValueMeaning
Function Code143 = 2B
Modbus Encapsula-
114 = 0E
ted Interface Type
Read Device ID
101Corresponds to the Modbus request
Code
Conformity Level102Fixed value
More Follows100Fixed value
Next Object ID100Fixed value
Number Of Objects 103Number of objects
Object ID1Object ID, see table
Object Length1Object length
Object Value(various)Object data (various)
h
h
Encapsulated Interface Transport
Fixed value 14 (Read Device Identification)
Encapsulated Interface Transport
Fixed value 14 (Read Device Identification)
LXM32M
Structure of the negative Modbus response
FieldBytesValueMeaning
Function Code12Bh + 80h = AB
Exception Code101h ... 04
h
h
Encapsulated Interface Transport
See chapter
"3.3.2 Modbus response to a Modbus request"
Object IDThe following object IDs are available:
Object IDObject nameValue
00
01
03
h
h
h
vendor nameManufacturer name
product code„xxxxxxxxxxxx“ (see type code)
revision"Vxx.yyy" (e.g. "V02.001")
32Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
3.4.6Examples
3.4.6.1 Example of "Function Code" 3
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 requestStructure of the Modbus request:
FieldBytesValueMeaning
Function Code13Read Multiple Registers
Starting Address215362 (3C02h)Address of the first parameter to be read
Quantity Of Registers
FieldBytesValueMeaning
Function Code13Read Multiple Registers
Byte Count116Number of bytes: 8 bytes of data
Registers Value1632 bit value
28Number of the 16 bit values to be read = 8
Modbus responseStructure of the positive Modbus response:
_ERR_number, 15362 (error number)
32 bit value
32 bit value
32 bit value
_ERR_class, 15364 (error class)
_ERR_time, 15366 (error time)
_ERR_qual, 15368 (error qualifier)
3 Basics
3.4.6.2 Example of "Function Code" 16
Writing of the software limit switches. Since these parameters also
have consecutive addresses, a single Modbus request is sufficient:
Parameters MON_swLimP (1544) and MON_swLimN (1546).
Modbus requestStructure of the Modbus request:
FieldBytesValueMeaning
Function Code116Write Multiple Registers
Starting Address21544 (608h)Address of the first parameter to be written
Quantity Of Registers
Byte Count18Number of bytes: 8 bytes of data
Registers Value832 bit value
FieldBytesValueMeaning
Function Code116Write Multiple Registers
Starting Address21544 (608h)Address of the parameter
Quantity Of Registers
24Number of parameters = 4 (8 bytes of data)
MON_swLimP, 1544
32 bit value
MON_swLimN, 1546
Modbus responseStructure of the positive Modbus response:
24Number of parameters = 4 (8 bytes of data)
0198441113843, V1.01, 01.2012
Modbus-TCP module33
3 Basics
LXM32M
34Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
4Installation
SIGNAL AND DEVICE INTERFERENCE
Signal interference can cause unexpected responses of the device.
•
Install the wiring in accordance with the EMC requirements.
•
Verify compliance with the EMC requirements.
Failure to follow these instructions can result in death, serious
injury or equipment damage.
4.1Installation of the module
4 Installation
4
WARNING
CAUTION
DESTRUCTION DUE TO ESD
Electrostatic discharge (ESD) can cause immediate or later destruction of the module or the device.
•
Use suitable ESD measures (IEC 61340-5-2) when handling the
module.
•
Do not touch any internal components.
Failure to follow these instructions can result in equipment
damage.
▶
Install the module according to the instructions in the product manual.
DescriptionOrder no.
Fieldbus module EtherNet/IP (module identification
ETH) with 2 x RJ45 connection. For EtherNet/IP
and Modbus-TCP
VW3A3616
0198441113843, V1.01, 01.2012
Modbus-TCP module35
Slot 3
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
1
8
1
8
A
B
A
B
4 Installation
4.2Electrical installation
LXM32M
Cable specifications
Pin assignment
Shield:Required, both ends grounded
Twisted Pair:Required
PELV:Required
Cable composition:8 * 0.25 mm2 (8 * AWG 22)
Maximum cable length:100 m
Special features:-
▶
Note the pertinent information on equipotential bonding conductors
in the product manual.
▶
Use pre-assembled cables to reduce the risk of wiring errors.
Figure 5: Pin assignment
PinSignalMeaning
1
2
3
4
5
6
7
8
Tx+
Tx-
Rx+
-
-
Rx-
-
-
Ethernet transmit signal +
Ethernet transmit signal -
Ethernet receive signal +
-
-
Ethernet receive signal -
-
-
36Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
5Commissioning
5 Commissioning
5
WARNING
LOSS OF CONTROL
The product is unable to detect an interruption of the network link if
connection monitoring is not active.
•
Verify that connection monitoring is on.
•
The shorter the time for monitoring, the faster the detection of the
interruption.
Failure to follow these instructions can result in death, serious
injury or equipment damage.
WARNING
UNINTENDED OPERATION
5.1
•
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 the use of the word sequence with fieldbus communication.
•
Do not establish a fieldbus connection unless you have fully
understood the communication principles.
•
Only start the system if there are no persons or obstructions in
the hazardous area.
Failure to follow these instructions can result in death, serious
injury or equipment damage.
Commissioning the device
For installation in the network, the device must first be properly installed (mechanically and electrically) and commissioned.
▶
Commission the device as per product manual.
0198441113843, V1.01, 01.2012
Modbus-TCP module37
Fault Edit Value Unit
Op
Mon
Conf
Fault Edit Value Unit
Op
Mon
Conf
<1s
ESC
Fault Edit Value Unit
Op
Mon
Conf
Fault Edit Value Unit
Op
Mon
Conf
IP
Subnet
<1s
2 x
<1s
ESC
1.
2.
<1s
2 x
<1s
ESC
1.
2.
<1s
2 x
<1s
ESC
1.
2.
<1s
2 x
<1s
ESC
1.
2.
Fault Edit Value Unit
Op
Mon
Conf
Fault Edit Value Unit
Op
Mon
Conf
FaultEditValueUnit
OpMonConf
FaultEditValueUnit
OpMonConf
FaultEditValueUnit
OpMonConf
<1s
2 x
<1s
ESC
1.
2.
FaultEditValueUnit
OpMonConf
Fault Edit Value Unit
Op
Mon
Conf
<1s
2 x
<1s
ESC
1.
2.
<1s
2 x
<1s
ESC
1.
2.
<1s
2 x
<1s
ESC
1.
2.
<1s
2 x
<1s
ESC
1.
2.
Fault Edit Value Unit
Op
Mon
Conf
<1s
2 x
<1s
ESC
1.
2.
FaultEditValueUnit
OpMonConf
<1s
2 x
<1s
ESC
1.
2.
Fault Edit Value Unit
Op
Mon
Conf
<1s
2 x
<1s
ESC
1.
2.
Fault Edit Value Unit
Op
Mon
Conf
<1s
2 x
<1s
ESC
1.
2.
=
=
=
5 Commissioning
5.2"First Setup"
LXM32M
A "First Setup" is required when the controller supply is switched on
for the first time or after the factory settings have been restored.
Switching on the device
First Setup via HMI
■
The power stage supply is switched off.
▶
Disconnect the product from the the fieldbus during commissioning
in order to avoid conflicts by simultaneous access.
▶
Switch on the controller supply.
◁
The device goes through an initialization routine, all LEDs are tested, all segments of the 7-segment display and the status LEDs
light up.
After the initialization, the fieldbus interface must be configured. The
product is configured via the integrated HMI or the commissioning
software.
Figure 6: First Setup via the integrated HMI
38Modbus-TCP module
0198441113843, V1.01, 01.2012
LXM32M
5 Commissioning
Type of network address assign-
ment
▶
Select the type of network address assignment.
The type of network address assignment is set via the parameter
EthIpMode (iPMd).
Verify that an accessible BOOTP server is available on the network.
5 Commissioning
0198441113843, V1.01, 01.2012
Modbus-TCP module41
5 Commissioning
5.2.3Assignment of the network address via DHCP
■
EthIpMode has been set to DHCP (dhcp).
▶
Verify that an accessible DHCP server is available on the network.
▶
Set a number that is unique in the network via dhcn.
NOTE: This setting is only required if you want to use an FDR
server.
The number is entered at the 13th, 14th and 15th digit of the
device name.
Example: LEXIUM_SERVO001
In the commissioning software, the full device name can be displayed and changed.
▶
Activate the FDR service via EFdr.
See chapter "6.3.3 FDR service (Fast Device Replacement)" for
additional information on the FDR service.
LXM32M
Parameter name
HMI menu
HMI name
EthFdrEnable
ConF → CoMConF → FSu-
EFdr
DescriptionUnit
Minimum value
Factory setting
Maximum value
FDR service
0 / Off / oFF: FDR service disabled
1 / On / on: FDR service enabled
Enable Ethernet service "Fast Device
Replacement" (FDR).
If FDR is enabled, the DHCP server must
support FDR, otherwise no IP address can
be obtained via DHCP.
Do not write values to parameters unless you fully understand the
function.
•
Run initial tests without coupled loads.
•
Verify the use of the word sequence with fieldbus communication.
•
Do not establish a fieldbus connection unless you have fully
understood the communication principles.
•
Only start the system if there are no persons or obstructions in
the hazardous area.
Failure to follow these instructions can result in death, serious
injury or equipment damage.
The chapter "Operation" describes the basic operating states, operating modes and functions of the product.
0198441113843, V1.01, 01.2012
Modbus-TCP module
51
15
X_ERR14X_END13X_ADD112-
11
-
10
QS
9
RF8HALT
7
WARN6ERROR5-
4
-3S TAT E2S TAT E1S TAT E0S TAT E
driveStat
6 Operation
6.1Operating states
6.1.1Indication of the operating state
The current operating state is indicated with the "driveStat" word.
Figure 7: Structure of driveStat
BitNameMeaning
0 ... 3STATECurrent operating state (binary coded)
4 ... 5-Reserved
6ERRORAn error has occurred (error classes 1 ... 3)
7WARNA warning has occurred (error class 0)
8HALT"Halt" is active
9RFHoming valid
10QS"Quick Stop" is active
11 ... 12 -Reserved
13X_ADD1Operating mode-specific information
14X_ENDOperating mode terminated
15X_ERROperating mode terminated with error
LXM32M
52
0198441113843, V1.01, 01.2012
Modbus-TCP module
15
CU
14
CH
13
SH
12
-
11
FR
10
QS
9
EN
8
DS
7
MT6ACTION5ACTION4MODE3MODE2MODE1MODE0MODE
dmControl
LXM32M
6.1.2Changing the operating state
Bits 8 ... 15 of the word "dmControl" are used to set the operating
state.
Figure 8: Structure dmControl bits 8 ... 15
BitNameMeaningOperating state
8DSDisable power stage
9ENEnable power stage
10QSExecuting a "Quick Stop"
11FRExecute "Fault Reset"
12-ReservedReserved
13SHExecute "Halt"
14CHClear "Halt"
15CUResume operating mode interrupted by
"Halt"
6 Operation Enabled -> 4 Ready To Switch On
4 Ready To Switch On -> 6 Operation Enabled
6 Operation Enabled -> 7 Quick Stop Active
7 Quick Stop Active -> 6 Operation Enabled
9 Fault -> 4 Ready To Switch On
6 Operation Enabled
6 Operation Enabled
6 Operation Enabled
6 Operation
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.
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")
0198441113843, V1.01, 01.2012
Modbus-TCP module
53
15
-
14
-
13
-
12
-11CAP2 110CAP2 09CAP1 18CAP1 0
7
MT
6
ME
5
DE4MODE3MODE2MODE1MODE0MODE
mfStat
6 Operation
6.2Operating modes
6.2.1Indicating and monitoring the operating mode
The word "mfStat" is used to indicate the current operating mode.
Figure 9: Structure mfStat
BitNameDescription
0 ... 4MODEIndicates the current operating mode
Value 01h: Profile Position
Value 03h: Profile Velocity
Value 04h: Profile Torque
Value 06h: Homing
Value 1Fh: Jog
Value 1Eh: Electronic Gear
Value 1Dh: Motion Sequence
5DEThe "DE" bit relates to parameters that are independent
of "Mode Toggle" (MT). The "DE" bit is set if a data
value in the process data channel is invalid.
6METhe "ME" bit relates to parameters that are dependent
on "Mode Toggle" (MT). The "ME" bit is set if a request
from a master (starting an operating mode) was rejected.
7MTHandshake via "Mode Toggle"
8 ... 9CAP1Bit 0 and bit 1 of parameter _Cap1Count
10 ... 11 CAP2Bit 0 and bit 1 of parameter _Cap2Count
12 ... 15 -Reserved
LXM32M
54
0198441113843, V1.01, 01.2012
Modbus-TCP module
15
CU
14
CH
13
SH
12
-
11
FR
10
QS
9
EN
8
DS
7
MT6ACTION5ACTION4MODE3MODE2MODE1MODE0MODE
dmControl
LXM32M
6.2.2Starting and changing an operating mode
Bits 0 ... 7 in the word "dmControl" are used to set the operating
mode.
Figure 10: Structure dmControl bits 0 ... 7
BitNameDescription
0 ... 4MODEOperating mode
Value 01h: Profile Position
Value 03h: Profile Velocity
Value 04h: Profile Torque
Value 06h: Homing
Value 1Fh: Jog
Value 1Eh: Electronic Gear
Value 1Dh: Motion Sequence
5 ... 6ACTION Operating mode-dependent
7MTHandshake via Mode Toggle
6 Operation
The operating modes can be changed during operation. For this purpose, the current process must be completed or explicitly canceled.
The motor must be at a standstill.
The master must enter the following values to activate an operating
mode or to change reference values:
•
Reference values, depending on desired 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 reference values.
0198441113843, V1.01, 01.2012
Modbus-TCP module
55
6 Operation
6.2.3Overview of operating modes
The table below provides an overview of the operating modes.
Detailed information can be found on the following pages.
LXM32M
Operating modeMethoddmControl
Bits 0 ... 6
MODE+ACTION
Jog1F
Electronic GearPosition synchroni-
1E
h
h
zation without compensation movement
Position synchroni-
3E
h
zation with compensation movement
Velocity synchroni-
5E
h
zation
Profile Torque24
Profile Velocity23
Profile PositionAbsolute01
Relative with refer-
21
h
h
h
h
ence to the currently set target
position
Relative with refer-
41
h
ence to the current
motor position
HomingPosition setting06
Reference move-
26
h
h
ment
Motion SequenceStart sequence1D
Start individual data
3D
h
h
set
Reference value RefA32Reference value RefB32
Value 0: No movement
-
Value 1: Slow movement
in positive direction
Value 2: Slow movement
in negative direction
Value 5: Fast movement in
positive direction
Value 6: Fast movement in
negative direction
As GEARdenomAs GEARnum
As GEARdenomAs GEARnum
As GEARdenomAs GEARnum
As PTtq_targetAs RAMP_tq_slope
As PVv_target-
As PPv_targetAs PPp_target
As PPv_targetAs PPp_target
As PPv_targetAs PPp_target
-As HMp_setP
As HMmethod-
Data set numberValue 1: Use data set
number
Data set number-
56
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
6.2.4Operating mode Jog
Starting the operating modeThe operating mode is set and started in the process data channel
6 Operation
with the transmit data (master to slave).
dmControl
Bits 0 ... 6
MODE+ACTION
1F
h
Reference value RefA32Reference value RefB32
Value 0: No movement
Value 1: Slow movement
in positive direction
Value 2: Slow movement
in negative direction
Value 5: Fast movement in
positive direction
Value 6: Fast movement in
negative direction
-
Status informationThe word "driveStat" provides information on the operating mode.
BitNameMeaning
13X_ADD1 Reserved
14X_END0: Operating mode started
1: Operating mode terminated
15X_ERR0: No error
1: Error
Terminating the operating modeThe operating mode is terminated when the motor is at a standstill and
one of the following conditions is met:
•
Value 0 RefA
•
Stop caused by "Halt" or "Quick Stop"
•
Stop caused by an error
0198441113843, V1.01, 01.2012
Modbus-TCP module
57
6 Operation
6.2.5Operating mode Electronic Gear
Starting the operating modeThe operating mode is set and started in the process data channel
with the transmit data (master to slave).
LXM32M
MethoddmControl
Bits 0 ... 6
MODE+ACTION
Position synchronization without compensation movement
Position synchronization with compensation movement
Velocity synchronization5E
1E
3E
h
h
h
Reference value RefA32Reference value RefB32
As GEARdenomAs GEARnum
As GEARdenomAs GEARnum
As GEARdenomAs GEARnum
Status informationThe word "driveStat" provides information on the operating mode.
BitNameMeaning
13X_ADD1 1: Reference velocity reached
14X_END0: Operating mode started
1: Operating mode terminated
15X_ERR0: No error
1: Error
1) Only with method Velocity synchronization and with active velocity window.
1)
Terminating the operating modeThe operating mode is terminated when the motor is at a standstill and
one of the following conditions is met:
•
Stop caused by "Halt" or "Quick Stop"
•
Stop caused by an error
58
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
6.2.6Operating mode Profile Torque
Starting the operating modeThe operating mode is set and started in the process data channel
with the transmit data (master to slave).
6 Operation
dmControl
Bits 0 ... 6
MODE+ACTION
24
h
Reference value RefA32Reference value RefB32
As PTtq_targetAs RAMP_tq_slope
Status informationThe word "driveStat" provides information on the operating mode.
BitNameMeaning
13X_ADD1 0: Target torque not reached
1: Target torque reached
14X_END0: Operating mode started
1: Operating mode terminated
15X_ERR0: No error
1: Error
Terminating the operating modeThe operating mode is terminated when the motor is at a standstill and
one of the following conditions is met:
•
Stop caused by "Halt" or "Quick Stop"
•
Stop caused by an error
0198441113843, V1.01, 01.2012
Modbus-TCP module
59
6 Operation
6.2.7Operating mode Profile Velocity
Starting the operating modeThe operating mode is set and started in the process data channel
with the transmit data (master to slave).
LXM32M
dmControl
Bits 0 ... 6
MODE+ACTION
23
h
Reference value RefA32Reference value RefB32
As PVv_target-
Status informationThe word "driveStat" provides information on the operating mode.
BitNameMeaning
13X_ADD1 0: Target velocity not reached
1: Target velocity reached
14X_END0: Operating mode started
1: Operating mode terminated
15X_ERR0: No error
1: Error
Terminating the operating modeThe operating mode is terminated when the motor is at a standstill and
one of the following conditions is met:
•
Stop caused by "Halt" or "Quick Stop"
•
Stop caused by an error
60
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
6.2.8Operating mode Profile Position
Starting the operating modeThe operating mode is set and started in the process data channel
with the transmit data (master to slave).
6 Operation
MethoddmControl
Bits 0 ... 6
MODE+ACTION
Absolute01
Relative with reference to the currently
set target position
Relative with reference to the current
motor position
21
41
h
h
h
Reference value RefA32Reference value RefB32
As PPv_targetAs PPp_target
As PPv_targetAs PPp_target
As PPv_targetAs PPp_target
Status informationThe word "driveStat" provides information on the operating mode.
BitNameMeaning
13X_ADD1 0: Target position not reached
1: Target position reached
14X_END0: Operating mode started
1: Operating mode terminated
15X_ERR0: No error
1: Error
Terminating the operating modeThe operating mode is terminated when the motor is at a standstill and
one of the following conditions is met:
•
Target position reached
•
Stop caused by "Halt" or "Quick Stop"
•
Stop caused by an error
0198441113843, V1.01, 01.2012
Modbus-TCP module
61
6 Operation
6.2.9Operating mode Homing
Starting the operating modeThe operating mode is set and started in the process data channel
with the transmit data (master to slave).
LXM32M
MethoddmControl
Bits 0 ... 6
MODE+ACTION
Position setting06
Reference movement26
h
h
Reference value RefA32Reference value RefB32
-As HMp_setP
As HMmethod-
Status informationThe word "driveStat" provides information on the operating mode.
BitNameMeaning
13X_ADD1 Reserved
14X_END0: Operating mode started
1: Operating mode terminated
15X_ERR0: No error
1: Error
Terminating the operating modeThe operating mode is terminated when the motor is at a standstill and
one of the following conditions is met:
•
Homing successful
•
Stop caused by "Halt" or "Quick Stop"
•
Stop caused by an error
62
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
6.2.10 Operating mode Motion Sequence
Starting the operating modeThe operating mode is set and started in the process data channel
with the transmit data (master to slave).
6 Operation
MethoddmControl
Bits 0 ... 6
MODE+ACTION
Start sequence1D
Start individual data set3D
h
h
Reference value RefA32Reference value RefB32
Data set numberValue 1: Use data set
number
Data set number-
Status informationThe word "driveStat" provides information on the operating mode.
BitNameMeaning
13X_ADD1 1: End of a sequence
14X_END0: Operating mode started
1: Operating mode terminated
15X_ERR0: No error
1: Error
Terminating the operating modeThe operating mode is terminated when the motor is at a standstill and
one of the following conditions is met:
•
Individual data set terminated
•
Individual data set of a sequence terminated (waiting for transition
condition to be fulfilled)
•
Sequence terminated
•
Stop caused by "Halt" or "Quick Stop"
•
Stop caused by an error
0198441113843, V1.01, 01.2012
Modbus-TCP module
63
6 Operation
6.3Extended settings
6.3.1Web server
FunctionsThe product features an integrated web server.
6.3.1.1 Setting the web server
LXM32M
The web server offers the following features:
•
Display status information
•
Display and change parameters
•
Display and change network settings
•
Display and change Modbus TCP settings
•
Display and change EtherNet/IP settings
•
Display and change settings for the FDR service
•
Display network statistics
•
User-specific adaptation of the website
See chapter "6.3.2 FTP server"
The web server is activated or deactivated by means of the parameter
EthWebserver.
Parameter name
HMI menu
HMI name
EthWebserver
DescriptionUnit
Ethernet webserver
0 / Off: Ethernet webserver off
1 / On: Ethernet webserver on
Changed settings become active the next
time the product is switched on.
6.3.1.2 Accessing the web server
▶
If you do not want to use the web server, set the parameter
EthWebserver to "Off".
The web server of the product can be accessed via a Web browser.
■
The product must have a valid IP address.
▶
Start an Internet browser.
▶
Enter the IP address of the product in the address bar.
▶
Enter "USER" as the username and the password (uppercase).
64
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
6.3.1.3 User interface
2
6 Operation
Structure of the web server user interface:
1
3
Figure 11: User interface of the web server
(1)Main menu
(2)Submenu
(3)Content
Main menuSubmenuContent
HomeEnglishHomepage
Documentation-Link to website
www.schneider-electric.com
MonitoringDrive monitorStatus information
Drive parameterDisplay and change parame-
ters
Network SetupNetwork parametersNetwork settings
Modbus scannerModbus settings
Eth/IP scannerEtherNet/IP settings
Fast device replacementFDR service settings
AdministrationChange web server passwords
DiagnosticsTCP/IP statisticsInformation on TCP/IP
Modbus statisticsInformation on Modbus
Ethernet IP statisticsInformation on EtherNet/IP
0198441113843, V1.01, 01.2012
Modbus-TCP module
65
6 Operation
6.3.2FTP server
FunctionsThe product features an integrated FTP server.
6.3.2.1 Accessing the FTP server
LXM32M
The FTP server lets you upload a CFG file and a JPG file to modify
the content and appearance of the web server.
The following items can be modified:
•
Product Name
•
Link under "Documentation..."
•
Product image (picture on the start page)
The FTP server of the product can be accessed via an FTP client.
■
The product must have a valid IP address.
▶
Start an FTP client.
▶
Enter the IP address of the product when prompted for a "Host/
Server" .
▶
Enter "USER" as the username and the password (uppercase).
6.3.2.2 User-specific adaptation of the website
You can upload a CFG file and a JPG file to modify the content and
appearance of the web server.
CFG fileFile name of the CFG file: http.cfg
The CFG file has the following structure:
[ProductName]
Lexium 32 by MyCompany
[ProductLink]
http://www.my-company.com
[ProductImageName]
mypic.jpg
JPG fileThe JPG file replaces the product image (picture on the start page).
The file name of the JPG file must match the file name specified in the
CFG file.
NOTE: The entire file name is case-sensitive (even the extension
JPG).
Uploading files
▶
Connect via an FTP client.
▶
Save the CFG file at the top level.
▶
Create a folder "html".
▶
Below the "html" folder, create an "images" folder.
▶
Save the JPG file in the "images" folder.
▶
Switch the product off and on.
66
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
6.3.3FDR service (Fast Device Replacement)
The FDR service uses standard DHCP and TFTP (Trivial File Transfer
Protocol) technologies to simplify maintenance of Ethernet devices.
For example, the FDR service is used to replace a defective device by
a new device. The service allows for detection, configuration and automatic start of the new device without complex manual user interaction.
The main steps:
•
A defective device that uses the FDR service is removed.
•
The new device that is pre-configured with the "DeviceName" of
the defective device is installed in the network.
•
The FDR server which can be a Quantum- or Premium-SPS PLC
Ethernet module detects the new device, configures it with its IP
address and transmits the configuration parameters.
•
The replacement device checks the parameters for compatibility.
6 Operation
0198441113843, V1.01, 01.2012
Modbus-TCP module
67
6 Operation
LXM32M
68
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
7 Diagnostics and troubleshooting
7Diagnostics and troubleshooting
7.1Fieldbus communication error diagnostics
Connections for fieldbus modeIf the product cannot be addressed via the fieldbus, first check the
connections. The product manual contains the technical data of the
device and information on network and device installation. Check the
following:
•
24Vdc power supply
•
Power connections to the device
•
Fieldbus cable and fieldbus wiring
You can also use the commissioning software for troubleshooting.
Fieldbus function testIf the connections are correct, check the settings for the fieldbus
addresses. After correct configuration of the transmission data, test
fieldbus mode.
7
▶
In addition to the master, activate a bus monitor that, as a passive
device, displays messages.
▶
Switch the supply voltage off and on.
▶
Observe the network messages that are generated briefly after the
supply voltage is switched on. A bus monitor can be used to record
the elapsed time between messages and the relevant information
in the messages.
Addressing, parameterizationIf it is impossible to connect to a device, check the following:
▶
Addressing
Each network device must have a unique IP address.
0198441113843, V1.01, 01.2012
Modbus-TCP module
69
A
B
34
12
7 Diagnostics and troubleshooting
7.2Status LEDs
The status of the module is indicated by four LEDs.
Figure 12: Overview of the LEDs at the module
(1)Network activity interface A
(2)Module status
(3)Network activity interface B
(4)Network status
LXM32M
NOTE: The meaning of the flash signals depends on the selected protocol.
▶
Check whether the protocol is set to "EtherNet/IP" or "Modbus
TCP".
Network activity LED 1 and LED 3The table below shows the meaning of the flashing signals for network
activity.
ColorStatusMeaning
-OffNo connection
GreenOnConnection with 100 [MB/s]
YellowOnConnection with 10 [MB/s]
GreenFlashingActivity with 100 [MB/s]
YellowFlashingActivity with 10 [MB/s]
70
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
7 Diagnostics and troubleshooting
Module status LED 2The table below shows the meaning of the flashing signals for the
module status.
ColorLEDMeaning for EtherNet/IP
1)
Meaning for Modbus TCP
1)
-OffNo power supplyNo IP address or no power supply
Green/yellowFlashingStart-upStart-up
GreenOnReady for operationReady for operation
GreenFlashingModule is not configured or scanner is
Not ready (no connection, ...)
Idle
RedFlashingRecoverable errorRecoverable error
RedOnIrrecoverable errorIrrecoverable error
1) Depends on the selected protocol (parameter EthMode)
Network status LED 4The table below shows the meaning of the flashing signals for the net-
work status.
ColorLEDMeaning for EtherNet/IP
1)
Meaning for Modbus TCP
-OffNo IP address or no power supplyNo IP address or no power supply
Green/yellowFlashingStart-upStart-up
GreenOnConnectedAt least 1 port is connected and the IP
address has been set
GreenFlashing 3 times -No connection, IP address has been set
GreenFlashing 4 times -IP address conflict
GreenFlashing 5 times -BOOTP or DHCP active
GreenFlashingNo connection-
RedFlashingTimeout-
RedOnIP address conflict-
1) Depends on the selected protocol (parameter EthMode)
1)
0198441113843, V1.01, 01.2012
Modbus-TCP module
71
7 Diagnostics and troubleshooting
7.3Error indication
The last cause of error and the last 10 error messages are stored. You
can display the last 10 error messages using the commissioning software and the fieldbus.
Asynchronous errorsAsynchronous 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 occurs.
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
"3.3.4.2 I/O scanning Input"
•
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.
LXM32M
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.
72
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
7 Diagnostics and troubleshooting
Exception Code
01Illegal Function Code The "Function Code" is unknown to the
02Illegal Data AddressDepends on the Modbus request
03Illegal Data ValueDepends on the Modbus request
04Server FailureThe server was unable to properly termi-
05AcknowledgeThe server has accepted the Modbus
06Server BusyThe server was unable to accept the
0AGateway ProblemThe gateway path is unavailable.
0BGateway ProblemThe targeted device does not respond.
NameDescription
server.
nate processing.
request. However, the execution takes a
relatively long time. The server therefore
only returns an acknowledgement confirming receipt of the service request.
Modbus request. It is the responsibility of
the application on the client to determine
whether and when to re-send the request.
The gateway generates this error.
0198441113843, V1.01, 01.2012
Modbus-TCP module
73
7 Diagnostics and troubleshooting
LXM32M
74
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
8 Accessories and spare parts
8Accessories and spare parts
8
8.1Cables
DescriptionOrder no.
2 m, 2 x RJ45, shielded twisted pair cable490NTW00002
5 m, 2 x RJ45, shielded twisted pair cable490NTW00005
12 m, 2 x RJ45, shielded twisted pair cable490NTW00012
2 m, 2 x RJ45, shielded twisted pair cable with UL and CSA 22.1 certification490NTW00002U
5 m, 2 x RJ45, shielded twisted pair cable with UL and CSA 22.1 certification490NTW00005U
12 m, 2 x RJ45, shielded twisted pair cable with UL and CSA 22.1 certification490NTW00012U
0198441113843, V1.01, 01.2012
Modbus-TCP module
75
8 Accessories and spare parts
LXM32M
76
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
9Glossary
9.1Units and conversion tables
The value in the specified unit (left column) is calculated for the
desired unit (top row) with the formula (in the field).
Example: conversion of 5 meters [m] to yards [yd]
5 m / 0.9144 = 5.468 yd
See chapter "2.5 Standards and terminology" for information on the
pertinent standards on which many terms are based. Some terms and
abbreviations may have specific meanings with regard to the standards.
9 Glossary
CIP
ClientFirst transmitter, then recipient of fieldbus messages in the client-
DOM
ErrorDiscrepancy between a detected (computed, measured or signaled)
Error classClassification of errors into groups. The different error classes allow
Factory settingFactory settings when the product is shipped
Fatal errorIn the case of fatal error, the product is no longer able to control the
FaultFault is a state that can be caused by an error. Further information
Common Industrial Protocol, general specification for communication
between fieldbus devices.
server relationship. Starts transmission with a transmission to the
server; the reference point is the server object dictionary.
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. Example:
31.12.09 corresponds to December 31, 2009
31.12.2009 corresponds to December 31, 2009
value or condition and the specified or theoretically correct value or
condition.
for specific responses to errors, for example by severity.
motor so that the power stage must be immediately disabled.
can be found in the pertinent standards such as IEC 61800-7, ODVA
Common Industrial Protocol (CIP).
Fault resetA 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.
InputOutput 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.
MasterActive bus device that controls the data traffic on the network.
OutputOutput 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.
ParameterDevice data and values that can be read and set (to a certain extent)
by the user.
PersistentIndicates whether the value of the parameter remains in the memory
after the device is switched off.
Quick StopThe Quick Stop function can be used for fast deceleration of a move-
ment in the case of an error or via a command.
User-defined unitUnit whose reference to motor movement can be determined by the
user via parameters.
WarningIf the term is used outside the context of safety instructions, a warning
alerts to a potential problem that was detected by a monitoring function. A warning does not cause a transition of the operating state.
0198441113843, V1.01, 01.2012
Modbus-TCP module
79
9 Glossary
LXM32M
80
0198441113843, V1.01, 01.2012
Modbus-TCP module
LXM32M
10Index
10 Index
10
A
Abbreviations 79
Accessories and spare parts 75
B
Before you begin
Safety information 11
C
Cables 75
CAD data 7
Commissioning 37
First setup 38
Commissioning the device 37
D
F
First setup
Commissioning 38
Further reading 8
G
Glossary 77
H
Hazard categories 12
Homing 62
I
Input 22
Installation 35
electrical 36
Diagnostics
E
Electrical installation
Electronic Gear 58
Error diagnostics
Connections to for fieldbus operation
Error indication 72
Errors
Troubleshooting 69
Examples 33
0198441113843, V1.01, 01.2012
Modbus-TCP module
69
36
69
Intended use 11
Introduction 9
J
Jog
M
Manuals
Source 7
Motion Sequence 63
57
81
10 Index
LXM32M
O
Operating mode
Electronic Gear 58
Homing 62
Jog 57
Motion Sequence 63
Profile Position 61
Profile Torque 59
Profile Velocity 60
Operating modes 54
Operating modes, starting and changing 55
Operating modes, starting and changing 55
Operating state, changing the 53
Operating states 52
Profile Position 61
Profile Torque 59
Profile Velocity 60
Q
Qualification of personnel 11
S
Source
CAD data 7
Manuals 7
Switching on the device 38
T
Terms 79
Indicating operating states 52, 54
Operating state, changing the 53
Operating states, indication 52, 54
Operation 51
Output 22
P
Parameter channel
26
U
Units and conversion tables
77
82
0198441113843, V1.01, 01.2012
Modbus-TCP module
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.