DLG LMP-100 User manual

User Manual
Profibus/Modbus Gateway MAN-EN-DE-LMP100-01.00_14
Profibus/Modbus Gateway
LMP-100


Introduction
Thank you for choosing our Profibus/Modbus Gateway LMP-100. To ensure its proper and
efficient usage, it’s important to read this manual thoroughly to understand how to operate the
LMP-100, before putting it into operation.
About this Manual
1. This manual should be delivered to the end user of the LMP-100.
2. The contents of this manual are subject to change without notice.
3. All rights reserved. No part of this manual may be reproduced in any form without the
written permission from DLG.
4. The specifications contained herein are limited to standard models and do not cover
special products made by order.
5. All precautions were taken on preparing this manual, in order to guarantee the quality of
its information.
CAUTION!
The instrument described in this technical user manual is a device suitable for application
in a specialized technical area. DLG supplied products are submitted to a strict quality control
process. However, industrial control electronic equipment can cause damage to machinery or
processes controlled by them in the event of any failure or improper operations and may even
endanger human lives. The user is responsible for setting and selecting values of the
parameters of the instrument. The manufacturer warns of the risks of incidents with injuries to
both people and goods, resulting from the incorrect use of the instrument.

Contents
PRESENTATION .................................................................................................. 5
HOW TO SPECIFY ............................................................................................... 6
TYPICAL APPLICATIONS ................................................................................... 7
TECHNICAL SPECIFICATIONS........................................................................... 8
General Characteristics .......................................................................................................8
DIMENSIONS ....................................................................................................... 9
FRONTAL........................................................................................................... 10
CONFIGURATION.............................................................................................. 11
Profibus address configuration .......................................................................................... 11
GSD file installation ........................................................................................................... 12
Module configuration (LMP-100/M) ................................................................................... 12
Modbus network configuration........................................................................................... 13
Modbus rule configuration ................................................................................................. 16
Diagnostics ........................................................................................................................ 23
Control register .................................................................................................................. 28
ELECTRICAL INSTALLATION .......................................................................... 32
Power Supply .................................................................................................................... 33
Profibus DP Communications............................................................................................ 33
Modbus RTU Communications.......................................................................................... 33
MECHANICAL INSTALLATION ......................................................................... 34
RECOMMENDATIONS....................................................................................... 35
WARRANTY ....................................................................................................... 36

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 5 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
Presentation
The LMP-100 is a gateway that enables the integration of
the Profibus and Modbus industrial networks. By assuming
simultaneously the role of a Profibus DP slave and a Modbus
RTU master, it allows Modbus slaves to be controlled by
Profibus masters.
The LMP-100 may be mounted on a standard 35 mm DIN
rail. LEDs provide indication of power supply, device, Modbus
and Profibus network states.
The power and communication cables are connected by
fully detachable terminal blocks. The connection to the Profibus
network can also be made through a DB9 connector on the
frontal.

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 6 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
How to Specify
LMP-100 / ____
Profibus input and output buffers sizing:
/- compact: fixed size buffers
/M modular: buffer sizing

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 7 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
Typical Applications
The LMP-100 is typically used in applications where Modbus slaves need to be integrated
into a Profibus DP network. As an example, this scenario may occur in the following situations:
•Replacement of a Modbus-based installation with a Profibus-based one, reusing the
Modbus devices.
•Necessity of using a particular device only available with Modbus communication in
Profibus-based facility.
Figure 1 depicts a LMP-100 typical application. In the role of a Profibus DP slave, the
LMP-100 receives commands from the Profibus master. These commands are interpreted by
the LMP-100 which, in the role of a Modbus master, forwards them to the Modbus slaves.
Similarly, the LMP-100 periodically scans the Modbus slaves for field data, which are interpreted
and sent to the Profibus master.
The mapping between Profibus and Modbus inputs and outputs is configurable through a
concept called “Modbus rule”.
Figure 1 - LMP-100 application.

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 8 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
Technical Specifications
General Characteristics
Type Notes
Communication Profibus DPV0 and Modbus RTU, both over RS-485
Isolation
Galvanic
Baud rates Profibus: 9.6k, 19.2k, 45.45k, 93.75k, 187.5k, 500k,1.5M,3M ,6M e 12M
Modbus: 1.2k, 2.4k, 4.8k, 9.6k, 19.2k, 38.4k, 57.6k e 115.2k
Operating temperature
-10 ºC a 60 ºC
Storage temperature
-40 ºC a 70 ºC
Relative humidity
Up to 90%
IP protection
IP-30 (DIN EN 60529 VDE 0470)
Input voltage
20.4 - 28.8 Vdc
Current consumption
90 mA
Construction
ABS plastic and flame resistant polycarbonate
Placement
DIN 35 mm rail (DIN EN 60715 TH35)
Electrical connection
Cable up to 2.5mm² with “plug-in” type removable connectors
Aprox. weight
0,2 kg
Dimensions
101 x 22.5 x 119.5 mm. (height x width x depth – without frontal DB9 connector)

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 9 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
Dimensions
Figure 2 – Dimensioning for assembling (dimensions in millimeters)

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 10 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
Frontal
LED
Color
Description
PWR Green (Power) Indicates power supply operation. Continuously lit LED
indicates proper power supply operation.
RUN Green
(Run) Indicates proper operation of the device. After the device is
energized, the LED will flash 5 times. If the self-test boot routines
succeed, the LED remains lit, indicating proper operation of the device.
If the LED is turned off, a critical error occurred at startup, and in this
case the device will no longer operate correctly.
BF Red (Bus Fail) Indicates failure in the Profibus network. When lit means that
the LMP-100 is not in the “Data Exchange” state.
ST Red
(Status) Indicates presence of failure or diagnostics. The failure is
indicated by the frequency at which the LED flashes. When lit
continuously, indicates the presence of diagnostic information.
TX Orange Indicates data transmission over the Modbus network.
RX Green Indicates data reception over the Modbus network.

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 11 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
Configuration
The LMP-100 was designed so that its entire configuration is obtained through the
Profibus master. Thus, the configuration process is simplified by eliminating the use of
additional tools. The only parameter that is not configurable through the master is the LMP-100
address on the Profibus network.
It is important to notice that as all configuration is sent to the LMP-100 at the Profibus DP
parameterization state, configuration changes cause the device to leave the data exchange
state and return to the parameterization state, temporarily stopping the data transfer between
the Profibus and Modbus networks.
Note: Whenever functionality of bits grouped into one byte is described, consider bit 0 as
the least significant bit and bit 7 as the most significant bit.
Profibus address configuration
The configuration of the LMP-100 Profibus address is accomplished through the selector
switches located on the side of the device labeled “PROFIBUS ADDRESS”.
There are seven selector switches, which enable the encoding of a binary number
between 0 and 127, representing the device Profibus address. The device must be assigned an
address between 1 and 126, as addresses 0 and 127 are reserved.
The selector switches are numbered from 1 to 7. Switch 1 is the address least significant
bit, and switch 7 is most significant one. As an example, to assign address 23 to the device,
simply convert decimal number 23 into a 7-bit binary number:
23
10
= 0010111
2
As the most significant bit is represented by switch number 7, the selector switches would
have to be configured as:
Switch 1 => ON
Switch 2 => ON
Switch 3 => ON
Switch 4 => OFF
Switch 5 = > ON
Switch 6 => OFF
Switch 7 => OFF

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 12 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
The device reads the position of the selector switches immediately after being energized.
The assigned address is kept constant during device operation, even if the position of the
selector switches is changed. Therefore, to change the device’s Profibus address it is
necessary to change the position of the selector switches to encode the new address, turn off
and re-energize the device.
GSD file installation
The GSD (General Station Description) file supplied with the LMP-100 details all the
features and characteristics of the device. The file must be installed within the Profibus master
configuration software. The GSD file installation procedure is manufacturer specific, so it is
recommended to consult the respective Profibus master user manual.
After proper installation of the GSD file, the entire configuration of the LMP-100 is done
through the Profibus master configuration software.
For the compact version of the device, use the DLG_0D8A.gsd file. For the modular
version of the equipment (/M), use the DLG_0E6C.gsd file.
Module configuration (LMP-100/M)
The LMP-100 modular option gives the user the power to size appropriately the number of
bytes transferred in the Profibus input and output buffers. The GSD file defines input and output
modules of several sizes which are handled by users in the Profibus master configuration tool.
The following modules are available:
1 word input 2 words input 4 words input 8 words input 16 words input
1 word output 2 words output 4 words output 8 words output 16 words output
1 word = 2 bytes
Modules must be allocated so that the Profibus input and output buffers have enough
space to store data produced by the Modbus rules. The Modbus rule concept and how to
calculate the amount of data produced by them are described in the “Modbus rule configuration”
section.

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 13 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
Modbus network configuration
The LMP-100 provides the following configuration parameters for the Modbus network:
Parameter
Description
Modbus baud rate
Modbus network baud rate. All slaves must use the baud
rate adopted by the LMP-100. The possible values are:
•1200 bps
•2400 bps
•4800 bps
•9600 bps
•19200 bps
•38400 bps
•57600 bps
•115200 bps
Modbus parity
Used as a mechanism to detect data transmission errors. All
slaves must use the parity adopted by the LMP-100. For
firmware versions up to 02.00.00, possible values are:
•Even
•Odd
•None
Starting from firmware version 02.01.00, possible values are:
•Even
•Odd
•None with 1 stop bit
•None with 2 stop bits
The possibility of choosing the number of stop bits is aimed
at increasing interoperability with the widest possible range
of Modbus slaves. The Modbus specification states that 2
stop bits per character shall be used when parity is not used.
However, there are countless slaves on the market that
operate with only 1 stop bit.
Modbus scan time (ms)
Period, in milliseconds, of the scanning cycle used to poll
data from Modbus slaves. Allowed values lie in the range
from 0 to 60000 ms.
The scanning cycle period is defined as the minimum time

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 14 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
between the start of consecutive Modbus scanning cycles.
For example, assuming a period of 5000 ms the device
ensures that the next scan cycle will start at least 5000 ms
after the current scan cycle. Value 0 indicates that the next
scan cycle should begin immediately after the end of the
current scan cycle.
Factors such as number of variables, timeouts and
retransmissions can cause the total time taken to scan all
variables to be greater than the configured scan cycle
period. In this case, the next scan cycle start immediately
after the end of the current scan cycle.
Modbus response timeout
(ms)
Maximum time in milliseconds that the LMP-100 waits to
receive a response from a Modbus slave. If the slave does
not respond within this time, the LMP-100 considers it as a
failure and resends the command.
Allowed values lie in the range from 10 to 60000 ms.
Modbus retries
Number of retransmission attempts of a command.
Retransmissions occur when the slave does not respond or
when the slave sends an incorrect response. Allowed values
lie in the range from 0 to 5.
Value 0 indicates no retries.
Modbus interframe silence
Time waited by the LMP-100 to send a new command after
receiving a response from a Modbus slave.
The possible values are:
•0 ms
•10 ms
•100 ms
•500 ms
•1000 ms
The wait interval is useful to allow the slave which sent the
response to be able to change the RS-485 transceiver
direction from “transmit” to “receive”.
The LMP-100 is configured by default to wait for 10 ms, a
suitable value for most installations. Therefore, change this
parameter only when really necessary.
Table 1 – Modbus network parameterization

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 15 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
Note: Except for the Modbus parity, all the parameters listed above have a direct influence
on the time interval needed by the LMP-100 to scan all Modbus slaves.

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 16 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
Modbus rule configuration
The LMP-100 defines a concept named “Modbus rule”. Modbus rules define how to access
Modbus variables that will be transferred to the Profibus network. A rule allows the definition of
which Modbus variables should be mapped.
A rule is classified as input rule or output rule. Input rules allow Modbus variables to be
read and sent to the Profibus master. Output rules allow Modbus variables to be written with
data sent by the Profibus master.
The LMP-100 provides 38 Modbus rules, freely distributed between input and output rules
according to the necessity. Rules are numbered R01, R02, ..., up to R32 (or 38 in the compact
version).
It is essential to understand how Modbus rules are related to the Profibus buffers in order
to operate the device correctly. The LMP-100 has two buffers, named input buffer and output
buffer, each 244 bytes long, used for data exchange with the Profibus master. The input buffer
is where the LMP-100 puts data to be transferred to the Profibus master. This data is polled
from the Modbus slaves. The output buffer is where the LMP-100 places data received from the
Profibus master. This data will be transferred to the Modbus slaves.
In the LMP-100 compact option, input and output buffers have a fixed length of 244 bytes.
In the modular option, the user is allow to size the input and output buffers by inserting modules
in the configuration.
Input rules produce and store data in the input buffer. Assuming an input rule R01, for
example, which specifies reading of 5 Modbus registers, and remembering that a Modbus
register is 2 bytes long it is easy to deduce that the rule produces 10 bytes. Therefore, 10 bytes
from the input buffer stores the value of the 5 Modbus registers read. Still as another example,
rule R12 specifies reading of 7 Modbus digital inputs. As Modbus encodes up to 8 digital inputs
in a byte, this rule will produce 1 byte, also copied to the Profibus input buffer.
Besides computing the total number of bytes produced by an input rule, the only question
remaining is the order in which data is stored in the input buffer. The LMP-100 calculates and
reserves space in the input buffer according to the ascending order of the rules. Therefore,
starting at R01, the LMP-100 checks whether R01 is an input rule. If so, the LMP-100 computes
the number of bytes reserved to map R01, and allocates them in the beginning of the input
buffer. The potential input rules are allocated sequentially in the input buffer. The process is
repeated up to R38.
The procedure is analog for output rules. The computation of the byte total and evaluation
order of the rules are the same.

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 17 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
A Modbus rule is configured through the following parameters:
Parameter
Description
Modbus function code
Modbus function used to read or write Modbus variables.
Determines whether the rule is an input or output rule.
•None: the rule is not executed and does not reserve space
in the Profibus buffers.
•Read Coils: allows reading of one or more digital outputs
(coil). The rule becomes an input rule.
•Read Discrete Inputs: allows reading of one or more digital
inputs. The rule becomes an output rule.
•Read Holding Registers: allows reading of one or more
analog outputs. The rule becomes an output rule.
•Read Input Registers: allows reading of one or more
analog inputs. The rule becomes an input rule.
•Write Single Coil: allows writing of one digital output. The
rule becomes an output rule.
•Write Single Register: allows writing of one analog output.
The rule becomes an output rule.
•Write Multiple Coils: allows writing of one or more digital
outputs. The rule becomes an output rule.
•Write Multiple Registers: allows writing of one or more
analog outputs. The rule becomes an output rule.
Modbus slave address Modbus slave addressed by the rule.
Slaves in the range from 1 to 247 can be addressed.
Start address
Together, these two parameters indicate which Modbus variables
are addressed by the rule. The variables of one rule must be
accessed contiguously. For example, one rule is able to read
analog inputs with addresses 1 to 10. If it is necessary to read
analog inputs 1 to 10 and 15 to 20, at least two rules are required.
According to the Modbus specification, each data type (digital
input, digital output, analog input and analog output) can have up
to 65536 variables.
Number of variables

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 18 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
The “Start Address” parameter determines the start address of the
range of variables. The parameter “Number of variables” indicates
how many variables will be accessed starting from the initial
address.
The “Start address” parameter accepts values in the range from 1
to 65535.
The “Number of variables” in conjunction with the Modbus function
selected in the “Modbus function code” parameter determines the
byte count allocated in the Profibus buffers for the rule. Moreover,
the range of allowed values for the “Number of variables”
parameter depends on the type of variables accessed. The table
below details the mentioned dependencies.
Modbus function
code
Number of variables
(n)
Number of
bytes
reserved
Read Coils
1 ≤n ≤1952 (n – 1) / 8 + 1Read Discrete Inputs
Write Multiple Coils
Read Holding Registers
1 ≤n ≤122 n * 2Read Input Registers
Write Multiple Registers
Write Single Coil Parameter is not used 2
Write Single Register
Since the maximum value of the “Start address” parameter is
65535, to access variable 65536 a rule with “Start address” less
than or equal to 65535 and “Number of variables” large enough to
address variable 65536 must be created. As examples:
Start Address
Number of
variabl
es
Addressed
variables
65535 2 65535
65536
65530 7
65530
65531
65532
65533
65534
65535
65536
Byte swap
(available starting at
firmware version
02.01.00)
Defines whether the input (Input Registers) or output (Holding
Registers) byte order should be inverted.
•No: byte order is not inverted.
•Yes: byte order is inverted.

