background image

USER MANUAL – Z-KEY 

 
 

 

 

63 

 

 

 

 

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. 

 

PORT #1 PARITY   

Used to Set the port parity (None, Odd or even) 

 

PORT #1 STOP BITS  

Used to Set the port parity (1 or 2; note that if the parity is set, only 1 bit can be used) 

 

PORT #1 TIMEOUT  

Used to Set the timeout on Modbus Master mode before making a new call 

 

PORT #2 BAUDRATE  

Used to Set the port baudrate 

 

PORT #2 BITS 

Used to Set the number of bits for the serial communication. 

Summary of Contents for Z-KEY

Page 1: ...tation 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 requirement...

Page 2: ...through internet Minor fix 14 07 2015 03 Added support for 7 bits Uarts from SW004100_105 20 11 2015 04 Added CGI command chapter 18 05 2016 05 Added Gateway Optimzed function from revision Firmware 4100_108 Added Chapter Easy Setup APP for Android Added Chapter Seneca Discovery Device Updated Seneca Device Discovery Chapter 01 12 2016 06 Removed WARNING about using multi TCP Clients in Bridge mod...

Page 3: ...5 6 2 Changing the IP address from the USB port 16 7 THE EMBEDDED WEBSERVER 20 7 1 LAN connection to the webserver 20 8 MODBUS RTU AND MODBUS TCP IP PROTOCOL 22 8 1 Modbus function code supported 22 9 BRIDGE MODBUS TCP IP TO MODBUS RTU 23 9 1 How it works 24 9 2 Modbus Bridge Webserver configuration 24 10 GATEWAY MODBUS TCP IP MODBUS RTU PORT 1 AND PORT 2 MODBUS MASTER 30 10 1 How it works 31 10 2...

Page 4: ...er configuration Gateway Modbus TCP IP Modbus RTU 2 port Slaves 59 12 3 Modbus Gateway Tags Setup export and import 65 12 4 Modbus Gateway Real Time view 69 12 5 Using the Microsoft Excel template for Tags configuration 69 13 REMOTE SERIAL COM PORT 71 13 1 How it works 71 13 2 Remote Serial Com Port Webserver configuration 72 13 3 Seneca Serial to Ethernet Connect 76 13 3 1 Installing Seneca Seria...

Page 5: ...RS INSTALLATION 92 19 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 20 SENECA DISCOVERY DEVICE 95 21 EASY SETUP APP FOR ANDROID 95 22 CGI COMMON GATEWAY INTERFACE COMMAND 96 ...

Page 6: ...NCIDENTAL DAMAGE DUE TO NEGLECT OR RECKLESS MISHANDLING OF Z KEY EVEN THOUGH SENECA IS WELL AWARE OF THESE POSSIBLE DAMAGES SENECA ITS SUBSIDIARIES AFFILIATES COMPANIES OF THE GROUP ITS SUPPLIERS AND RETAILERS SHALL NOT GUARANTEE THAT THE FUNCTIONS WILL SATISFY COMPLETELY CUSTOMER S EXPECTATIONS OR THAT Z KEY THE FIRMWARE AND THE SOFTWARE SHALL HAVE NO ERRORS OR WORK CONTINUOUSLY ...

Page 7: ...e shared memory can be accessed by multiple devices through Modbus TCP IP Modbus RTU Webservers etc but must be configured The Modbus Gateways are used for speed up and for simplify a Modbus network SERIAL DEVICE SERVER REMOTE COM PORT A device that enables devices with an RS 232 RS 422 or RS 485 serial interface to connect to an IP network This makes it possible to use Ethernet in place of serial...

Page 8: ... 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 WEBSERVER A software that store process and deliver web pages to clients Clients web can be PCs Smartphones Tablets with a browser Chrome Internet Explorer Firefox etc ...

Page 9: ...Modbus Gateway Modbus Bridge Multiprotocol Gateway Bridge support Modbus TCP IP server protocol by the fast Ethernet Modbus RTU master slave independent configurable on the NR 2 serial ports NR 1 RS485 and NR 1 RS232 RS485 Transparent Ethernet to serial connection with Seneca Ethernet to serial driver connection no protocol dependent Internal webserver for complete configuration Up to 8 simultaneo...

