Seneca Z-KEY-P User manual

USER MANUAL
Z-KEY-P
MODBUS TO PROFINET IO 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
Introduction
The content of this documentation refers to products and technologies described in it.
All technical data contained in the document may be changed without notice.
The content of this documentation is subject to periodic review.
To use the product safely and effectively, read the following instructions carefully before use.
The product must be used only for the use for which it was designed and manufactured: any other use is
under the full responsibility of the user.
Installation, programming and set-up are allowed only to authorized, physically and intellectually suitable
operators.
Set-up must be performed only after correct installation and the user must follow all the operations described
in the installation manual carefully.
Seneca is not responsible for failures, breakages and accidents caused by ignorance or failure to apply the
stated requirements.
Seneca is not responsible for any unauthorized modifications.
Seneca reserves the right to modify the device, for any commercial or construction requirement, without the
obligation to promptly update the reference manuals.
No liability for the contents of this document can be accepted.
Use the concepts, examples and other content at your own risk.
There may be errors and inaccuracies in this document that could damage your system, so proceed with
caution, the author(s) will not take responsibility for it.
Technical specifications are subject to change without notice.
CONTACT US
Technical support
Product information

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 2
Document revisions
DATE
REVISION
NOTES
AUTHOR
19/05/2021
1.0.0.0
First revision
MM
20/05/2021
1.0.0.1
Added Modbus TCP-IP Server and Passthrough Chapter
MM
07/06/2021
1.0.0.2
Added Z-KEY-2ETH-P and R-KEY-LT-P
MM
This document is the property of SENECA srl.
Copies and reproduction are prohibited unless authorised.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 3
TABLE OF CONTENTS
INTRODUCTION...........................................................................................................41. DESCRIPTION..........................................................................................................................................................................41.1.
Z-KEY-P COMMUNICATION PORT SPECIFICATIONS .........................................................................................................51.2.
ETHERNET PORT........................................................................................................72.
WEBSERVER MODE AND PROFINET MODE............................................................73.
STEP BY STEP GUIDE FOR THE FIRST ACCESS TO THE WEBSERVER ..............84.
CONFIGURING THE DEVICE FROM EASY SETUP 2................................................95.
WEBSERVER DEVICE CONFIGURATION..................................................................96. WEBSERVER SECTIONS......................................................................................................................................................106.1.
“STATUS” SECTION .............................................................................................................................................................116.2.
“SETUP” SECTION................................................................................................................................................................116.3.
SAVING A CONFIGURATION ON A FILE.........................................................................................................................146.3.1.
IMPORTING A CONFIGURATION FROM A FILE.............................................................................................................156.3.2.
"TAG SETUP" SECTION .......................................................................................................................................................156.4.
"FIRMWARE UPDATE" SECTION ........................................................................................................................................166.5.
“DATABASE UPDATE” SECTION........................................................................................................................................166.6.
MAPPING OF MODBUS TAGS ON PROFINET ........................................................177.
SUPPORTED MODBUS COMMUNICATION PROTOCOLS .....................................188. SUPPORTED MODBUS FUNCTION CODES........................................................................................................................188.1.
STEP BY STEP CONFIGURATION EXAMPLE OF THE DEVICE USING THE9.
WEBSERVER....................................................................................................................19
STEP-BY-STEP CONFIGURATION EXAMPLE WITH A SIEMENS™ PLC THROUGH TIA PORTAL™16 ........................219.1.
STEP-BY-STEP CONFIGURATION EXAMPLE WITH A CODESYS™ 3.5 PLC ..................................................................389.2.
MODBUS DIAGNOSTICS.......................................................................................5110.
RESETTING THE DEVICE TO ITS FACTORY CONFIGURATION........................5211.
EXCEL TEMPLATE.................................................................................................5212.
MODBUS TCP-IP SERVER AND MODBUS PASS-THROUGH.............................5213.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 4
INTRODUCTION1.
ATTENTION!
This user manual extends the information from the installation manual to the configuration of the
device. Use the installation manual for more information.
ATTENTION!
In any case, SENECA s.r.l. or its suppliers will not be responsible for the loss of data/revenue or
consequential or incidental damages due to negligence or bad/improper management of the device,
even if SENECA is well aware of these possible damages.
SENECA, its subsidiaries, affiliates, group companies, suppliers and distributors do not guarantee that
the functions fully meet the customer's expectations or that the device, firmware and software should
have no errors or operate continuously.
DESCRIPTION1.1.
The products Z-KEY-P, R-KEY-LT-P, Z-KEY-2TH-P autonomously read the registers of devices on a Modbus
serial/ethernet bus and make them available for access by a Profinet IO controller.
Each Modbus variable (tag) is converted to Profinet, a maximum of 500 variables (tags) can be defined.
The integrated webserver can be used to configure the device and for diagnostic purposes.
Below are the connection configurations of a classic use case:

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 5
Z-KEY-P COMMUNICATION PORT SPECIFICATIONS1.2.
ETHERNET COMMUNICATION PORT
Type
Ethernet 100 baseT RJ45 front
Configuration
Via integrated Webserver or Easy Setup 2
Industrial communication protocol
Profinet IO, Modbus TCP-IP client
Factory address
Static address 192.168.90.101
RS485/RS232 SERIAL COMMUNICATION PORTS
Number of ports
2
Type
COM#1 RS485 port for IDC10 connector
Terminal COM#2 RS485/RS232 port
Baud rate
From 1200 to 115200 bit/s
Protocol
Modbus RTU master, Modbus ASCII master, Modbus TCP-IP
server
USB COMMUNICATION PORT
Number of ports
1
Type
Driver Windows/Linux Virtual Com CDC standard
Protocol
Modbus RTU Slave
Configuration
Not modifiable 115200 bit/s, 8 bits, No parity, 1 stop bit, station
address 1

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 6
1.3. Z-KEY-2ETH-P COMMUNICATION PORT SPECIFICATIONS
ETHERNET COMMUNICATION PORT
Type
2x Ethernet 100 baseT RJ45 front in switch configuration
Configuration
Via integrated Webserver or Easy Setup 2
Industrial communication protocol
Profinet IO, Modbus TCP-IP client, Modbus TCP-IP server
Factory address
Static address 192.168.90.101
RS485/RS232 SERIAL COMMUNICATION PORTS
Number of ports
2
Type
RS485 COM#1 port for IDC10 connector
COM#2 RS485/RS232 terminal port
Baud Rate
From 1200 to 115200 bit/s
Protocol
Modbus RTU master, Modbus ASCII master
USB COMMUNICATION PORT
Number of ports
1
Type
Driver Windows/Linux Virtual Com CDC standard
Protocol
Modbus RTU Slave
Configuration
Not modifiable: 115200 bit/s, 8 bit, No parità, 1 stop bit, station
address 1
1.3. R-KEY-LT-P COMMUNICATION PORT SPECIFICATIONS
ETHERNET COMMUNICATION PORT
Type
1x Ethernet 100 baseT RJ45 frontale
Configuration
Via integrated Webserver or Easy Setup 2
Industrial communication protocol
Profinet IO, Modbus TCP-IP client, Modbus TCP-IP server
Factory address
Static address 192.168.90.101
RS485/RS232 SERIAL COMMUNICATION PORTS
Number of ports
1
Type
COM#1 RS485/RS232 terminal port
Baud Rate
From 1200 to 115200 bit/s
Protocol
Modbus RTU master, Modbus ASCII master

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 7
ETHERNET PORT2.
The factory configuration of the Ethernet port is:
STATIC IP: 192.168.90.101
SUBNET MASK: 255.255.0.0
GATEWAY: 192.168.90.1
Multiple devices must not be inserted on the same network with the same static IP.
ATTENTION!
DO NOT CONNECT 2 OR MORE FACTORY-CONFIGURED DEVICES ON THE SAME NETWORK, OR THE
DEVICE WILL NOT WORK
(CONFLICT OF IP ADDRESSES 192.168.90.101)
WEBSERVER MODE AND PROFINET MODE3.
The device is normally in profinet mode, in profinet mode the device can be configured only through the Easy
Setup 2 software .
In order to access the internal webserver, it is necessary to put the device into webserver mode using the
Easy Setup2 or Seneca Device Discovery software, it is also possible to change the operating mode by
pressing the side button following the procedure:
To force the webserver mode:
1. Switch on the device
2. Hold down the PS1 button until all the LEDs flash quickly.
3. Release the button
4. The device restarts and the LEDs
On Z-KEY-P: PWR and SD/COM
On Z-KEY-2ETH-P: PWR and COM
On R-KEY-LT-P: PWR and COM
flash slowly to indicate webserver mode
To force Profinet mode:
1. Switch on the device
2. Hold down the PS1 button until all the LEDs flash quickly.
3. Release the button
4. The device restarts and the LEDs
On Z-KEY-P: PWR and SD/COM
On Z-KEY-2ETH-P: PWR and COM
On R-KEY-LT-P: PWR and COM
stop flashing slowly to indicate the Profinet mode.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 8
STEP BY STEP GUIDE FOR THE FIRST ACCESS TO THE WEBSERVER4.
STEP 1: POWER THE DEVICE AND CONNECT THE ETHERNET PORT, PUT THE DEVICE IN
WEBSERVER MODE (SEE CHAPTER 3)
STEP 2: SENECA DISCOVERY DEVICE SOFTWARE INSTALLATION
Download (from the Seneca website in the Z-KEY-P section) and install the Seneca Discovery Device
software.
STEP 3: SEARCH FOR THE DEVICE
Run the software and press the “SCAN” button: the software will search for the Ethernet devices in the
network. Locate the device (factory address 192.168.90.101):
STEP 4 CHANGE OF IP ADDRESS
Select the device and press the “Assign IP” button, set a configuration compatible with your PC, for instance:
Confirm with OK. Now the device can be reached via Ethernet from your PC.
STEP 5 ACCESS TO THE CONFIGURATION WEBSERVER
ENTER your access credentials:
user: admin
password: admin
ATTENTION!
THE WEB BROWSERS WHICH HAVE BEEN TESTED FOR COMPATIBILITY WITH THE DEVICE
WEBSERVER ARE:
MOZILLA FIREFOX AND GOOGLE CHROME.
THEREFORE, THE OPERATION WITH OTHER BROWSERS IS NOT GUARANTEED

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 9
CONFIGURING THE DEVICE FROM EASY SETUP 25.
Devices can be configured using the Easy Setup2 configuration software.
For more information, please refer to the help in the software.
WEBSERVER DEVICE CONFIGURATION6.
For further information on the access to the webserver of a new device, please refer to chapter 0.
ATTENTION!
THE WEB BROWSERS WHICH HAVE BEEN TESTED FOR COMPATIBILITY WITH THE DEVICE
WEBSERVER ARE:
MOZILLA FIREFOX AND GOOGLE CHROME.
THEREFORE, THE OPERATION WITH OTHER BROWSERS IS NOT GUARANTEED
ATTENTION!
AFTER THE FIRST ACCESS CHANGE USER NAME AND PASSWORD IN ORDER TO PREVENT
ACCESS TO THE DEVICE TO UNAUTHORIZED PEOPLE.
ATTENTION!
IF THE PARAMETERS TO ACCESS THE WEBSERVER HAVE BEEN LOST, TO ACCESS IT, IT IS
NECESSARY TO GO THROUGH THE PROCEDURE TO RESET THE FACTORY-SET CONFIGURATION

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 10
WEBSERVER SECTIONS6.1.
The Webserver is divided into pages (sections) representing the various gateway functions:
Status
It is the section that displays the values of the configured tags in real time.
Setup
It is the section that allows the device basic configuration.
Setup Tag
It is the section that allows adding/modifying the tags (that is the variables) of the Modbus devices connected
to the gateway.
Firmware Update
It is the section that allows updating the firmware and database.
Database Update
It is the section that allows updating the firmware and database.
Traffic Monitor
It allows to analyse the ModBUS frames of the serials.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 11
“STATUS” SECTION6.2.
In the status section, it is possible to view the tag values in real time together with their fail/ok status:
50 tags per page maximum can be displayed, the maximum number of pages is 10.
Some basic information among which the device interrogation loop time of both serials is displayed in the top
part of the page.
On this page it is also possible to view the mapping that the Modbus tags will have in Profinet IO.
“SETUP” SECTION6.3.
DHCP (ETH) (default: Disabled):
Sets the DHCP client to get an IP address automatically.
STATIC IP (default: 192.168.90.101)
Sets the device static address. Careful not to enter devices with the same IP address into the same network.
STATIC IP MASK (default: 255.255.255.0)
Sets the mask for the IP network.
STATIC GATEWAY (default: 192.168.90.1)
Sets the gateway address.
WORKING MODE
Sets the operation mode, currently only gateway mode is supported.
TCP-IP PORT (default: 502)
Sets the communication port for the Modbus TCP-IP client protocol.
TCP-IP TIMEOUT [ms] (default 512 ms)
Sets the waiting time for a request to be considered in timeout.
PORT #1 MODBUS PROTOCOL (default RTU)
Sets the protocol on the serial between Modbus RTU or Modbus ASCII
PORT #2 MODBUS PROTOCOL (default RTU)
Sets the protocol on the serial between Modbus RTU or Modbus ASCII
PORT #1 BAUDRATE (default: 38400 baud)
Selects the communication speed of the COM #1 serial port
PORT #1 DATA BITS (default: 38400 baud)
Selects the communication speed of the COM #1 serial port
PORT #1 PARITY (default: None)
Sets the parity for the COM #1 serial communication port.
PORT #1 STOP BIT (default: 1)
Sets the number of stop bits for the COM #1 serial communication port.
PORT #1 TIMEOUT [ms]
Sets the wait time before defining fail.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 12
PORT #1 DELAY BETWEEN POLLS [ms]
Waiting time before making a new serial request.
PORT #1 WRITING RETRIES (default: 3)
Selects the number of writing attempts to be made on a serial slave before returning an error.
PORT #1 MAX READ NUM
Sets the maximum number of simultaneous serial reading ModBUS registers, the firmware will use this value
to optimize the ModBUS readings.
PORT #1 MAX WRITE NUM
Sets the maximum number of simultaneous writing ModBUS registers of the serial, the firmware will use this
value to optimize the ModBUS writings.
PORT #2 BAUDRATE (default: 38400 baud) (only per Z-KEY-P and Z-KEY-2ETH-P)
Selects the communication speed of the COM #2 serial port
PORT #2 DATA BITS (default: 38400 baud) (only per Z-KEY-P and Z-KEY-2ETH-P)
Selects the communication speed of the COM #2 serial port
PORT #2 PARITY (default: None) (only per Z-KEY-P and Z-KEY-2ETH-P)
Sets the parity for the COM #2 serial communication port.
PORT #2 STOP BIT (default: 1) (only per Z-KEY-P and Z-KEY-2ETH-P)
Sets the number of stop bits for the COM #2 serial communication port.
PORT #2 TIMEOUT [ms] (only per Z-KEY-P and Z-KEY-2ETH-P)
Sets the wait time before defining fail.
PORT #2 DELAY BETWEEN POLLS [ms] (only per Z-KEY-P and Z-KEY-2ETH-P)
Waiting time before making a new serial request.
PORT #2 WRITING RETRIES (default: 3) (only per Z-KEY-P and Z-KEY-2ETH-P)
Selects the number of writing attempts to be made on a serial slave before returning an error.
PORT #2 MAX READ NUM (only per Z-KEY-P and Z-KEY-2ETH-P)
Sets the maximum number of simultaneous serial reading ModBUS registers of the remote TCP-IPModbus
server, the firmware will use this value to optimize the ModBUS readings.
PORT #2 MAX WRITE NUM
Sets the maximum number of simultaneous writing ModBUS registers of the serial, the firmware will use this
value to optimize the ModBUS writings.
WEB SERVER AUTHENTICATION USER NAME (default: admin)
Sets the username to access the webserver.
WEB SERVER PASSWORD (default: admin)
Sets the password to access the webserver and to read/write the configuration (if enabled).
WEB SERVER PORT (default: 80)
Sets the communication port for the webserver.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 13
IP CHANGE FROM DISCOVERY (default: Enabled)
Selects whether or not the device accepts the IP address change from the Seneca Discovery Device software.
PORT #1 AFTER FAIL DELAY [s]
Sets the number of quarantine seconds after a tag has been declared in fail (i.e. these tags are no longer
considered) before being interrogated again.
PORT #2 AFTER FAIL DELAY [s] (only per Z-KEY-P and Z-KEY-2ETH-P)
Sets the number of quarantine seconds after a tag has been declared in fail (i.e. these tags are no longer
considered) before being interrogated again.
PROFINET DEVICE NAME
Sets the name of the Profinet peripheral
MODBUS TCP-IP CLIENT
Enables or not the TCP-IP client Modbus
MODBUS TCP-IP SERVER#1…10 PORT
Sets the port for max. 10 remote TCP-IP Modbus servers
MODBUS TCP-IP SERVER#1…10 ADDRESS
Sets the IP address for max. 10 remote TCP-IP Modbus servers
MODBUS TCP-IP CLIENT TIMEOUT [ms]
Sets the timeout for remote TCP-IP Modbus servers
MODBUS TCP-IP CLIENT DELAY BETWEEEN POLLS [ms]
Sets the waiting time between one call and the next of the TCP-IP client ModBUS
MODBUS TCP-IP CLIENT WRITING ATTEMPTS
Selects the number of writing attempts to be made on a remote TCP-IP Modbus server before returning an
error and activating the quarantine.
MODBUS TCP-IP CLIENT MAX READ NUM
Sets the maximum number of simultaneous serial reading ModBUS registers of the remote TCP-IP Modbus
server, the firmware will use this value to optimize the ModBUS readings.
MODBUS TCP-IP CLIENT MAX WRITE NUM
Sets the maximum number of simultaneous serial writing ModBUS registers of the remote TCP-IP Modbus
server, the firmware will use this value to optimize the ModBUS writings.
SERVER AFTER FAIL DELAY
Sets the number of quarantine seconds after a tag has been declared in fail (i.e. these tags are no longer
considered) before being interrogated again.
In addition, a configuration can be exported / imported via the webserver.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 14
SAVING A CONFIGURATION ON A FILE6.3.1.
A configuration that includes:
CONFIGURATION
TAG
It can be saved to a file this way:
Go to the Setup section and select the file to save, press the "Save config" button

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 15
IMPORTING A CONFIGURATION FROM A FILE6.3.2.
A configuration that includes:
CONFIGURATION
TAG
It can be imported from a file this way:
Go to the Setup section and select the file to load, press the "Load config" button
"TAG SETUP" SECTION6.4.
In this section you can add, edit or delete a tag.
A tag represents a variable (typically 1 or 2 ModBUS addresses depending on the type of data) that will be
converted into Profinet IO.
Using the ADD button you can add a new tag.
Using the MODIFY button it is possible to modify an existing tag.
Using the DEL button it is possible to delete an existing tag.
GATEWAY TAG NAME
It is the identifying name of the tag
TARGET MODBUS DEVICE
It represents the Seneca Modbus device selected from those available in the database.
In the case of a non-Seneca device, select CUSTOM.
TARGET RESOURCE
It represents the Seneca device variable you want to add.
TARGET CONNECTED TO
It selects the serial to be used for Modbus serial communication for the specified TAG.
TARGET MODBUS STATION ADDRESS
It selects the station address to use for the TAG.
TARGET MODBUS START REGISTER

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 16
It represents the starting Modbus address of the TAG (in the case of a Seneca device it is filled in
automatically).
TARGET MODBUS REQUEST TYPE
It represents the type of Modbus command to use (Holding Register, Coil etc.).
In the case of a Seneca device it is filled in automatically.
TARGET REGISTER DATA TYPE
It represents the type of data of the tag used (Bit, Unsigned 16 bit, Unsigned 32 bit etc…).
In the case of a Seneca device it is filled in automatically.
TARGET MODBUS WRITE MODE
If you need to write the TAG via Profinet IO, it allows you to select the writing technique on the Modbus side:
Periodic or Data change.
Periodic: writing is carried out continuously with the set time interval
Data Change: writing occurs only if the tag changes its value.
Periodic or data Change: combines the two previous modes.
TARGET MODBUS WRITE PERIODIC TIME [s]
It represents the time interval in the case of TARGET MODBUS WRITE MODE of the TIMED type
"FIRMWARE UPDATE" SECTION6.5.
In order to improve, add, optimize the functions of the product, Seneca releases firmware updates on the
device section on the www.seneca.it website
ATTENTION!
NOT TO DAMAGE THE DEVICE DO NOT REMOVE THE POWER SUPPLY DURING THE FIRMWARE
UPDATE OPERATION.
“DATABASE UPDATE” SECTION6.6.
Seneca releases new Database files of its updated ModBUS devices on the Z-KEY-P device section of the
www.seneca.it website.
To update the database, select the file and press the "Update Database" button.
The device is already updated at the factory with the most recent database at the time of production

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 17
MAPPING OF MODBUS TAGS ON PROFINET7.
It is possible to view how the ModBUS TAGs have been converted to Profinet IO through the table on the
"status" page of the webserver.
In particular, the fields are:
GATEWAY TAG NR
It represents the incremental number of the TAG, a maximum of 500 tags are supported.
GATEWAY TAG NAME
It is the mnemonic name of the TAG
GATEWAY MODBUS START REGISTER
It is the ModBUS address of the TAG in the internal memory of the device (for future use).
TAG VALUE
It represents the current value of the tag.
TAG READING STATUS
It represents the status of the tag whether OK or FAIL
TAG DATA TYPE
It represents the type of data of the TAG: Boolean, Unsigned 16. Signed 16, Unsigned 32, Signed 32 or
Signed 64
NR BYTE
It represents the NR of bytes in which the tag is converted into profinet.

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 18
SUPPORTED MODBUS COMMUNICATION PROTOCOLS8.
The Modbus communication protocols supported are:
Modbus RTU master (from #1 and #2 serial ports)
Modbus TCP-IP Client (from the Ethernet port) up to 10 remote TCP-IP Modbus Servers
For more information on these protocols, see the website:
http://www.modbus.org/specs.php.
SUPPORTED MODBUS FUNCTION CODES8.1.
The following Modbus functions are supported:
Read Coils (function 1)
Read Discrete Inputs (function 2)
Read Holding Registers (function 3)
Read Input Registers (function 4)
Write Single Coil (function 5)
Write Single Register (function 6)
Write multiple Coils (function 15)
Write Multiple Registers (function 16)
ATTENTION!
All 32-bit tags are contained in 2 consecutive Modbus registers
All 64-bit tags are contained in 4 consecutive Modbus registers

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 19
STEP BY STEP CONFIGURATION EXAMPLE OF THE DEVICE9.
USING THE WEBSERVER
You want to connect a Siemens PLC to two Seneca Modbus RTU slave devices:
Z-10-D-IN (SLAVE ADDRESS 1) and Z-10-D-OUT (SLAVE ADDRESS 2).
In the example we will use the product Z-KEY-P (the steps are quite similar for the other devices R-KEY-LT-P
and Z-KEY-2ETH).
The 10 digital inputs of the Z-10-D-IN are from coil address 1 to coil address 10 of slave #1 device
The 10 digital outputs of the Z-10-D-OUT are from coil address 1 to coil 10 of slave #2 device
Now we use the Easy Setup 2 software and select Z-KEY-P:
We add the first input of Z-10-D-IN to slave address #1 on serial port #1, to do this we select the device Z-10-
D-IN from the list and as resource INPUT1. Now rename the TAG to IN1:

User Manual
Z-KEY-P
ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY
BE REPRODUCED WITHOUT PRIOR PERMISSION.
www.seneca.it
Doc: MI00572-1-EN
Page 20
We duplicate the tag for all 10 inputs and modify the INPU2, INPUT3 etc... resources. Same operation for the
10 outputs of Z-10-D-IN on slave addresss#2 and serial port #1 in order to obtain the following table:
We check that the configuration is correct in the configuration test.
We can now move on to the configuration of the PLC.
Other manuals for Z-KEY-P
1
Table of contents
Other Seneca Gateway manuals

Seneca
Seneca Z-KEY-MBUS User manual

Seneca
Seneca Z-PASS2 User manual

Seneca
Seneca R-GWR User manual

Seneca
Seneca Z-GW-MB User manual

Seneca
Seneca Z-KEY User manual

Seneca
Seneca R-KEY-LT User manual

Seneca
Seneca Z-KEY User manual

Seneca
Seneca Z-PASS1-R02 User manual

Seneca
Seneca Z-KEY-2ETH-P User manual

Seneca
Seneca Z-KEY User manual

Seneca
Seneca R-KEY-LT User manual

Seneca
Seneca R-KEY-LT User manual

Seneca
Seneca Z-LINK2-LO User manual

Seneca
Seneca R-GWR User manual

Seneca
Seneca X-HDU Instruction Manual

Seneca
Seneca Z-KEY User manual

Seneca
Seneca Z-PC SERIES User manual

Seneca
Seneca Z-KEY User manual

Seneca
Seneca Z-KEY-MBUS User manual

Seneca
Seneca Z-GW-MB User manual