LMP-100
PROFIBUS/MODBUS GATEWAY
LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14 Page 19 of 40
All rights reserved to DLG Automação Industrial © 2011 – 2014
On variables that require more than 1 byte of storage, the
definition of the byte order is essential for the correct processing
of the variable. There are two possible byte orders considering
that a Modbus analog variable is 2 bytes long:
•Little endian (LE), also known as Intel format.
•Big endian (BE), also known as Motorola format.
The LE order dictates that the variable’s least significant byte
must be stored in the memory address right before the memory
address of the most significant byte. In BE order, the byte
positions are inverted.
Equipments with Modbus communications shall encode their
analog variables in the BE format. Therefore, the analog data
acquired by the LMP-100 is encoded in this format.
Profibus masters and other supervisory systems may be designed
to operate in the LE format. Should that be the case, the LMP-100
may be configured to perform the byte order inversion internally,
thus eliminating the need to program a byte order inversion
algorithm in the PLC, for instance.
When configured to perform the byte order inversion, the LMP-
100 inverts the input variables before copying them to the
Profibus input buffer, as well as the ouput variables before
sending them to the proper Modbus slave. It is worth noting that
the LMP-100 inverts all variables of a rule configure to acquire
more than one variable.
Write trigger
Defines the behavior of output rules. This parameter is ignored
when the rule is an input rule.
•Every scan cycle: output rules produce an automatic
Modbus write command on each scan cycle. The written
value is the last value received from the Profibus master.
•On value change: output rules produce an automatic
Modbus write command only when the value sent by the
Profibus master is different from the last value written to
Modbus slave.
•User triggered: output rules produce a Modbus write
command only when requested by the control register.