Page 10: ...slave port Port 2 Screw terminals 10 11 12 Modbus RTU Master or slave port Baudrate 1200 115200 configurable Baudrate 1200 115200 configurable ENVIRONMENTAL CONDITIONS Temperature 20 C 50 C Humidity 30 90 a 40 C no condensing Storage temperature 25 85 C BOX Dimensions 100 x 17 5 x 111 mm Box protection degree Black PA6 IP20 CONNECTORS IDC 10 for Seneca bus Removable terminals pitch 5 08 mm Micro U...

Page 11: ... downloadable from www seneca it in the 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: ...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 Micro USB port for a PC connection ...

Page 13: ...t 1 RX1 FLASHING Data reception on RS485 port 1 TX2 FLASHING Data transmission on RS485 RS232 port 2 RX2 FLASHING Data reception on RS485 RS485 port 2 PWR ON Z KEY is POWERED ON SD FLASHING ACCESSING TO THE SD CARD ETH TRF FLASHING Data traffic on Ethernet port ETH LINK ON Ethernet port connected ...

Page 14: ...1 Gateway 192 168 90 1 Mode Modbus RTU Bridge on port 1 and port 2 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: ...e Ethernet port is 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 Searching Z KEY devices in a network with the Seneca Discovery Utility From the seneca website www seneca it in ...

Page 16: ...layed 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 17 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: ... 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 19 Then click on send configuration to Z KEY button ...

Page 20: ... is the default ip address The webserver can be protected by a user name and a password 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 yo...

Page 21: ...2 can works The Z KEY ethernet device support the auto switching mode so it s possible to connect an Ethernet device point to point without the need of a 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 If the ip configuration it s made...

Page 22: ...us specification website http www modbus org specs php For using the USB Port you must install the USB driver first see chapter 18 8 1 Modbus function code supported The following Modbus functions are supported Read Coils function 1 Read Discrete Inputs function 2 Read Holding Register function 3 Read Input Registers function 4 Write Single Coil function 5 Write Single Register function 6 Write Mu...

Page 23: ... PC Seneca Series are connected to the RS232 RS485 serial ports A typical LAN connection is represented into this figure Also a remote communication through internet with multiple clients is possible For internet communication the Routers connected to the Z KEY must have a static ip address or a DDNS service activated A Maximum of 8 simultaneous Modbus TCP IP clients is supported ...

Page 24: ...ade 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 CAUTION It s not possible to connect two Modbus RTU slaves with the same Modbus address if you need to connect 2 Modbus RTU slaves with the same Modbus address not co...

Page 25: ... 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: ... 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 If you need to reset to the default parameters click on FACTORY DEFAULT button ...

Page 27: ...ASK mask when DHCP is Disable STATIC GATEWAY Gateway address when DHCP is Disable WORKING MODE Select the Modbus Bridge working mode for Modbus Bridge you can select which serial port use Modbus Bridge on port 1 the packets are routed only to serial port 1 no packets are routed to serial port 2 Modbus Bridge on port 2 the packets are routed only to serial port 2 no packets are routed to serial por...

Page 28: ...ut on Modbus Master mode before making a new call WEB SERVER PORT Used to Set the TCP IP port for the Webserver WEB SERVER AUTHENTICATION USER NAME Used to Set the User Name for accessing the Webserver if User Name and Password are leave empty no authentication is require for webserver access WEB SERVER AUTHENTICATION USER PASSWORD Used to Set the Password for accessing the Webserver if User Name ...

Page 29: ...P 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 IF YOU LEAVE THE TWO PARAMETERS TEXT BOXES BLANK NO AUTHENTICATION IT S REQUIRED FOR ACCESS WARNING WHEN USE THE MODBUS BRID...

Page 30: ... The Z Key configured in Gateway is used for optimizing the Network performance and Modbus TCP IP PLC software Also PLCs like Siemens can be connected with Modbus RTU slaves by using the free standard Modbus TCP IP library without the need of a customization A typical LAN connection is represented into this figure Also a remote communication through internet with multiple clients is possible with ...

