Home

S5-TCP/IP 100

image

Contents

1. Access via Ethernet to S5 S5 PLC i with S5 TCP IP 100 In the illustration the upper of the two controls is connected by a serial connection cable to the PG PC while the lower PLC is accessed via Ethernet TCP IP and or H1 serial RS232 TTY cable is not included in the scope of delivery Please order it separately with the order number 700 1500 05 RS232 9pin D sub female TTY 15pin D sub male 2 2 4 Connecting the Swing Cable PLC Cable 55 PLC For programming the PLC via Ethernet a connection between CP and PLC is required Therefore a cable S5 CP PLC is used PLC cable S5 CP PLC TTY 15pin D sub male TTY 15pin D sub male is not included in the scope of delivery of the S5 TCP IP 100 Please order it separately with the order number 700 1700 01 Additional start up information covers the basic configuration of the S5 TCP IP 100 as well as the connec ting parameterization Both are accomplished with the INATnet Parameterization software and is described in detail in chapter 4 Page 16 CHAPTER 3 FUNCTION uoljoun Ja deyy 00 421 65 3 FUNCTION or THE S5 TCP IP 100 The CPU of the PLC and the S5 TCP IP 100 exchange data messages via the periphery bus All modu les connected to the S5 are electrically connected via that bus The S5
2. 5 2 2 Menu File The menu file provides the following functions MENU FILE Load File to Device Description in chapter 5 2 2 1 Store Data to File Description in chapter 9 2 2 2 Print Description in chapter 9 2 2 3 End Description in chapter 5 2 2 4 5 2 2 1 Load Flle to Device An existing parameter file can be sent to the S5 TCP IP 100 here New parameter files can be created here Select the drive and the directory where the parameter file is stored The parameter files are shown Mark the desired file and click the button Open The parameter file will be loaded to the S5 TCP IP 100 You can create also a new file here Enter in addition simply under file name to the desired new names and click you to the button Open 5 2 2 2 Store Data to File With Store Data to File you can save your parameter data 5 2 2 3 Print A list of the connections can be spent for logging In order to be able to assign this printout you should indicate meaningful data in the input fields company name project and programmer The printout is spent on the standard printer indicated in the system 9 2 2 4 End With End you leave the connecting window and arrive back at the starting dialogue window of the parameter setting software Page 58 5 2 3 Menu Connection The menu connection provides the following functions MENU CONNECTION Connection Description in chapter 5 2 3 1 Network Parameters In this window th
3. Four methods of setting the parameters are provided here online IP H1 serial or offline Whenever you start the parameter setting software you are asked which method you want to use Set Parameters via IP H1 For setting parameters via IP H1 the S5 TCP IP 100 has to be connected indirectly with the PC via the Ethernet network This method of setting parame ters permits you to set parameters for modules from any point of a TCP IP or H1 network Set Parameters using a serial connection To set parameters using a serial connection the PC and S5 TCP IP 100 have to be connected directly via 5232 converter cable The parameter data are stored directly into the 55 100 When the serial connection is used the cable length is usually limited to a few meters i e the module must have its parameters set on site File offline With Offline the parameter files are stored locally in a file on the PC for later transmission to the S5 TCP IP 100 Page 37 Chapter 4 Parameterization S5 TCP IP 100 UorjeziJojouleJed p Joydeu 00 4 431 45 4 2 1 Setting Parameters via or H1 NOTE When registering S5 TCP IP 100 in the network via IP or H1 the device has to be connected to the same LAN as the PC running the parameter setting software Stations behind routers are not detected Select Parameterization via IP or Parameterization via H1 The station list appears
4. transfer saved parameter data from a CF Card to the FLASH EEPROM of the S5 TCP IP 100 When the CF Card is plugged and voltage is connected data is transferred Only cards for 3 3 V Supply voltage without DMA Mode are supported The CF Card should be DOS formatted You can get such a card from INAT GmbH When using the Compact Flash Card it may happen that the CP stops in a undefined status If this happens reset the CP 2 1 2 Reset The reset button causes a reset of the S5 TCP IP 100 Connections and system settings are not changed To avoid a reset by mistake the reset button is counter sunk and can only be pressed with a small nail It may happen that the CPU of the PLC stops when using the reset button 2 1 3 LEDs There are 5 LEDs on the front panel to display the operating status of the CP The RJ45 interfaces are equipped with 2 additional LEDs to display the communication status Sync Conn TX Data B The LEDs have the following meaning LED Meaning Sync illuminated CP is synchronized Conn illuminated the connection is established Tx blinking CP is sending data via Ethernet Rx blinking CP is receiving data via Ethernet Ser illuminated the serial interface is used illuminated PLC and CP are transferring data with slow Data communication LED may blink Page 11 Chapter 2 Hardware S5 TCP IP 100 z 00 421 65 2 1 4 Switch
5. All stations which are currently available online on the network are indicated The new S5 TCP IP 100 is indicated with its MAC address Select the Station via TCP IP Network Availible Stations 0 Name of the Stations D 7 O0E04C762635 192 168 1 57 Cancel 0021 400E 006 4 132 168 1 31 gt 002140040041 gt change Serverraum 002140090139 62 146 55 186 NOTE All stations with 0021A0 at the beginning of the MAC address are INAT components e Mark the S5 TCP IP 100 station and click the button OK e The window to enter the station parameters appears x Station Marne Ssh 0 Station Password i EET Ethernet Address oza aooeoom Help Page Frame Base Address 0 TEP IP Parameters Use DHCP Own IP Address E 921681 7 Subnet Mask 255 255 255 0 IF Domain Name Server Domainname of three Domain Mame Servers Router 192 168 1 226 Page 38 4 2 1 1 Station parameter settings Station name Each station can be assigned a name This name is used to identify the station Remember that each station name within a network must be unambiguous Station password The station password protects the parameters in the station If a password is set this password is required whenever you try to edit the parameters This applies only with online parameterization Ethernet address Each station in an Ethernet network
6. G 00 di ddL SS 5 2 4 Menu Diagnosis The menu diagnosis provides the following functions MENU DIAGNOSIS Display Connection Status Description in chapter 5 2 4 1 Monitor all connections Description in chapter 5 2 4 2 Monitor Standard connections Description in chapter 5 2 4 3 IpStati at present without meaning Rfc1600Stati at present without meaning Page Frame Diagnosis Description in chapter 5 2 4 4 Fetch on Event Cach Status Description in chapter 5 2 4 5 9 2 4 1 Display Connection Status The status window is used to monitor a connection The connection name is indicated in the headline Status window for a double connection Status window for a simple connection x x Auftragsnumrmer 171 SPS Auftragsnumrmer 17 pU 5 5 Anzeigewort Send 2 L uft Hilfe Anzeigewort Send 4 Fertig ohne Fehler Hilfe Anzeigewort Hec 2 Anzeigewnrt Hec Metz Status Warte auf Quittung Metz Status Telegramme Send 3332 Hec 3343 Telegramme Send 200 Hec 0 Job Number The job number A NR is indicated here With double connections only the job number is indicated which was registered in the parameter setting software in the window PLC Parameter Settings in the field Job No The job number under If Double Connection the Other is not indicated Indication Send Rec For each job an indicator word is assigned whose contents are indicated he
7. The destination address of the data packet ist analyzed as well and is compared with the address table The switch decides from which port to which other port the connection has to go The data packet is then sent to the correct port and only to this one If a packet is sent to a new up to now unknown MAC address the switch transfers the packet to all ports except the port where the packet came from The switch only learns the current active MAC addresses If a station is disconnected from the port and another station is connected to it new combination MAC address port must be learned That is why the combinations are only valid for a defined time Address entries that are not used for as while are removed from the address table This time is called Aging Time and is 5 minutes with the S5 TCP IP 100 Each port of the switch is equipped with a link LED and an activity LED for simple diagnosis 3 6 2 Network analysis monitored port The S5 TCP IP 100 has an integrated INAT NetSpector Record NetSpector is a protocol analyzer for industrial networks that consists of an indication part View and a recording part Record NetSpector Record inside the S5 CP automatically records the entire data traffic where the CP is involved and sends it if required to NetSpector View Port 4 of the switch is a so called monitored port The entire data traffics that passes thru this port is re directed to the integrated Record and can be visual
8. Industrial Networks for Automation Technology User Manual S9 TCP IP 100 Ethernet CP for Simatic S5 Manual Version HB200400001E 0307 001 SS Lm S5 TCP IP 100 00 421 65 COPYRIGHT The contents of this manual and the related configuration software are the property of INAT GmbH This material is subject to the conditions of a general or special license contract one time license and may only be used or reproduced when the terms of agreement as set forth in this contract are fulfilled The specifications in these documents are provided without responsibility for errors or omissions The contents are subject to change without prior notice The contents are subject to change due to technical advance Copyright INAT GmbH 1996 2007 Industrial Networks for Automation Technology Ostendstrasse 50A 90482 Nuremberg Germany Tel 49911 5 44 27 0 Fax 49911 544 27 27 Web www inat de Email Info inat de All rights reserved NoTE Please read the manual before using INAT S5 TCP IP 100 In case of damage caused by misuse of this product we assume no liability The recent version of this manual is available in the Download Area of INAT at www inat de Simatic Step and Sinec are registered trademarks of the Siemens AG Page 2 CONTENTS 1 GENERAL 1 1 Scope of supply 6 1 2 Specifications 6 1 3 Compatibility with S5 TCP IP 7 2 HARDWARE 2 1 Overview 10 2 1 1 Compact Flash 11 2 1 2 Reset 1
9. Port The port number is a 16 bit address from 0 to 65535 It specifies the channel via which the applicable connection is to be established The port number must be identical on both sides of the connection The port number is 16 bits long You should use a port number between 1024 and 65535 Port number RFC1006 RFC1006 uses the port number 102 This port number is set automatically if you activate the Button RFC1006 Port number Modbus on TCP Also Modbus communication is made by a defined port 502 In contrast to RFC1006 this number can be parameterized Important The port must be identical on both sides of the connection Connection active passive select the type of connection establishment i e which station is to initiate connection establishment At regular intervals the active station attempts to set up the appropriate connection Protocol TCP UDP The TCP Transmission Control Protocol is a secure protocol with checksum and acknowledgment The UDP is not protected It is handled by datagram services Special Settings PLC Header If you activate this button for the TCP IP communication you are provided with the optimized data transmission to the PLC Apart from a frame counter the INAT PLC Header also contains length information and the possibility to send acknowledges Additional information about PLC headers is available in chapter 3 4 5 INAT PLC header Life Data Acks This item activates the connection monit
10. without PLC header Port 991 9 connections 55 protocol TCP IP with PLC header 4 6 Modbus table The modbus table enables the assignment of modbus registers to data blocks and or other data types of the automation system Since the S5 TCP IP 100 understands the Modbus on TCP protocol communication is possible between the S5 PLC and Modbus devices for example a Schneider PLC or a Wago controller If the S5 TCP IP 100 Modbus on TCP data receives then these must be converted for the forwarding to the S5 CPU accordingly so that the data in the S5 program can be further processed If the S5 TCP IP 100 sends data to Modbus device then must be converted from the S5 CPU data submitted accordingly so that the data in the Modbus equipment can be further processed Mapping of modbus registers to DB or type COM Reg Data Type Add Delete lt lt Mapping Page 51 Chapter 4 Parameterization S5 TCP IP 100 00 421 65 Register In this field the Modbus register number is registered The counting method begins with 0 only with some Modbus OPC servers the counting method begins with 1 The field is reserved with a default value which computes itself from the entry with the highest register number and its type Example the on a data block following register is higher around 1024 Block If the type is DB or DX the block number is indicated here For the other types the value
11. 100 with the slot for a memory card offers additional backup capacity The Parameter gt Flash Card function copies the parameters of the component to the Flash Card in the module slot Thereto the compatible Flash Card must be inserted in the module slot Before the loading a safety inquiry takes place Further information to the Flash Card are described in chapter 2 1 1 Compact Flash 5 2 6 2 H1 System Values The H1 system parameters represent the operating parameters of layer 4 The values should only be changed in special cases Please ask your system administrator before changing these values Time interval Fast CR This value specifies the time interval between two Connect Request attempts if the connection cannot be established before the maximum number of CRs is exceeded and sending becomes slower Default moderately after 20 futile CR attempts the temporal is increased to Time interval Slow Time interval Slow CR specifies the time interval between two Connect Request attempts if the connection cannot be established after the maximum number of CRs is exceeded and sending becomes slower Default moderately this case arises after 20 futile CR attempts Number of CRs at which CRs are sent slower This value specifies the number of unsuccessful Connect Request attempts after which the attempts are performed less frequently This reduces the network load caused by unsuccessful attempts to establish con
12. At GET the data blocks will be saved in that directory where you started FTP or into which you changed while the FTP session in the example down the data blocks become stored on drive d At PUT the data blocks will be taken out of the directory where you started FTP or into which you changed while the FTP session Eingabeaufforderung ftp Microsoft Windows 2000 Version 5 00 2195 iC Copyright 1995 2000 Microsoft Corp 168 1 7 wurde hergestellt 238 Connected to INAT Metwork Component OK Benutzer 192 168 1 7 C none 25 23H Connected to INAT Network Component OK gt binary 220 Mode set gt get dbifdwifllen25 266 Port OK 156 Transmittion Running 226 Transfer complete Er 56 Bytes empfangen in 8 498ekunden tp Transmission running transmission runs Transfer complete Transfer is finished Number of transferred bytes is indicated with transmission time Close The ftp connection to the server is disconnected By e Quit With Bye or Quit the ftp session ist stopped Page 50 4 5 Standard connections Standard connections are available at the S5 TCP IP 100 Standard connections are pre parameterized connections for Layer 7 communications On CP side no more settings are necessary In the partner station parameterizing of the connection is of course required Port number Connections Used protocols Port 990 2 connections 5 protocol TCP IP
13. CPU to CP via SEND ALL HDB In contrast to a RECEIVE job the receiver initially does not know how to interpret the data or where to save it This information has to be transmitted together with the raw data WRITE is layer 7 communications that can be handled via H1 TCP UDP or RFC1006 In addition to the transport protocols application protocols are required that control additional handling of the data Such appli cation protocols S7 55 or Modbus TCP Page 24 3 3 3 FETCH active FETCH passive The FETCH function allows a data record to be fetched The receiving station Fetch active is the active part while the sending station Fetch passive is passive and allows the active station to fetch data In the application program of the receiving station is defined which data shall be fetched and where it shall be saved in the local station Station A Station B Sar FETCH passive C aidea FETCH active A ig Bg 22 FETCH active FETCH passive Source address of data is set Source addres of data is not set Dest address of data is set Definition of data source P Complete transfer of via FETCH HDB send data from CPU to CP via Definition of data sink SEND ALL HDB via FETCH HDB Complete transfer of received data from CP to CPU via RECEIVE ALL HDB In
14. Servers in the network Page 39 Chapter 4 Parameterization S5 TCP IP 100 UorjeziJojouleJed p Joydeu 00 421 65 Max of three Domain Name Server The IP domain name server converts the symbolic Internet names into station addresses Up to three domain names can be used Router A router is used when an address cannot be located on the local network Enter the address of the Routers here NOTE Ask your system administrator for your IP address subnet mask gateway etc e Confirm your entries with OK The station window appears again The station is now indicated with Name MAC address and IP address if entries have been made 4 2 2 Serial Parameterization e Select Serial Parameterization e Select the COM port of your PC where the cable is plugged for connection with the S5 TCP IP 100 If the connection is established the empty connection list appears If the connection can not be established a warning notice appears Time exceeded Possible causes e connection cable may not be plugged in e connection cable is allocated incorrectly e The interface card on your PC is defective e The interface on your PC is being used for another task Page 40 e Select Station gt Current Station e The window Station parameter Settings appears Station Parameter Settings E xj Station Name Station 1 Station Passwort Cancel Ethemet Address foo 21 A0 01 00 A
15. Sync Resets all Connections oync Resets all Connections stops all connections and restarts them if the PLC is switched from STOP to RUN All data which is in the receiving buffer is deleted This is necessary for Fetch und Write connections because the internal status of the data transfer between both stations is no longer defined Page 67 Chpter 5 Meun Functions S5 TCP IP 100 suonoun J G 00 421 65 If this mode is not active the connections are preserved when restart is made When running Fetch or Write jobs this can force inconsistent states because the stopped PLC doesn t manage data transfer via the internal rack communication If this mode is active each Fetch Write Fetch Passive Write Active connection has to be reset when the PLC is switched to RUN In that case no data is lost because Send Direct und Receive Direct jobs in the PLC are switched from STOP in RUN Receive finishes if Buffer is Full If Receive Direct is Finished if Buffer is Full is active the Rec Direct jobs are finished without errors only if the number of received data is equal to the number you have specified for the job in the PLC All end checks of the network protocols are ignored e g if a network frame sends more data then you would like to receive with Rec Direct the left over data are delivered to the next Rec Direct The Standard connections are read only Writing to the PLC can be forbidden global for all st
16. The S5 TCP IP 100 is equipped with a 4 port switch With it a small local network may be set up or several Ethernet devices may be connected Port 4 is a so called monitored port All frames that are transferred via port 4 are sent as a copy to the internal NetSpector Record and can be analyzed with INAT NetSpector The interfaces are configured as follows Pin Signal Function a a tase e Receive Data o ewe 2 C etus Each port has a Link LED and a Activity LED LED Meaning Activity LED green blinking the port receives or sends data via Ethernet Link LED yellow illuminated a TP cable is connected to this port The ports support auto negotiation and Auto MDI MDI X auto crossing More information about the functio nality of the switch can be found in chapter 3 6 2 1 5 PG interface AS511 interface The PG interface is a 15 pin socket connector for connecting a programming device or the 55 AG cable Pin Description TXD Transmit Data Back Signal TXD 3 Transmit Data Signal 5V Power supply 5V for external transceiver RXD Receive Data Back Signal GND Name Description Pin G Z J _RXD Receive Data Signa 9 8 6 e e e o ee 1 Power supply 5V for external transceiver Configurable via jumper see Chapter 2 1 6 jumper 1100 Default OFF Page 12 PLC Signal The wiring and programm
17. and which only address the stations which have the same multicast circle number The number is between 0 and 63 If Multicast is not selected as the Line type the value for Multicast circle can be disregarded Connection active passive select the type of connection establishment i e which station is to initiate connection establishment At regular intervals the active station attempts to set up the appropriate connection Line Type The Line type specifies whether the frames of this connection will be sent to all stations i e Broadcast whether a certain group of stations is to be reached i e Multicast whether secure connection is to be used i e Normal or whether the data is to be transferred without protection i e Datagram Standard is the line type normal Agree upon other settings for the line type with your network responsible person Priority The line priority can vary from 0 i e highest priority to 4 i e lowest priority 0 and 1 are the so called express priorities while 2 and 3 are the normal priorities Priority 4 is only used infrequently since a new connection must be established for each sending job If used infrequently this priority does not place as much of a strain on the network as other priorities since the line is not monitored i e the connection is disconnected after each sending job Remember that the express priorities do not make transmission faster than the normal priorities On so
18. contrast to a SEND job the sender does initially not know which data shall be send This information has to be transmitted FETCH is layer 7 communication that can be handled via H1 TCP UDP or RFC1006 In addition to the transport protocols application protocols are required that control additional handling of the data Such application protocols are S7 S5 or Modbus on TCP Page 25 Chapter 3 Function S5 TCP IP 100 uoljoun Ja deyy 00 421 65 3 3 4 on EVENT passive The Fetch on Event function allows the FETCH on Event data to be read from a remote station passive end The active end requests data and the passive end provides this data The parameter data record that describes the data source is also transmitted In contrast to the normal Fetch function with Fetch on Event data is only transferred in case of an event when the value of the requested data has changed This check is made by the communications processor With normal Fetch function the requested data is sent always no matter if it has changed or not Fetch on Event functionality can thereby reduce network traffic Station Station B FETCH on Event Passive ez FZ FETCH Active CP compares the data If an event occures value change FETCH active data is send Source address of data is known
19. data sink via RECEIVE HDB gt Complete transfer of the received data from CP to CPU via RECEIVE ALL HDB In the application program of the sending station is defined when and which data shall be send In the appli cation program of the receiving station is defined how to interpret the data and where to save it SEND RECEIVE is layer 4 communications that can be handled via H1 TCP UDP or RFC1006 Page 23 Chapter 3 Function S5 TCP IP 100 uoljoun Ja deyy 00 421 65 3 3 2 WRITE active WRITE passive The WRITE function allows a data record to be transferred from a PLC Write active to a remote device Write passive In contrast to SEND RECEIVE with WRITE the parameter data record that defines the data sink data destination is also transmitted The active end of the WRITE service can therefore force data on to the passive end Station Station B WRITE passive Tenn m M gt sl WRITE active BH Il fh A p Bee Write passive WRITE active Dest address of data is set Source address of data is set Dest address of data is unknown P Definition of data source via SEND HDB gt Definition of data sink via SEND HDB P Complete transfer of received data from CP to CPU via RECEIVE ALL HDB Complete transfer of send data from
20. e 81818 2 o gt ashlltest Typ Mame of Connection gt 100 155 gt ISE Ind Gmt IP b 255 gt PLCOT1 MATIS zm gt Porsche Network Parameters 85 gt rechts se Other Parameters Pe l brindisi pa Switch Aktiv Passiv Pc foggia MACIIP Au Online display IP Wl Mew Copy Delete Job Act Dest Param FetchPass Server WritePass Server Part FetchPass Server W ritePazs Server Part SendDirect Client 192 168 1 129 Port FetchPass Server Part FetchPass Server Part WritePass Server Part m FUNCTIONS VIA RIGHT MOUSE BUTTON Network Parameters Reachable with menu Connection Description in chapter 5 2 3 Other Parameters Reachable with menu Connection Description in chapter 5 2 3 Switch Active Passive A connection can be deactivated here Connection parameters are not lost At a later date the connection can be set active again with the same parameters Online display Reachable with menu Diagnosis Description in chapter 5 2 4 New new connection can be set up here Description in chapter 4 3 Setting up connection Copy connection can be copied and modified Delete Deletes a marked connection Page 57 Chpter 5 Meun Functions S5 TCP IP 100 suonoun J G 00 421 65
21. has an unambiguous station address This address is stored on the network interface card and is used to identify the station in the network INAT components always begin with the MAC address 0021A0 Page frame base address It determines the starting point of the 4 page frames imaged in the memory area of the controller The page frame base address must be a number divisible by 8 0 8 16 When you set the base address make sure it is unique in the S5 if you are using more than one CP TCP IP Parameters TCP IP Parameters are required when S5 TCP IP 100 is used in a TCP IP network If only H1 is used these parameters are not required Use DHCP If there is a DHCP Server configured in your LAN that can provide IP addresses from a pool of IP addresses activate the button DHCP IP Address The IP address defines the logical network address in TCP IP networks This address is indicated as a sender address as well as receiver address in data packets that are transferred with the IP protocol So that there is always a clear package receiver each user needs his unambiguous address Subnet mask The IP Subnet Mask determines which station requests may pass to the active network Addresses which can be different in their masked part are sent to the routers If no router is parameterized the Subnet mask has no meaning IP Domain Name Server Domain name The domain name can be used to address a maximum of three Domain Name
22. is set automatically to zero UorjeziJojouleJed p Joydeu Type Enter the data type here The following allocations apply Type Meaning Identification DB Word from data block Page 52 CHAPTER 5 MENU FUNCTIONS suonoun J G 00 421 65 5 MENU FUNCTIONS In this chapter the individual dialogue windows of the parameterization software are described in detail 5 1 Station list In the station list all stations which are currently available online on the network are shown Note stations behind routers are not detected Select the Station via TCP IP Network Avaiible Stations gt Mame of the Stations IF Address QUE OAC FE2ES5 192 168 1 5F Cancel 00274006 O08 4 192 168 1951 n 0021 40040041 Mew gt change Serverraum 002740090139 62 146 55 156 Edit Delete Print Help v Interet Timeout 8000 ms m e All stations marked with an arrow gt at the beginning of the line are stations which are currently available online on the network There all INAT stations are indicated like e g 55 TCP IP 100 echolink or echochange e The cell width of the station list entries station name device net address address and type is variable 5 1 1 Station not found If the S5 TCP IP 100 has not been detected possible causes are STATION NOT FOUND Interface vie the network Serial Int
23. job back to the automation program The communications program receives the SEND and RECEIVE jobs from the PLC program via the dual port RAM To allow these jobs to be passed on the background communication must be activated In this case the SEND ALL handling block is called in the user program to trigger send jobs and the RECEIVE ALL handling block to trigger receive jobs Handling blocks 5 135U 150U 155U S5 1150 Function SYNCHRON FB 125 FB 249 SEND FB 120 FB 244 RECEIVE FB 121 FB 245 SEND ALL FB 126 A NR 0 FB 244 0 RECEIVE ALL FB 127 A NR 0 FB 245 0 FETCH FB 122 FB 246 CONTROL FB 123 FB 247 Page 18 3 1 1 1 SYNCHRON The SYNCHRON handling block is used to establish the synchronization between CP and PLC Only after the synchronization data can be exchanged over this interface 3 1 1 2 SEND The SEND handling block is used to transfer a job with or without the user data for transfer to the CP gt Job types SEND direct and WRITE active 3 1 1 3 SEND ALL The SEND ALL block is used for background communication which is responsible for the complete delivery of the data of the CPU to the CP 3 1 1 4 RECEIVE The RECEIVE handling block is used to accept a job with or without the user data for transfer from the CP Job type RECEIVE direct 3 1 1 5 RECEIVE ALL The RECEIVE ALL block is used for so called background communication which is respo
24. left side all stations stand available in the net If you activate a station then the connections in the order parameterized for this station are indicated in which they were entered You recognize the straight selected station by the green marking Each connection is indicated with the following parameters CONNECTION PARAMETERS Type Network protocol IP H1 or FTP Name of connection Name of connection as edited during connection set up No Job number s and application protocol Job send Direct Receive Direct Fetch active Fetch passive Write active Write passive or FTP Act Client active connection establishment server passive connection establishment Dest Destination IP address TCP IP connection or Destination Ethernet Address H1 connections Parameters Port or TSAP Headers e With mouse click or with the cursor key you select a connection and edit with the buttons With a double click the window on the select connection Connection Settings appears see chapter 5 2 3 1 Connection e is marked click the right mouse button and several functions such as Switch Active Passive or Delete are available Page 56 5 2 1 Functions via right mouse button Mark a connection and click the right mouse button the following functions are available INAT gt Porsche File Connection Diagnosis Station Extras Help Des ae
25. no data communication takes place This value can be zero for the TCP IP If so this will disable the life telegrams Maximum Frame Length Is the maximum number of bytes which are transferred in a telegram Timeout for ARP entries Determines the time after which an entry in the ARP cache Address Resolution Protocol becomes invalid Each access to a certain address on the cache sets the value again Timeout for DNS Determines the time after which a name could not be converted into an IP address Timeout for Life Data ACKs Time without data communication after which the connection is considered interrupted Since the TCP IP usually does not use life telegrams as long distance telegrams the connection is also interrupted when no data have been transferred during the specified time After this Time without Data an ACK is Sent After 165 Acks the Timeout for Life Data Acks is dropped and the connection is considered interrupted Start Value for Next Free TCP Port Is used for TCP connections for which both ports are not specified If a port is parameterized as 0 a port number is generated The numbers which are used start at the value given here Page 66 Start Value for Next Free UDP Port The same for UDP connection Wait factor if no PLC Header If the header is eliminated the integrated connection control will also be finished Therefore if you use long distance telegrams it is recommended you increase the timeout for Life A
26. 1 2 1 3 LEDs 11 2 1 4 Switch 12 2 1 5 PG interface AS511 interface 12 2 1 6 Jumper 1100 14 2 2 Installation 15 2 2 1 Installing the S5 TCP IP 100 in the PLC rack 15 2 2 2 Connecting the CP to Ethernet and connecting further Ethernet components 2 2 3 Connecting the CP to PC PG 15 3 FUNCTION OF THE S5 TCP IP 100 3 1 1 Handling blocks 18 3 1 2 Supplying Parameters for handling blocks HDBs 20 3 1 3 Functionality of handling blocks 20 3 3 Job types 23 3 3 1 SEND RECEIVE 23 3 3 2 WRITE active WRITE passive 24 3 3 3 FETCH active FETCH passive 25 3 3 4 FETCH on EVENT passive 26 3 4 Connections 21 3 4 1 H1 connection 27 3 4 2 TCP IP Connection 29 3 4 3 Difference TCP IP H1 31 3 4 4 RFC1006 32 3 4 5 INAT PLC Header 32 3 5 Nomenclature INAT Siemens 34 3 6 Function of the Switch 34 3 6 1 Address management 34 3 6 2 Network analysis monitored port 34 19 10 18 Page 3 S5 TCP IP 100 00 421 65 4 PARAMETERIZATION 36 4 1 Installation of the INATnet parameterization 36 4 2 Initial Configuration of the S5 TCP IP 100 37 4 2 1 Setting Parameters via IP or H138 4 2 2 Serial Parameterization 40 4 2 3 Offline 41 4 3 Setting up connection 43 4 3 1 PLC parameter settings 44 4 3 3 TCP IP Parameter Settings 46 4 3 4 H1 Parameter Settings 4T 4 4 FTP Connection 49 4 5 Standard connections 51 4 6 Modbus table 51 5 MENU FUNCTIONS 54 5 1 Station list 54 5 1 1 Station not found 54 5 1 20K 55 5 1 3
27. 1 Help TCP IP Parameter Use DHCP Own IP Address 62 146 55 219 Subnet Maske 255 255 255 1 28 IP Domain Name Server Domain Name Max of three Domain Name Server Router m e Please refer to chapter 4 2 1 1 station parameter settings to learn what entries be made here e Confirm your entries with OK The station window appears The station is now indicated with Name MAC address and IP address if entries have been made e The registration is complete Connections can be parameterized now 4 2 3 Offline e Start the parameter setting software and select File Offline e The window Reading the connection file appears Here you can open an existing parameter file or create a new one e To create a new parameter file enter a new name and click the button Open Lesen der Yerbindungsdatei E Es x Suchen irr parametrization pr E Verlaut eae FEM EH EMEN Eigene Dateien Arbeitsplatz Dateiname neusParameter r Metzwerkummg D ateityp Parameter Dateien MetParameter Abbrechen 2 e The window to select the system appears Page 41 Chapter 4 Parameterization S5 TCP IP 100 Select Your System P i x These are the products to choose from Please notice that the system with the maximum functions will be Cancel B pe echolink echolink 100 echochange echochange 100 ech
28. 1 Display Connection Status 5 2 4 3 Monitor Standard connections When using standard connections they can be monitored here The connections are indicated with type name job number indicator word net status as well as sent and received frames The meaning of the individual parameters correspond to those how with the diagnosis of an individual connection see chapter 5 2 4 1 Display Connection Status 9 2 4 4 Page Frame Diagnosis The window Extended Diagnosis helps you to locate the causes for communication malfunctions It is shown for all page frames whether they are synchronized If a page frame is synchronized its block size is also shown Page 61 Chpter 5 Meun Functions S5 TCP IP 100 suonounJ G 00 di ddL SS Physical Communication Memory Size 312 Highest Humber wirth Express Status Word 0 The last page frame error jobs Start D Len Dj Start D Len 0 Start D Len 4 Job 0 CPU 0 Err System Error Ma 0 Start 0 Len 0 If jobs have been processed incorrectly by the controller up to ten error jobs are indicated The following information is given for each error job Job Number CPU Number Job Identifier Block Number Offset on the Block and Length of the Area By clicking New you can view the refreshed values in the indication 5 2 4 5 Fetch on Event Cache Status Fetch on event connections are monitored separately in t
29. 115U 135U 150U and 155U that is allowed for CP operation For further information about PLC slots please refer to the PLC manual in AG 115 an adaptation casing is required when plugging in the S5 TCP IP 100 please switch off the power supply gt Hang the S5 TCP IP 100 in the rack Tighten the CP NOTE For both plugging and pulling the S5 TCP IP 100 the power supply must be turned off 2 2 2 Connecting the CP to Ethernet and connecting further Ethernet components The S5 TCP IP 100 has four TP ports which can be used for the connection of the module to the Ethernet Connect the CP via one of the four ports to Ethernet If desired further components may be connected to Ethernet via one of the TP ports e g programming devi ces PC PLC An auto crossing mechanism is integrated in the switch so that a connection to other stations is possible with a standard cable 2 2 3 Connecting the CP to PC PG A connection between the S5 TCP IP 100 and a PG PC is required for gt Online Parameterization Serial Parameterization gt Transfer of a parameter file from the PG PC to CP and vice versa Diagnosis and test functions Programming the PLC The connection between PC PG and CP can be made directly over the serial interface or indirectly over a bus path Page 15 Chapter 2 Hardware S5 TCP IP 100 z Jaydeyy 00 421 65 PC PG Serial accesses to S5
30. 1430 or CP 143 you must consider the different nomenclatures when defining job types INAT Type of job Send Receive Fetch Fetch Write Write Direct Direct active passive active passive Standard handling block SEND RECEIVE FETCH RECEIVE ALL SEND SEND ALL Required Job send Receive Fetch Fetch send Receive parameters READ WRITE No No Yes Yes Yes Yes Siemens side AGING Active Passive Active Passive Active Passive Passive 3 6 Function of the Switch The S5 TCP IP 100 is equipped with integrated 4 port switch with the following functions gt Autonegotiation Procedure by which the switch recognizes the speed 10 or 100 Mbps and duplex mode half duplex or full duplex of the connected device The switch then chooses the same transmission parameters Autonegotiation function can not be turned off gt Auto MDI MDI X Autocrossing The port automatically determines the configuration of the port and the end point with which it is connected It is not necessary to make a distinction between 1 1 or crossover ethernet copper cables 3 6 1 Address management The switch is self learning It determines which station is connected to which port and what its MAC address is When a station sends a data packet the switch analyses the source address and enters it into a port based address table This way the switch gets an overview about the design of the network
31. 3 Function S5 TCP IP 100 uoljoun 00 dl d2 1 6S MAC address Ethernet components targeted by messages need an unambiguous physical address the MAC address The MAC address and destination MAC address are part of the Source Field the Destination Field of the MAC header of an Ethernet frame With the MAC address a machine is unambiguously identified on the network In ISO H1 networks the MAC addresses uniquely identify the access to the stations oince the addressing of stations in H1 networks is made exclusively by the MAC address communication is limited to an individual LAN otations outside of its own network may not be reached with the protocols of Layers 1 and 2 H1 is not able to route The MAC address ensures that data reaches the required destination station TSAPs ensure that the data reached the required application within the destination station TSAPs TSAPs transport service ACCESS POINTS are connection end points that are used in H1 connections to enable the data transfer between 2 applications For each connection between the communication partners one pair of TSAPs is used local TSAP defines the connection end point of the local system remote TSAP defines the connection end point of the partner station In order to establish the connection TSAPs must correspond crosswise i e local TSAP of communication partner A must correspond to the remote TSAP of communication par
32. CKs Standard value for this factor is 5 Wait factor if no RFC1006 Header If the header is eliminated the integrated connection control will also be finished therefore if you use long distance telegrams it is recommended to increase the timeout for Life ACKs Allow ICMP Broadcast The ICMP Internet Control Message Protocol is a protocol used by the Internet Protocol Layer to interchange control information for routing 5 2 6 4 SPS System Values These values influence the behaviour of the 55 TCP IP 100 to the PLC 5PsSystemwerte x Direktauftrage immer mit All bearbeiten Sync setzt Verbindungen zur ck Erst wenn Puffer voll wird Rec Direkt fertig Die Standardverbindungen sind Nur Lesen Die Standardverbindungen sind inaktiv Dual Port Memory Size Standardverbindung Diagnose Pg Aktiv Reset Reset Diagnosezahler Do Direct Jobs Always with some older PLC programs require the setting Do Direct Jobs Always with All If this mode is active the data communication is slower and the cycle time load of the CPU is greater If this mode is not active the data from the PLC is accepted immediately while Do Direct mode the data is not accepted until the next Send RecAll call NOTE In this windows this function is edited globally for all connections of this station while the same function in the window PLC Parameter Settings applies exclusi vely to the marked connection
33. Cancel 55 5 1 4 New 55 5 1 5 Edit 55 5 1 6 Delete 55 5 1 7 Print 55 5 1 8 Help 55 5 1 9 Internet DO 5 1 10 Timeout 56 5 2 Connection window 56 9 2 1 Functions via right mouse button 96 5 2 2 Menu File 58 5 2 3 Menu Connection 59 9 2 4 Menu Diagnosis 60 5 2 5 Menu Station 63 5 2 6 Menu Extras 64 5 2 7 Menu Help 72 APPENDIX 74 Special TCP IP Settings 74 4 CHAPTER 1 GENERAL je4 u 9 00 421 45 1 GENERAL 1 1 Scope of supply Before getting started with INAT S5 TCP IP 100 check the following list of components contained in the S5 TCP IP 100 package 55 100 CDROM with INATnet Parameterization INAT Demo software y INAT Manuals m 1 2 Specifications Ethernet interfaces 4 port switch e 10 100 Mbps e full duplex half duplex 10Base T 100Base T X e Auto negotiation e RJ45 e Link LED and Activity LED for each single port PG interface TTY 15 pin D sub female with locking post Compact Flash Slot Type or I standard to save the configuration hot plug capacity Supply voltage DC 5V via S5 backplane Power input max 3A Conditions Operating temperature 0 to 60 C Storing transport temperature 20 to 70 C Relative humidity max 95 Card format Double Europe Measures L x H x D in 255 X 20 3 x 174 Weight 350g Required space 1 slot for use in AG 115 adaptatio
34. Connecting the CP to PC PG 15 Connecting the Swing Cable 16 Connection 27 Connection window 56 CONTROL 19 D Do direct jobs always with all 45 19 FETCH active FETCH passive 25 Fetch on Event Cache Status 62 FETCH on EVENT passive 26 Firmware Update 71 Flag word 45 FTP Connection 49 Functionality of handling blocks 20 Function of the Switch 34 H H1 connection 27 H1 Parameter Settings 47 Handling blocks 18 Hardware 10 If Double connection the Other 44 INAT PLC Header 32 Initial Configuration of the S5 TCP IP 100 37 Installation 15 J Seite 76 INDEX Job number 44 Job Offset 44 Job types 23 Jumper 1100 14 L LEDs 11 Menu Connection 59 Menu Diagnosis 60 Menu Extras 64 Menu File 58 Menu Functions 54 Menu Help 72 Menu Station 63 Modbus table 51 N Nomenclature INAT Siemens 34 O Offline 41 P Page frame base address 39 Parameterization 36 PLC parameter settings 44 R RECEIVE 19 RECEIVE ALL 19 Receive job 21 Remote TSAP 47 Reset 11 RFC1006 32 S Scope of supply 6 SEND 19 SEND ALL 19 SEND RECEIVE 23 Send job 20 Serial Parameterization 40 Setting Parameters via IP or H1 38 Setting up connection 43 SNMP Settings 63 Specifications 6 Standard connections 51 Standard job type 44 Station list 54 Station name 39 Station not found 54 otation parameter settings 39 Station password 39 owing Cable 16 owitch 12 SYNCHRON 19 T TCP IP Connect
35. Dest address of data is set Definition of data source via FETCH HDB FETCH on EVENT passive Source address of data is not set Definition of data sink via FETCH HDB 7J Complete transfer of send data from CPU to CP via gt Complete transfer of SEND ALL HDB received data from CP to CPU via RECEIVE ALL HDB Fetch on Event Passive Fetch on Event Passive simple repeated automatic It is based on the S5 standard protocol It is based on the Fetch on Event protocol Event controlled inquiries of systems which Event controlled inquiries of systems which support the S5 protocol can be made support the Fetch on Event protocol can be example CP 1430 The partner station made exemple INAT OPC Server is parameterized like with a normal Fetch active job Page 26 3 4 Connections Different connection parameters are required depending on the application protocol that is used to transport over the network 3 4 1 H1 connection H1 is an ISO 8073 class 4 protocol which is arranged on the layer 4 of OSI reference model ISO 8073 is an ISO standard that describes connection oriented transport protocols A connection oriented protocol exchanges control information with the remote system to verify that it is ready to receive data before sending it When the handshaking is successful the systems are said to have established a connection 3 4 1 1 Connection establishment The sta
36. Job number 218 is available for an application program on the SIMATIC S5 for editing the time A SEND with this job number causes a write access while a RECEIVE causes the time of the S5 TCP IP to be read The time is available to the PLC in the following data format Bit 12 15 Bit 8 11 Bit 4 7 Bit 0 3 DW n 10s seconds 1s seconds 1 10 sec 1 100 sec DW n 1 10s hours 1s hours 10s min 1s min DW n 2 10s days 1s days day of the week DW n 3 10s years 15 years 10s mon 1s mon DW n 4 1 1000 sec Time difference Format Value Range 1 1000 sec 0 to 9 1 100 sec 0 to 9 1 10 sec 0 to 9 15 sec 0 to 9 10s sec 0 to 5 1s min 0 to 9 10s min 0 to 5 1s hours 0 to 9 10s hours 0 1 0 2 Bit 15 1 24 h format Bit 15 0 12 h format Bit 14 0 AM Bit 14 1 PM Day of the week Mon to Sun 0 to 6 1s days 0 to 9 10s days 0 to 3 1s months 0 to 9 10s months 0 to 1 15 years 0 to 9 10s years 0 to 9 9 2 6 6 Diagnosis serial Thus you can diagnose serial communication They can indicate communication directly in the window or in a file c Stationsname txt store You can store this file as txt file or html file Apart from unique reading in cyclic reading in is also possible duration debug in windows and or duration debug in file Page 70 9 2 6 7 Firmware Update If single file is to be updated select Extras gt Firmware Upda
37. S5 TCP IP 100 Software Overview a downloadable overview with INAT software and manuals Informative Literature a downloadable overview with INAT informative literature 3 Select Installation The following window appears Industrial networks CDMPAMY PRODUCTS SOFTWARE WORKSHOPS SUPPORT SERVICE CONTACT of ihe INAT Parameteiization Soltware i j V START THE INSTALLATION HERE he Para bothers nan ihe Tolkien ogeralng Wobei The mistaliaton ol pr geaess and nequis Pe dignis of fe doy Bebe You feel the tela Ges ander CDEDOMT eet era renal niet exe Page 36 4 Click inatnet exe 5 Save the file in a directory of your choice 6 Run the exe file 7 When the parameter setting software is installed S5 TCP IP 100 can be registered in the network 4 2 Initial Configuration of the 5 TCP IP 100 With the basic configuration the 55 100 receives all necessary station parameters so that it can be identified as a network user like name page frame base address IP address n subnet mask etc gt Start the parameter setting software The start dialogue appears INAT Parameterization x GmbH Industrial Networks for Automation Technology Parameterization via H1 Infa Serial Parameterization Help File offline Deutsch
38. Since the standard times for connection monitoring correspond to those of the H1 protocol the 55 system is compatible with H1 as seen from the PLC or PC Bit field for transmission state In byte 4 special bits are set to receive specific transmission states Bit Position Symbolic name Use 0 WMK BLOCKFLAG 0 the telegram is the last one in a block sequence 1 the telegram is not the last one in a block sequence Other telegrams are transferred 1 WMK ENDIAN Data length is indicated in Big Endian Format 2 WMK BIG SEQ sequence number is indicated in Big Endian Format Field Sequence Number Byte 6 and byte 7 represent a sequence number which has the value 0 when the connection is established and which is incremented by one each time user data is sent This frame counter is used as an additional safety mechanism for the data transmission When life data acks are sent the sequence number is not incremented and DataLen is 0 Connections Fetch and Write During the jobs Fetch and Write the first 16 data bytes at the start of a job correspond to the SINEC AP header which is inserted also to the communication over H1 Page 33 Chapter 3 Function S5 TCP IP 100 uoljoun Ja deyy 00 di dDL SS 3 5 Nomenclature INAT Siemens Siemens uses a different nomenclature than INAT does for job types If you want to configure a communi cation between INAT S5 TCP IP 100 and the Siemens CP
39. TCP IP 100 supports page frame addressing That means that the data exchange with the CPU is handled via the so called page frame The page frame is an address space that may be used by 256 modules simultaneously The dual port RAM of the CP lies in this address space Since the modules use the addresses together the module that shall be accessed by the application program must be previously chosen That is made with the interface number Communication is triggered by the application program on the S5 PLC using handling blocks HDBs 3 1 1 Handling blocks Handling blocks HDB are standard function blocks that allow the data exchange between modules which support page frame addressing They control the communication between the central processor and the communications processor in the PLC To send and receive data the handling blocks SEND and RECEIVE are used When there is a send job to be executed the automation program supplies the SEND HDB with parameter values and transfers the send job via the dual port RAM to the communications program of the CP The communications program executes the send job and reports the status of the job back to the automation program When there is a receive job the automation program supplies the RECEIVE HDB with parameter values and transfers the receive job via the dual port RAM to the communications program of the CP The communicati ons program then executes the receive job and reports the status of the
40. a Confirm your entries with the button The window PLC Parameter Settings appears For FTP connection see chapter chapter 4 4 Page 43 Chapter 4 Parameterization S5 TCP IP 100 UorjeziJojouleJed p Joydeu 00 421 65 4 3 1 PLC parameter settings The PLC parameters regulate the connection between the S5 TCP IP 100 and the S5 PLC local parameter x Connection Name New Connection Job Send Cancel IF Double Connection n the Other Help Job Offset o Standard Job Type Special Jab Send Direct Receive Direct gt Fetch Event Passiv 34 Fetch wite Fetch Passive White Passive Single C Multiple autom Pall all me Do Direct Jobs Always with All Flag ward unused Source Dest unused Connection name All parameterization data is allocated to the connections Each connection is identified by a connection name Job number A NR Each connection to be used by the Siemens S5 standard handling blocks requires a job number The same A NR is used in the handling block With the unique combination job number A NR and SSNR the connection can be addressed If Double connection the Other Layer 4 communications Send Receive can be handled via one connection a socalled double connec tion This means that only ONE connection has to be parameterized for both Sending and Receiving This connection contai
41. an ISO transport protocol on top of the TCP IP protocol and Is used for standard connections in the Simatic environment The services of the ISO transport protocol are transferred on the back of TCP IP The transport connection is handled via TCP IP where port 102 is used To address stations IP addresses are used to address applications TSAPs are used For each connection a local and a remote TSAP Is defined STATION A STATION B gt 3 4 5 INAT PLC Header With the PLC Header data transfer to the PLC is optimized The header provides a frame counter frame length information and the possibility to send acknowledgments All INAT components support the INAT PLC header The header is 8 bytes long Byte Value Function 0 Signature for Recognition 1 P Signature for Recognition Datalen LSB or MSB 2 WMK BIG ENDIAN Data Length Datalen LSB or MSB 3 WMK BIG ENDIAN Data Length WMK BLOCKFLAG 4 WMK BIG ENDIAN Bit field for transmission state WMK BIW SEQ 5 Must be 0 Reserved for add ons 6 Sequece No LSB or MSB WMK_BIG_SEQ sequence Number Sequece No LSB or MSB 7 WMK BIG SEQ sequence Number User Data Page 32 Field Datalen In the field Datalen the length of the data is indicated If DataLen is 0 a life data acknowledge Life Data Ack is involved and not user data Data acknowledgement permits a form of connection monitoring in which the TCP IP actually does not provide for a remote communication frame
42. andard connection here The Standard connections are inactive All standard connections can be set inactive here Dual Port Memory Size This function is not relevant for the S5 TCP IP 100 Standard Connections Diagnostics The window Diagnostics of the Standard Connections appears see also chapter 5 2 4 3 Pg Aktiv Reset With this button you can reinitialize the PG interface without a reboot of the connected PLC That reset button enables you to shorten the timeout interval after serial PG accesses 9 2 6 5 Clock functions The clock functions of the S5 TCP IP 100 provide the following services 1 Management of the internal time The time is led on the CP 2 Slave The time of the S5 TCP IP can be synchronized by time telegrams 3 Master The S5 TCP IP can send synchronous telegrams as time masters PLC Clock Functions P x H Min Sec NES e 7124 Day Mon Year End 5 fj Weekday Thursday m Master Slave Help Master Multicast No 0 Note 0 Broadcast 239 1430 Slave 1 Interval fo Sec Page 68 Setting the clock Enter hour minute and second day month and year Click the button Set Values are transferred to the 55 100 The weekday is then indicated automatically As long as no inputs take place the clock keeps running Inputs stop a refurbishing of the announcement General Time can be synchronized with synchronization telegrams The station sending these tele
43. ber of CRs is exceeded and sending becomes slower Default moderately after 20 futile CR attempts the temporal gap is increased to Time interval Slow Time interval Slow CR opecifies the time interval between two Connect Request attempts if the connection cannot be established after the maximum number of CRs is exceeded and sending becomes slower Default moderately this case arises after 20 futile CR attempts Page 65 Chpter 5 Meun Functions S5 TCP IP 100 suomnoun J nuo y G 00 421 65 Number of CRs at which CRs are sent slower This value specifies the number of unsuccessful Connect Request attempts after which the attempts are performed less frequently This reduces the network load caused by unsuccessful attempts to establish connections After each connection establishment and disconnection the system attempts to re establish the connection Time interval Sending Repeats Time interval between the first and second attempt to send Number of Sending Repeats Attempts The number of repeated attempts to send data with the same sequence number Timeout Life ACKs After this time without data traffic the connection applies as interrupted TCP IP normally uses no life telegrams as long distance traffic telegram Thus the connection is also interrupted if in the indicated time no data will transfer Time interval Life ACKs specifies the time after which an acknowledgment is to be sent when
44. ction window BUTTONS Button Description oet up a new connection The window Connection Settings appears show Edit network parameters of marked connection show Edit PLC parameter of marked connection Delete marked connection Print connection list Copy the parameters to the S5 TCP IP 100 Copy the parameters to a file Close of the connection window The window Station Parameter Settings appears PLC interfaces diagnosis Display connection status Monitor all connections Monitor standard connections Diagnosis of the Fetch on Event Cache Online Help APPENDIX xipueddy 00 421 65 APPENDIX Special TCP IP Settings With the button Further Settings in the TCP IP Parameters Setting window the dialogue Special TCP IP Settings appears Special TCP IP Settings 3 x Lise PLC Header Life Data ACKs r ther Settings SES Life ACKs Ignore End Check Life amp CKs with previous Data Send an Ack immediately after received Data Send an Life Data Ack after last Block Do not wait for Send Acknowledge End of Connection FIN insteed RST Change Connection Timeout s Change Memory in KBytes Both Ports identical UDP and active The PLC Header Values in Big Endian else Little Endian 3 im These special parameter settings for working with the TCP IP do n
45. e TCP IP Parameter Settings and or H1 Parameter Settings are displayed PLC Parameters This window corresponds to the dialogue that appears when one creates a new connection Switch Active Passive A connection can be deactivated here Connection para meters are not lost At a later date the connection can be set active again with the same parameters Neu The window New Connection appears here Copy An existing connection can be copied here If you register a new name for the copied connection and if you confirm with OK then the connection in the connecting overview is indicated Delete The marked connection is deleted Deletions are irreversible 5 2 3 1 Connection The window Connection Settings appears 7 87 Web Ftp Fetch on Event Connection Settings i E E Connection Mame fetch passive Connection works Protocol type eed elm Event Pass 55 Modbus No Protocol Fetch Ever Iv Help Fall all 7500 ms Protocal Params pm PLC Params Job 1 SendDirect 55 TCPVIP Server 0 5555 FleHeader The parameters of the connection are shown in overview The Buttons PLC Parameters and Net Parame ters take to the appropriate window of the PLC Parameter Settings and or the Net Parameter Settings Page 59 Chpter 5 Meun Functions S5 TCP IP 100 suonoun J
46. ections where Life ACKs have been deactivated Please you note that the response time is likewise high re connecting disturbances as e g cable break Change memory in KBytes The memory for this connection can be changed The minimum memory space for a connection is 1460 bytes Ethernet maximum of user data For broadcast receive connection UDP this is not enough If data from the partner station is sent faster than the PLC receive it then the overflow is stored in this memory Only when this memory is full the UDP data is rejected Both ports identical UDP and active The source port and the destination port are set to the port edited in the parameteriza tion The automation of INAT units to set the source port to a value gt 1024 will then be deactivated see TCP IP System Values This setting is required for communications with CPs that do not support data transfer via UDP The PLC header values in Big Endian or Little Endian If this flag is set active the sequence number in the PLC header is transferred in MOTOROLA Format Big Endian Normally flag is not set active the sequence number is transferred in PLC header in INTEL Format Little Endian Page 75 Appendix S5 TCP IP 100 Xapu 00 421 65 Symbols 0021A0 38 A A NR 44 B Buttons of the connection window 72 C Clock functions 68 Compact Flash 11 Compatibility with S5 TCP IP 7 Connecting the CP to Ethernet 15
47. eipt of data after a certain waiting time Must Ack Time With this setting the acknowledgement takes place at once Background This is useful for cyclic transmission of data in a LAN TCP IP as long distance traffic net usually collects several data blocks before an acknowledge ment takes place For cyclic sending of data blocks in short intervals this setting is useful for faster transmission Send a Life Data Ack after last Block for communications via Socket Libraries Many socket implementations do not advise of the IP acknowledgement telegram With this function a life data ACK is sent at once as an acknowledgement This function is only available with communications via PLC header or RFC1006 Do not wait for Send Acknowledgement for communications via Socket Libraries Many socket implementations do not advise of the IP acknowledgement telegram With this function INAT units send without having received an acknowledgement This function is only available with communications via PLC header or 1006 End of Connection FIN instead RST some IP implementations require a graceful shutdown i e a FIN flag instead of a RST flag With activating this flags connection establishment of the INAT units is star ted with a FIN flag Change connection timeout With connection timeout the standard timeout of IP system values 30s can be changed exclusively for this connection This is useful for Internet conn
48. erface The station is turned off The connection cable may not be plugged in The protocol i e H1 or TCP IP used for the The connection cable is allocated incorrectly connection is not correctly installed on your operator control computer The station is situated behind a router The interface card on your PC is defective The interface on your PC is being used for another task Page 54 9 1 2 OK e lf you mark a station for which the station parameters were already assigned the connecting list appears with Here all available connections for this station are indicated The connection establishment is monitored and after approximatly 5 seconds without a response from the selected station the connection establishment is canceled e lf you mark a new station which is only indicated with MAC address the window Station Parameter Settings appears with OK 5 1 3 Cancel Click the button Cancel and you leave the station list and the start dialog window appears again 9 1 4 New If a station has not been detected in the automatic online display parameterization via IP establish a direct connection to the desired station using New Name p 7 7 OK Address H1 ipm Address 7 Type af Connection C H1 Enter the name and the IP address of the S5 TCP IP 100 station these parameters have been defined during the registration proce
49. ers to all jobs which use the ALL function A NR 0 With job types Write Passive and Fetch Passive the status of communication can only be indicated if an indication word is parameterized here x Connection Mame New Connection C MB Black Cancel DB Help C oe unused Source Destination source Dest is used with the active job types Write active Fetch active Send Receive Data source or data destination can be edited here The values edited here become operative if there are no parameters for Source Dest at the corresponding HDB QTYP ZTYP NN no source destination parameters on the block Parameters must be present on the CP With Send job enter the Source with Receive job enter the destination With Fetch active or Write active Page 45 Chapter 4 Parameterization S5 TCP IP 100 UorjeziJojouleJed p Joydeu 00 421 65 Source and Destination are identical e Confirm your entries with OK You arrive into the window TCP IP Parameter Settings H1 Parame ter Settings F TP Connection The creation of a ftp connection is described in chapter 4 4 4 3 3 TCP IP Parameter Settings Destination IP Address In a TCP IP network each station is addresses with a unique destination address If the connection is set active enter the IP address of the communication partner If the connection establishment is passive enter a joker address 0 0 0 0
50. grams is called clock master Stations receiving these telegrams are called clock slaves The S5 TCP IP 100 can be configured both master or slave 55 100 as clock slave In case of being clock slave the S5 TCP IP 100 receives the synchronization telegrams from the clock master The slave function cannot be deactivated i e if the S5 TCP IP 100 is NOT configured as master itis ALWAYS clock slave and receives corresponding telegrams 5 TCP IP 100 as clock master If master is activated the INAT S5 TCP IP 100 sends the time at the specified interval Multicast No Broadcast Value to enter 0 Telegrams are sent to everybody All stations in the network that are configured as clock slaves are synchronized Multicast Value to enter arbitrary Telegrams are sent to all stations that are member of the multicast The time of these stations are synchronized Multicast Value to enter 239 If there is a CP1430 in the network using the Multicast clock enter 239 Interval Here the interval is registered in seconds with which the time master sends synchronization telegrams E g if the value 20s is adjusted the master sends all 20 s a time telegram to the clock slaves Make sure that the interval of the Master and the Standby masters is identical Page 69 Chpter 5 Meun Functions S5 TCP IP 100 suonoun J G 00 421 65 Availability if time to the PLC
51. his windows Zust nde des Cache beobachten E x The Cache has 1 Entries Name foel Typ M Mo D Start 100 Len 2 polled 588 changed 1 Ende Refresh Druck Hilfe For each FOE connection the following parameters are indicated e Name Connection name of the projected event connection Type data type flag data block etc of the minitored area e Start Start address e Len Length of the monitored area e Polled Poll cycle of the CP e Changed number of value changes Page 62 5 2 5 Menu Station The menu station provides the following functions MENU STATION Station list The station list only with online parameterization appears Description in chapter 5 1 Current Station The window to edit the station parameters appears Description in chapter 4 2 1 1 SNMP Settings Description in chapter 5 2 5 1 Original Address If you confirm with Yes the hardware address of the INAT S5 TCP IP is reset to the default value 9 2 5 1 SNMP Settings The SNMP services Simple Network Management Protocol serve the administration of the nets The following parameters can be edited SNMP STATION SETTINGS Main Community Main Community is the identifier with which all services on the INAT S5 TCP IP can be addressed If no identifier is entered here all stations can perform accesses Read Community Read Community is the identifier for read only access If no ide
52. ing of the PG interface determines which signals will be used The following wiring has proven successful when using the PG functions with the S5 TCP IP 100 and the PLC 55 100 Signal Mext ext ground shield Mext ext ground shield TTY IN current output 2 2 TTY IN current output Masse interne Masse 12 12 Masse interne Masse TTY OUT current input 6 6 TTY OUT current input 20 current source of sender 11 11 20mA current source of sender TTY OUT current output T 9 TTY IN current input Mext external ground 8 8 Mext external ground TTY IN current input 9 7 OUT current output Page 13 Chapter 2 Hardware S5 TCP IP 100 oJeMpJe H z Joydeu 00 dl d2 L 6S 2 1 6 Jumper 1100 As default there is no voltage at pin 14 of the PG interface The power supply can be configured with a jumper to the pins with the identifier JP1100 umper not set OFF gt OV at Pin 14 default Page 14 2 2 Installation For installation of the S5 TCP IP 100 follow these steps Step 1 Installing the 55 100 in the PLC rack Step 2 Connecting the CP to the Ethernet network Step 3 Connecting the CP to PC PG Step 4 Connecting the Swing Cable 2 2 1 Installing the S5 TCP IP 100 in the PLC rack The S5 TCP IP 100 can be installed in any PLC slot of the AG
53. ion 29 TCP IP Parameter Settings 46 TCP IP System Values 65 TSAP 47 W WRITE active WRITE passive 24 Seite 77 Index S5 TCP IP 100
54. ized and analyzed with INAT NetSpector The data traffic at ports 2 and 3 of the switch can not be captured Page 34 CHAPTER 4 PARAMETERIZATION uorjeziJojouleJed p Joydeu 00 dl d2 L 6S 4 PARAMETERIZATION 4 1 Installation of the INATnet parameterization With the INATnet parameterization software you can register the S5 TCP IP 100 in the network and set up the parameters for your connections The parameters edited here are loaded directly to the S5 TCP IP 100 or are saved locally for later transmission to the S5 TCP IP 100 With the parameter settings software you can monitor connections and make diagnostic checks For the parameterization of the 55 100 you need a PC with installed INATnet parameterization software PC and S5 TCP IP 100 have to be connected directly or indirectly For installing the software follow these steps 1 If you received the INATnet parameterization from the INAT website Download Area please refer to point 5 If you received the software on a CDROM please refer to point 2 2 Insert the CDROM S5 TCP IP 100 If autostart is not activated in your PC use start exe or index html If autostart is activated the following dialogue appears Welcome Willkommen lt Please select Bitte w hlen Sie __ Installation _ Installation T Software Overview d Software bersicht 3 Informative Literature 2 Informationsmaterial Installation a list of the files to install the
55. l known services like and TELNET and are defined in the RFCs Ports numbered from 256 to 1023 are used for other specific services The combination of an IP address and a port number is called socket A socket uniquely identifies a single network process within the entire Internet STATION A STATION B Page 30 3 4 3 Difference TCP IP H1 TCP is a stream oriented protocol It is permitted to send almost any length IP packet it chooses If two mes sages were passed to a TCP IP stack the TCP IP stack may choose to put both messages in one Ethernet frame Alternatively it may choose to place half of the first message in the first Ethernet frame and all the rest in the next Ethernet frame There is no EOM recognition H1 ISO is a message oriented protocol There is EOM recognition Messages arrive at the destination exactly in the same form they have been sent from the sender Input block and Output block are identical Message oriented ISO Data stream oriented TCP IP Fthernet Ethernet In automation technology the block oriented transmission is common To give TCP a message structure there are two possibilities TCP with a message structure ISO on TCP RFC1006 INAT PLC Header Page 31 Chapter 3 Function S5 TCP IP 100 uoljoun 00 dl d2 1 6S 3 4 4 RFC1006 RFC1006 ISO Transport Service on the top of the TCP specifies how to carry
56. le to exchange data with the CPU via this memory the DPRAM is divided into pages Each page is numbered In the handling block of the PLC program the interface number SSNR is used to address the S5 TCP IP 100 It identifies the page frame base address of the S5 TCP IP as well as the job offset With the initial configuration of the S5 TCP IP it is assigned a page frame base address Each connection parameterized with the INATnet software is assigned a job offset and a job number A NR The S5 TCP IP 100 identifies the individual job based on the combination of A NR and SSNR This combination must be unique 3 1 3 1 Send job e Fora send job the automation program supplies the SEND handling block with parameter values e The interface number SSNNR identifies the page frame basic address of the CP and the transfer area job offset in dual port RAM DPRAM for the exchange of messages between 55 PLC and S5 TCP IP 100 Page 20 Definition of transmission data The S5 TCP IP 100 makes a data buffer available and transfers the all sending data into the data buffer via background communication SEND ALL The S5 TCP IP 100 identifies the job based on the A NR This number enables a connection parame terized in the S5 TCP IP 100 This connection contains the connection parameters With the connection parameters the S5 TCP IP 100 creates a PDU When the receive enable is set on the partner station the PDU is transferred via the network to
57. me controllers however the data are transferred to working storage via interrupt when priority 0 is used This can make the total data transmission faster With priority 0 and 1 can amount to the data length maximally 16 bytes According to standard line priority 3 is set e Click the button OK The connection parameter setting is finished The new connection is indicated in the connection list Page 48 4 4 FTP Connection FTP connections permit the S5 TCP IP 100 to be addressed from any client The FTP commands GET and PUT are supported Number of ff m mm Bk Job Number 2 Cancel Use Connection Name as Password for Read Job Use Stations Password for Write Jobs Help Write Access Connection works Number of Maximum number of clients that access the PLC Job number Job number for read and write jobs All PUT and GET requests are handled via this job number PUT requests are only handled if write jobs are allowed Write jobs can be disabled Use connection name as password for read job Activate this button and the connection name is the code word for read jobs If no code word is specified read accesses can always be performed Use station password for write jobs Activate this button and the station password edited in the windows Station Parameters is the code word for write jobs If no code word is specified write accesses can always be performed Write access permi
58. n casing required Configuration tool INATnet Parameterization Other Protected configuration in case of failure in power supply Page 6 1 3 Compatibility with S5 TCP IP 55 and S5 TCP IP 100 are compatible Existing parameterization data can be used when a change is made save the stations and connection parameters of your old S5 CP with the INATnet parameterization soft ware File Store Data to File as NetParameter file Load this file to your new CP with the INATnet para meterization software File gt Load File to Device As a result of different card slots a transfer via memory card is not possible Page Chapter 1 General S5 TCP IP 100 Chapter 1 General 55 100 Page 8 CHAPTER 2 HARDWARE 2 HARDWARE 2 1 Overview Chapter 2 Hardware Compact Flash Slot Ed o Flash EEPROM 4 Port Switch TP4 Monitored Port c lt v a PG Interface 55 100 Page 10 2 1 1 Compact Flash The Compact Flash Slot on the front panel can be used for Compact Cards Type or Il The pin assignment is compatible with Compact Flash Standard The Compact Flash Slot is Hot Plug capable You use a CF Card as additional backup for parameter data of the S5 TCP IP 100 station parameters configured connec tions etc that is configured with INATnet parameterization gt
59. nections After each connection establishment and disconnection the system attempts to re establish the connection Page 64 Time interval Sending Repeats Time interval between the first and second attempt to send Number of Sending Repeats Attempts The number of repeated attempts to send data with the same sequence number Timeout Life ACKs Time without data communication after which the connection is considered interrupted Time interval Life ACKs opecifies the time after which an acknowledgment is to be sent when no data communication takes place Maximum Credit It is the maximum value for the credit Credit is the number of TPDUs Transport Data Control Unit which may be sent without ACKs by the sending station from the destination station Maximum TPDU Length code Maximal value of an H1 Class Options some of the services offered by the H1 classes 0 to 4 may be activated within the Class Options Protocol Options By the HEX value 3 you may activate the Checksum and the Expedited Data Transfer 9 2 6 3 TCP IP System Values The TCP IP system parameters represent the operating parameters in the TCP IP kernel The values should only be changed in special cases If it is necessary to change the values please ask your system administrator Time interval Fast CR This value specifies the time interval between two Connect Request attempts if the connection cannot be established before the maximum num
60. ns two job numbers one for Send and one for Receive With this setting a half duplex mode is realized Job Offset The job offset determines the page frame which is used for the current job Job off sets are used normally only in multiprocessor systems i e several CPUs with one or more CPs The following rule usually applies CPU 1 communicates via page frame 1 Base SSNR Job offset 0 CPU 2 communicates via page frame 2 Base SSNR Job offset 1 CPU 3 communicates via page frame 3 Base SSNR Job offset 2 CPU 4 communicates via page frame 4 Base SSNR Job offset 3 The page frame base address is set at the station parameters Standard job type A description of the standard job types can be found in chapter 3 3 job types Page 44 Special Job Type The Event mode enables spontaneous data traffic With normal Fetch communication requested data is sent via network within the Poll cycle even if the data has changed Data is polled cyclically from the PLC via the network With Event mode the S5 TCP IP 100 compares the requested data Data is only sent when the data changes This reduces network traffic There are two operating modes of the Event Fetch function e Single The Fetch is started by the calling system Data is only then returned from the destination system when it has changed Immediately after the establishment of a connection data is returned when a fetch is made The fetch has to be restarted after every data re
61. nsible for the complete takeover of the data of the CPU to the CP 3 1 1 6 FETCH The FETCH handling block is used to fetch data It is used for the job type FETCH 3 1 1 7 CONTROL The CONTROL handling block is used to query the status of a job Page 19 Chapter 3 Function S5 TCP IP 100 uoljoun Ja deyy 00 di dDL SS 3 1 2 Supplying Parameters for handling blocks HDBs The HDBs must be supplied with the following interface parameters SEND RECEIVE L KH 0000 L KH 0000 T MW 96 T MW 96 O 255 0 O 255 0 ON M 255 0 ON M 255 0 SPA FB 244 SPA FB 245 NAME SEND SoNR KY 0 0 0 50 HECEIVE SoNR Kv 0 0 0 55 AMA 96 MW 96 DB TYP KC DB DENR KY 0 10 DENR KY 0 141 QANF KF 0 ANF KF 0 QLAE KF 600 LAE KF 600 PAFE MB 98 PAFE MB 98 SSNR interface number page frame base address job offset A NR job number number of the activated job Status word QTYP type of data source ZTYP type of data destination DBNR data block number QANF relative start address within the type ZANF relative start address within the type QLAE number of source data ZLAE number of destination data PAFE parameter assignment error byte 3 1 3 Functionality of handling blocks CPU and CP communicate via the dual port RAM DPRAM In order that several CPs are ab
62. ntifier is entered here all stations are read accessible Write access is not permitted with this identifier The main community is used for this Accessing station Accessing station can be further restricted in addition to the identifiers If an address other than 0 is entered here write access can only be performed by the station specified here Station Getting Traps Traps are sent to the station entered in Station which is getting traps If no station is entered here i e value is 0 no traps are generated SNMP services are addressed via port 161 Traps are sent on port 162 Page 63 Chpter 5 Meun Functions S5 TCP IP 100 suonoun J G 00 421 65 5 2 6 Menu Extras The menu extras provides the following functions MENU EXTRAS Parameter gt Flash Card Description in chapter 5 2 6 1 H1 System Values Description in chapter 5 2 6 2 TCP IP System Values Description in chapter 5 2 6 3 Delete all Connections All connections are deleted PLC System Values Description in chapter 5 2 6 4 Clock Functions Description in chapter 5 2 6 5 Modbus Table Over the Modbus table you assign the registers to the desired data types Description in chapter 4 6 License for S5 TCP IP 100 not relevant Diagnosis serial Description in chapter 5 2 6 6 Firmware Update Description in chapter 5 2 6 7 5 2 6 1 Parameter gt Flash Card The S5 TCP IP
63. oring function which is restricted in many socket libraries The default setting of the life data acks is activated Page 46 RFC1006 ISO on TCP TCP IP data is transferred as a stream With the activation of RFC1006 this stream is transferred block by block With that special TCP IP channel you are able to communicate with the Siemens CPs of the S5 and 57 series Additional information about RFC1006 is available in chapter 3 4 4 RFC1006 Click the button RFC1006 to edit the TSAPs TCP IP RFC1006 Parameter Settings tsas F Hes ASCII Own 66657463682031 fetch Cancel Remote 66 65 74 63 68 2032 etch2 Local TSAP remote TSAP The local TSAP Transport Service Access Point specifies the connection address in the system by which data is to be exchanged Remote TSAP specifies the connection address of the other system In order to develop the connection the TSAPs must be compatible with the local TSAP of the communication partner and partner B The remote TSAP of station must correspond to the local TSAP of station B Local TSAP Station A Remote TSAP Station B Remote TSAP Station A Local TSAP Station B TSAPs are 2 bytes up to 16 bytes in length Further Settings Special TCP IP Settings Further settings provide special parameters for working with TCP IP Normally you do not need them Further information on these parameters can be found in appendix 4 3 4 H1 Parameter Setting
64. oroute S7 TCP IP S5 TCP IP 55 100 ilz Net CP TwinCAT Communicator UorjeziJojouleJed p Joydeu e Click the button S5 TCP IP 100 The empty connection list appears e Select Station gt Current Station e The window Station Parameter Settings appears x Station Name Station 1 Station Passwort Cancel Ethernet Address o0 21 A0 01 0041 Help m TCP IP Parameter Use DHCP Own IP Address 62 145 55 219 Subnet Maske 255 255 255 128 Domain Name Server Domain Name Max of three Domain Name Server e Please refer to chapter 4 2 1 1 station parameter settings to learn which entries can be made here e Confirm your entries with OK You get back to the connection list The parameters are stored in the file created at the beginning for later transfer to the S5 TCP IP 100 This file must be transferred into the S5 TCP IP 100 serial or online 00 421 45 42 4 3 Setting up connection setting up connections is always the same no matter if you are using online offline or serial mode The difference is when setting parameters online via IP or H1 or via serial line the parameters are stored directly in the CP while when setting parameters off line they are stored in a parameter file When setting parameters online all stations on the network are indicated To create of a new connection follow these steps ota
65. ot have to be edited in normal use They have the following meaning SPECIAL TCP IP SETTINGS Use PLC Header The header can be switched off here Life Data ACKs This item activates the connection monitoring function The PLC header must be active Interruptions such a cable break are recognized very fast with the help of this func tion In a LAN or a cell network this monitoring mode is very useful If the connection is being handled by a WAN we recommend deactivating these functions to save costs since those TCP IP connection is always active Ignore TCP End Check When reading the data with this point the end identifier is deactivated by TCP IP tele grams Therewith so many data are handed over how the PLC program requests The job is only then terminated correctly job finished without errors See also PLC of system values first if buffer full This setting is only with Receive direct connections and for the CPs such as S7 TCP IP S5 TCP IP as well as echolink does not apply to echochange Life ACKs with previous data some IP Stacks e g Windows NT only answer to Life ACKs if there is data included If this flag is set active INAT units send Life ACKs with 1 byte data If the flag is not set active life ACKs are sent without data Continuation next page Page 4 Send an Ack immediately after received data This setting is for speed Normally TCP IP acknowledges rec
66. re If data are sent then the status of the send job will be indicated under indicator word Send If data are received then the status of the receive job will be indicated under Receive If you have parameterized a double connection a connection with 2 job numbers then the status is indicated for both jobs The indicator word is evaluated and displayed as a hexadecimal code Behind the hex value the plaintext of the indicator word follows Page 60 Allocation of the indicator word Set Bit Indicated value in Hex Meaning 0 1 Job ready 1 Job running 2 Job finished without errors 3 Job finished with errors 4 Data transfer acceptance running 5 Data transfer finished 6 Data acceptance finished 7 Data transfer acceptance disabled 1 3 5 7 No connection to the other system 1 3 4 5 6 7 Job does not parameterize Net Status otatus shows the current condition of the net connection Net status can indicate the following messages Wait for ACK and No connection Frames Send Rec Indicates the number of sent and or received frames 5 2 4 2 Monitor all connections Besides the connection name type and connection parameters the number of sent and received frames and the number of disconnects is indicated for the left side and the right side The entry L or R in the column Slave indicates whether the left side or the right side is set to slave mode see chapter 5 2 4
67. rt the parameterization software select the type of parameterization and select the S5 TCP IP 100 Station not found otations located behind routers are not automatically detected Establish a direct connection to the desired station clicking the button New Enter the name and the IP address of the S5 TCP IP 100 station these parameters have been defined during the registration process and click the button The new station is indicated in the station list If there is an arrow in front of the station gt the station is reachable Mark the S5 TCP IP 100 in the station list and click the Button The empty connection list appears To set up a new connection select Connection gt New The window New connection appears x m Typ of Protocol Cancel C H1 55 Help TCPAP 37 Ee Madbus 2 f None m Here you specify which protocols for the connection are to be used NEW CONNECTION Connection name All parameterization data is allocated to the connections Every connection is identified by a connection name Network Select the used network protocol H1 TCP IP or FTP Type of Protocol You can decide which higher protocols protocols situated on higher layers of the ISO OSI reference model application protocols such as S5 S7 Modbus on TCP to use None Select None when no application protocol to be used raw dat
68. s Ethernet Address The destination Ethernet address has to be entered to an active connection In a passive connection a joker address can be entered 00 21 A0 00 00 00 Enter the Ethernet address of the communication partner in the H1 network Local TSAP remote TSAP The local TSAP specifies the connection address in the system by which data is to be exchanged Remote TSAP specifies the connection address of the other system In order to develop the connection the TSAPs must be compatible with the local TSAP of the communication partner and partner B The remote TSAP of station A must correspond to the local TSAP of station B Local TSAP Station A Remote TSAP Station B Remote TSAP Station A Local TSAP Station B Page 47 Chapter 4 Parameterization S5 TCP IP 100 UorjeziJojouleJed p Joydeu 00 421 65 TSAPs 2 bytes up to 16 bytes in length CR Parameters With ISO H1 a transport connection is established by sending a CR TPDU Connection Request Transport Protocol Data Unit by an active transport instance With this CR TPDU several parameters are transferred to the partner such as desired TPDU size format of the TPDUS etc Check the user s guide of the destination system to determine what if anything must be entered here If no information is available no CR parameters should be entered Multicast Multicast connections are connections which are not directed to all stations
69. ss as described in chapter 4 1 2 and click the button OK The new station Is indicated in the station list If there is an arrow in front of the station gt the station is reachable 9 1 5 Edit otation parameters of stations reached via the button New can be modified in this window Station name and IP address can be changed 5 1 6 Delete Stations reached via the button New can be deleted here Each time you try to delete a station a confirmation window appears asking whether you really want to delete this station Deletions are irreversible 5 1 7 Print A list of the stations can be printed for documentation purposes The printout is made on the standard printer specified for the system 5 1 8 Help The Online help of the parameterization software appears 5 1 9 Internet Activate the button Internet if stations shall be reached via Internet Page 55 Chpter 5 Meun Functions S5 TCP IP 100 suonoun J G 00 421 65 5 1 10 Timeout With the connection timeout the Timeout according to standard of the system values can be affected purposefully for this connection That is meaningful e g for connections in the Internet with which the life telegrams were deactivated Please you note that also the response time is high with connecting disturbances then e g by cable break 5 2 Connection window In this window you edit existing connections and set up new connections On the
70. ssage header to deliver data to the correct applications process 3 4 2 1 TCP connection establishment The type of handshake used by TCP is called a three way handshake because three segments are exchanged After this exchange TCP has positive evidence that the remote TCP is alive and ready to receive data As soon as the connection is established data can be transferred 3 4 2 2 Procedure of the TCP connection The data transfer with a TCP transport connection is characterized by acknowledging the TCP segments This procedure is called Positive Acknowledgment with Retransmission e After sending the TCP segment the sender keeps a copy of the sent packets and expects an acknow ledgement of the receiver within a certain time Thereto the sender starts a timer e fa TCP segment is received the receiver sends an acknowledgment of receipt to the sender e Only after the receipt of the acknowledgment can new TCP segments are dispatched e fthe timer runs out the sender assumes it pack was lost and repeats the transmission TCP segments are transferred in IP datagrams These datagrams can be transported over different ways The individual TCP segments can arrive at the receiver in different sequence than they were sent TCP must be able to reorganize the individual TCP segments to the same sequence as they were sent Page 29 Chapter 3 Function S5 TCP IP 100 uoljoun 00 di ddL SS 3 4 2 3 TCP connection
71. te Click the button Open The file is loaded to the S5 TCP IP 100 You will receive complete updates via Email from INAT GmbH Follow these steps You receive a compressed file from INAT GmbH via Email or on CD otore this file locally on your hard drive Unpack the file otart the file Cp upd exe DOS program starts You are asked to enter the IP address of the S5 CP Enter the IP address and press Enter Wait for the update procedure The following dialogue appears CA D temp cp updtp upd exe Bitte beobachten Sie nun die LEDs auf der Frontseite der CP Diese muessten nun wahllos anfangen zu blinken Erst wenn dieses Blinken laenger als ca Sek aufhoert list das Update der komplett fertig BITTE BOOTEN SIE DANN DIE NEU Danach ist sie wieder betriebsbereit Programm beendet s Beliebige Taste hetatigen If the blinking of the LED stops on your S5 TCP IP 100 longer than 10 seconds boot the communications processor CP again Afterwards the S5 TCP IP 100 is again ready for use Page 71 Chpter 5 Meun Functions S5 TCP IP 100 suonoun J G 00 421 65 5 2 7 Menu Help The menu help provides the following functions MENU HELP Content The contents of the online help are shown Version The versions of all program modules are available in this window About The program info window 5 2 9 Buttons of the conne
72. termination When an endpoint wishes to cancel the connection it sends a FIN and the communication partner replies with a FIN amp ACK Station 1 replies with an ACK 3 4 2 4 Required parameters for TCP connections TCP connections use IP addresses and ports for the unique route from the sender to the receiver IP address Data exchange between 2 stations Port Data exchange between 2 applications IP address In a TCP IP based network each station or each device receives a unique IP address In the Source Address Field and Destination Address Field of the IP header the source IP address and the IP address of the destination station are used Only with this additional addressing can stations that are outside the own network can be addressed The MAC header alone is not sufficient for it IP addresses have a length of 32 bits which are divided in four groups of numbers The groups are separated by a dot example of an IP address 192 0 9 4 Port number After passes incoming data to the transport protocol the transport protocol passes the data to the correct application process Application processes are identified by port numbers which are 16 bit values The source Port Number which identifies the process that sent the data and the Destination Port Number which identifies the process that is to receive the data are contained in the first header word of each TCP segment and UDP packet Port numbers below 256 are reserved for wel
73. the partner station After the PDU has been received in the partner station the S5 TCP IP 100 receives an acknowledge ment via the network and transfers the status of the send job to the assigned status word CPU 55 100 E Display 3 1 3 2 Receive job For a receive job the automation program supplies the RECEIVE handling block with parameter values The interface number SSNNR identifies the page frame basic address of the CP and the transfer area job offset in dual port RAM DPRAM for the exchange of messages between 55 PLC and 55 TCP IP 100 The S5 TCP IP 100 makes a data buffer available and sends a receive enable to the partner station for this connection The partner station sends the PDU for this connection The S5 TCP IP 100 receives the PDU and extracts the data to be received With the help of the background communication RECEIVE ALL the communications program transfers the data into the data buffer of CPU The receive job with the actualization of the status word is terminated Page 21 Chapter 3 Function 55 100 uoljoun Ja deyy 00 421 65 3 2 Communications S5 TCP IP 100 with other Ethernet stations For communication with other Ethernet stations transport connections are required When sending data the 55 100 packs the data in or more protocol data units PDU This PDU s is are transferred via the network to the partner sta
74. tion The S5 TCP IP 100 receives PDUs addressed to it from the Ethernet and decodes these PDUs so that they can be understood by the application program of the 55 PLC Message exchange via HDBs Message exchange via S PLC transport with connections S5 TCP IP 100 ETHERNET Page 22 3 3 Job types The S5 TCP IP 100 supports the following job types Job types direct Receive direct Fetch activ Fetch passive Write activ Write passive Fetch on Event passive 3 3 1 SEND RECEIVE SEND RECEIVE is a program controlled communication to any other station PC S5 S7 The station that handles the SEND job sends data to the other station The other station receives this data with a RECEIVE job SEND and RECEIVE build together a job pair Station SEND to Station B Source address of data is set i SEND direct Dest address of data is unknown Definition of data source via SEND HDB Complete transfer of send data from CPU to CP via SEND ALL HDB UJ Station RECEIVE direct RECEIVE from Station A Dest address of data is set Source address of data is unknown P Definition of
75. tion with an active connection established sends a connection request to the passive station If the passive station accepts the inquiry it sends back a connection established confirmation The active station then sends a confirmation to the passive station and the connection is established Both stations are now ready for data transfer 3 4 1 2 Progress of the H1 connection The data transfer with an ISO H1 transport connection is characterized by acknowledging data blocks e After the sending station transfers a data block it expects an acknowledgment from the receiver within a certain time e The receiver sends an acknowledgment to the sender as soon as a data block was received e Only after the sender receives this acknowledgment will it sends new data blocks e lf the acknowledgment is not receives within the defined time the data block is considered lost or not sent and the sender transfers the data block again 3 4 1 3 Closing the H1 connection A connection is closed when one of the two stations asks for a connection clearing The partner confirms the request and confirms the connection clearing to have taken place The connection is considered as closed 3 4 1 4 Required parameters for H1 connections H1 connections use MAC addresses and TSAPs for the unique connection from the sender to the receiver Address information in H1 connections Station access MAC Addresses Application access TSAPs Page 27 Chapter
76. tner B The remote TSAP of station must correspond to local TSAP of station B local TSAP Station remote TSAP Station B remote TSAP Station A 7 local TSAP Station B TSAPs have a minimum length of 2 bytes and a maximum length of 16 bytes An H1 connection is clearly described by the combination of TSAPs and MAC addresses STATION A STATION B Page 28 3 4 2 TCP IP Connection IP The IP Internet protocol provides the communication to individual global addresses of computers IP uses IP addreses No circuit setup is needed IP is a connectionless protocol TCP Using TCP applications on networked hosts can create connections to one another and exchange streams of data The protocol guarantees a reliable and orderly delivery of data from sender to receiver While IP provides the transport between 2 stations TCP provides the data transfer between 2 applications The appli cations of the upper layers are addressed with port numbers UDP UDP provides application programs direct access to a datagram delivery service such as he delivery service that IP provides This allows applications to exchange messages over the network with a minimum of proto col overhead UDP is unreliable connectionless datagram protocol There are no techniques in the protocol for verifying that the data reached the other end of the network correctly UDP uses 16 bit Source Port and Destination Port numbers in word 1 of the me
77. tted As default Write accesses are not permitted This can be changed here Connection works parameterized connection can be deactivated The parameters are not lost The connection can be activated with the same parameters again As default connections are active NOTE For GET the SEND ALL block and for PUT the RECEIVE ALL block must be programmed NOTE Only one active FTP entry in the list is possible With the entry of a ftp connection the ftp server of the S5 TCP IP 100 is started As many clients can access the controller as entered under number of Page 49 Chapter 4 Parameterization S5 TCP IP 100 UorjeziJojouleJed p Joydeu 00 421 65 4 4 1 Read Write data with FTP client Start the command line of your operating system and change you into the desired work listing ftp Enter to ftp With ftp you start the file transfer protocol open open starts the ftp server of the station with the address X x x x IP address of S5 TCP IP binary The data blocks are stored as binary in the PLC Therefore the ftp transfer has to be perfomed in the binary mode 4 4 2 Formats of commands The formats of commands are the same for the command PUT and command GET kinds of data blocks DX and flags MB can be transmitted get db 10 reads the whole DB 10 get db10dw26 reads DB 10 from DW 26 up to the end get db10dw26len5 reads DB 10 from DW 26 5 words
78. turn This operating mode can also be used in combination with products from other companies e Multiple autom The fetch is started by the calling system Data is returned from the destination system when is has changed The job does not have to be started again The responses from the destination system contain an expanded AP header for identification The header contains the parameters of the call Therefore it is possible to start several Multiple Autom with only one connection Via these parameters the responses for the different Multiple Autom can be identified unambiguous Entered Multiple Autom jobs can be stopped individually Poll all Here you enter the poll cycle for Fetch Event Passive connections The S5 TCP IP 100 polls the data from the CPU via the back plane bus 0 indicates that data shall be polled as fast as possible In order to save calculating time we recommend using the value 200 ms Do direct jobs always with all some older PLC programs require the setting Do Direct Jobs Always with All If this mode is active the data communication is slower and the cycle time load of the CPU is greater If this mode is not active the data from the PLC is accepted immediately With this mode data is accepted with the next Senc Rec ALL call Flag word An indication word is intended for the passive order types Fetch passive Write passive The indication word which is specified at the ALL block ref

Download Pdf Manuals

image

Related Search

Related Contents

DEMANDE DE PROPOSITION Biens AL1554  User Manual - AC Lighting Inc.  MX Multi-Channel BoxRCI 0601 Benutzerhandbuch  Registro de Frames  National Instruments 374318A-01 Network Card User Manual  1 HEADING 1  Eng - SUNMYUNG Electro  AVG Ultimate User Manual    Operating Instructions - SEW  

Copyright © All rights reserved.
Failed to retrieve file