LMP-100
PROFIBUS/MODBUS GATEWAY
Page 20 of 40 LMP-100 User Manual MAN-EN-DE-LMP100-01.00_14
All rights reserved to DLG Automação Industrial © 2011 – 2014
Choosing between the three available behaviors requires
understanding of the specific application.
The behavior “On value change” is optimal from the Modbus
network standpoint, since data writing occurs only when the
Profibus master sends a different value.
However, this behavior is only totally safe when the variable to be
written is retentive, i.e., it holds the last value even if the Modbus
slave is turned off and on again. This caution is justified by the
following example: an output rule is configured with the behavior
“On value change”. At one point in time, the Profibus master
changes the value of a digital output from 0 to 1. The LMP-100
transfers this change to the appropriate Modbus slave. Sub
sequentially, the Modbus slave is turned off and on again, and the
non-retentive digital output goes back to value 0.
In this situation, the Profibus master keeps sending value 1, but
as the value has not changed, the LMP-100 does not detect
change and does not forward the current value to the Modbus
slave. This situation was caused by the digital output changing
from 1 to 0 when the device was turned off.
The “User triggered” behavior allows the user to control exactly at
which time writing is made. The control register allows the user to
trigger each output rule individually, writing the value available in
the Profibus output buffer. Therefore, output rules with the “User
triggered” behavior need the value to be written copied to the
Profibus output buffer and the trigger fired in the control register.
The writes triggered by the LMP-100 always carry all the variables
addressed by the rule. An output rule addressing, for instance,
five Modbus variables configured with behavior “On value change”
and that at a given time detects the change of only one of the five
variables will result in a Modbus write command containing the
new value of the variable that has changed and the last value of
the other variables.
Enabled
Sets whether the rule is enabled or disabled. A disabled rule does
not produce activity in the Modbus network.
•Yes: the rule is enabled.
•No: the rule is disabled.
In some cases it may be interesting to disable a rule. For
example, a defective Modbus slave can cause considerable
Table of contents
Popular Gateway manuals by other brands

RTA
RTA 460BSQT-NNA1 Product user guide

Moxa Technologies
Moxa Technologies MGate 5109 user manual

Agilent Technologies
Agilent Technologies E2050 Installation and configuration guide

New Rock Technologies
New Rock Technologies MX100-TG user manual

Zte
Zte ZXHN H267N user manual

Poise Technology
Poise Technology AG-188 user manual