User-Manual-R-KEY-LT
User-Manual-R-KEY-LT
R-KEY-LT
1-PORT MODBUS RTU/ASCII GATEWAY
SENECA S.r.l.
Via Austria 26 – 35127 – Z.I. - PADOVA (PD) - ITALY
Tel. +39.049.8705355 – 8705355 Fax +39 049.8706287
www.seneca.it
ORIGINAL INSTRUCTIONS
User Manual R-KEY-LT
Introduction
Contents of the present documentation refer to products and technologies described in it.
All technical data contained in the document may be modified without prior notice.
Content of this documentation is subject to periodical revision.
To use the product safely and effectively, read carefully the following instructions before use.
The product must be used only for the use for which it was designed and built: any other use must be
considered with full responsibility of the user.
The installation, programming and set-up is allowed only to authorized operators, physically and intellectually
suitable.
Set up shall be performed only after a correct installation and the user shall perform every operation described
in the installation manual carefully.
Seneca is not considered liable for failure, breakdown, accident caused because of ignorance or failure to
apply the indicated requirements.
Seneca is not considered liable for any unauthorized changes.
Seneca reserves the right to modify the device, for any commercial or construction requirements, without the
obligation to promptly update the reference manuals.
No liability for the contents of this documents can be accepted.
Use the concepts, examples and other content at your own risk.
There may be errors and inaccuracies in this document that may of course be damaging to your system.
Proceed with caution, and although this is highly unlikely, the author(s) do not take any responsibility for that.
Technical features subject to change without notice.
CONTACT US
[email protected] (All Countries)
Technical support
[email protected] (Italy)
[email protected] (All Countries)
Product information
[email protected] (Italy)
Document revisions
DATE REVISION NOTES
20/09/2017 1.0.0.0 First revision
Fixed chapter 1
15/11/2017 1.0.0.1
Fixed chapter 7
06/12/2017 1.0.0.2 Fixed Support and Product Information emails
This document is property of SENECA srl. Duplication and reproduction are forbidden, if not authorized.
TABLE OF CONTENTS
1. DESCRIPTION .............................................................................................................. 5
1.1. MODBUS ETHERNET TO SERIAL ..........................................................................................................................................5
1.1.1. HOW IT WORKS .............................................................................................................................................................6
1.2. MODBUS SERIAL TO ETHERNET ..........................................................................................................................................6
1.2.1. HOW IT WORKS .............................................................................................................................................................7
7. GLOSSARY ................................................................................................................ 23
WARNING!
This User Manual extend the information from the installation manual about the device configuration.
Use the installation manual for more info.
WARNING!
Under any circumstances, SENECA s.r.l. or its suppliers shall not be responsible for loss of recording
data/incomes or for consequential or incidental damage due to neglect or reckless mishandling of the
device, even though SENECA is well aware of these possible damages.
SENECA, its subsidiaries, affiliates, companies of the group, its suppliers and retailers shall not
guarantee that the functions will satisfy completely customer’s expectations or that device, the
firmware and the software shall have no errors or work continuously.
1. DESCRIPTION
R-KEY-LT is a Modbus RTU/ASCII Gateway with a RS232/RS485 port and a Fast Ethernet 100MBits.
An internal Webserver is also available for configuration and real time traffic view.
In this scenario a Modbus TCP-IP master is connected with ethernet to R-KEY-LT, one or more serial Modbus
slaves (for example the Z-PC Seneca Series) are connected to the serial port.
Also a communication with multiple clients is possible (Max 8 clients for device):
The Modbus ethernet to serial is the simplest way to communicate with Modbus RTU/ASCII slaves by an
ethernet connection.
There is no need to configure which registers must be requested because the conversion from Ethernet to
serial is executed in real time.
Only the serial configuration must be made (baud rate, parity etc…).
The Master (client) Modbus TCP-IP request a modbus register by ethernet, then the R-KEY-LT convert the
request to the serial Modbus slave, the serial Modbus slave response is also retranslated in Modbus TCP to
the Master.
WARNING!
It’s not possible to connect two Modbus serial slaves with the same Modbus address, if you need
to connect 2 Modbus RTU slaves with the same Modbus address (not configurable) you must use 2
R-KEY-LT devices.
In this scenario a Modbus serial master must be connect to one or multiple Modbus TCP-IP servers.
The Modbus serial master is connected with the serial port to the R-KEY-LT, one or more Modbus TCP-IP
servers are connected to the Ethernet port:
The Modbus serial to Ethernet is the simplest way to create a communication between a serial master Modbus
device and one or more Modbus Ethernet TCP-IP server.
There is no need to configure which registers must be requested because the conversion from serial to
Ethernet is executed in real time.
Only the serial configuration must be made (baud rate, parity etc…) and the server modbus station address
range (because one server can manage multiple station addresses).
The Master serial Modbus request a register from the RS232/RS485 port, then the R-KEY-LT convert the
request to the Modbus TCP-IP server, the Modbus TCP-IP server response is also retranslated in Modbus
serial to the Master.
WARNING!
It’s not possible to connect more than one Modbus server using the same station address
2. DEFAULT CONFIGURATION
The default configuration is:
IP: DHCP mode
Mode: Modbus Ethernet to Modbus RTU
Serial: Baud rate 38400,8bit ,No parity,1 stop bit
WARNING!
Dip switches configuration are active only after a reboot!
For reboot the device you can power off/on the power supply or press the “Reset” button until all leds
are ON (about 5 seconds).
7) If you need to force a static IP compatible with your PC select the R-KEY-LT device and click on the
“ASSIGN” button
8) Now the device can be configured from the internal web server by typing in a browser the device ip
address, for example:
http://192.168.1.168
WARNING!
As long as the dhcp server does not provide a valid ip address (PWR led is flashing), the R-KEY-LT will
not be visible from the Discovery Device tool.
WARNING!
If R-KEY-LT is configured with the ip set to DHCP but the DHCP server is not active,
after 5 minutes from the power up the R-KEY-LT will force the following fault ip address:
169.254.x.y
Where x.y are the last 2 MAC address values.
For example:
R-KEY-LT mac address = C8:F9:81:11:1A (hexadecimal values)
Fault ip address = 169.254.17.26
7) Force a static IP compatible with your PC: select the R-KEY-LT device with ip 192.168.90.101 and
click on the “ASSIGN” button
8) Now the device can be configured from the internal web server by typing in a browser the device ip
address, for example:
http://192.168.1.168
WARNING!
Don’t connect on a network two or more devices with the same ip address!
Don’t connect on a network two or more devices with the SW2 DIP1=OFF and SW2 DIP2=ON
configuration!
In this cases the R-KEY-LT will not be able to communicate from the ethernet port.
If in a network there are multiple R-KEY-LT devices to be installed, for speed up the installation follow this tips:
Install all the R-KEY-LT with the SW2 DIP1 = OFF and SW2 DIP2=OFF. If the devices are not used before
the ip is set to DHCP, if not force the device to DHCP with the dip switch.
If you have a DHCP server, all the devices can be found and configured with the Device Discovery tool.
If you don’t have a DHCP server after 5 minutes from the power up the devices will set a different static ip
169.254.x.y ,where x.y depends form the mac address and can once again can be found and configured
with the Device Discovery tool (without changing the PC ip configuration).
WARNING!
As long as the dhcp server does not provide a valid ip address (PWR led is flashing), the R-KEY-LT will
not be visible from the Discovery Device tool.
WARNING!
If R-KEY-LT is configured with the ip set to DHCP but the DHCP server is not active,
after 5 minutes from the power up the R-KEY-LT will force the following fault ip address:
169.254.x.y
Where x.y are the last 2 MAC address values.
For example:
R-KEY-LT mac address = C8:F9:81:11:1A (hexadecimal values)
Fault ip address = 169.254.17.26
WARNING!
Dip switches configuration are active only after a reboot!
For reboot the device you can power off/on the power supply or press the “Reset” button until all leds
are ON (about 5 seconds).
For access to the internal webserver type in a browser the R-KEY-LT ip address, for example:
http://192.168.90.101
then enter the username and password (default: user name = admin, password = admin).
If you need to reset to the default parameters click on “FACTORY DEFAULT” button.
In this page you can save and load a previous configuration.
The first column represents the parameter name, the second column (current) it’s the current parameter value.
The last column can be used for changing the current configuration.
DHCP
Disable: A static Ip address is used
Enable: The IP address, the IP-Mask and the Gateway address are obtained from the DHCP server.
The R-KEY IP address can be obtained with the Device Discovery utility.
WARNING!
If R-KEY-LT is configured with the ip set to DHCP but the DHCP server is not active,
after 5 minutes from the power up the R-KEY-LT will force the following fault ip address:
169.254.x.y
Where x.y are the last 2 MAC address values.
For example:
R-KEY-LT mac address = C8:F9:81:11:1A (hexadecimal values)
Fault ip address = 169.254.17.26
STATIC IP ADDRESS
Static IP address when DHCP is Disable
STATIC IP MASK
mask when DHCP is Disable
STATIC GATEWAY
Gateway address when DHCP is Disable
When a configuration it’s made you must confirm with “APPLY”, then the new configuration became operative.
WORKING MODE
Select between Modbus Serial to Ethernet or Modbus Ethernet to Serial.
TCP/IP PORT
TCP-IP port for the Modbus TCP-IP protocol used in “Modbus Ethernet to serial” mode (Max 8 clients).
PORT#1 BAUDRATE
Used to Set the port baudrate
PORT #1 BITS
Used to Set the number of bits for the serial communication.
PORT #1 PARITY
Used to Set the port parity (None, Odd or even).
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION. www.seneca.it Doc. MI00487-2-EN Rev. 3 Page 15
User Manual R-KEY-LT
PORT #1 TIMEOUT
Used to Set the timeout on Modbus Master mode before making a new call.
If “Modbus Serial to Ethernet” mode is selected you need to compile also the Modbus TCP-IP servers
parameters:
SERVER #n MODE
Enable or not the selected server
SERVER TIMEOUT
Used to Set the server timeout before making a new TCP-IP call
For example:
If the serial master makes a request to the slave address 1 the R-KEY-LT will request the registers from the
Modbus TCP-IP server #1.
If the serial master makes a request to the slave address 2 the R-KEY-LT will request the registers from the
Modbus TCP-IP server #2.
If the serial master makes a request to the slave address 3 the R-KEY-LT will request the registers from the
Modbus TCP-IP server #2.
…
If the serial master makes a request to the slave address 9 the R-KEY-LT will request the registers from the
Modbus TCP-IP server #2.
If the serial master makes a request to the slave address 10 the R-KEY-LT will request the registers from the
Modbus TCP-IP server #3.
If the serial master makes a request to the slave address >= 11 the R-KEY-LT will not convert the serial to
Ethernet packets (so ModBus registers from slaves 11,12 etc.. can be directly requested from the RS485
master).
WARNING!
REMEMBER ALWAYS TO CONFIGURE THE WEBSERVER AUTHENTICATION USER NAME AND
PASSWORD FOR RESTRICT THE ACCESS TO THE WEBSERVER. IF YOU LEAVE THE TWO
PARAMETERS TEXT BOXES BLANK NO AUTHENTICATION IT’S REQUIRED FOR ACCESS
WARNING!
For using the webserver with Internet explorer 9 (or newer) you must enable the compatibility mode
(see the arrow below):
In the Setup page it’s also possible to export (save) or import (load) a configuration:
WARNING!
Don’t connect on a network two or more devices with the same ip address!
4. TRAFFIC MONITOR
The Traffic Monitor page shows the packets that R-KEY-LT is receiving and transmitting for line debug
purpose:
The first column is the delay in milliseconds from the last packet, the second column is the packet verse
(received from R-KEY-LT or transmitted from the R-KEY-LT), the last column is the packet content in
hexadecimal format. Only the ModBus stream is displayed (stripped of the TCP-IP layer).
In Modbus Ethernet to serial mode the traffic monitor shows all the received packets from the serial line, for
example this is a serial slave with a Modbus wrong response:
In the ModBus serial to Ethernet mode the traffic monitor will display also bad packet in yellow (for example a
serial master with incorrect baud rate):
5. FIRMWARE UPDATE
New firmware’s can enhance or fix features for the R-KEY-LT device, when available they can be downloaded
from:
http://www.seneca.it/products/r-key-lt
WARNING!
Don’t power down or reset the R-KEY-LT until the updating process is completed.
The firmware revision loaded in the device can be read in the webserver upper section.
For example we need to extend the RS485 using the Ethernet or Wi-Fi infrastructure, for obtain this feature
you need at least two R-KEY-LT devices: one configured in Serial to Ethernet mode and the other configured
in Ethernet to Serial mode:
Up to 10 R-KEY-LT devices can be used in Ethernet to serial mode (10 Modbus TCP-IP server).
You can mix also Wi-Fi / Ethernet like in figure:
7. GLOSSARY
MODBUS RTU
An open protocol for the serial communications developed by Modicon Inc. (AEG Schneider Automation
International S.A.S.). Simple and robust, it has since become a de facto standard communication protocol.
For more info http://www.modbus.org/specs.php
MODBUS TCP-IP
The Modbus RTU protocol with a TCP interface that runs on Ethernet.
For more info http://www.modbus.org/specs.php
MODBUS ASCII
A variant of the Modbus RTU protocol that makes use of ASCII characters for protocol communication.
WEBSERVER
A software that store, process and deliver web pages to clients. Clients web can be PCs, Smartphones,
Tablets with a browser (Chrome, Internet Explorer, Firefox etc.).