Home

USER MANUAL – S203TA

image

Contents

1. SENECA Z TWS4 VPNFiles Firmware Version 8W002490 106 020000000000 Setup pioad ca crt Real Time View e 1285 byte tored in Momesconfigypnica ct For more information about these files and related topics please refer to the OpenVPN web page openvpn net 40 USER MANUAL Z TWS4 lt 192 168 85 104 SENECA Z TWS4 FW Upgrade Firmware Version SW002480 106 020000000000 tup eal Time View Kernel Scegli file Nessun file selezionat Rpalfaezyatent Scegli file Nessun le selezionat Disk Default Scegli file Nessun fil DISK Scegli file Nessun tle selazional Finally the FW Upgrade page lets you upgrade essential parts of the Z TWS4 FW Please note that an erroneous use of this functionality can compromise the proper Z TWS4 functioning so use this page only to apply upgrades released by Seneca with the support of Seneca personnel In this page you can browse your PC to select the FW files which should have the following names Kernel zimage_rev2 tar gz Root file system rootfs jffs2 tar gz Disk Default diskdfl jffs2 tar gz Disk disk tar gz You can select one or more files then you can start the upload by pressing the Upload button Once the upload is done the following result page is shown 41 USER MANUAL Z TWS4 MOTO open Co Sout lt lt 192 168 85 104 ENE Z TWS4 FW Upgrade
2. OFF v 16 v box tim it OFF 36 USER MANUAL Z TWS4 In the following table all Z TWS4 configuration parameters are listed with a brief explanation and the parameter default value for each of them IP ADDRESS IP address 192 168 90 101 IP ADDRESS 2 ON OFF Flag to enable disable the second OFF IP address IP ADDRESS 2 192 168 100 101 IP MASK 2 255 255 255 0 GATEWAY ADDRESS 192 168 90 1 DNS ADDRESS 192 168 90 1 WEB ADMIN USERNAME Username to access the web Admin WEB ADMIN PASSWORD Password to access the web Admin WEB USER USERNAME Username to access the web user User WEB USER PASSWORD Passsword to access the web user User site port 80 Baud Rate of the CAN interface CAN BAUDRATE 250 Kbit s possible values are 20 50 100 125 250 500 Kbit s STRATON TCP IP SERVER PORT TCP IP port to connect to the 502 Straton server STRATON REDUNDANCY ON OFF Flag to enable disable the Straton OFF Redundancy functionality IP address of the other Z TWS4 device used for Straton STRATON REDUNDANCY IP 192 168 90 102 ADDRESS Redundancy LICENSE KEY Key to enable disable Energy 1122334455667788 Protocol functionalities in Straton dummy value NTP ON OFF Flag to enable disable time synchronization by means of NTP protocol PRIMARY NTP SERVER IP address or FQDN of the 192 168 90 1 Primary NTP Server The correct License Key string is provided
3. IP address of the remote host as default gateway only LE RESULT 1 with CONNECT TRUE a SEND MAIL 2 fa 2 2 zee da ba 20 2 Se das 2 2 2 ma ze AAT MII ta A wu UT i DIM SEND i Function Block to send an e mail teed be siste ti dotte tittetitie SMTP_HOST STRING we SM TP_PO RT UINT n CRYPTO O N BOOL AUTH_ON BOOL AUTH_USERNAME STRING A UTH_P ASSWORD STRING FROM STRING TO STRING SUBJECT STRING TEXT STRIMG ATTACH FILE STRING ENABLE BOOL OUT RESULT INT SEND MAIL 47 USER MANUAL Z TWS4 The SEND MAIL FB sends an e mail by means of the SMIP SMTPS protocol When first called the FB runs a process which starts sending the e mail on subsequent calls it only checks if the process has finished its job The FB has the following input parameters PM HOSI IP address or host name of the SMTP SMTPS server MTP PORT port for the SMTP SMTPS protocol normally 25 for SMTP 465 for SMTPS CRYPTO gt 22 Cryptography SSL shall be used FALSE gt SMTP TRUE gt SMTPS BUTE ON if authentication shall be executed AUTH USERNAME username for authentication AUTH PASSWORD password for authentic
4. 421 9 tg i disk aie File Edit View G Estensione Dimensi Modificato Diritti 01 01 1970 TWXE XI X Modificato vin 11 07 2012 e 14 09 2010 _ t5 cod 0 03 10 2011 01 24 rw r r e 13 09 2010 _ t5linux80 429 356 01 01 1970 TWXI XI X e 23 03 2012 d e 04 04 2012 NG 04 04 2012 ors 04 04 2012 Desktop dygraph Qt4Examples RNDISdriverwindow ors e 04 04 2012 s euele e 04 04 2012 Ha 1 KiB e 16 03 2012 D e 04 04 2012 et e 04 04 2012 first_test first_test c root 10 0 0 14 e 04 04 2012 ING M e 04 04 2012 rs e 04 04 2012 rs 0 e 04 04 2012 08 03 2011 e 21 02 2011 e 26 04 2011 e 09 09 2010 e 04 03 2011 d D 0Bdi 419 KB in 0di 2 j Sposta e F7 Crea cartella XX F8 Elimina F9 Propriet F10 Esci a SCP first test 01 08 2012 E SN i Ve Zee ad and then copy it to the Windows desktop From here you can drag it to the WinSCP program connected to the Z TWS4 board on the disk directory 27 USER MANUAL Z TWS4 i Remoto Aiuto Modificato 11 07 2012 e 14 09 2010 13 09 2010 23 03 2012 04 04 2012 04 04 2012 04 04 2012 04 04 2012 04 04 2012 16 03 2012 04 04 2012 04 04 2012 04 04 2012 04 04 2012 04 04 2012 04 04 2012 08 03 2011
5. FALSE gt FB 15 skipped The FB has the following output parameter RESULT 1 in case of any failure 0 if the process is still running 1 if the process has successfully finished 2 if timeout has expired Please note that the SEND SMS FB can t be successfully executed while the PPP connection is active TIME SYNC E z 2 EE NA CEE al 2 7 p ug urs by means of NTP protocol ENABLE BOOL OUT RESULT INT TIME SYNC Ihe TIME SYNC performs time synchronization by means of the NIP protocol When first called the FB runs a process which starts performing the synchronization on subsequent calls it only checks if the process has finished lits The FB has the following input parameter ENABLE TRUE gt FB is executed FALSE gt FB is skipped The FB has the following output parameter RESULT 1 in case of any failure 0 if the process is still running 1 if the process has successfully finished 49
6. UMIEN BO 007 S SENECA USER MANUAL Z TWS4 SENECA s r l Via Austria 26 35127 2 1 PADOVA ITALY Tel 39 049 8705359 8705408 Fax 39 049 8706287 Web site www seneca it Support supporto seneca it IT support seneca it Other G3 Sales commerciale seneca it IT sales seneca it Other CERTIFICATE UNI EN ISO 9001 Nr 9115 SENE This document is property of SENECA srl Duplication and reproduction of its are forbidden though partial if not authorized Contents of present documentation refers to products and technologies described in it Though we strive for reach perfection continually all technical data contained in this document may be modified or added due to technical and commercial needs it s impossible eliminate mismatches and discordances completely Contents of present documentation is anyhow subjected to periodical revision If you have any questions don t hesitate to contact our structure or to write us to e mail addresses as above mentioned 1002963 1 USER MANUAL Z TWS4 Seneca Z PC Line module Z TWS4 1 Preliminary information Informazioni preliminari WARNING NO EVENT WILL SENECA OR ITS SUPPLIERS BE LIABLE FOR ANY LOST DATA REVENUE OR PROFIT OR FOR SPECIAL INDIRECT CONSEQUENTIAL INCIDENTAL OR PUNITIVE DAMAGES REGARDLESS OF CAUSE INCLUDING NEGLIGENCE ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE Z TWS4 EVEN I
7. 21 02 2011 26 04 2011 09 09 2010 04 03 2011 01 08 2012 16 22 rw r r 03 10 2011 01 24 rw r r 01 01 1970 TWXI XI X m m m rmm rm rmm rm rm qmm rm rm rmm D B di 425 KiB in D di 3 i Spott B FI Crea cartella 2X FB Elimme 2 FO FIO Esci SCP 3 0303 7 1 2 3 Running the first program To run the program we must add the executable flag on the file with the chmod command 28 USER MANUAL Z TWS4 E hA HweTemue o RET T Hle Modifica Visualizza Chiama Trasferimento i 2 root mx25 root mx25 root dmx25 root mx25 root mx25 20 11 25 root mx25 root mx25 root dmx25 root dmx25 root mx25 root mx25 25 root mx25 root mx25 root mx25 root dmx25 20 20 root dm 25 H rootl mx25 cd disk root imx25 diskt chmod x first test root mx25 AA Hyperterminal T e pamm Hle Modifica Visualizza Chiama Irasferimento 7 root mx25 root mx25 root dmx25 root mx25 root mx25 25 20 20 20 25 20 20 root mx25 root dmx25 20 25 root mx25 root dmx25 root mx25 20 20 25 Zfirst test Hello world rootlimx25 disk Connesso a 00 03 51 VTIOOI 115
8. Firmware Version 5 002490 106 020000000000 Setup pload zimage rev2 tar gz Upgrade and Reboot Cancel Upgrade In this page you can press the Upgrade and Reboot button this will start the upgrade procedure which may e take some time to be completed during this time it is highly recommended that the Z TWSA is not switched off at the end of the procedure the Z TWS4 will be automatically rebooted e press the Cancel Upgrade button this will delete all the uploaded files on Z TWS4 11 Appendix A Seneca Function Blocks To let the users exploit Z TWS4 features in their IEC 61131 3 programs Seneca has developed a set of Function Blocks supplied with the Seneca library for StratON In this appendix Seneca FBs are listed providing a description of input output parameters and some notes for each of them 42 USER MANUAL Z TWS4 DOC GG EISE EASES SELL 1 Al m Sf USE 2 PAS 2 E EIE RE 2 AE LOC 7 2 UE utt ttt tette HOST STRING PORT UINT USERNAME S TRING PASSWORD STRING REM FILE STRING LOC FILE STRING ENABLE BOOL OUT RESULT INT FTP GET Ihe ETP GET FB downloads file by means Cf the FIP protocol When first called the FB runs a process which starts performing the download on subsequent calls it only checks if the pr
9. can be set up on the IDC10 connector To select CANopen port on IDC10 connector put the SW1 DIP switch on ON position S GND cani CANH The Z TWS4 has a USB HOST type A connector that can be used as an additional serial port using a Seneca S117P1 for example or to connect an external USB memory USER MANUAL Z TWS4 USB 1 HOST The Z TWS4 has a USB On The Go connector with micro USB plug in that can be used to connect to the Z TWS4 console for this functionality a driver supplied by Seneca has to be installed on the PC USB 2 On The Go The Z TWS4 has two ethernet ports with RJ45 connectors on the front panel The two ports are internally connected in HUB SWITCH mode The two ports have the same MAC ID Ethernet 1 RJ45 Ethernet 2 RJ45 o n C En Through a removable 4 pin connector the Z TWS4 provides serial RS232 port or as an alternative third RS485 port In order to select the RS232 port on the 4 pin removable connector put the SW2 DIP switch on ON position To select the RS485 port on the 4 pin removable connector put the SW2 DIP switch on OFF position The cable length for the RS232 interface must be less than 3 meters USER MANUAL Z TWS4 RS232 COM1 SS SS The Z TWS4 has a plug in connector for micro SD card placed in the side part of the case To insert the SD card into the connector be sure that the SD card is oriented with metal contacts faci
10. hai ancora cresto macchine virtuali Per creare una nuova macchina virtuale premi ll puisante Nuova nela barra degli strumenti principale posizionata nella parte alta della finestra Prem i tasto F1 per ottenere auto immediatamente visita www vrtuabox org per le ultime notizie e informazioni Disco fisso Se lo desideri puoi aggiungere un disco virtuale ala nuova macchina Puoi creare un nuovo file di disco selezionarne uno dall elenco o da un altra posizione utilizzando l icona della cartella Se bisogno di una configurazione d archiviazione pi complessa puoi saltare questo passaggio e modificare le impostazioni della macchina dopo averla creata La dimensione consigliata del disco fisso 8 00 GB Non aggiungere un disco fisso virtuale O Crea subito un disco fisso virtuale Usa un fie d disco fisso virtuale esistente Benvenuti in VirtualBox La perte sinistra di questa finestra visualizza un elenco delle macchine virtuali sul tuo computer L elenco al momento vuoto perch non hai ancora cresto macchine virtuali Per una nuova macchina virtuale premi 0 puisante Nuova nela barra degl strumenti principale posizionata nella parte alta della finestra Prem i tasto F1 per ottenere auto immediatamente visita www vrtualbox org per le ultime notizie e informazioni T Giovanni Spagian Work BOOT FAST VM imx25bsp TWS4 20120511 Cerca in im25bsp TWS4 201 2 E Nome Ultima
11. 200 8 1 4 29 USER MANUAL Z TWS4 8 Z TWS4 StratON PLC version Z TWS4 StratON PLC version provides the full support for IEC 61131 3 PLC Standard an Integrated Development Environment IDE is available for Windows and Linux PCs The StratON Integrated Development Environment includes several tools such as a fieldbus configuration tool an analog signal editor and editors compliant with the five languages of the IEC 61131 3 Standard Sequential Function Chart SFC Function Block Diagram FBD Ladder Diagram LD Structured Text ST Instruction List IL With StratON IDE it s simple to write download and debug IEC 61131 3 code 8 1 Writing downloading and running the first program First we must add the Seneca Library file SenecaStratonLibrary_sw2960_001 XL5 to the IDE 11 STRATON Ecc Dispositivi stampanti Compare Projects Handbook Programmi predefiniti EP Language Libraries OEM Guida supporto tecnico License E Readme Esegui Ef STRATON d STRATON Development Kit 7 4 di Strumenti di Office Symantec Endpoint Protection 4 Indietro Import the Library 30 USER MANUAL Z TWSA 545 Furcton Bock to get a recerved 5 5 7 Pasamete MIR Archivio Tecnico Progetti in como Z TWS4 FW UBRERIE STRATON 40 CorsmLiBRERESTRATON Organizz
12. F SENECA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES SENECA ITS SUBSIDIARIES AND AFFILIATES COMPANY OR GROUP OF DISTRIBUTORS AND SENECA RETAILERS NOT WARRANT THAT THE FUNCTIONS WILL MEET YOUR EXPECTATIONS AND THAT Z TWSA ITS FIRMWARE AND SOFTWARE WILL BE FREE FROM ERRORS OR IT OPERATES UNINTERRUPTED SENECA SRL CAN MODIFY THE CONTENTS OF THIS MANUAL IN ANY TIME WITHOUT NOTICE TO CORRECT EXTEND OR INTEGRATING FUNCTION AND CHARACTERISTICS OF THE PRODUCT ATTENZIONE IN NESSUN CASO SENECA O I SUOI FORNITORI SARANNO RITENUTI RESPONSABILI PER EVENTUALI PERDITE DI DATI ENTRATE O PROFITTI O PER CAUSE INDIRETTE CONSEQUENZIALI O INCIDENTALI PER CAUSE COMPRESA LA NEGLIGENZA DERIVANTI O COLLEGATE ALL USO O ALL INCAPACIT DI USARE Z TWS4 ANCHE SE SENECA AVVISATA DELLA POSSIBILIT DI TALI DANNI SENECA LE SUSSIDIARIE O AFFILIATE O SOCIET DEL GRUPPO O DISTRIBUTORI E RIVENDITORI SENECA NON GARANTISCONO CHE LE FUNZIONI SODDISFERANNO FEDELMENTE LE ASPETTATIVE E CHE Z TWSA IL SUO FIRMWARE E SOFTWARE SIA ESENTE DA ERRORI O CHE FUNZIONI ININTERROTTAMENTE SENECA SRL PUO MODIFICARE IL CONTENUTO DI QUESTO MANUALE IN QUALUNQUE MOMENTO E SENZA PREAVVISO AL FINE DI CORREGGERE ESTENDERE O INTEGRARE FUNZIONALITA E CARATTERISTICHE DEL PRODOTTO USER MANUAL Z TWS4 2 Features Z TWS4 is a programmable communication oriented PLC The device is based on a 32bits ARM9 processor equipped with the Linux operating system Linux ker
13. NUAL Z TWSA please note the A uppercase character You come to the following page y Q zws gt 5 192 168 85 104 8030 S SENECA z Real Time View Real Time Clock Setup VPN Files Upload FW Upgrade 222 IPADORESS 192 168 85 104 TE 2552552550 222 IPADDRESS 2 OFF 192 168 100 101 MASK 2552552550 222 RATEWAY ADORESS 197 160 251 220022 DNSADDRESS 15216654117 WEB ADMIN USERNAME admin admin user user 250 kbit s 502 OFF 192 168 85 103 ESERE cA0CACADODOCACE 192 168 84 113 SECONDARY NTP SERVER root oto ora 22200 TIMEZONE APRONO TWS4 Real Time View Firmware Version 5 002490 106 MAC 020000000000 Energy Protocols IEC 850 Slave IEC 850 Master RESET In this page all Z TWS4 configuration parameters are shown with their current values The RESET button can be used to perform Z TWSA reboot To change the parameter values you have to go to the Setup page Ci zws 5 192 168 85 104 8080 setup php Firmware Version SW002490 106 020000000000 192 168 85 1 192 168 84 113 1192 168 85 104 255 255 255 0 OFF 92168100101 255 255 266 0 192168851 8 19216884113 admin admin user user _ 1250 kbit s v 502 ICSADCACADODOCACF ON 19216884113 pool ntp org GMT 1
14. RING PASSWORD STRING TIMEOUT UINT ENABLE BOOL OUT RESULT INT LOCAL IP STRING REMOTE IP STRING PPP CONNECT Ihe PPP FB performs PPP connection setup or release by means of a GPRS modem 46 USER MANUAL Z TWS4 When first called it runs a process which starts the connection setup or release on subsequent calls it only checks if the process has finished its The FB has the following input parameters CONNECT TRUE gt connection setup FALSE gt connection release SERIAL PORT name of the serial port which the GPRS modem is connected to on Z TWS4 the only supported values are COMI Re 252 Dore COMI USB port GPRS GPRS Access Point Name as given by the mobile operator USERNAME gt username required for authentication it can be empty if authentication is not required PASSWORD password required for authentication it can be empty if authentication is not required TIMEOUT timeout in seconds ENABLE TRUE gt FB is executed FALSE gt FB is skipped When CONNECT FALSE SERIAL PORT GPRS APN USERNAME and PASSWORD parameters can be empty The FB has the following output parameters RESULT l in case of any failure 0 if the process is still running 1 if the process has successfully finished 2 if timeout has expired LOCAL LP 2 IP address assigned the PPP network interface only if RESULT 1 with CONNECT TRUE REMOTE
15. a Nuovacertella 5 Tes 3 87 2018 11 34 Seneca rei x5 IRANANO XLS 77 Senece rev2 X15 10 01 2014 1435 ile XLS 28 T Seneca rev3 XL5 31 01 2214 1741 File X15 1268 SenecaStestonLibrary sw2950 000 XL5 10 01 2014 1435 File 515 188 di Desktop FWON 741 31 USER MANUAL Z TWSA File Toots Wizard Help Function and _ Prolies ASi Types IBFTP GET dowrioad by means of FTP protocol 7 Non _ Fie upload by means of FTP protocol 7 SMS Function Block to get a reosived SMS 7 _ Rename MODEM CTRL Functen Bock to execute generic AT command _ Desis BPPP CONNECT connection 5 Function Block to send an emal 7 BISEND SMS Function Block to send an SMS 7 IB TIME SYNC Time by means of NTP protocol 7 Descipten INPUT Store Shell cmd STRING z Enable gt BOOL Reset Changes END VAR e Result INT 2 8 VAR IB TIME SYNC by meas of NTP procesi 7 Now run the IDE and open the demo project 32 USER MANUAL Z TWSA 1 7 HEX Demo project DEMO REGISTER DEMO REGISTER 1 T Name Type Dim Attrib Syb Init value Graphic Shell HELLO WORLD TRUE F 1 main first d
16. ation FROM e mail sender TO e mail recipient SUBJECT e mail subject TEXT e mail text ATTACH ELLE name of the file with path to be attached to the e mail it can be empty ENABLE TRUE gt FB is executed FALSE gt FB is skipped The FB has the following output parameter RESULT l case or 0 if the process is still running 1 if the process has successfully finished SEND SMS SER RE Mni E em CEU n bs WEITE Block to send an 5 5 EE d L SERIAL PORT STRING SC MUM STRING TO NUM STRING SMS_BODY STRING TIMEQUT UINT ENABLE BOOL OUT RESULT INT SEND SMS The SEND SMS FB sends an SMS by means of a GSM modem When first called it runs a process which starts sending the SMS on subseguent calls it only checks if the process has finished its job The FB has the following input parameters SERIAL PORT name of the serial port which the GSM modem is connected to on Z TWS4 the only supported values are COMI 755 2352 Dore COMIGOT USB port SC NUM SMS Service Center as given by the mobile operator it can be empty if the SC number is already set on the modem 10 NUM recipient number 48 USER MANUAL Z TWS4 OMS BODY SMS TIMEOUT timeout in seconds ENABLE TRUE gt is executed
17. ato 10 02 2012 09 09 2010 10 02 2012 14 07 2009 09 09 2010 14 07 2009 04 03 2011 14 07 2009 di diskdfl di etc etc ro di home home ro 1 initrd du lib di log chi media di mnt di proc Modificato 01 01 1970 01 01 1970 01 01 1970 03 10 2011 04 15 01 01 1970 03 10 2011 01 24 01 01 1970 03 10 2011 04 12 01 01 1970 03 10 2011 04 11 01 01 1970 01 01 1970 01 01 1970 29 01 2011 03 10 2011 04 13 01 01 1970 01 01 1970 01 01 1970 01 01 1970 01 01 1970 03 10 2011 04 11 Diritti MARAE TWXI Xr x k D B di 475 B in Odi 24 25 F5 Copia 12 F6 Sposta Gi F7 Crea cartella F8 Elimina F9 Propriet FLO Esci B SCP 1 4Bin Odd P Rinomina The WinSCP program can also be used as an FTP client to transfer files to from the Z TWS4 by means of the FTP protocol to do that just select FTP instead of SCP protocol in the WinSCP Login window the default username and password for Z TWSA FTP user are user 123456 see also Web Configuration Pages chapter 7 Z TWS4 Linux version The Z TWSA Linux version consists of the Z TWS4 devi
18. by Seneca FQDN Fully Qualified Domain Name e g pool ntp org 37 USER MANUAL Z TWS4 SECONDARY NTP SERVER IP address or FQDN of the 192 168 90 1 Secondary NTP Server FTP USERNAME Username to connect to the Z user TWS4 FTP site FTP PASSWORD PPP ON OFF PPP SERIAL PORT GPRS APN GPRS USERNAME GPRS PASSWORD VPN ON OFF VPN SERVER Password to connect to the Z TWS4 FTP site Flag to enable disable the PPP connectivity this requires the Z TWS4 to be connected to a GPRS modem e g Seneca Z MODEM Serial Port used for connectivity possible values are COM1 RS232 and COM16 USB GPRS Access Point Name as given by the Mobile Network Operator Username needed for GPRS connectivity as given by the Mobile Network Operator it may be empty if authentication is not required Password needed for GPRS connectivity as given by the Mobile Network Operator it may be empty if authentication is not required Flag to enable disable the VPN connectivity Z TWS4 provides an OpenVPN client IP address or FQDN of the 192 168 90 101 OpenVPN server 123456 COM1 ibox tim it user pass VPN PORT UDP Port of the OpenVPN server 1194 In the Setup page you can change any of the above parameters to apply the changes press the Submit button this saves the changes and performs the Z TWS4 reboot If needed you can restore factory default values for all parameters b
19. ce with Linux O S Kernel 2 6 28 an Open Development environment based on an Ubuntu Virtual machine for C code development NOTE Contact Seneca to get the Seneca Z TWS4 Development Environment DVD 18 USER MANUAL Z TWSA 7 1 Seneca Z TWS4 Development Environment The Seneca Open Development Environment is a toolchain to write compile and debug code The toolchain is based on a Virtual Machine with Ubuntu Linux O S 7 1 1 Running the Ubuntu Virtual Machine The Ubuntu Virtual Machine can be run by means of Oracle VirtualBox which can be free downloaded from https www virtualbox or To setup the VM in VirtualBox you have to execute the steps shown in the following pictures La parte sinistra d questa finestre visualizza un elenco delle macchine virtuali sul tuo computer L elenco al momenta vuota perch non hai ancora creato macchine virtual _ Per creare una nuova macchina virtuale premi pulsante Nuova nela barra degli strumenti principale posizionata nella parte alta della finestra _ Prem i tasto F1 per ottenere aiuto immediatamente visita von ortyalbox org per le ultime notizie informazioni First choose a name for the VM and set the O S as Linux Ubuntu 19 USER MANUAL Z TWSA Boema cnm La perte sinistra di questa finestra visualizza un elenco delle macchine virtual sul tuo computer L elenco al momento vuoto perch non hai ancora cresto macchine vir
20. ctor two RJ45 connectors USB and micro USB connectors Plug in micro SD card BOX DIMENSIONS Nylon 6 with 30 fiberglass field self extinguishing class VO black color 4 Connections Power Supply and Modbus interface are available by using the bus for the Seneca DIN rail by the rear IDC10 connector or by Z PC DINAL1 35 accessory The following picture shows the meaning of the IDC10 connector pins Power supply is available only from the rear connector CAN RS485 GND Power Supply CAN H RS485 A Power Supply AC CANL RS4g5B 10 USER MANUAL Z TWS4 If Z PC DINAL1 35 accessory is used the power supply signals and communication signals may be provided by the terminals block into the DIN rail support In the following figure the meaning and the position of the terminal blocks are shown The DIP switch that sets the 120 O terminator is used only for CAN communication GNDSHLD Shield to protect the connection cables recommended Ground DIP SWITCH Power supply AC Powar supply AC 120 Ohm terminator B i The Z TWS4 has two RS 485 serial ports for Modbus communication COM 4 and 2 The RS485 connection for COM 2 can be set up by means of the corresponding screw terminals or by the IDC10 connector To select RS 485 on IDC10 connector put the SW1 DIP switch on OFF position RS 485 4 The Z TWS4 has a CANopen port available at screw terminals 10 11 12 As an alternative the connection
21. efault value 192 168 90 101 is set again You can change the IP address in a permanent way by means of the Z TWS4 web configuration pages see Web Configuration Pages chapter 6 1 4 Read Only Linux Filesystem To prevent system files damages the Linux filesystem comes in read only mode The ro directories for example etc ro are read only at startup they will be mounted into a RAM filesystem So if you change something in the ro directories the changes will be lost at the next reboot To store files in a permanent way you must save them into the disk or log directories NOTE The disk and log directories are mounted with the UBI FS filesystem This filesystem is flash write free but it needs from 30 seconds to 1 minute depending on the CPU load to store the files to the flash If you need to store the files immediately you can synchronize the UBI FS filesystem by typing sync on the console 6 1 5 Mounting the Linux Filesystem in Read Write mode To add new functionalities to the Linux filesystem it s possible to mount it in R W mode To do that you must type the following command on the Linux console mount o rw remount 12 USER MANUAL Z TWS4 now every change you make to the ro e g etc ro directories will be loaded at the next startup into the without ro e g etc directories NOTE Modifying the system files it s possible to damage the Z TWS4 The Se
22. em Every 30 seconds or 1 minute depending on the CPU load the RAM buffer is written to the FLASH memory To force the writing to the flash you can give the command Sync to synchronize the filesystem 6 1 9 Changing date time On the Linux console you can set a date time by typing date 5 yyyy mm dd hh mm for example date 5 2014 02 24 10 45 to store the new date time you must then type hwclock w You can also change the Z TWSA date time from the Real Time Clock Setup page see Web Configuration Pages chapter 6 1 10 Accessing the USB Pen Flash Drive FAT32 Inserting a USB pen flash drive formatted with FAT32 filesystem into the USB 1 port you get on the console 14 USER MANUAL Z TWS4 a AA Hyper File Modifica Visualizza Chiama Trasferimento 2 root mx25 root mx25 sd 0 0 0 0 sdal Assuming drive cache write through sdal Assuming drive cache write through invalid media value 04x00 lroot mx25 VT100J 115200 8 N 1 Now you can access the USB drive by changing the directory with the following command cd media sda1 6 1 11 Accessing the microSD Card FAT32 Inserting a microSD or microSDHC card formatted with FAT32 filesystem into the slot you get on the console 15 USER MANUAL Z TWS4 Se LI AA File Modifica Visualzza Chiama Trasterimento 7 rootmx25 root 25 root mx25 FAT bogus numb
23. emo program i Programs 3 5 2 Global variables main demo progr 14 RETAIN variables jg Recipe E Signals i E Soft Scope 08 Spy 24 String Tables Az Fieldbus Configurations 3 Binding Configuration 2 43 Profiles 5 110 y m A 39 Global defines Advanced 2 Global variables Em Arithmetic ES Types a Dg Arrays Lg AS interface BACnet jj Booleans 24 CANbus 24 CANopen gi Clock Comparisons E lt gt Blocks Sovest Define ENUM lt j gt main 41 Crassreterences Rurtme Catsizok Breskooinis Destssammenc tace HMI Ready Offline 10 0 0 14 1100 inhi oxi Uni chi 100 then set the correct target IP address for example 192 168 90 101 instead of 10 0 0 14 the port must be set to 502 33 USER MANUAL Z TWS4 Debug On Line Chan 4 Users Seneca Desktops FWS4First Program Dem o proj ect Communication parameters 10 0 0 14 1100 pm 5 Runtime Simulation for all projects 7 Always start simulator in Cold Start mode Connected to the runtime for all projects Prompt before stopping the application Prompt before download Prompt before On Line change When starting the runtime all projects Propose to start in Cold Start mode O Propose to start with RETAIN variables rel
24. er of reserved sectors root mx25 cd media mmcblk pl 1 1 VTJ 1152008 1 Now you can access the microSD card by changing the directory with the following command cd media mmcblk0Op1 6 2 WinSCP For easy access to the Z TWS4 filesystem on ethernet you can use the WINSCP program you can free download WINSCP from http winscp net eng download ph You must set the connection as in the following figure the screenshot shows a connection to the 10 0 0 14 IP address 16 USER MANUAL Z TWS4 Sessione 100014 scegli calore Opzioni avanzate the password will be requested Connessione hast in corso Autenticazione in corso Usa nome utente root type root then press OK 17 USER MANUAL Z TWS4 You will get a new window as in the following screenshot on the right you can copy and delete files directly to from the Z TWS4 Users root 10 0 0 14 WinSCP Locale Seleziona File Comandi Sessione Opzioni Remoto Aiuto zJ ao De SA p Estensione Administrator 11 Administrator LAPTO 4 All Users Default Default User Public desktop ini Dimensi Cartella superi Cartella di file Cartella di file Cartella di file Cartella di file Cartella di file Cartella di file Impostazioni d Modific
25. ext Please note that the GET connection 1s active USER MANUAL Z TWS4 if timeout has expired if the process has successfully finished but no SMS has been only 1f RESULT 1 Date time of SMS reception only if RESULT I only if RESULT 1 5 can t be successfully executed while the PPP 7 Shel Enable m LINUX SHELL LINUX_SHE oii ion Block which executes a command in a Linux shell Result INT Seneca FB for acccess to the Linux Shell Max 200 command line characters For access to the output use Shell cmd Enable Result 1 OR 0 PAUSE Usage Example Vis gt gt Gu utpurcl string command if true execute the shell command other FAULT create the directory list into outputl txt n HE SER 200 n E n PENA MODEM CTRL The MODEM CTRL FB sends a corresponding response When first called the FB RE ion Block to execute SERIAL PORT STRING COMMAND STRING TIMEOUT UIMT ENABLE BOOL RESULT INT RESPONSE STRING generic AT command to the GSM modem and receives the runs a process which starts sending the command 45 USER MANUAL Z TWS4 on subsequent calls it only checks if the process has finished its job T
26. g the first C program Create an empty file by clicking on the desktop with the right mouse button Create Document gt Empty file Rename the file as first test c 24 USER MANUAL Z TWS4 Wed Aug 1 6 13 PM Bookmarks Tabs Stop R Home Computer Search Location home user amp 100 amp konview Places E3 24 Desktop Desktop dygraph Qt4Examples RNDISdriverwindow L File System Network i Floppy Drive Trash E tftpboot first test c selected 0 bytes To 1 a 1 14710 ser ubuntu904deskt User File Browser Double click on the file icon to open gedit editor Write the simple Hello world program 25 USER MANUAL Z TWS4 first test c gedit Tools Documents 4d E first _test c printf Hello world nX r 7 1 2 2 Compiling the first program Compile the program by entering the following command into the Virtual Machine Linux console arm angstrom linux gnueabi gcc o first_test first_test c the result is the first_test compiled program You can copy the compiled file directly into the Z TWS4 by executing the command scp first_test root 192 168 90 101 disk another way is to drag the compiled file out of the Virtual Machine window 26 USER MANUAL Z TWSA l user File Browser 5 Predefinito ij
27. he FB has the following input parameters SERIAL PORT 2 mame OF the serial port which the GSM modem 15 Connected to on Z TWS4 the only supported values are COMI 2 52 222 DOft COMIOS USB pore COMMAND AT command to be executed TIMEOUT timeout in seconds ENABLE TRUE gt FB is executed FALSE gt FB is skipped The FB has the following output parameters RESULT el an Case any failure O if the process is still running 1 if the process has successfully finished NOTE this only means that the command was successfully sent and the response was successfully received it does not necessarily mean that the AT command was successfully executed in other words it is up to the application to tell if the response means success or failure 2 if timeout has expired RESPONSE the response to the AT command as sent by the modem it can contain more lines separated by a character if the whole response is longer than 255 characters it will be truncated Please note that the MODEM CIRE FB can t be successfully executed while the PPP connection is active PPP_CONN GO RE SER LO IIIS ZA O E USE NUM S 7 5 SE ET EIE TI M 2 m IN CONNECT BOOL SERIAL_PORT STRING GPRS_APN STRING USERNAME ST
28. modifica Tipo 12 11 2013 1712 Cartella di file wbuntuSO4desktop 390s1cc3 vmemlck 12 11 2013 17 12 Cartella di file M ubuntuS ddesktop 39 6aBeBwmem lek 28 11 203 0729 Cartella di file ubuntuSO4desktop mdk 25 02 2014 0818 Fie VMDK Api Annulla 21 4 0631 25 02 2014 USER MANUAL Z TWSA Cw Starts jo salvato Mostra tog 48 Aggiorna E Mostra in Explorer Crea scorciatoia sul desktop Ordina Now you can run the VM by right clicking on its icon and choosing Start When Ubuntu starts you are asked for a username and a password 22 il m TWSA TWSA LA 207 For username type user For password type 123456 My puty 1 i 3 H E TWA i 3 33 52 To launch a Termina USER MANUAL Z TWS4 TIT 9 2 Gi G 9 TWS4 Development In esecuzione Oracle VM VirtualBox TWS4 Development In esecuzione Oracle VM VirtualBox click on the terminal icon on Ubuntu top bar 23 18 DESTRA 31 31 USER MANUAL Z TWSA luser amp ubuntu984desktop iuser amp ubuntu904desktop iuser amp ubuntu904desktop sergubuntu904desktop 7 1 2 The GCC Compiler Using the GCC compiler you can compile C code for the Z TWS4 board 7 1 2 1 Writin
29. neca warranty doesn t cover damages due to system files modification 6 1 6 Useful console commands The disk directory can be used by users to store their programs Here are some useful commands that console users should know To create a directory mkdir directoryname to list the contents of a directory Is to copy a file to another directory that must already exist e g tmp cp filename tmp filename to move a file mv filename tmp to delete a file rm filename to delete a directory and all its contents rm r directoryname IMPORTANT Under disk you can find the StratON Virtual Machine tbenergy and other files which are needed for Z TWS4 proper functioning DO NOT REMOVE ANY OF THESE FILES OTHERWISE StratON WILL NOT START ANYMORE OR SOME OTHER Z TWS4 FUNCTIONALITY WON T WORK 13 USER MANUAL Z TWS4 6 1 7 Launching a custom boot up script A custom script file custom_script is located in the disk directory This script is launched at every boot you can edit it to add some custom commands IMPORTANT NOTICE just add your commands at the end of the script don t change or delete any lines of the original script unless you exactly know what you re doing otherwise Z TWS4 proper functioning might be compromised 6 1 8 Using the disk directory The disk directory uses the UBI FS filesystem this filesystem is flash write free exploiting a RAM buffer filesyst
30. nel 2 6 28 Two versions are available e Z TWS4 Linux programmable language e Z TWS4 StratON PLC programmable both in IEC61131 3 and C languages The Z TWSA Linux version is programmable in C using the GNU Compiler Collection GCC A Virtual Machine is provided with Ubuntu O S and ready to use OpenEmbedded environment please contact Seneca to get a copy of Seneca Z TWS4 environment The Z TWSA StratON PLC version is programmable according to the IEC61131 3 standard by means of the StratON environment 3 Technical specifications COMMUNICATION PORTS Maximum Baud rate 115 Kbps COM 4 screw terminals 1 2 3 COM 2 screw terminals 4 5 6 or IDC10 connector 1 removable 4 pin connector as an alternative to RS232 Maximum Baud rate 115 Kbps COM 1 removable 4 pin connector as an alternative to RS485 CAN bus port 2 0A and 2 0B screw terminals 10 11 12 or IDC10 connector Ethernet 1 and Ethernet 2 Ethernet 10 100 Mbps Two RJ45 connectors on front panel Maximum connection length 100 m USB 1 HOST Plug in USB type A USB 2 On The Go Plug in micro USB CPU AND MEMORY Memories 64 Mbytes of RAM 1 Gbyte of FLASH USER MANUAL Z TWS4 955 ENVIRONMENTAL CONDITIONS 30 90 40 C not condensing Degree protection IP20 CONNECTIONS Connections Removable 3 way screw terminals 5 08 pitch Rear IDC10 connector for DIN 46277 rail Removable 4 pin conne
31. net da aprire Annulla Sfoglia USER MANUAL Z TWS4 Then confirm with OK Now a blue screen appears telling Select one option Click on Troubleshooting Advanced Options Startup Settings Reboot The PC will reboot showing a new screen Press the key corresponding to Disable Driver Signature Enforcement option usually it is the 7 key Once Windows has started install the driver by right clicking on the driver file and selecting the Install option At the end of the installation a new window will appear X x amp Windows impossibile verificare l autore del software di questo driver gt Mon installare il driver Visitare il sito Web del produttore per ottenere driver aggiornati per il dispositivo Installa il software del driver Installare solo software disponibile nel disco o nel sito Web del produttore Software non firmato proveniente da altre risorse potrebbe danneggiare il computer o consentire l intercettazione di informazioni v Visualizza dettagli Confirm with Install this driver software anyway The Seneca serial driver is now installed Once the Seneca serial driver is installed you can use Hyperterminal or a similar program to access the Linux console The COM port shall be configured with the following settings Speed 115200 Bps 8 data bits Parity none 1 stop bit Flow Control none USER MANUAL Z TWS4 Propriet COM3 Star
32. ng towards left with reference to the figure The SD card can have each class SD card metal contacts 5 LEDs signalling STATUS LED meaning PWR Green The module is power on L1 _ The module is ready for use LNK1 Yellow Ethernet 1 connection detected Ethernet 1 connection absent ACT1 Green Blinking There is data activity Ethernet 1 USER MANUAL Z TWS4 ho Ie O O There is no data activity Ethernet 1 LNK2 Yellow ON Ethernet 2 connection detected OFF Ethernet 2 connection absent ACT2 Green Blinking There is data activity Ethernet 2 OFF There is no data activity Ethernet 2 6 Linux console The Linux console is available on the micro USB port To access it you need to install the Seneca TWS4 Serial Driver on your PC file seneca tws4 serial driver _sw2970_000 inf To install the driver on Windows 8 Windows 8 1 you have to follow the instructions given in the next sub paragraph 6 1 1 Installing the serial driver on Windows 8 1 Windows 8 has introduced the mandatory use of certified drivers Since certification of Seneca drivers is still pending you need to follow the installation guide below which applies to Windows 8 1 If you are using Windows 8 0 version you must update it to version 8 1 by means of the Microsoft store Press WIN see figure and R In the execute window type Digitare il nome del programma della cartella del documento o della risorsa Inter
33. oaded Misc Log user actions during test Show log file Always open this tab Then press the icon 5 to compile the project Download the code by pressing the icon 1 The project file will be placed into the disk directory This demo will print the Hello World string to the terminal 34 USER MANUAL Z TWS4 9 Updating the firmware by a USB pen Z TWSA firmware can be updated by means of a USB pen drive this procedure may be used for bugfix or to add new features You need a pen drive formatted with FAT32 file system The procedure is the following 1 from the zip file downloaded from Seneca website TWSA SWOOxxxx yyy zip extract the files disk tar gz diskdfl jffs2 tar gz rootfs jffs2 tar gz zimage rev2 tar gz 2 Copythe tar gz files into the root of the USB pen 3 Switch off Z TWS4 4 Insert the USB pen into the Z TWS4 USB 1 port 5 Switch on Z TWS4 6 Atthe boot end LED L1 ON remove the USB pen 7 Switch off Z TWS4 8 Switch on Z TWS4 10 Web Configuration Pages Z TWSA can be fully configured by means of a set of web configuration pages To access Z TWS4 configuration site you have to connect the browser to the Z TWS4 IP address on port 8080 e g http 192 168 90 101 8080 and when asked provide the following credentials Username Admin Password Admin The default 80 HTTP port has been left available for customer pages still under development 35 USER MA
34. ocess has finished its job The FB has the following input parameters HOST IP address or host name of the FTP server PORT TCP port tor the FTP protocol normally 21 USERNAME username for authentication PASSWORD password for authentication REM FILE name of the file with path on the remote server LOC FILE mene Or the file with path the Local device ENABLE TRUE gt FB 18 executed FALSE gt FB is skipped The FB has the following output parameter RESULT l case of any failure 0 if the process is still running 1 if the process has successfully finished DOUG rrt tttm Pag ag aay eee AJ m aaa s EE m PD m ted ee ee upload by means of FTP protocol HOST STRING n PORT UINT ERE ERRARE USERNAME STRING PASSWORD STRING REM FILE STRING LOC FILE STRING ENABLE BOOL OUT FTP PUT 43 USER MANUAL Z TWS4 Ihe PUT uploads file by means of the FIP protocol When first called the FB runs a process which starts performing the upload on subsequent calls it only checks if the process has finished its job The FB has the following input parameters HOST IP address or host name of the FTP server PORE TCP port for the FTP protocol normally 21 USERNAME username for authentication PASSWORD password for authenticati
35. on FILE name or the file with path on the remote server LOC FILE 3 name of the file with path on the local device ENABLE TRUE gt FB is executed FALSE gt FB is skipped The FB has the following output parameter RESULT 1 in case of any failure 0 if the process is still running 1 if the process has successfully finished Wd C dotte resterete teed ddd td ded peste dtd ded be ee PEEP PEPE PEERY EEP PEP PEP EEE get a received SMS OUT RESULT INT SENDER STRING DATETIME STRING TEAT S TRING GET SMS The GET SMS FB gets an SMS previously received by means of a GSM modem once read the SMS is deleted When first called the FB runs a process which starts getting the SMS on subsequent calls it only checks if the process has finished its job The FB has the following input parameters SERIAL PORT 2 name the serial port which the GOM modem 1s connected on Z TWS4 the only supported values are COMI 2 85252 Dore COMIO USB port TIMEOUT timeout in seconds ENABLE TRUE gt FB is executed FALSE gt FB is skipped The FB has the following output parameters RESULT in case of any failure 0 if the process is still running 1 if the process has successfully finished and an SMS has been found 44 2 3 found SENDER SMS sender DATETIME TEXT SMS t
36. ting with Windows 7 Microsoft don t supply a terminal software you can use for example Termite free downloadable from http www compuphase com software termite htm 10 USER MANUAL Z TWS4 File Modifica Visualizza Chiama Trasferimento 7 ine Starting Samba smbd nmbd Starting udev and populating dev cache Starting Lighttpd Web Server 2012 10 03 81 45 50 configfile c 1136 base docr oot doesn t exist disk pages 2012 10 03 01 45 58 server c 591 setting default values failed The Angstrom Distribution mx25 ttumxc Angstrom 2889 4 test 281808217 mx25 ttymxcb mx25 login Rilev aut 115200 8 N To login on the console type root and then press ENTER now the console is ready 6 1 2 Serial peripherals in Linux Under Linux the serial peripherals are RS232 RS485 0 COM1 gt dev ttymxcO RS485 1 gt dev ttymxc1 RS485 2 COMA gt dev ttymxc3 USB COM16 gt dev ttyUSBO using Seneca S117P1 accessory The dev spidev3 0 is connected to the FeRAM memory 11 USER MANUAL Z TWS4 6 1 3 Changing the IP address The IP address is statically configured with the following value 192 168 90 101 it s possible to change the IP address by means of the ifconfig Linux command for example ifconfig ethO 192 168 0 101 this will change the IP address to 192 168 0 101 Please note that doing so the change is not permanent that is when Z TWS4 is rebooted the d
37. tuali Per creare una nuova macchina virtuale premi 0 puisante Nuova nela barra degli strumenti principale posizionata nella parte alta della finestra Prem tasto F1 per ottenere aiuto immediatamente visita www virtualbox org per le ultime notizie e informazioni Nome e sistema operativo 06 30 25 02 2014 Then you have to set the memory size and tell VirtualBox that the virtual hard disk is already available the ubuntu904desktop vmdk file provided by Seneca Benvenuti in VirtualBox La perte sinistra di questa finestra visualizza un elenco delle macchine virtuali sul tuo computer L elenco al momento vuoto perch non hai ancora cresto macchine virtuali Per creare una nuova macchina virtuale premi 0 puisante Nuova nela barra degli strumenti principale posizionata nella parte alta della finestra Premi tasto F1 per ottenere auto immediatamente visita ww virtualbox org per le ultime notizie e informazioni Dimensione della memoria Seleziona la quantit di memoria RAM in megabyte che sar alocata per la ina virtuale La quantit di memona consigliata 512 8 O 20 Fite Mocchine 48 2 i Nuova USER MANUAL Z TWSA File 2 Aiuto T Impostazioni 2 Benvenuti in VirtualBox La perte sinistra di questa finestra visualizza un elenco delle macchine virtual sul tuo computer L elenco s momento vuoto perch non
38. y pressing the FACTORY DEFAULT button USER MANUAL Z TWSA y ones 192 168 85 104 6080 rephp a amp SENECA Z TWS4 RTC Setup Firmware Version SW002490 106 020000000000 Setup P aS ae Real Time Clock Setup 2014 1 VPN Files Upioad February FW Upgrade 56 If you need to change the Z TWS4 date time settings go to the Real Time Clock Setup page above please note that this makes sense if time synchronization by means of the NTP protocol is not enabled CNE Tr rr r Gu rr g696 ig 5 192 168 85 104 8080 vpr_files php SENECA Z TWS4 VPNFiles Firmware Version SW002480 106 020000000000 E TUI Real Time View Ex x ue Tr FW Upgrade E Upload 39 USER MANUAL Z TWS4 The above VPN Files Upload page lets you load on the Z TWS4 a set of files needed to establish a secure VPN connection these are the files containing the Certification Authority CA certificate the client certificate and the client key respectively In this page you can browse your PC to select these files and send them to the Z TWS4 by pressing the Upload button Once the upload is done the following result page is shown y Z TWS4 Ya Google Translate x Y s Seneca Prodotti Sate x Ta Dpenvpn Google Same x 1 4 5 192 168 85 104 fil

Download Pdf Manuals

image

Related Search

Related Contents

Sanyo DP42740 Flat Panel Television User Manual  Whirlpool LA553OXP User's Manual  Dirty Shirley Manual - Friedman Amplification  ABB 03 - Grifo  Samsung BX2235 Uporabniški priročnik  InFocus C105 User's Manual  Samsung GT-C3752 Korisničko uputstvo  Model 572A Spectroscopy Amplifier Operating and Service Manual  

Copyright © All rights reserved.
Failed to retrieve file