Page 31: ... registers from the various Modbus Slave devices 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 The Shared Memory is refreshed as fast as possible by the serial communication so when a register is required from the Ethernet port the values are...

Page 32: ...ries 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 From the revision firmware 4100_108 the gateway can automatically optimize the Modbus request by using a multiple register request With this optimi...

Page 33: ... 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: ...ng the current configuration When a configuration it s made you must confirm with APPLY then the new configuration became operative If you need to reset to the default parameters click on FACTORY DEFAULT button In this page you can save and load a previous configuration a configuration is made of Configuration and Tags configuration The parameters are explained below ...

Page 35: ...ownload STATIC IP ADDRESS Static IP address when DHCP is Disable STATIC IP MASK mask when DHCP is Disable STATIC GATEWAY Gateway address when DHCP is Disable WORKING MODE Select the Modbus Gateway port1 and port2 Master working mode RESPONSE MODE Select which type of response do you want when a Modbus slave don t respond to a modbus request You can select from Last value read the value is frizeed ...

Page 36: ... on Modbus Master mode before making a new call PORT n DELAY BETWEEN POLLS Used to Set the delay between two Modbus Master request PORT n WRITING RETRIES Used to Set the retries to write a Modbus register into the Modbus Master mode PORT n MAX WRITE NUM Used to Set the maximum number of registers that can be written with the Modbus function Write Multiple Registers or Write Multiple Coils PORT n M...

Page 37: ...uthentication is require for webserver access FTP SERVER PORT Used to Set the TCP IP port for the FTP Server FTP SERVER AUTHENTICATION USER NAME Used to Set the User Name for accessing the FTP Server if User Name and Password are leave empty no authentication is require for webserver access FTP SERVER AUTHENTICATION USER PASSWORD Used to Set the Password for accessing the FTP server if User Name a...

Page 38: ...xplorer 9 or newer you must enable the compatibility mode see the arrow below 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 ...

Page 39: ...e select the resource name from the Seneca database Target Connected to serial port Select at which Z KEY serial port is connected the modbus rtu slave device Target Modbus RTU Slave Station Address 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 Re...

Page 40: ...47483647 FLOAT MSW 2 modbus registers with the lower address Modbus register that hold the Most Significant Word Floating point single precision IEEE 758 2008 FLOAT LSW 2 modbus registers with the lower address Modbus register that hold the Less Significant Word Floating point single precision IEEE 758 2008 BIT 1 Boolean coil or Discrete input register this field is automatically filled if you hav...

Page 41: ...Name the Gateway TAG Modbus Address the Tag value and the TAG status OK read ok FAIL read fail This Real Time View is very useful for connecting Mobile devices 10 5 Using the Microsoft Excel template for Tags setup 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 Th...

Page 42: ...red For Seneca Modbus Standard address 1 holding register is equivalent to 40001 address 2 to 40002 etc Target Modus RTU REGISTER TYPE Select the register type from the combobox list Target Modus RTU DATA TYPE Select the target modbus rtu register type Target Connected to serial port NR Select the serial port where the slave modbus is connected to Target Modbus RTU Start Register Enter the Modbus ...

Page 43: ...43 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: ...to the Modbus Slaves registers Through the ethernet the Registers written from the Z KEY Modbus Slave Port or read from the the Modbus Slave Port are available A typical LAN connection is represented into this figure 11 1 How it works A lot of PLCs have the limitation that only the Modbus Master protocol is implemented When values from the Modbus Slaves must be read write from the PLC and also fro...

Page 45: ...ds the Z KEY shared memory registers the Z KEY maintain refreshed the shared memory with the Modbus Slaves CAUTION Z KEY IN GATEWAY MODE DOESN T IMPLEMENT THE MODBUS TCP IP CLIENT PROTOCOLS 11 2 Gateway Modbus TCP IP Modbus RTU 1 port Master and 1 port Slave Webserver configuration Connect to the webserver by entering the ip address by default ...

