Seneca Z-KEY User Manual

Seneca Z-KEY User Manual

Modbus ethernet serial gateway and serial device server
Hide thumbs Also See for Z-KEY:
Table of Contents

Advertisement

Quick Links

USER MANUAL

MODBUS ETHERNET SERIAL GATEWAY
This document is property of SENECA srl. Duplication and reproduction are forbidden, if not authorized. Contents of the present
documentation refers 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,
implementation and set-up is allowed only for authorized operators; these ones must be people physically and intellectually suitable.
Set up must be performed only after a correct installation and the user must perform every operation described in the installation
manual carefully. Seneca is not considered liable of failure, breakdown, accident caused for ignorance or failure to apply the indicated
requirements. Seneca is not considered liable of 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.
Z-KEY
AND SERIAL DEVICE SERVER
SENECA s.r.l.
Via Austria, 26 – 35127 –PADOVA – ITALY
Tel. +39.049.8705355 – 8705359 Fax. +39.049.8706287
Web site:
www.seneca.it
Technical assistance:
supporto@seneca.it
Commercial reference:
commerciale@seneca.it
MI003790
MI003796
(IT),
support@seneca.it
(IT),
Page 1
(Other)
sales@seneca.it
(Other)

Advertisement

Table of Contents
loading

Summary of Contents for Seneca Z-KEY

  • Page 1: User Manual

    Set up must be performed only after a correct installation and the user must perform every operation described in the installation manual carefully. Seneca is not considered liable of failure, breakdown, accident caused for ignorance or failure to apply the indicated requirements.
  • Page 2 Date Revision Notes 06/02/2015 First revision. 31/03/2015 Added Export tag setup Webserver function, added Seneca discovery and Easy Z-KEY utilities. 08/04/2015 Added Glossary. Added Z-modem protocol issue through internet Minor fix 14/07/2015 Added support for 7 bits Uarts (from SW004100_105)
  • Page 3: Table Of Contents

    4. DEBUG LEDS ......................13 5. DEFAULT CONMFIGURATION ................. 14 6. ETHERNET COMMUNICATION ................. 15 6.1. Searching Z-KEY devices in a network with the Seneca Discovery Utility ............15 6.2. Changing the IP address from the USB port....................16 7. THE EMBEDDED WEBSERVER ................20 7.1.
  • Page 4 Seneca Serial to Ethernet Connect ........................76 13.3.1. Installing Seneca Serial to Ethernet Connect driver ..................76 13.3.2. Select the Com port for Seneca Serial to Ethernet Connect ............... 80 13.3.3. Configuring Seneca Serial to Ethernet Connect ..................81 13.3.4. Debugging the Connection ......................... 82 13.3.5.
  • Page 5 USER MANUAL – Z-KEY THE RS232 DB9 CABLE ..................91 WINDOWS USB DRIVERS INSTALLATION ............92 FIRMWARE UPDATE....................94 19.1. Firmware Update from Webserver .......................94 19.2. Firmware Update from FTP server ........................94 19.3. Firmware Update from microSD card ......................94 SENECA DISCOVERY DEVICE ................95 EASY SETUP APP FOR ANDROID ................
  • Page 6 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 Z-KEY, EVEN THOUGH SENECA IS WELL AWARE OF THESE POSSIBLE DAMAGES.
  • Page 7: Glossary

    USER MANUAL – Z-KEY 1. 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...
  • Page 8 USER MANUAL – Z-KEY The Client (called Master in Modbus RTU) establishes a connection with the Server (called Slave in Modbus RTU). The Server waits for an incoming connection from the Client. Once a connection is established, the Server then responds to the registers queries from the Client.
  • Page 9: Introduction

    USER MANUAL – Z-KEY 2. Introduction Z-KEY is a serial device server, a Modbus TCP-IP to Modbus RTU Gateway and a Modbus TCP-IP to Modbus RTU Bridge, into one product. Two independent serial ports (one RS485 and a RS232/RS485 configurable port), a Fast Ethernet 10- 100MBits and an USB port are available.
  • Page 10: General Specification

    USER MANUAL – Z-KEY 2.2. General Specification GENERAL SPECIFICATIONS Power supply 19.. 28 Vac (50..60 Hz), 11.. 40Vdc maximum power 1,2 W consumption Isolation 1500 Vac ETHERNET Ethernet 10 - 100 Mbit/s Protocol Modbus TCP-IP Max connection length 100 m...
  • Page 11: Electrical Connections

    Z-KEY section. 3.1. Terminal Positions For power ON Z-KEY, connect the screw terminal 2-3 or use the Seneca BUS for connect the IDC10 connector: The RS485#1 is available from the IDC10 connector The RS485/RS232 port #2 is available from the screw terminals 10-11-12:...
  • Page 12 USER MANUAL – Z-KEY For configure port 2 in RS485 mode set the SW2 to OFF: For configure port 2 in RS232 mode set the SW2 to ON: Note: before to insert the cable into RJ45 connector, remove the protection rubber:...
  • Page 13: Debug Leds

    USER MANUAL – Z-KEY 4. Debug Leds STATE MEANING FLASHING Data transmission on RS485 port #1 FLASHING Data reception on RS485 port FLASHING Data transmission on RS485/RS232 port #2 FLASHING Data reception on RS485/RS485 port #2 Z-KEY is POWERED ON...
  • Page 14: Default Conmfiguration

    For return to the default configuration: 1) Switch off Z-KEY 2) Move to “ON” all the dip switched: 3) Switch ON Z-KEY 4) Wait 10 seconds 5) Switch OFF Z-KEY 6) Switch OFF all the dip switches: Now Z-KEY is loaded with the default configuration.
  • Page 15: Ethernet Communication

    Static IP address 192.168.90.101  Gateway 192.168.90.1 WARNING! BEFORE CONNECT Z-KEY ON THE NETWORK BE SURE THAT THE IP ADDRESS 192.168.90.101 IT’S NOT USED BY ANOTHER ETHERNET DEVICE! WARNING! DON’T CONNECT MORE THAN 1 Z-KEY WITH THE DEFAULT IP ADDRESS ON THE NETWORK! 6.1.
  • Page 16: Changing The Ip Address From The Usb Port

    A list of devices found will be displayed: 6.2. Changing the IP address from the USB port From the seneca website (www.seneca.it) in the Z-KEY section you can freely download the Seneca Easy Setup software. The Z-KEY section launch the EASY Z-KEY Utility for changing or obtaining the Z-KEY actual IP:...
  • Page 17 USER MANUAL – Z-KEY Connect Z-KEY to a PC with a standard micro USB cable, power up the Z-KEY and Click on “TEST” to obtain the actual IP address:...
  • Page 18 USER MANUAL – Z-KEY For changing the actual IP configuration return to the home page and click on “CONFIGURATION”: Than click on “Automatic Search”, read the configuration from the Z-KEY than modify the actual configuration with the new parameters:...
  • Page 19 USER MANUAL – Z-KEY Then click on “send configuration to Z-KEY” button:...
  • Page 20: The Embedded Webserver

    If you are using Internet explorer 9 (or newer) you must enable the compatibility mode (see the arrow below): The Z-KEY Embedded Webserver works with the following browser: -Internet explorer -Firefox -Chrome -Android -Iphone/Ipad 7.1. LAN connection to the webserver For connect an Ethernet device to the Z-KEY Webserver you must have the two Ip addresses compatible.
  • Page 21 Router or Switch. For connect a WiFi device to the Z-KEY Webserver you need a Wifi access point or a WiFi router, in the case of a WiFi Router into the Z-KEY configuration set the Gateway IP equals to the Router IP.
  • Page 22: Modbus Rtu And Modbus Tcp-Ip Protocol

    USER MANUAL – Z-KEY 8. Modbus RTU and Modbus TCP-IP protocol The Modbus protocols supported by the Z-KEY are: Modbus RTU Master Modbus RTU Slave Modbus TCP-IP Server for more information about this protocols please refer to Modbus specification website: http://www.modbus.org/specs.php...
  • Page 23: Bridge Modbus Tcp-Ip To Modbus Rtu

    USER MANUAL – Z-KEY 9. Bridge Modbus TCP-IP to Modbus RTU In this scenario a Modbus TCP-IP master is connected with ethernet to Z-KEY, one or more Modbus RTU slaves (for example the Z-PC Seneca Series) are connected to the RS232/RS485 serial ports.
  • Page 24: How It Works

    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 Z-KEY convert the request to the serial Modbus RTU slave, the Modbus RTU response is also retranslated in Modbus TCP to the Master.
  • Page 25 USER MANUAL – Z-KEY http://192.168.90.101/maintenance/index.html Enter the user name and password, by default: User: admin Password: admin Now the Webserver can be used for configuring the Z-KEY module, all parameters are visible clicking on “Setup” button to the left of the screen:...
  • Page 26 USER MANUAL – Z-KEY On 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. When a configuration it’s made you must confirm with “APPLY”, then the new configuration became operative.
  • Page 27 Enable: The IP address, the IP-Mask and the Gateway address are obtained from the DHCP server. The Z-KEY IP address can be read from the USB port with the Easy Setup test configuration , or with the Seneca Discovery utility (see the Z-KEY section on seneca web site for download).
  • Page 28 USER MANUAL – Z-KEY PORT #n BAUDRATE Used to Set the port baudrate PORT #n BITS Used to Set the number of bits for the serial communication. PORT #n PARITY Used to Set the port parity (None, Odd or even) PORT #n STOP BITS Used to Set the port parity (1 or 2;...
  • Page 29 IP CHANGE FROM DISCOVERY Used to Set if a user is allowed to change IP configuration from the software “Seneca Discovery Device” WARNING! REMEMBER ALWAYS TO CONFIGURE THE WEBSERVER AND FTP AUTHENTICATION USER NAME AND PASSWORD FOR RESTRICT THE ACCESS TO THE FTP AND THE WEBSERVER.
  • Page 30: Gateway Modbus Tcp-Ip / Modbus Rtu (Port 1 And Port 2 Modbus Master)

    Gateway Modbus TCP-IP / Modbus RTU (Port 1 and Port 2 Modbus Master) In this scenario a Modbus TCP-IP master is connected with ethernet to Z-KEY, one or more Modbus RTU slaves (for example the Z-PC Seneca Series) are connected to the RS232/RS485 serial ports.
  • Page 31: How It Works

    The Z-KEY can be configured with up to 500 tag (1 tag = 1 variable that can be composed by one or two Modbus registers), these values are stored into the Z-KEY shared memory that can be accessed from Ethernet.
  • Page 32: Modbus Gateway Configuration (Port 1 And Port 2 Modus Master)

    (linked to a unique modbus address). A unique slave address is needful when there is a big slaves number, in this case using Z-KEY in gateway mode will reduce drastically the bus polling time and the number of slaves can grow using more than one Z- KEY.
  • Page 33 USER MANUAL – Z-KEY http://192.168.90.101/maintenance/index.html Enter the user name and password, by default: User: admin Password: admin Now the Webserver can be used for configuring the Z-KEY module, all parameters are visible clicking on “Setup” button to the left of the screen:...
  • Page 34 USER MANUAL – Z-KEY On 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. When a configuration it’s made you must confirm with “APPLY”, then the new configuration became operative.
  • Page 35 Enable: The IP address, the IP-Mask and the Gateway address are obtained from the DHCP server. The Z-KEY IP address can be read from the USB port with the Easy Setup test configuration, or with the Seneca Discovery utility (see the Z-KEY section on seneca web site for download).
  • Page 36 USER MANUAL – Z-KEY PORT #n BAUDRATE Used to Set the port baudrate PORT #n BITS Used to Set the number of bits for the serial communication. PORT #n PARITY Used to Set the port parity (None, Odd or even) PORT #n STOP BITS Used to Set the port parity (1 or 2;...
  • Page 37 Used to Set the Password for accessing the FTP server (if User Name and Password are leave empty no authentication is require for ftp access) IP CHANGE FROM DISCOVERY Used to Set if a user is allowed to change IP configuration from the software “Seneca Discovery Device” WARNING!
  • Page 38: Modbus Gateway Tags Setup, Export And Import

    10.3. Modbus Gateway Tags Setup, export and import The Z-KEY in Modbus Gateway mode needs to configure the Tags to put into the internal shared memory. From the Webserver click on “Setup TAGs” button to the left menu: Now you can ADD, Modify, Delete or move one tag. When you modify or add a tag a new page appear: Gateway Tag Name Set the Tag name to show in the Webserver realtime view.
  • Page 39 Set the address where the tag is placed in shared memory for access from Modbus TCP-IP. Target Modbus RTU Device Select the Modbus RTU slave model from the Seneca database or select “custom” if you don’t use a Seneca Modbus RTU slave.
  • Page 40 Word, Floating point single precision (IEEE 758-2008) BIT : 1 Boolean coil or Discrete input register this field is automatically filled if you have select a Seneca Device into the “Device” field. WARNING! All 32 bits values are stored into 2 consecutive registers, for example: TAG Totalizer 1 in unsigned 32 bits MSW type is stored into registers 40016 and 40017: The most significant word is the register 40016, the less significant word is the 40017.
  • Page 41: Modbus Gateway Real Time View

    Preparing the Tag configuration can be a frustrating operation if it’s made with the webserver so a Microsoft Excel™ Template is available for create a .bin file to import to the Z-KEY. This operation drastically speed up the TAG configuration.
  • Page 42 Gateway Modbus TCP-IP Register Address Enter the TAG register address that will be accessed from TCP-IP (also from serial port if slave mode is configured). For Seneca Modbus Standard address 1 holding register is equivalent to 40001, address 2 to 40002 etc… .
  • Page 43 USER MANUAL – Z-KEY Target Modbus RTU Slave Address Enter the Modbus RTU Slave Station address The setup can be exported from Excel to a .cgi file (for to be imported in the webserver) or imported from a .cgi file (exported from the webserver).
  • Page 44: Gateway Modbus Tcp-Ip / Modbus Rtu (1 Port Master And 1 Port Slave)

    Gateway Modbus TCP-IP / Modbus RTU (1 port Master and 1 port Slave) In this scenario a Modbus TCP-IP master is connected with ethernet to Z-KEY, one PLC with only the Modbus Master protocol is connected to the Z-KEY Modbus slave port. By this port the Modbus RTU Slaves (connected to the Z-KEY Modbus Master port) values are available for the PLC.
  • Page 45: Gateway Modbus Tcp-Ip / Modbus Rtu (1 Port Master And 1 Port Slave) Webserver Configuration

    USER MANUAL – Z-KEY This feature is possible using the internal Z-KEY shared memory. The PLC Modbus Master and the Ethernet client(s) writes/reads the Z-KEY shared memory registers, the Z- KEY maintain refreshed the shared memory with the Modbus Slaves.
  • Page 46 USER MANUAL – Z-KEY http://192.168.90.101/maintenance/index.html Enter the user name and password, by default: User: admin Password: admin Now the Webserver can be used for configuring the Z-KEY module, all parameters are visible clicking on “Setup” button to the left of the screen:...
  • Page 47 USER MANUAL – Z-KEY On 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.
  • Page 48 Enable: The IP address, the IP-Mask and the Gateway address are obtained from the DHCP server. The Z-KEY IP address can be read from the USB port with the Easy Setup test configuration, or with the Seneca Discovery utility (see the Z-KEY section on seneca web site for download).
  • Page 49 USER MANUAL – Z-KEY Last value read (the value is freezed to the last value read) Exception (Z-KEY exception response) TCP/IP PORT TCP-IP port for Modbus TCP-IP Server protocol (Max 8 clients) PORT #n MODBUS SLAVE ADDRESS If you have selected the port 1 into Modbus Slave mode, select the Modbus Station address...
  • Page 50 USER MANUAL – Z-KEY PORT #1 WRITING RETRIES Used to Set the retries to write a Modbus register into Modbus Master mode PORT #1 MAX WRITE NUM Used to Set the maximum number of registers that can be written with the Modbus function “Write Multiple Registers”...
  • Page 51 Used to Set the Password for accessing the FTP server (if User Name and Password are leave empty no authentication is require for ftp access) IP CHANGE FROM DISCOVERY Used to Set if a user is allowed to change IP configuration from the software “Seneca Discovery Device”...
  • Page 52: Modbus Gateway Tags Setup, Export And Import

    11.3. Modbus Gateway Tags Setup, export and import The Z-KEY in Modbus Gateway mode needs to configure the Tags to put into the internal shared memory. From the Webserver click on “Setup TAGs” button to the left menu: Now you can ADD, Modify, Delete or move one tag. When you modify or add a tag a new page appear:...
  • Page 53 Set the address where the tag is placed in shared memory for access from Modbus TCP-IP. Target Modbus RTU Device Select the Modbus RTU slave model from the Seneca database or select “custom” if you don’t use a Seneca Modbus RTU slave.
  • Page 54 Word, Floating point single precision (IEEE 758-2008) BIT : 1 Boolean coil or Discrete input register this field is automatically filled if you have select a Seneca Device into the “Device” field. WARNING! All 32 bits values are stored into 2 consecutive registers, for example: TAG Totalizer 1 in unsigned 32 bits MSW type is stored into registers 40016 and 40017: The most significant word is the register 40016, the less significant word is the 40017.
  • Page 55: Modbus Gateway Real Time View

    Preparing the Tag configuration can be a frustrating operation if it’s made with the webserver, so a Microsoft Excel™ Template is available for create a .bin file to import to the Z-KEY. This operation drastically speed up the TAG configuration.
  • Page 56 Gateway Modbus TCP-IP Register Address Enter the TAG register address that will be accessed from TCP-IP (also from serial port if slave mode is configured). For Seneca Modbus Standard address 1 holding register is equivalent to 40001, address 2 to 40002 etc… .
  • Page 57 USER MANUAL – Z-KEY Target Modbus RTU Slave Address Enter the Modbus RTU Slave Station address The setup can be exported from Excel to a .cgi file (for to be imported in the webserver) or imported from a .cgi file (exported from the webserver).
  • Page 58: Gateway Modbus Tcp-Ip / Modbus Rtu (2 Port Slaves)

    Modbus Slaves must be shared with another PLC/SCADA/DATALOGGER etc.. the Z-KEY can be configured in Gateway mode with the 2 ports in Modbus Slave. In this way the two PLCs and the Ethernet Clients can freely write/read the Z-KEY Shadow memory for data sharing:...
  • Page 59: Webserver Configuration Gateway Modbus Tcp-Ip / Modbus Rtu (2 Port Slaves)

    USER MANUAL – Z-KEY The Z-KEY shared memory can be freely read and written from Ethernet or/and from the serial ports. The Shared memory registers must be defined before with the setup TAG section. 12.2. Webserver configuration Gateway Modbus TCP-IP / Modbus RTU (2 port...
  • Page 60 USER MANUAL – Z-KEY Enter the user name and password, by default: User: admin Password: admin Now the Webserver can be used for configuring the Z-KEY module, all parameters are visible clicking on “Setup” button to the left of the screen:...
  • Page 61 USER MANUAL – Z-KEY On 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. When a configuration it’s made you must confirm with “APPLY”, then the new configuration became...
  • Page 62 Enable: The IP address, the IP-Mask and the Gateway address are obtained from the DHCP server. The Z-KEY IP address can be read from the USB port with the Easy Setup test configuration, or with the Seneca Discovery utility (see the Z-KEY section on seneca web site for download).
  • Page 63 USER MANUAL – Z-KEY PORT #1 MODBUS SLAVE ADDRESS Select the Modbus Slave Station address for this Port PORT #2 MODBUS SLAVE ADDRESS Select the Modbus Slave Station address for this Port PORT #1 BAUDRATE Used to Set the port baudrate PORT #1 BITS Used to Set the number of bits for the serial communication.
  • Page 64 USER MANUAL – Z-KEY PORT #2 PARITY Used to Set the port parity (None, Odd or even) PORT #2 STOP BITS Used to Set the port parity (1 or 2; note that if the parity is set, only 1 bit can be used)
  • Page 65: Modbus Gateway Tags Setup, Export And Import

    12.3. Modbus Gateway Tags Setup, export and import The Z-KEY in Modbus Gateway mode needs to configure the Tags to put into the internal shared memory. From the Webserver click on “Setup TAGs” button to the left menu: Now you can ADD, Modify, Delete or move one tag. When you modify or add a tag a new page appear:...
  • Page 66 Set the address where the tag is placed in shared memory for access from Modbus TCP-IP. Target Modbus RTU Device Select the Modbus RTU slave model from the Seneca database or select “custom” if you don’t use a Seneca Modbus RTU slave.
  • Page 67 USER MANUAL – Z-KEY Select the Device Modbus Station Address (also named Modbus node address). Target Modbus RTU start register Select the Modbus RTU slave start register TAG Modbus Request Type Select the Modbus Register Request type from: Coil Discrete Input...
  • Page 68 USER MANUAL – Z-KEY this field is automatically filled if you have select a Seneca Device into the “Device” field. WARNING! All 32 bits values are stored into 2 consecutive registers, for example: TAG Totalizer 1 in unsigned 32 bits MSW type is stored into registers 40016 and 40017: The most significant word is the register 40016, the less significant word is the 40017.
  • Page 69: Modbus Gateway Real Time View

    Preparing the Tag configuration can be a frustrating operation if it’s made with the webserver so a Microsoft Excel™ Template is available for create a .bin file to import to the Z-KEY. This operation drastically speed up the TAG configuration.
  • Page 70 USER MANUAL – Z-KEY Enter the TAG register address that will be accessed from TCP-IP (also from serial port if slave mode is configured). For Seneca Modbus Standard address 1 holding register is equivalent to 40001, address 2 to 40002 etc… .
  • Page 71: Remote Serial Com Port

    With this driver installed a couple of virtual serial port is created, using these serial ports from a pc software the serial traffic will pass through ethernet. After that the Z-KEY will convert the ethernet traffic to serial through the real serial port, also Z-KEY will reconvert to ethernet the serial communication responses.
  • Page 72: Remote Serial Com Port Webserver Configuration

    Connect to the webserver by entering the ip address, by default: http://192.168.90.101/maintenance/index.html Enter the user name and password, by default: User: admin Password: admin Now the Webserver can be used for configuring the Z-KEY module, all parameters are visible clicking on “Setup” button to the left of the screen:...
  • Page 73 USER MANUAL – Z-KEY 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. When a configuration it’s made you must confirm with “APPLY”, then the new configuration became operative.
  • Page 74 Enable: The IP address, the IP-Mask and the Gateway address are obtained from the DHCP server. The Z-KEY IP address can be read from the USB port with the Easy Setup test configuration, or with the Seneca Discovery utility (see the Z-KEY section on seneca web site for download).
  • Page 75 USER MANUAL – Z-KEY Used to Set the port baudrate PORT #n BITS Used to Set the number of bits for the serial communication. PORT #n PARITY Used to Set the port parity (None, Odd or even) PORT #n RS485 STOP BITS Used to Set the port parity (1 or 2;...
  • Page 76: Seneca Serial To Ethernet Connect

    13.3. Seneca Serial to Ethernet Connect For using Z-KEY in remote serial com port mode you need to install in a PC the Seneca Serial to Ethernet Connect software. 13.3.1. Installing Seneca Serial to Ethernet Connect driver Seneca Ethernet to Serial Connect runs on windows vista™, windows 7™, windows 8.1™ and windows 10™.
  • Page 77 USER MANUAL – Z-KEY After that the com0com driver will be installed: Select the CNCA0<->CNCB0 and the COM#<->COM# virtual port names:...
  • Page 78 USER MANUAL – Z-KEY Now Click on Launch Setup: Press Finish, the com0com setup will open:...
  • Page 79 USER MANUAL – Z-KEY We have installed two Pairs of Virtual Ports: CNCA0, CNCB0 And also: COM11, COM12 (note that in your system the com# can be different) The first Pair can be used in software that support the CNCA names, the other in software that support only the Ports class.
  • Page 80: Select The Com Port For Seneca Serial To Ethernet Connect

    USER MANUAL – Z-KEY 13.3.2. Select the Com port for Seneca Serial to Ethernet Connect The driver installation will use the first 2 serial port that are free (in our case the driver has created the COM4 and COM5 pair): The Ethernet to serial connection software will use only one port (the right port in the com0com setup), only the com0com ports will be displayed.
  • Page 81: Configuring Seneca Serial To Ethernet Connect

    USER MANUAL – Z-KEY The COM5 is now connected to Z-KEY by the TCP port 8000: 13.3.3. Configuring Seneca Serial to Ethernet Connect  Select the Virtual COM Port  Select the Z-KEY IP address (default 192.168.90.101).
  • Page 82: Debugging The Connection

    Select the TCP-IP port (default 8000). Then click on “Connect PORT”. If you need to connect another serial com to another Z-KEY configure the new com port and the new IP addess then click on “Connect Port”. For disconnect all Ports click on “Disconnect All Ports”.
  • Page 83: Changing The Com Port Number

    USER MANUAL – Z-KEY Check the configuration (Z-KEY ip address and port). 13.3.5. Changing the COM port number Old software can use only a little range of COM ports, so you may need to change the virtual COM number. In Our case the COM pair created is COM4 / COM5 but we want to change to COM2 / COM3:...
  • Page 84 USER MANUAL – Z-KEY The com0com setup window will open: Now change COM5 to COM3 and COM4 to COM2 Then click “Apply”:...
  • Page 85 USER MANUAL – Z-KEY Sometimes the COM can be marked as “in use”: If you need to use this COM number Click on “Continue”, then go to the device manager. We must uncheck the “in use” flag by uninstalling the port. Because the port now is not connected click on “Show hidden peripherals”:...
  • Page 86 Now the COM3 is free and we can use it on the com0com setup: Then Click on “Apply”, Now the COM3, COM2 pair is created: WARNING! Seneca to ethernet connector use always the right port in the com0com Setup (in our case COM2)
  • Page 87 USER MANUAL – Z-KEY...
  • Page 88: The Custom Webserver

    USER MANUAL – Z-KEY THE CUSTOM WEBSERVER A custom webserver can be loaded into a microSD card, copy the html pages to the /web directory. Launch the custom webserver by typing: http://192.168.90.101/index.html where 192.168.90.101 is the default ip address. Demo templates can be freely downloaded from:...
  • Page 89: Accessing The Z-Key From Internet

    USER MANUAL – Z-KEY ACCESSING THE Z-KEY FROM INTERNET Using a static public ip address it’s possible to configure the router for accessing Z-KEY from internet. This operation it’s known as “Virtual server “or “Port forwarding” refers to your Router documentation for more info.
  • Page 90 With this Virtual Server entry, all Internet traffic on Port 8080 with ip address 73.13.150.123 will be redirected to Z-KEY webserver on port 80 at IP Address 192.168.1.101. So for accessing to the Z-KEY Webserver using a browser you must enter http://73.13.150.123/maintenance/index.html:8080...
  • Page 91: The Kit-Usb

    The Easy Setup software can also be freely downloaded from the website: www.seneca.it THE RS232 DB9 CABLE The RS232 DB9 CABLE can be obtained from Seneca (can be bought also from the E-commerce Website www.seneca.it ) for connection between Z-KEY to a DB9 RS232 device.
  • Page 92: Windows Usb Drivers Installation

    For installing the USB drivers follow this procedure:  Install the Easy Setup software from the USB KIT CD (see chapter 16) or from the Seneca website  At the end of the installation confirm the USB drivers installation, click on “install the driver software”: ...
  • Page 93 USER MANUAL – Z-KEY Now the device it’s connected to the PC. The operation is performed only the first time that you connect the device.
  • Page 94: Firmware Update

    “Send new firmware update selected”. At the end of the file transfer the Z-KEY will switch ON all the red leds and start to program the firmware to the internal flash (takes about 30 seconds). At the end the Z-KEY will reboot with the new firmware.
  • Page 95: Seneca Discovery Device

    USER MANUAL – Z-KEY  Now the Z-KEY will switch ON all the red leds and starts to program the firmware to the internal flash (takes about 30 seconds). At the end, the Z-KEY will reboot with the new firmware.
  • Page 96: Cgi (Common Gateway Interface) Command

    When Z-KEY is configured in Gateway mode it’s possible to read tags values using CGI (Common Gateway Interface) line commands. The cgi syntax is (where 192.168.90.101 is the Z-KEY ip address and N is the TAG page to read): http://192.168.90.101/index.cgi?page=N N can be from 1 to 10, every page contain 50 tag values.
  • Page 97 USER MANUAL – Z-KEY 2 = "MODBUS BRIDGE ON PORT#1 AND PORT#2" 3 = "MODBUS GATEWAY PORT#1 AND PORT#2 MASTER" 4 = “MODBUS GATEWAY PORT#1 MASTER AND PORT#2 SLAVE" 5 = "MODBUS GATEWAY PORT#1 SLAVE AND PORT#2 MASTER" 6 = “MODBUS GATEWAY PORT#1 AND PORT#2 SLAVE"...
  • Page 98 USER MANUAL – Z-KEY TAG1 40001 UINT16 TAG2 40002 UINT16 1000 TAG3 40003 UINT16 TAG4 40005 UINT16 TAG5 40007 UINT16 FAIL TAG6 40008...
  • Page 99 USER MANUAL – Z-KEY UINT16 […] 40057 FP LSW 0.000000 FAIL...

Table of Contents