Home

User Manual - Sütron electronic GmbH

image

Contents

1. 4 Polling Area You should use byte or word addresses in the flag area or in a data block if you like to use the polling area function Please enter the start address of the polling area in Additional Functions Polling Area Table 2 7 Byte accessed polling area Siemens S7 TCP Byte address Reference High Byte Byte address 0 MB 12 WCB Byte address 1 MB 13 Message Channel Low Byte Byte address 2 MB 14 Message Channel High Byte Byte address 3 MB 15 LED 1 to 4 Byte address 4 MB 16 LED 5 to 8 Byte address 5 MB 17 LED 9 to 12 Byte address 6 MB 18 LED 13 to 16 Byte address 7 MB 19 LED 17 to 20 Byte address 8 MB 20 LED 21 to 24 Byte address 9 MB 21 LED 25 to 28 Byte address 10 MB 22 LED 29 to 32 Table 2 8 Word accessed polling are a Siemens S7 TCP Word address Reference High Byte Low Byte Word address 0 MW 20 WCB Reserved Word address 2 MW 22 Message Channel Message Channel High Byte Low Byte Word address 4 MW 24 LED 1 to 4 LED 5to 8 Word address 6 MW 26 LED 9 to 12 LED 13 to 16 Word address 8 MW 28 LED 17 to 20 LED 21 to 24 Word address 10 MW 30 LED 25 to 28 LED 29 to 32 S SUTRON 2 5 Siemens S7 TCP 2 2 5 The operating devices are connected to the network via the ethernet interface 2 2 5 1 Physical Connection Pin Assignment Connector in the operating device RJ45 female connecto
2. connected 10057 Socket is not connected 10058 Can t send after socket shutdown 10060 Connection timed out 10061 Connection refused 10065 No Route to Host 10091 Network SubSystem is unavailable 10092 WINSOCK DLL Version out of range 2 8 SUTRON Siemens S7 TCP Table 2 10 Error messages for Siemens S7 TCP Code Subcode Error Type Possible Cause 20 10093 Successful WSASTARTUP not yet performed 11001 Host not found 11002 Non Authoritative Host not found 11003 Non Recoverable errors FORMERR REFUSED NOTIMP 11004 Valid name no data record of requested type 30 Data errors 2 Error on accessing data block Data block is not present or address is outside the data block range 9 Value too large Wrong value for counter lt 999 or Timer 29990000 ms 10 Wrong data type Data type is not supported Remidy Check the variables list 40 Hardware errors 8 Memory error Cannot allocate memory area for data Possibly the operating device is faulty Remidy Check the application size Send the operating device to our service S SUTRON 2 9 Siemens S7 TCP 2 4 Applications The following application shows how to establish a connection from the operating de vice to the controller via ethernet 2 4 1 Hardware You will need the following to build up the example application Controller Siemens S7 300 or Siemens S7 400 with power supply rail etc Comm
3. 0 16383 7 MB 0 16383 MW 0 16382 MD 0 16380 Counter 0 512 Read Only Timer 0 512 Read Only Data Block DB 0 8192 DBX 0 0 65535 7 Read Write DBB 0 65535 DBW 0 65534 DBD 0 65532 2 1 S SUTRON Siemens S7 TCP 2 2 Programming 2 2 1 Protocol Parameters 2 2 1 1 Maximum Waiting Time For Response This parameter specifies how long the operating device waits for a response from the controller Table 2 2 Maximum waiting time for response Configurable Values Default Value O s to 10000 s 10s 2 2 1 2 Delay until Connection Set Up This parameter specifies the waiting time after which the operating device starts the communication Table 2 3 Delay until connection set up Configurable Values Default Value 0 s to 255 s 5s 2 2 1 3 Offline Operation Check the Offline operation check box to write communication errors to the message buffer without reboot of the project If the check box is not checked the communication error is displayed at the operating devices display and afterwards the project is rebooted Table 2 4 Offline operation Configurable Values Default Value OFF X ON 2 2 1 4 Connections The operating device supports 16 connections at a time The connections list consists of 16 lines for the connections an 4 columns for the con nection parameters Table 2 5 Connections Siemens S7 TCP Column Meani
4. S SUTRON visualization control communication User Manual Connection to Siemens S7 TCP Part Number 80 860 678 Version 2 Date 2008 02 01 Valid for TSwin net 4 2 visualization control communication Version Date Modifications 1 2005 11 18 First edition 2 2006 02 01 New layout protocol parameters note added protocol pa rameter Offline operation added This manual including all illustrations contained herein is copyright protected Use of this manual by any third party in departure from the copyright provision is forbidden No part of this manual may be reproduced trans lated or electronically or photographically archived or altered without the express written consent from S tron electronic GmbH Violations shall be cause for damage liability S tron electronic reserves the right to make any changes that contribute to technical improvement SUTRON Overall Table of Contents Overall Table of Contents 1 important der 1 1 1 1 SYMDOISE ban 1 1 1 2 Safety NOI6S oue eme satissnssmie rende Dua FPE RN 0E EARN een es 1 1 1 3 Intended Use ote E Oe oe io eee dus 1 1 1 4 Target Group edicere erige ih tr dt pneter aave naa diaaa 1 1 2 Siemens S7 TOP e 79 2 1 2 1 Data Ty P 2 1 2 2 JProgramimilhg s s o dE aee mde Pee ged eege eege RE d e ERR Seis 2 2 2 2 1 Protocol Parameters ss 2 2 2 2 1 1 Maximum Wa
5. iting Time For Response 2 2 2 2 1 2 Delay until Connection Set Up sis 2 2 2 2 1 3 Offline Operation 2 2 2 2 1 4 enee E 2 2 2 2 2 INPUT SYNTAX E 2 4 2 2 3 Status Messages sioiias nida eisenai iiias 2 4 2 2 4 Polling E EE 2 5 2 2 5 NR e ne 2 6 2 2 5 1 PIN pite m t 2 6 2 2 5 2 CADIS ds 2 6 2 9 Er Or MESSAGES EE 2 7 2 4 JAppliCalloris eco Ee T 2 10 2 4 1 ele UE 2 10 2 4 2 Settings in SIMATIC Manager 2 10 2 4 2 1 Assigning the IP Address sise 2 10 2 4 2 2 Cycle Load due to Communication 2 12 2 4 3 Settings in TSwin eee ee ee eee eee eee 2 12 NEB 00 Dno A 1 G SUTRON Overall Table of Contents S SUTRON Important Notes 1 Important Notes CS 1 1 Symbols The symbols in this manual are used to draw your attention on notes and dangers Danger This symbol is used to refer to instructions which if ignored or not carefully followed could result in personal injury Note This symbol indicates application tips or supplementary notes Reference to source of information This symbol refers to detailed sources of information on the current topic 1 2 Safety Notes Read this manual carefully before using the software Keep this manual in a place where it is always accessible to all users The user manual in particular the safety notes must be observed by all person ne
6. l working with the software and the programmed device Observe the accident prevention rules and regulations that apply to the operating site Installation and operation must only be carried out by qualified and trained per sonnel 1 3 Intended Use The software has to be used for programming operating devices exclusively Ev ery other use is not permitted 1 4 Target Group All configuration and programming work in connection with the automation system must be performed by trained personnel only e g qualified electricians electrical en gineers The configuration and programming personnel must be familiar with the safety con cepts of automation technology 1 1 S SUTRON Important Notes S SUTRON Siemens S7 TCP 2 Siemens S7 TCP The protocol Siemens S7 TCP allows you random read and write access to almost all data types The protocol supports connection of an operating device to up to 16 participants at the same time The operating device has always client function You connect the operating device to the network using the ethernet interface 2 1 Data Types Direct access is possible to the following data types Table 2 1 Data types Siemens S7 TCP Type Mnemonik From To From To Access Input E 0 0 16383 7 Read Write EB 0 16383 EW 0 16382 ED 0 16380 Output A 0 0 16383 7 AB 0 16383 AW 0 16382 AD 0 16380 Flag M 0
7. n for this slot Remidy Check the configuration of the communication module in the SIMATIC Manager 99 Invalid reference number Possibly the variables list contains a connection num ber that is not defined in the protocol parameters 2 7 S SUTRON Siemens S7 TCP Table 2 10 Error messages for Siemens S7 TCP Code Subcode Error Type Possible Cause 20 TCP socket errors 10004 Interrupted system call 10013 Permission denied 10014 Bad address 10022 1 Other function must be called before 2 Socket already assigned to address 3 Socket not assigned to address 10024 Missing resources files queues 10035 Operation would block 10036 Operation now in progress 10037 Operation already in progress 10038 Socket operation on non socket 10039 Destination address required 10040 Message too long 10042 Bad protocol option 10043 Protocol not supported 10044 Socket type not supported 10045 Operation not supported on socket 10046 Protocol family not supported 10047 Address family not supported by protocol family 10048 Address already in use 10049 Can t assign requested address 10050 Network is down 10051 Network is unreachable 10052 Net dropped connection or reset 10053 Software caused connection abort 10054 Connection reset by peer 10055 No buffer space available 10056 Socket is already
8. ng Default Value Connection Connection Number 1 to 16 IP address of controller Address of the communication inter 0 0 0 0 face Slot number Number of the slot where the moduleis 0 put on Rack number Rack number of the controller 0 2 2 S SUTRON Siemens S7 TCP The number of MPI participants depends on the S7 CPU that is used B Follow the respective operating instructions of the control to this 2 3 S SUTRON Siemens S7 TCP 2 2 2 Input Syntax The following image illustrates the structure of the input syntax for variables in the programming software p 2 x rei T La LK EB gd Le ON pr EW Jj LK ED Jj AB gt e pr AD La X NR a LK MW gt i LK MD e LK E KC gt A gt L M y Figure 2 1 2 2 3 DB Number gt DBX Syntax diagram Status Messages gt gt Number gt gt l 3 gt Number You have to assign a byte or word address for the parallel message system in the flag area or in a data block MB MW DBB or DBW Example Table 2 6 Parallel message system Siemens S7 TCP Word address Reference High Byte Low Byte Word address 0 MW 10 Messages 9 to 15 Messages 0 to 8 Word address 1 MW 12 Messages 24 to 31 Messages 16 to 23 Word address 2 MW 14 Messages 40 to 47 Messages 32 to 39 2 4 6 SUTRON Siemens S7 TCP 2 2
9. o assign the vari able name the address and the connection number Example mem fa Protocol Siemens S7 TCP gig Address Connecton Low bit no High bit no Figure 2 5 Variable protocol Siemens S7 TCP dialog 2 13 S SUTRON Siemens S7 TCP S SUTRON Index A Index C Cable nn ET E 2 6 D Data Types Siemens S7 TOP aiisssssisnsseennsnnserrrssrennn 2 1 E Error messages Siemens S7 TOP 2 7 Important notes 1 1 Intended use 1 1 P Pin assignment Ethernet iirrainn etiemnnnsens 2 6 Protocol parameters Siemens S7 TCP 2 2 S Safety NOTES akio eer aeaiia eet ot eee dta 1 1 Siemens S7 TOP iecit dana nnde 2 1 dee m vd eene aa Ea 1 1 Syntax diagram Siemens 97 TOP scenic 2 4 T Target group ence he ines 1 1 S SUTRON A 1 Index A 2 S SUTRON S SUTRON
10. r Table 2 9 Assignment of the Ethernet interface Pin Designation Function 1 TX Transmitted Data Positive Polarity 2 Tx Transmitted Data Negative Polarity 3 Rx Received Data Positive Polarity 4 n c Not Connected 5 n c Not Connected 6 Rx Received Data Negative Polarity 7 n c Not Connected 8 n c Not Connected 2 2 5 2 Cable A twisted pair cable of the category 5 CAT 5 type must be used The maximum ca ble length is 100 m 328 084 feet See the IEEE 802 3 standard for further information 2 6 6 SUTRON Siemens S7 TCP 2 3 Error Messages Error messages are displayed on the operating device along with a code and sub code Error messages are composed as follows Communication Error Code XXXXX Subcode XXXXX Retries XXXXX Table 2 10 Error messages for Siemens S7 TCP Code Subcode Error Type Possible Cause 10 Connection errors 1 Timeout Requested controller not available or no longer avail able Remidy Generate further read and write commands to reset the connection by the driver auto matically Possibly encrease the value for Delay until connection set up 4 Timeout No response from control 5 General error Netword not running Remidy Install TCP IP Install Winsocket Check settings for polling area or parallel message sys tem 6 Target controller not found Wrong rack or slot number No free connectio
11. ress E zl Address 192 168 0 100 Networked Yes Comment Figure 2 2 Properties dialog General tab 2 Click on the Properties button The Properties Ethernet interface dialog opens 3 Open the Parameters tab x General Parameters T Set MAC address use ISO protocol MAC address IP address 192 168 0100 Gamy C Do not use router Subnet mask 255 255 255 0 Use router Address 192 168 0 1 Subnet not networked New Figure 2 3 Properties Ethernet interface dialog Parameters tab If you are using a router 4 Select Use router in the Netgateway area 5 Enter an IP address that is assigned tightly to the controller i e 192 168 0 100 6 Enter the IP address of the router i e 192 168 0 1 7 Confirm with OK In addition you have to configure the router in a way that makes the controller per manently reachable with the assigned IP address i e 192 168 0 100 2 11 SUTRON Siemens S7 TCP CIE If you are not using a router 8 Enter an IP address that is assigned tightly to the controller i e 192 168 0 100 9 Enter the subnet mask if necessary i e 255 255 255 0 10 Confirm with OK 2 4 2 2 Cycle Load due to Communication The parameter Cycle load due to communication defines as a percentage by how many milliseconds the cycle time may be charged by the communication You assign this in the SIMATIC Manager in the hardware configura
12. tion CPU prop erties The default setting is 20 Here the cycle time encreases by the corresponding value at 100 ms up to 20 ms 120 ms maximum The Cycle load due to communication may amount between 10 and 50 Make sure that you don t exceed the cycle supervision time For cycle times in the range of 1 ms to 50 ms you can accelerate the screen build up time by a higher allowed communication load enormus However the complete cycle time is extended correspondingly and so the reactions of the control sluggish through this 2 4 3 Settings in TSwin To enable a communication with the controller you have to define a connection 1 Open the Communication branch of the project tree 2 Mark the protocol item Siemens S7 TCP 3 Click on the Edit button in the Properties window 2 12 S SUTRON Siemens S7 TCP The Protocol parameters Siemens S7 TCP dialog opens Protocol parameters Siemens S7 ICP Fee TES JR Maximum waiting time for response s 5 Delay until connection set up s 5 cas 100 Hele Figure 2 4 Protocol parameters Siemens S7 TCP dialog 4 Enter the same IP address like in the properties of the ethernet interface of the communication module or the router i e 192 168 0 100 5 Enter the concrete slot and rack number i e 2 and 0 6 Confirm with OK If you enter an address for a controller variable in TSwin you have t
13. unication processor with ethernet interface i e CP343 1 IT for S3 300 Operating device with Windows CE operating system Hub or Router Ethernet cable Patch CAT5 Ethernet network server etc Power supply 230 VAC 24 VDC Buid up the hardware components and connect them correctly 1 Buid up the controller of the rail Connect the controller and the operating device with the power supply Connect the hub or router with the ethernet network Connect either the controller and the operating device with the hub or router Plug in the power supply nm 8 D 2 4 2 Settings in SIMATIC Manager 2 4 2 1 Assigning the IP Address To make the controller accessible to other participants in the ethernet you must as sign an IP address in the SIMATIC Manager 1 Open the dialog Properties with a double click on the communication processor CP343 1 IT icon 2 10 S SUTRON Siemens S7 TCP Properties CP 343 1 IT R0 S4 x Symbols DNS Parameters Diagnostics Addressing General Addresses Options Time of Day Synchronization Users Short Description CP 343 1 IT 7 CP for Industrial Ethemet ISO and TCP IP with SEND RECEIVE and 4 H WRITE interface long data UDP TCP ISO S7 and E mail 10 100 Mbps fixed MAC address initialization over gt Order No firmware 6GK7 343 1GX11 0XE0 V2 0 Name CP 343 1 IT Interface Backplane Connection Type Ethernet MPI add

Download Pdf Manuals

image

Related Search

Related Contents

SNAP PAC S-Series Controller User's Guide  StarTech.com 1 ft IEEE-1394 Firewire Cable 6-6 M/M  取扱説明書 - ジョンソン・エンド・ジョンソン  MVT380  Acer TravelMate 2400 Owner's Manual  KitchenAid KUIS185JSS2 User's Manual  Samsung HW-J6000 Vartotojo vadovas  Lenovo ThinkStation P300  

Copyright © All rights reserved.
Failed to retrieve file