Seneca Z-KEY-P User Manual

Seneca Z-KEY-P User Manual

Modbus to profinet io gateway
Hide thumbs Also See for Z-KEY-P:

Advertisement

Quick Links

Via Austria 26 – 35127 – Z.I. - PADOVA (PD) - ITALY
Tel. +39.049.8705355 – 8705355 Fax +39 049.8706287
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
MODBUS TO PROFINET IO GATEWAY
SENECA S.r.l.
www.seneca.it
supporto@seneca.it
commerciale@seneca.it

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z-KEY-P and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Seneca Z-KEY-P

  • Page 1 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.
  • Page 2 Added Modbus TCP-IP Server and Passthrough Chapter 20/05/2021 1.0.0.1 Added Z-KEY-2ETH-P and R-KEY-LT-P 07/06/2021 1.0.0.2 This document is the property of SENECA srl. Copies and reproduction are prohibited unless authorised. www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 2...
  • Page 3: Table Of Contents

    INTRODUCTION ......................4 1.1. DESCRIPTION ..................................4 1.2. Z-KEY-P COMMUNICATION PORT SPECIFICATIONS ......................5 ETHERNET PORT ......................7 WEBSERVER MODE AND PROFINET MODE ............7 STEP BY STEP GUIDE FOR THE FIRST ACCESS TO THE WEBSERVER ....8 CONFIGURING THE DEVICE FROM EASY SETUP 2 ..........9 WEBSERVER DEVICE CONFIGURATION ..............
  • Page 4: Introduction

    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.
  • Page 5: Z-Key-P Communication Port Specifications

    User Manual Z-KEY-P 1.2. Z-KEY-P COMMUNICATION PORT SPECIFICATIONS 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...
  • Page 6 User Manual Z-KEY-P 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...
  • Page 7: Ethernet Port

    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.
  • Page 8: Step By Step Guide For The First Access To The Webserver

    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”...
  • Page 9: Configuring The Device From Easy Setup 2

    User Manual Z-KEY-P CONFIGURING THE DEVICE FROM EASY SETUP 2 Devices can be configured using the Easy Setup2 configuration software. For more information, please refer to the help in the software. WEBSERVER DEVICE CONFIGURATION For further information on the access to the webserver of a new device, please refer to chapter 0.
  • Page 10: Webserver Sections

    User Manual Z-KEY-P 6.1. WEBSERVER SECTIONS 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.
  • Page 11: Status" Section

    User Manual Z-KEY-P 6.2. “STATUS” SECTION 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.
  • Page 12 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.
  • Page 13 Z-KEY-P 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.
  • Page 14: Saving A Configuration On A File

    User Manual Z-KEY-P 6.3.1. SAVING A CONFIGURATION ON A FILE A configuration that includes: CONFIGURATION 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 www.seneca.it...
  • Page 15: Importing A Configuration From A File

    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.
  • Page 16: Firmware Update" Section

    User Manual Z-KEY-P 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.).
  • Page 17: Mapping Of Modbus Tags On Profinet

    User Manual Z-KEY-P MAPPING OF MODBUS TAGS ON PROFINET 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.
  • Page 18: Supported Modbus Communication Protocols

    User Manual Z-KEY-P SUPPORTED MODBUS COMMUNICATION PROTOCOLS 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.
  • Page 19: Step By Step Configuration Example Of The Device 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).
  • Page 20 User Manual Z-KEY-P 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.
  • Page 21: Step-By-Step Configuration Example With A Siemens™ Plc Through Tia Portal™16

    Let's start the configuration on the TIA Portal: Creating a new project: Install the GSD file of the Seneca product: Point to the directory where the file is and press OK, then the list of GSD files in the folder will appear: www.seneca.it...
  • Page 22 User Manual Z-KEY-P Then import the Seneca gsd file: Press “install”. www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 22 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 23 User Manual Z-KEY-P Now insert the Siemens PLC (in our example a SIEMATIC S7 1200), click on "Add new device ...": www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 23 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 24 User Manual Z-KEY-P Confirm and the PLC will be added to the rack: Now click on the PLC and select Profinet interface -> Ethernet addresses www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 24 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 25 User Manual Z-KEY-P Set the IP you want for the PLC (in this case 192.168.90.44) and the PLC subnet: Move on to the network view: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 25 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 26 User Manual Z-KEY-P On the right select "Hardware Catalogue" and then under "Additional Field Equipment" -> PROFINET IO -> GATEWAY -> Seneca SRL -> Z-KEY-P Gateway www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 26...
  • Page 27 User Manual Z-KEY-P Drag the device to the network view: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 27 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 28 User Manual Z-KEY-P Now associate it with the PLC: Click with the left mouse button on "Not assigned" and then select the PLC: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 28 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 29 User Manual Z-KEY-P Click twice on the Seneca device and configure the IP address here too (for example 192.168.90.48): In Profinet the devices are identified by their name, so right click on the Seneca device and select "Assign device name" www.seneca.it ALL RIGHTS RESERVED.
  • Page 30 User Manual Z-KEY-P Scan the network with "Update list" and set (if necessary) the device name with "Assign name". www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 30 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 31 User Manual Z-KEY-P In our Modbus configuration we have 10 read only tags (the 10 inputs of the Z-10-D-IN) and 10 write tags (the 10 outputs of the Z-10-D-OUT). Each boolean Tag in profinet is converted into a byte, so we will need 10 bytes to read for the Z-10-D-IN and 10 bytes to write for the Z-10-D-OUT.
  • Page 32 User Manual Z-KEY-P Now the devices are configured, all that remains is to compile and send the configuration to the PLC. The first icon compiles the second sends the project: Before sending the project to the PLC select the Ethernet interface and start the search, select the PLC and press "Load".
  • Page 33 Go ON-Line so as to check if there are any errors: If everything is correct you will get a green icon next to the Seneca device: It is also possible to read and write the IO (for debugging purposes) directly from the TIA portal.
  • Page 34 User Manual Z-KEY-P Define the PLC tags directly in the "standard tag table": Add the variables related to the IO (10 digital inputs and 10 digital outputs). The addresses are written here: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY...
  • Page 35 User Manual Z-KEY-P Therefore the bytes from IB1 to IB10 contain the 10 inputs, the bytes from QB1 to QB10 the outputs. Define the following table by hand, set the output tags as writable: After this operation, define a new control table: Click on "Add new control table"...
  • Page 36 User Manual Z-KEY-P Since you have already defined them previously, just select the ones we want to monitor from the list: Once you have added all of them you will get: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY...
  • Page 37 User Manual Z-KEY-P Now compile, send the project and go online with the PLC (all operations seen previously): Once online, press the glasses icon to update the status of the variables: Under the "Control value" column you can read the I/O value in real time.
  • Page 38: Step-By-Step Configuration Example With A Codesys™ 3.5 Plc

    User Manual Z-KEY-P 9.2. STEP-BY-STEP CONFIGURATION EXAMPLE WITH A CODESYS™ 3.5 PLC In Codesys, create a new standard project: Configure the PLC by selecting it in the tree on the left and then browsing the network: Select the PLC after scanning the network: www.seneca.it...
  • Page 39 User Manual Z-KEY-P The PLC is now connected to the system: Now that the PLC has been detected, move on to insert a profinet port on standard Ethernet: Right click on device and "add device": www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY...
  • Page 40 User Manual Z-KEY-P Then add the Profinet IO Master: Double click on Ethernet, set the Ethernet port and the IP address of the PLC (in this case use 192.168.90.44): www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 40 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 41 Z-KEY-P Set also the address range for the Profinet peripheral, double click on PN_Controller: Now you need to connect the Seneca slave device PROFINET IO to the profinet master (controller). First install the GSD file of the Seneca IO. Select Tools->Device Repository: www.seneca.it...
  • Page 42 User Manual Z-KEY-P Now import the GSD file selecting Profinet IO Slave: Press “Install”: Now point to the correct folder and press OK. Select the file type as GSDML “PROFINET IO configuration file”. Codesys has now added the GSD file correctly.
  • Page 43 User Manual Z-KEY-P First compile the project and log in to the PLC: Now we have verified the correct functioning of the connection with the PLC. www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 43...
  • Page 44 User Manual Z-KEY-P At this point add the Z-KEY-P device, right click under PN-Controller and choose Add Device: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 44 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 45 User Manual Z-KEY-P Then select the Z-KEY-P and press "Add Device": www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 45 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 46 User Manual Z-KEY-P Click on the Z-KEY-P device and configure the ip address: Now insert the configuration (10 bytes of reading for the Z-10-D-IN and 10 bytes of writing for the Z-10-D- OUT): Right click on Z-KEY-P and select "Add device": www.seneca.it...
  • Page 47 User Manual Z-KEY-P Add the 10 read bytes and the 10 write bytes: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY Doc: MI00572-1-EN Page 47 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 48 User Manual Z-KEY-P The PLC (Raspberry-pi) is quite slow and not real time, consequently it cannot manage the profinet at maximum speed so we modify the values by setting safety parameters: Check that everything is correct by compiling and running the PLC.
  • Page 49 User Manual Z-KEY-P And write in the address from %QB0 to %QB9 as it is obtained from here: Declare an 8-bit variable (Byte) for each of the 10 inputs and a bit variable (Byte) for each of the 10 outputs.
  • Page 50 User Manual Z-KEY-P The value of the inputs/outputs can be read here: while to write the outputs you just need to set the value in the bytes in the "prepared value" column. For example, set all the outputs to 1, then confirm on Debug → Write values: And then with "Write values"...
  • Page 51: Modbus Diagnostics

    The diagnostics management takes the timeout or exceptions to the Modbus requests of the tags into account. Z-KEY-P will introduce the OK status (0x35) or the FAIL status (0x15) in the “data status” field of the Profinet packets if at least one tag is in FAIL status.
  • Page 52: Resetting The Device To Its Factory Configuration

    It is possible to insert the tags and then export them to the device's webserver. MODBUS TCP-IP SERVER AND MODBUS PASS-THROUGH By querying Z-KEY-P through port 502 at slave address 254, it responds with the values of the tags in real- time.

Table of Contents