Page 46: ... 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 47 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: ...e 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 STATIC IP ADDRESS Static IP address when DHCP is Disable STATIC IP MASK mask when DHCP is Disable STATIC GATEWAY Gateway address when DHCP is Disable W...

Page 49: ... the Modbus Station address PORT 1 BAUDRATE Used to Set the port baudrate PORT 1 BITS Used to Set the number of bits for the serial communication PORT 1 PARITY Used to Set the port parity None Odd or even PORT 1 STOP BITS Used to Set the port parity 1 or 2 note that if the parity is set only 1 bit can be used PORT 1 TIMEOUT Used to Set the timeout on Modbus Master mode before making a new call POR...

Page 50: ... that can be read with the Modbus function Read Multiple Registers or Read Multiple Coils PORT 2 BAUDRATE Used to Set the port baudrate PORT 2 BITS Used to Set the number of bits for the serial communication 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 PORT 2 TIMEOUT Used to Set ...

Page 51: ...Webserver if User Name and Password are leave empty no authentication is require for webserver access FTP SERVER PORT Used to Set the TCP IP port for the FTP Server FTP SERVER AUTHENTICATION USER NAME Used to Set the User Name for accessing the FTP Server if User Name and Password are leave empty no authentication is require for webserver access FTP SERVER AUTHENTICATION USER PASSWORD Used to Set ...

Page 52: ...RED FOR ACCESS CAUTION If you are using Internet explorer 9 or newer you must enable the compatibility mode see the arrow below 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 modif...

Page 53: ... RTU slave Target Resource If you are using a Seneca Modbus RTU Slave select the resource name from the Seneca database Target Connected to serial port Select at which Z KEY serial port is connected the modbus rtu slave device Target Modbus RTU Slave Station Address Select the Device Modbus Station Address also named Modbus node address Target Modbus RTU start register Select the Modbus RTU slave ...

Page 54: ... from 2147483648 to 2147483647 FLOAT MSW 2 modbus registers with the lower address Modbus register that hold the Most Significant Word Floating point single precision IEEE 758 2008 FLOAT LSW 2 modbus registers with the lower address Modbus register that hold the Less Significant Word Floating point single precision IEEE 758 2008 BIT 1 Boolean coil or Discrete input register this field is automatic...

Page 55: ...ude The TAG Name the Gateway TAG Modbus Address the Tag value and the TAG status OK read ok FAIL read fail This Real Time View is very useful for connecting Mobile devices 11 5 Import Export TAGs setup 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 ...

Page 56: ...red For Seneca Modbus Standard address 1 holding register is equivalent to 40001 address 2 to 40002 etc Target Modus RTU REGISTER TYPE Select the register type from the combobox list Target Modus RTU DATA TYPE Select the target modbus rtu register type Target Connected to serial port NR Select the serial port where the slave modbus is connected to Target Modbus RTU Start Register Enter the Modbus ...

Page 57: ...57 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: ...communicate with each other A typical LAN connection is represented into this figure 12 1 How it works A lot of PLCs have the limitation that only the Modbus Master protocol is implemented When values from the 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 Clie...

Page 59: ...t 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 Slaves Connect to the webserver by entering the ip address by default http 192 168 90 101 maintenance index html ...

Page 60: ...EY 60 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: ...ts 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 62: ...lity see the Z KEY section on seneca web site for download STATIC IP ADDRESS Static IP address when DHCP is Disable STATIC IP MASK mask when DHCP is Disable STATIC GATEWAY Gateway address when DHCP is Disable WORKING MODE Select the Modbus Gateway working mode with port 1 and port2 modbus slave RESPONSE MODE Select which type of response do you want when a Modbus slave don t respond to a modbus re...

Page 63: ... 1 BITS Used to Set the number of bits for the serial communication PORT 1 PARITY Used to Set the port parity None Odd or even PORT 1 STOP BITS Used to Set the port parity 1 or 2 note that if the parity is set only 1 bit can be used PORT 1 TIMEOUT Used to Set the timeout on Modbus Master mode before making a new call PORT 2 BAUDRATE Used to Set the port baudrate PORT 2 BITS Used to Set the number ...

