Seneca Z-KEY-P User Manual

Seneca Z-KEY-P User Manual

Profinet io / modbus rtu-tcp gateways
Hide thumbs Also See for Z-KEY-P:

Advertisement

Quick Links

Z-KEY-P, R-KEY-LT-P, Z-KEY-2ETH-P
PROFINET IO / MODBUS RTU-TCP GATEWAYS
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
USER MANUAL
www.seneca.it
supporto@seneca.it
ORIGINAL INSTRUCTIONS
SENECA S.r.l.

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 Aligned with firmware 117 revision New operating modes introduced with firmware 204 revision 26/04/2023 Various fixes 27/04/2023 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 MI00585-3-EN Page 2 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 3: Table Of Contents

    SUPPORTED MODBUS FUNCTION CODES........................54 MODBUS DIAGNOSTICS (ONLY PROFINET IO / MODBUS MASTER GATEWAY MODE) ..........................54 RESETTING THE DEVICE TO ITS FACTORY CONFIGURATION ......56 www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 3 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 4 User Manual PROFINET GATEWAY EXCEL TEMPLATE ....................56 MODBUS TCP-IP SERVER AND MODBUS PASS-THROUGH ......57 www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 4 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 5: Preliminary Warnings

    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 6: Profinet Gateway Devices

    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) FIRMWARE UPDATE In order to improve, add or optimize the functions of the product, Seneca releases firmware updates on the device section on the www.seneca.it website The firmware update is made using the appropriate command on the Easy Setup2 software or the webserver.
  • Page 7: Operating Mode

    This operating mode allows you to connect a Profinet IO PLC controller with a maximum of 1 or 2 devices (based on the number of serial ports available in the gateway) of the Modbus RTU/ASCII Master type (typically of the PLCs). www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 7 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 8 Bytes are available from Modbus Holding Register 0 to Holding Register 255 inclusive. The “Modbus Read Area” is only readable by Modbus and only writable by Profinet. The "Modbus Write Area" is only writable by Modbus and only readable by Profinet. www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 8 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 9: Gateway With Port#1 And Port#2 Master Tag

    The easiest method to configure the gateway is through the Easy Setup2 software. For more information, refer to the help in the software. "PROFINET IO - MODBUS MASTER GATEWAY" CONFIGURATION You want to connect a Siemens™ PLC to two Seneca Modbus RTU slave devices: Z-10-D-IN (SLAVE STATION ADDRESS 1) www.seneca.it ALL RIGHTS RESERVED.
  • Page 10 PROFINET GATEWAY Z-10-D-OUT (SLAVE STATION ADDRESS 2). In the example we will use the Z-KEY-P product (the steps are exactly the same for the other R-KEY-LT-P and Z-KEY-2ETH devices). The 10 digital inputs of the Z-10-D-IN are from coil address 1 to coil address 10 of station address #1 The 10 digital outputs of the Z-10-D-OUT are from coil address 1 to coil 10 of Station Address #2 First we disconnect the PLC from the Ethernet network.
  • Page 11 Now let's add the Modbus commands to acquire the inputs and write the outputs, select the COMMANDS section: We add the reading of 10 coil registers relating to the 10 digital inputs of Z-10-D-IN: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 11 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 12 We set the writings in "Only Periodic" so they will always be performed every 1000 ms. Enter the profinet name of the device: Let's verify that serial port 1 is configured correctly for slave devices: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 12 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 13 1 We press the button to calculate the offsets of the readings 2 We press the button to calculate the write offsets 3 We enter a name to recognize the GSDML file 4 We export the GSDML file www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 13...
  • Page 14 PROFINET GATEWAY ATTENTION! IT IS ALSO POSSIBLE TO DOWNLOAD A GSDML FILE (Gateway All) FROM THE WWW.SENECA.IT WEBSITE (IN THE SECTION RELATED TO PROFINET GATEWAYS) AND COMPOSE YOUR OWN CONFIGURATION FROM TIA PORTAL WITHOUT HAVING TO IMPORT THE FILE EACH TIME.
  • Page 15 User Manual PROFINET GATEWAY Install the GSD file of the Seneca product: Point to the directory where we previously saved the GSDML file and press INSTALL. Now insert the Siemens PLC (in our example a SIEMATIC S7 1200), click on "Add new device ...": www.seneca.it...
  • Page 16 User Manual PROFINET GATEWAY Confirm and the PLC will be added to the rack: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 16 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 17 PROFINET GATEWAY Now click on the PLC and select Profinet interface -> Ethernet addresses Set the IP you want for the PLC (in this case 192.168.90.44) and the PLC subnet: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 17 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 18 Move on to “devices and network” view: On the right select "Hardware Catalogue" and then under "Additional Field Equipment" -> PROFINET IO -> GATEWAY -> Seneca SRL - ZR-KEY-P Gateway-> ZRKEY-P Gateway Agent Master Drag the device to the network view: www.seneca.it...
  • Page 19 Now associate it with the PLC: Click with the left mouse button on "Not assigned" and then select the PLC: Click twice on the Seneca device and configure the IP address here too (for example 192.168.90.48) and the timing: www.seneca.it ALL RIGHTS RESERVED.
  • Page 20 User Manual PROFINET GATEWAY Depending on the project it is necessary to set the cycle time (typically 128 ms): www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 20 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 21 User Manual PROFINET GATEWAY 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. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 21 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 22 Q64 and Q65. Now the devices are configured, all that remains is to compile and send the configuration to the PLC. To compile we select the complete hardware compilation: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 22 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 23 User Manual PROFINET GATEWAY Then press icon to send the project to the PLC: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 23 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 24 User Manual PROFINET GATEWAY Let's go online to check if there are any errors: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 24 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 25 User Manual PROFINET GATEWAY 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. Then define the variables for the PLC referring to the above addresses: And then define a control table: www.seneca.it...
  • Page 26: Profinet Io - Modbus Slave Gateway" Configuration

    You want to connect a Siemens™ PLC to another PLC connected to serial port 1. The serial PLC supports the Modbus Master protocol. In the example we will use the Z-KEY-P product (the steps are exactly the same for the other R-KEY-LT-P and Z-KEY-2ETH devices).
  • Page 27 PROFINET GATEWAY At this point the device access password is requested (default: admin): Once the password has been entered, select the Profinet IO Device / Master slave Gateway mode: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 27 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 28 Enter the profinet name of the device: Check that serial port 1 is configured correctly for the serial PLC: Now let's send the configuration to the device with the "send" button: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 28 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 29 User Manual PROFINET GATEWAY We can now move on to configuring the PLC via Tia Portal™: Creating a new project: Install the GSD file of the Seneca product: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 29...
  • Page 30 User Manual PROFINET GATEWAY For the Modbus Slave mode, the GSDML file is generic and can be downloaded from the www.seneca.it website in the gateway section of the key-p series. Point to the directory where you saved the GSDML file and press INSTALL.
  • Page 31 User Manual PROFINET GATEWAY Confirm and the PLC will be added to the rack: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 31 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 32 PROFINET GATEWAY Now click on the PLC and select Profinet interface -> Ethernet addresses Set the IP you want for the PLC (in this case 192.168.90.44) and the PLC subnet: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 32 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 33 Move on to “devices and network” view: On the right select "Hardware Catalogue" and then under "Additional Field Equipment" -> PROFINET IO -> GATEWAY -> Seneca SRL -> ZR-KEY-P Gateway -> ZRKEY-P Gateway Agent Slave Drag the device to the network view: www.seneca.it...
  • Page 34 Now associate it with the PLC: Click with the left mouse button on "Not assigned" and then select the PLC: Click twice on the Seneca device and configure the IP address here too (for example 192.168.90.48) and the timing: www.seneca.it ALL RIGHTS RESERVED.
  • Page 35 User Manual PROFINET GATEWAY Depending on the project it is necessary to set the cycle time (typically 128 ms): 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 36 SERIAL PLC -> Writes 10 Byte on Modbus -> SIEMENS PLC Reads 10 Byte from Profinet SIEMENS PLC -> Writes 5 Bytes on Profinet -> SERIAL PLC Reads 5 Bytes from Modbus The IO configuration must therefore be prepared: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 36 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 37 Now the devices are configured, all that remains is to compile and send the configuration to the PLC. To compile we select the complete hardware compilation: Then press icon to send the project to the PLC: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 37 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 38 User Manual PROFINET GATEWAY Let's go online to check if there are any errors: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 38 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 39 User Manual PROFINET GATEWAY 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. Important: Registers written in Modbus cannot be read by Modbus but only by Profinet Registers read by Modbus cannot be written by Modbus but only by Profinet Then define the variables for the PLC.
  • Page 40 User Manual PROFINET GATEWAY Now define the PLC variables using the newly created ones as data type: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 40 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 41 User Manual PROFINET GATEWAY This way you created the arrays (albeit beyond our needs): For example the array of reads: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 41 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 42 The 10 bytes of Profinet readings are the 10 bytes of modbus writing (5 Modbus registers = 10 bytes). Here it is now possible to read inputs and force write outputs. www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY...
  • Page 43: Webserver Mode And Profinet Mode

    In order to access the internal webserver it is necessary to put the device in Webserver mode using the Easy Setup2 or Seneca Device Discovery software, it is also possible to change the operating mode by pressing the button following the procedure: www.seneca.it...
  • Page 44: Manual Procedure For Switching From Profinet Mode To Webserver Mode And Vice Versa

    2) Keep the PS1 button pressed until all LEDs turn off 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 show webserver mode...
  • Page 45: Webserver Device Configuration

    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 www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 45...
  • Page 46: Webserver Sections

    This is the section that allows you to update the device firmware. Database Update It is the section that allows you to update the database of Modbus Seneca devices. Serial Traffic Monitor It allows to analyse the ModBUS frames of the serials.
  • Page 47: Status" Section

    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 www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 47 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 48 PORT #2 BAUDRATE (default: 38400 baud) (only for 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 for Z-KEY-P and Z-KEY-2ETH-P) Selects the communication speed of the COM #2 serial port PORT #2 PARITY (default: None) (only for Z-KEY-P and Z-KEY-2ETH-P) Sets the parity for the COM #2 serial communication port.
  • Page 49 Sets the communication port for the web server. 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 50: Saving A Configuration On A File

    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 IMPORTING A CONFIGURATION FROM A FILE A configuration that includes: www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 50...
  • Page 51 CONFIGURATION TAGS/COMMANDS 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 www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 51...
  • Page 52: Commands/Tags" Section (Only For Profinet Io / Modbus Master Gateway Mode)

    TARGET MODBUS STATION ADDRESS It selects the station address to use for the command. TARGET MODBUS START REGISTER It represents the starting Modbus address of the command (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 53: I/O Mapping" Section

    It allows exporting the GSDML file created (in the case of IO / Modbus Master Gateway mode) and to move the contents of the bytes of the read and write buffers. "FIRMWARE UPDATE" SECTION In order to improve, add, optimize the functions of the product, Seneca releases firmware updates on the device section on the www.seneca.it...
  • Page 54: Serial Traffic Monitor

    Diagnostics management takes the timeout or exceptions to the Modbus requests into account. 3 slots are made available for diagnostics: GLOBAL DIAGNOSTIC READ BYTE PORT#1 DIAGNOSTIC MODBUS DEVICE ADDRESS PORT#2 DIAGNOSTIC MODBUS DEVICE ADDRESS www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 54 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 55 1, 8, 15, 24 and station 15 is in fail we will have that the slot "PORT#1 DIAGNOSTIC MODBUS DEVICE ADDRESS" will be worth: BIT 0 -> 0 (it is associated with the lowest station address i.e. 1) www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 55 BE REPRODUCED WITHOUT PRIOR PERMISSION.
  • Page 56: Resetting The Device To Its Factory Configuration

    4) Remove power from the device 5) Turn 2 SW2 dip switches to OFF. 6) At the next restart the device will have loaded the factory configuration EXCEL TEMPLATE Excel templates are available on the Seneca website (www.seneca.it Profinet series Gateway section). www.seneca.it ALL RIGHTS RESERVED.
  • Page 57 502 at the slave address from 1 to 253, they convert the Modbus TCP-IP requests to Modbus RTU (Pass-Through mode). Address 255 is reserved for configuring the device with the Easy Setup2 software. www.seneca.it ALL RIGHTS RESERVED. NO PART OF THIS PUBLICATION MAY MI00585-3-EN Page 57 BE REPRODUCED WITHOUT PRIOR PERMISSION.

This manual is also suitable for:

R-key-lt-pZ-key-2eth-p

Table of Contents