Page 64: ...ed to Set the User Name for accessing the Webserver if User Name and Password are leave empty no authentication is require for webserver access WEB SERVER AUTHENTICATION USER PASSWORD Used to Set the Password for accessing the Webserver if User Name and Password are leave empty no authentication is require for webserver access FTP SERVER PORT Used to Set the TCP IP port for the FTP Server FTP SERV...

Page 65: ...FTP AND THE WEBSERVER IF YOU LEAVE THE TWO PARAMETERS TEXT BOXES BLANK NO AUTHENTICATION IT S REQUIRED FOR ACCESS CAUTION If you are using Internet explorer 9 or newer you must enable the compatibility mode see the arrow below 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...

Page 66: ...us 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 Target Resource If you are using a Seneca Modbus RTU Slave select the resource name from the Seneca database Target Connected to serial port Select at which Z KEY serial port is connected the modbus rtu slave device Target Modbus RTU Slave Statio...

Page 67: ...295 32 BITS UNSIGNED LSW 2 modbus registers with the lower address Modbus register that hold the Less Significant Word from 0 to 4294967295 32 BITS SIGNED MSW 2 modbus registers with the lower address Modbus register that hold the Most Significant Word from 2147483648 to 2147483647 32 BITS SIGNED LSW 2 modbus registers with the lower address Modbus register that hold the Less Significant Word from...

Page 68: ...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 So the 32bits value is obtained by the following relation 𝑇𝑜𝑡𝑎𝑙𝑖𝑧𝑒𝑟1 𝑅𝑒𝑔 40017 𝑅𝑒𝑔 40016 216 𝑅𝑒𝑔 40017 𝑅𝑒𝑔 40016 65536 The Tags setup can be imported exported from to a cgi file ...

Page 69: ...atus OK read ok FAIL read fail This Real Time View is very useful for connecting Mobile devices 12 5 Using the Microsoft Excel template for Tags configuration 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: ... combobox list Target Modus RTU DATA TYPE Select the target modbus rtu register type Target Connected to serial port NR Select the serial port where the slave modbus is connected to Target Modbus RTU Start Register Enter the Modbus Slave start register if holding register 1 40001 etc Target Modbus RTU Slave Address Enter the Modbus RTU Slave Station address The setup can be exported from Excel to ...

Page 71: ...pports one PC connection at a time NOTE For using the ZModem serial protocol with Z KEY through internet remember to activate the protocol crash recovery option 13 1 How it works If a PC program has only the serial port support but you need to exit from the ethernet you can install the Serial to Ethernet driver freely supplied by Seneca With this driver installed a couple of virtual serial port is...

Page 72: ...ver 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: ...urrent 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 If you need to reset to the default parameters click on FACTORY DEFAULT button The parameters are explained below ...

Page 74: ...c IP address when DHCP is Disable STATIC IP MASK mask when DHCP is Disable STATIC GATEWAY Gateway address when DHCP is Disable WORKING MODE Select the Remote COM Port working mode select which serial port to use remember that only port 2 can be configured in RS232 mode TCP IP PORT TCP IP port for Remote com port mode default port 8000 REMOTE COM PORT DELAY Enter the silence time after which the se...

Page 75: ...SER NAME Used to Set the User Name for accessing the Webserver if User Name and Password are leave empty no authentication is require for webserver access WEB SERVER AUTHENTICATION USER PASSWORD Used to Set the Password for accessing the Webserver if User Name and Password are leave empty no authentication is require for webserver access FTP SERVER PORT Used to Set the TCP IP port for the FTP Serv...

Page 76: ...VER IF YOU LEAVE THE TWO PARAMETERS TEXT BOXES BLANK NO AUTHENTICATION IT S REQUIRED FOR ACCESS CAUTION If you are using Internet explorer 9 or newer you must enable the compatibility mode see the arrow below 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 Seria...

Page 77: ...USER MANUAL Z KEY 77 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 78 Now Click on Launch Setup Press Finish the com0com setup will open ...

Page 79: ...fferent The first Pair can be used in software that support the CNCA names the other in software that support only the Ports class If you need to add more virtual ports press the Add Pair button the select if you need or not a port class Confirm the driver installation with Apply The serial port emulator Couple COM11 COM12 will be available ...

Page 80: ... 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 We connect the COM5 to the Seneca ES Connector Now use the same COM5 for example in a terminal software ...

Page 81: ...R MANUAL Z KEY 81 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: ...lick on Connect Port For disconnect all Ports click on Disconnect All Ports For automatically connect the PC at startup save the configuration and enable the Automatic Port Connection at Startup flag 13 3 4 Debugging the Connection Before click on Connect Port you can select to open a Debug Window for verify the connection configuration Then click on Connect Port If you see Connect Error like here...

Page 83: ...s 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 Click on Device Manager Button ...

Page 84: ...USER MANUAL Z KEY 84 The com0com setup window will open Now change COM5 to COM3 and COM4 to COM2 Then click Apply ...

Page 85: ...o 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 Now all the Ports that are not in use are displayed in transparent also our COM3 ...

Page 86: ...port and click on Uninstall 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 87 ...

Page 88: ...n 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 http www seneca it products z key ...

Page 89: ...static public ip address if your public ip address isn t static you can obtain it by using a Dynamic DNS like Dyndns http dyn com Take a look to this example The Router IP address is 192 168 1 1 and the Z KEY device address is 192 168 1 101 with the Webserver on port 80 For example the Router Public IP address is 73 13 150 123 Now we must open the port 80 on the router and forwarding it to the IP ...

Page 90: ...e 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 A similar configuration can be used for Modbus TCP IP access IP ADDRESS PRIVATE PORT PUBLIC PORT PROTOCOL 192 168 1 101 502 502 UDP TCP ...

Page 91: ...Easy Setup software that contain the USB drivers A standard mini USB Cable A standard micro USB Cable The Easy Setup software can also be freely downloaded from the website www seneca it 17 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: ...32 bits Windows 8 1 64 bits Windows 10 32 bits Windows 10 64 bits From software Easy Setup revision 3 53 or newer 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 Power up the Z KEY and connect the...

Page 93: ...USER MANUAL Z KEY 93 Now the device it s connected to the PC The operation is performed only the first time that you connect the device ...

Page 94: ...t power down the Z KEY when the update firmware procedure is started 19 2 Firmware Update from FTP server For update the Z KEY firmware from FTP server you must insert a microSD card formatted with fat16 or fat32 filesystem Copy the file zkey bin with the new firmware to the root 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 inte...

Page 95: ...iscovery Device Tool is available for free from http www seneca it products z key With this Tool you can search Z KEY devices and others Seneca Device and change the actual IP configuration also if your PC has a different subnet WARNING For Security Reasons you can disable the IP change functionality from the Webserver Setup page 21 Easy Setup APP for Android Using an OTG Cable and an Android Devi...

Page 96: ...ands 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 For example for obtain the first 50 tags the cgi can be http 192 168 90 101 index cgi page 1 the response is NAME RTU name FW Firmware revision DHCP activated or not IP Actual IP address NET Network mask GW Gat...

Page 97: ...R 6 MODBUS GATEWAY PORT 1 AND PORT 2 SLAVE 7 REMOTE SERIAL COM ON PORT 1 8 REMOTE SERIAL COM ON PORT 2 ELEMENTS NUMBER Tags number in this call After this begin the Tag values TAGNAME Tag name TAGADDRESS Tag Modbus address TAGFORMAT Data format TAGVALUE Tag value TAGSTATUS FAIL or OK For example a response is Z KEY 4100 Disabled 192 168 85 104 255 255 255 0 192 168 85 1 c8 f9 81 0c 00 26 3 50 ...

Page 98: ...USER MANUAL Z KEY 98 TAG1 40001 UINT16 50 OK TAG2 40002 UINT16 1000 OK TAG3 40003 UINT16 50 OK TAG4 40005 UINT16 0 OK TAG5 40007 UINT16 40 FAIL TAG6 40008 ...

Page 99: ...USER MANUAL Z KEY 99 UINT16 0 OK 40057 FP LSW 0 000000 FAIL ...

Reviews: