Manual CP143 H1 / TCP/IP for H1 and TCP/IP Order-No.: VIPA SSN-HB89E Rev. 00/07 Subject to change to cater for technical progress.
Lerrzeichen
CP143 H1 / TCP/IP manual The information contained in this manual is subject to change without notice. The contents may be changed without VIPA giving prior notice at any time. The software described in this manual is supplied on the basis of a general license. This license entitles you to make copies for use within your organization only. We will claim compensation for damages. © Copyright 2000 VIPA, Gesellschaft für Visualisierung und Prozeßautomatisierung mbH, Ohmstraße 4, D-91074 Herzogenaurach Phone.
CP143 H1 / TCP/IP manual About this manual This manual describes applications of the CP143plus and CP143 TCP/IP modules. These modules are plug-compatible with any PLC (AG-115U trough AG-188U) and do not require forced air ventilation. The standard handling modules (SEND, RECEIVE) that are supplied by Siemens may be used for TCP/IP task processing by the PLC. The description of the handler modules is contained in the respective manuals available from your CPU.
CP143 H1 / TCP/IP manual Contents Contents 1 INTRODUCTION ...........................................................................................................1-1 1.1 Safty and handling precautions for the user ......................................................1-1 1.1.1 Handling electrostatically sensitive modules ....................................................1-1 1.1.2 Shipping electrostatically sensitive modules.....................................................1-2 1.1.
Contents CP143 H1 / TCP/IP manual 4 THE CP143 H1 / TCP/IP NETWORK BOARD ............................................................. 4-1 4.1 The construction of the module .......................................................................... 4-1 4.1.1 Components of the module.............................................................................. 4-2 4.1.2 Jumper settings................................................................................................ 4-3 4.1.
CP143 H1 / TCP/IP manual Contents 5.8 Configuration of connections ............................................................................5-25 5.8.1 Structure of the configuration windows...........................................................5-25 5.8.2 The control field of the configuration window .................................................5-26 5.8.3 Indirect addressing .........................................................................................5-27 5.8.4 Multi-connections.....
Contents CP143 H1 / TCP/IP manual Appendix .................................................................................................................. A-1 A Technical data .........................................................................................................A-1 B Error messages from the NCS configuration program ........................................B-1 C List of abbreviations ...............................................................................................
1 Introduction 1.1 Safty and handling precautions for the user 1-1 1.1.1 Handling electrostatically sensitive modules 1-1 1.1.2 Shipping electrostatically sensitive modules 1-2 1.1.3 Tests and modifications to electrostatic sensitive modules 1-2 1.2 General 1-3 1.3 Operation 1-4 1.
Lerrzeichen
CP143 H1 / TCP/IP manual Introduction 1 Introduction 1.1 Safty and handling precautions for the user 1.1.1 Handling electrostatically sensitive modules The modules produced by VIPA carry MOS-VLSI components. These components are highly susceptible to high voltages that may be caused by electrostatic discharges.
Safty and handling precautions for the user CP143 H1 / TCP/IP manual 1.1.2 Shipping electrostatically sensitive modules Modules to be shipped must be packed in their original container. You may also wrap additional conductive material around modules that are about to be shipped. Conductive material comes in the form of antistatic foils or metallized enclosures. Some modules may contain a battery. Please ensure that the conductive packaging does not come into contact with or short out the battery. 1.1.
CP143 H1 / TCP/IP manual Introduction 1.2 General You may use the VIPA CP143plus or the CP143 TCP/IP to implement Industrial Ethernet H1 or TCP/IP networks in your offices or factories. The software used to configure the modules is compatible with MS-DOS, WINDOWS 3.11, WINDOWS 95, WINDOWS NT and OS/2. VIPA offers the following packages: CP143plus CP143-module with H1-protocol (Order-No.:VIPA SSN-BG81A) CP143 TCP/IP CP143-module with TCP/IP-protocol (Order-No.
Operation CP143 H1 / TCP/IP manual 1.3 Operation The CP143 H1 / TCP/IP communication module is installed directly into the central processor or into the respective expansion unit.
2 Communication protocols 2.1 H1 protocol 2-1 2.1.1 Structure of Industrial Ethernet H1 2-1 2.1.2 Operation 2-2 2.1.3 Structure and operation of the PLC interface 2-2 2.2 TCP/IP protocol 2-3 2.2.1 ISO-OSI level model 2-3 2.2.2 TCP/IP principle of operation 2-7 2.2.
Lerrzeichen
CP143 H1 / TCP/IP manual Communication protocols 2 Communication protocols 2.1 H1 protocol The Industrial Ethernet H1 LAN provides the basis for the implementation of large, high-tech, decentralized automation systems. Industrial Ethernet H1 is the complete solution for the implementation of large, open networks between the different departments of a company.
CP143 H1 / TCP/IP manual H1 protocol 2.1.2 Operation The Industrial Ethernet H1 LAN (in conformance with the Ethernet system standard) employs a random access technique: every terminal device accesses the bus when required. Access to the bus is co-ordinated by a CSMA/CD (Carrier Sense Multiple Access/Collision Detection) mechanism: every terminal device “listens” on the LAN and accepts transmissions that match its own address. Terminal devices can start a transmission only if the bus line is not engaged.
CP143 H1 / TCP/IP manual Communication protocols 2.2 TCP/IP protocol The TCP/IP protocol was an integral component of the Berkeley UNIX version 4.2 and as such it became a de-facto standard in local-area networks. Many manufacturers of workstations have since opted for the ethernet - TCP/IP -UNIX combination. All hardware systems that are currently of importance support versions of the TCP/IP protocol.
TCP/IP protocol CP143 H1 / TCP/IP manual 2.2.1.1 General The ISO-OSI level model is based upon a suggestion that was developed by the International Standards Organization (ISO). It represents the first step in the direction of an international standard for the different protocols currently in use. The model is referred to as ISO-OSI level model. OSI is the abbreviation for Open Systems Interconnection, that is communication between open systems.
CP143 H1 / TCP/IP manual Communication protocols Level 5 Session layer The session layer provides the links that enable users of different systems to communicate. In addition to the standard transport services the session layer also provides high-level services that may be useful for certain applications. One of these services the control of interactive functions. The session layer administers the flow of data where data can only be transferred in one direction (similar to the token-management).
CP143 H1 / TCP/IP manual TCP/IP protocol 2.2.1.3 TCP/IP in relation to the ISO-OSI level model TCP/IP is older than the ISO-OSI level model. For this reason the different layers can not be applied directly to TCP/IP. The TCP/IP network layers correspond to level 1 and 2 of the ISO-OSI model. Levels 5 and 6 of the ISO-OSI model are already integrated into the protocols of the TCP/IP application layer.
CP143 H1 / TCP/IP manual Communication protocols 2.2.2 TCP/IP principle of operation TCP and IP are only two of the many protocols required for the establishment of a complete network architecture. The application layer of the computer supplies programs like FTP and Telnet. The standard handler modules of the program define the application layer of the CP143 TCP/IP.
TCP/IP protocol 2-8 CP143 H1 / TCP/IP manual Rev.
3 Network planning 3.1 Ethernet network-terminology 3-1 3.2 Thin-ethernet-cable networks 3-3 3.2.1 Thin-ethernet-cable network-layout 3-5 3.2.2 Regulations and specifications 3-6 3.2.3 Technical data thin-ethernet 3-7 3.3 Thick-ethernet-cable networks 3-8 3.3.1 Thick-ethernet-cable network-layout 3-10 3.3.2 Regulations and specifications 3-11 3.3.3 Technical data thick-ethernet 3-13 3.4 Combining thin/thick ethernet cable in networks 3-14 3.4.
LerrzeicLerrzeichenhen
CP143 H1 / TCP/IP manual Network planning 3 Network planning 3.1 Ethernet network-terminology An ethernet network provides a communication link between different stations on the network. The stations on the network may consist of personal computers, industrial computers, automation equipment etc. Stations are connected to the network and located a certain minimum distance from each other. The stations on the network and the LAN cable form a network segment. (See Fig. 3-1).
Ethernet network-terminology CP143 H1 / TCP/IP manual Three types of ethernet cable exist: • Thin-ethernet-cable (also called thin ethernet cable or Cheapernet-cable). • Thick-ethernet-cable (also called thick ethernet cable or standard ethernet-cable or yellow-cable). • Twisted pair-cable (telephone cable) Thin ethernet-cable is far more economical than thick ethernet-cable. This applies to the cost of the cable, the cost of installation and any additional hardware.
CP143 H1 / TCP/IP manual Network planning 3.2 Thin-ethernet-cable networks Thin-ethernet-cable network hardware This chapter contains a description and an illustration (Fig. 3-2) of the hardware required for a thinethernet-network. Network adapter Network adapters are installed in every station on the network and linked by means of a network cable to provide the communication medium between these stations.
Thin-ethernet-cable networks CP143 H1 / TCP/IP manual CP 143 H1 / TCP/IP Fig. 3-2: Thin ethernet network hardware 3-4 Rev.
CP143 H1 / TCP/IP manual Network planning 3.2.1 Thin-ethernet-cable network-layout Here follows a summary of the restrictions and the rules that apply to a thin-ethernet-cable network. Fig. 3-3 is an illustration of this summary.
Thin-ethernet-cable networks CP143 H1 / TCP/IP manual 3.2.2 Regulations and specifications Certain basic regulations must be observed when planning or installing a network: • The cabling of a network consists of a number of segments. Each segment must be terminated with its characteristic impedance (terminator) of 50 Ω. • According to the ISO 8802.3 specification the maximum length of an individual segment is 185 m.
CP143 H1 / TCP/IP manual Network planning Guidelines for the routing and installation of network components • As a rule, a minimum distance of 1m is prescribed with respect to electrical equipment, cabling and other components that could produce electromagnetic and electrostatic fields. This includes parallel runs of power or high-tension cables, circuit breakers etc.
Thick-ethernet-cable networks CP143 H1 / TCP/IP manual 3.3 Thick-ethernet-cable networks Thick-ethernet-cable network hardware This chapter contains a description and an illustration (Fig. 3-4) of the hardware required for a thick-ethernet-network. Network adapter Network adapters are installed in every station on the network and linked by means of a network cable to provide the communication medium between these stations.
CP143 H1 / TCP/IP manual Network planning CP 143 H1 / TCP/IP Fig. 3-4: thick-ethernet network hardware Rev.
Thick-ethernet-cable networks CP143 H1 / TCP/IP manual 3.3.1 Thick-ethernet-cable network-layout Here follows a summary of the restrictions and the rules that apply to a thick-ethernet-cable network. Fig. 3-5 is an illustration of this summary. Restrictions • Maximum number of network segments: 5 • Maximum length of a network segment: 500 m • Maximum total length of the network cable: 2.
CP143 H1 / TCP/IP manual Network planning 3.3.2 Regulations and specifications Certain basic regulations must be observed when planning or installing a network: • The cabling of a network consists of a number of segments. Both ends of each segment must be terminated with its characteristic impedance (terminator) of 50 Ω. • According to the ISO 8802.3 specification the maximum length of an individual segment is 500 m. • Any segment may consist of a number of different parts.
Thick-ethernet-cable networks CP143 H1 / TCP/IP manual Guidelines for the routing and installation of network components: • As a rule, a minimum distance of 1m is prescribed with respect to electrical equipment, cabling and other components that could produce electromagnetic and electrostatic fields. This includes parallel runs of power or high-tension cables, circuit breakers etc.
CP143 H1 / TCP/IP manual Network planning 3.3.
Combining thin/thick ethernet cable in networks CP143 H1 / TCP/IP manual 3.4 Combining thin/thick ethernet cable in networks It is possible to combine thin-ethernet and thick-ethernet cabling in a single network.. The lower price of the thin-ethernet cable may provide a more cost-effective solution than a system that is purely based on thick-ethernet cable. When thick-ethernet cable is used to link repeaters the distance may be substantially larger than if the link was provided by a thin-ethernet cable.
CP143 H1 / TCP/IP manual Network planning 3.4.2 Thin/thick ethernet cable combination network-layout This chapter describes a method of combining thin ethernet cable and thick ethernet cable in a single network segment. This method employs as much thin ethernet cable as possible. Fig 2-7 illustrates this technique of combining thin and thick ethernet cable. The length of a network employing a combination of thin and thick ethernet cable may be between 185 m and 500 m.
Twisted Pair CP143 H1 / TCP/IP manual 3.5 Twisted Pair Twisted Pair network hardware A twisted pair-network can only have a star-type configuration. This topology requires a hub that supports the star-type configuration. The following paragraphs contain a description of the hardware required for implementing a twisted pair network. Network adapter The network adapter which is installed in every station on the network provides the interface that allows every station to communicate with every other station.
CP143 H1 / TCP/IP manual Network planning Twisted pair plug Twisted pair cable Star coupler (Hub) 1 2 3 4 5 6 Tx Rx Tx Rx Tx Rx Tx Rx Tx Rx Tx Rx Power supply Fig. 3-9: Twisted pair network hardware Rev.
Planning a network-layout CP143 H1 / TCP/IP manual 3.
CP143 H1 / TCP/IP manual Network planning 3.7 Standards and specifications The main characteristic of a LAN is that it provides a single physical communication path. The physical communication medium may consist of: • one or more electrical connections (twisted cables) • coaxial cable (triaxial cable) • fiber-optic cable The communications between individual stations is subject to certain standards and rules that must be met by every station on the network.
Standards and specifications 3-20 CP143 H1 / TCP/IP manual Rev.
4 The CP143 H1 / TCP/IP network board 4.1 The construction of the module 4-1 4.1.1 Components of the module 4-2 4.1.2 Jumper settings 4-3 4.1.3 Sockets and plugs 4-5 4.2 The CP143plus firmware 4-10 4.2.1 Components 4-10 4.2.2 The structure of the CP143plus 4-11 4.2.3 Further information on the CP143plus 4-12 4.3 CP143 TCP/IP firmware 4-14 4.3.1 Components 4-14 4.3.2 The structure of the CP143 TCP/IP 4-15 4.3.3 Further information on the CP143 TCP/IP 4-16 4.3.
Lerrzeichen
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4 The CP143 H1 / TCP/IP network board 4.1 The construction of the module Fig. 4-1: Construction of the CP143 H1 / TCP/IP Rev.
The construction of the module CP143 H1 / TCP/IP manual 4.1.1 Components of the module • • • • • • • • • • 80486 SLC 33 MHz CPU 1MB main memory PG interface which is compatible with the Siemens CP1430 EPROM socket 4KB dual-port RAM as CP interface DIN interface to the PLC An AUI connection (IEEE 802.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.1.2 Jumper settings Fig. 4-2: Location of jumpers Jumpers X11 to X15 must either all face left or face right! Any other combination could cause permanent damages to the module! The configuration of this module is determined by means of jumpers. You must install 5 jumpers to change from AUI to TP mode. X7 is used to enable the 15V supply voltage for the transceiver. The remaining jumpers on the module do not affect the configuration.
CP143 H1 / TCP/IP manual The construction of the module 4.1.2.1 AUI / TP (X11-X15) changeover This jumper determines the pin-allocation of the 15-pin socket. You may choose between twisted pair (TP) and AUI. Jumpers X11 to X15 must always be in the same position. 1-2 2-3 linked linked The 15-pin socket is set for AUI. The 15-pin socket is set for twisted pair operation.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.1.3 Sockets and plugs 4.1.3.1 The position of sockets and plugs Fig. 4-3: Front view CP143 H1 / TCP/IP Rev.
CP143 H1 / TCP/IP manual The construction of the module 4.1.3.2 Pin-configuration for sockets and plugs The figures show the respective sockets when the module is viewed from the frame. The top of the figure is equivalent to the top of the frame. 4.1.3.2.1 Pin-assignment for the AUI-/TP socket (15-pole) The 15-pole D-type socket connects to a transceiver via a drop-cable. It has a sliding interlock.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.1.3.2.2 Pin configuration for the D-type socket with PG interface (15-pole) The 15-pole D-type socket with the screw-type locks is intended for the connection of a programmer.
CP143 H1 / TCP/IP manual The construction of the module 4.1.3.2.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.1.3.2.5 EPROM socket 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Rev.
The CP143plus firmware CP143 H1 / TCP/IP manual 4.2 The CP143plus firmware Fig. 4-4 shows the structure of the CP143plus firmware. This figure contains those components that interact to determine the characteristics of the CP. 4.2.1 Components The individual components communicate via the operating system functions of a real-time kernel (RTK). In addition to this, class libraries have been defined which provide a defined CALL interface. 4.2.1.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.2.2 The structure of the CP143plus Dual-port-Ram (DPR) PG-interrupt Interrupt handler and task PLC-interrupt Interrupt handler and task H1- application The application consists of n tasks. That is, a new task is generated and administered for every configured connection.
The CP143plus firmware CP143 H1 / TCP/IP manual 4.2.3 Further information on the CP143plus 4.2.3.1 System properties The system properties of a CP must not be regarded as limitations or as design faults. Instead, certain functions may not be accessible or they have been removed for the security of the overall system. • The run-up time of the CP143plus is app. 10 seconds.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.2.3.2 Generation of a multicast address from the ethernet address The TP4 protocol stack generates a MC address from the ethernet address. This function is required as the ethernet controller (hardware) uses the MC address for message filters. 4.2.3.3 Broadcast The broadcast address is always FFFFFFFFFFFFh. 4.2.3.4 block size Every configured interface of the CP must be synchronized by the handler module SYNCHRON when a PLC is started.
CP143 TCP/IP firmware CP143 H1 / TCP/IP manual 4.3 CP143 TCP/IP firmware Fig. 4-5 shows the structure of the CP143 TCP/IP firmware. This figure contains those components that interact to provide the functionality of the CP. 4.3.1 Components The individual components communicate via the operating system functions of a real-time kernel (RTK). In addition to this, class libraries have been defined which provide a defined CALL interface. 4.3.1.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.3.2 The structure of the CP143 TCP/IP Dual-port-RAM (DPR) PG-Interrupt Interrupt handler and task PLC-Interrupt Interrupt handler and task TCP-IP Application The application consists of n tasks. That is, a new task is generated and administered for every configured connection. TP4-API-Calls Libraries containing access functions for the TP4-protocol TCP/IP protocol stack • • • • Tools List processing access routines All-HTB-coordinator .
CP143 TCP/IP firmware CP143 H1 / TCP/IP manual 4.3.3 Further information on the CP143 TCP/IP 4.3.3.1 System properties The system properties of a CP must not be regarded as limitations or as design faults. Instead, certain functions may not be accessible or they are purposely removed for the security of the overall system. • The run-up time of the CP143 TCP/IP is app. 10 seconds.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.3.3.2 The relationship between the ethernet ADR for H1 and the IP-ADR for TCP/IP The CP 143 TCP/IP has a default ethernet address after it was turned on for the first time or after it has been reset. This address is supplied as “Node Address” on the “test report” that accompanies the module. You can determine the IP address from the ethernet address by means of the following calculation: Fig.
CP143 H1 / TCP/IP manual CP143 TCP/IP firmware 4.3.4 Organization format (ORG format) The organization format is another name for an addressing structure that describes the data areas of the PLC. For READ and WRITE the ORG block is optional. The ORG identifier defines the memory area that must be addressed. The ERW identifier is important when data modules must be addressed. In this case the respective data module number must be entered into this location.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board PLC area ORG-identifier Description PB 05h Source/destination data from/into peripheral module. Input modules for source data, output modules for destination data ZB 06h Source/destination data from/into counter cells TB 07h Source/destination data from/into timer cells BS 08h Source/destination data from/into system data area (BS and BS') DBNR irrelevant irrelevant irrelevant irrelevant Start address Significance PB-No.
CP143 H1 / TCP/IP manual CP143 TCP/IP firmware 4.3.5 Structure of the PLC-header The following messages lists the valid ORG identifiers. The entered "length" must never be -1 (FFFFh). 4.3.5.1 FETCH/WRITE for WRITE Request message System identifier Header length Ident. OP-code OP-code length OP-code ORG-block ORG-block length ORG-identifier DBNR Startaddress Length Acknowledgement message ="S" ="5" =16d =01 =03 =03 =03 =08 H L H L Unused block =FFh Length unused bl.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.3.5.2 SEND / RECEIVE with TRADA (Transparent data exchange) TRADA stands for transparent data exchange. Transparent data exchange allows to transmit data of varied length. A 16-byte header which indicates the length is preceding the user data which have to be transmitted. For the use of TRADA it is permitted to give in the PLC user program a joker length within the length instruction.
CP143 H1 / TCP/IP manual CP143 TCP/IP firmware 4.3.6 Status- and error indicators Status and error indicators are provided by the handler modules • via the ANZW indicator word (information for task processing) • via the configuration error byte PAFE (indicator for an incorrect configuration for a task) 4.3.6.1 Contents and structure of the indicator word ANZW The indicator word has the following structure: Fig. 4-7: The structure of the indicator word ANZW 4-22 Rev.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board • Status management byte 1, bit 0 to bit 3 These indicate whether a task has already been started, whether an error has occurred or whether the task has been inhibited, e.g. if a virtual connection does not exist. Bit 0: Handshake possible Set: by the interface according to the "Reset"-indicator in the task status bit. Handshake possible (=1) is used by the RECEIVE-module.
CP143 TCP/IP firmware CP143 H1 / TCP/IP manual • Data management byte 1, bit 4 to bit 7 This area indicates whether a data transfer is still active or whether data transmission or reception has been completed. The "Enable / Disable" bit can be used to inhibit the transfer of data for the respective task. (Disable = 1; Enable = 0). Bit 4: Data transmission / reception is active Set: by handler modules SEND, RECEIVE, once the transmission/reception of data for a task has been started.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board Bit 7: Disable / enable blocking of data Set: by the user: to prevent overwriting of a block of data by the RECEIVEmodule or to stop transmission of a data block by the SEND-module (only for the first data block). Reset: by the user: to release the respective data block. Check: by means of handler modules SEND and RECEIVE. When bit 7 is set these modules will not transfer any data and indicate to the CP that an error has occurred.
CP143 TCP/IP firmware CP143 H1 / TCP/IP manual 9 Remote error An error occurred at the remote station during a READ/WRITE task. A Connection error The connection for a task has not been established. This error will disappear as soon as a connection can be established. When all connections of a CP are in the interrupted state the module or the LAN cable may have been damaged. This error may also occur due to a configuration error, e.g. incorrect addressing.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board 4.3.6.2 Important status and error indicators of the CP143 H1 / TCP/IP Here follow important status and error indicators that may be signalled via the “indicator word”. The data consists of "HEX"-patterns that are similar to those of the status / control-var-test function of the PG on the PLC. The X indicates “arbitrary” or “irrelevant"; No. is the error number.
CP143 H1 / TCP/IP manual CP143 TCP/IP firmware The following tables show the most important indicator word combinations: Indicators for SEND H1 condition Prio 0/1 Prio 2 Prio 3/4 TCP/IP condition Prio 1 Prio 2 Prio 3 after a restart 0A0A 0A0A 0008 been X 0 X 8 X0X8 ..... after connection established has after a trigger X0X2 X0X2 X0X2 completed without errors X024 X024 X024 completed with errors X No X 8 X No X 8 X No X 8 after RESET XDXA XDXA XDX8 Tab.
CP143 H1 / TCP/IP manual The CP143 H1 / TCP/IP network board Here follow the indicators for SEND or RECEIVE when the handler module identifier is "NN" (no source / destination parameters) H1 condition Prio 0/1 Prio 2 Prio 3/4 TCP/IP condition Prio 1 Prio 2 Prio 3 completed without errors X004 X004 X004 Tab.
CP143 H1 / TCP/IP manual CP143 TCP/IP firmware 4.3.6.3 Parameter configuration error byte PAFE The PAFE is set when the handler module detects a parameter error. Fig.
5 Software 5.1 General 5.2 Installing and starting the program 5.3 Overview of available functions 5.4 Using on-line help 5.5 The base file 5.5.1 Loading, saving and deleting the base file 5.5.2 Printing the base file 5.5.3 Transferring the base file 5.6 Initialization 5.6.1 CP init 5.6.2 Online 5.6.3 System configuration 5.7 Real-time clock functions 5.7.1 General 5.7.2 Graphic representation of the real-time clock functions 5.7.3 Construction of a synchronized system: 5.7.
Lerrzeichen
CP143 H1 / TCP/IP manual Software 5 Software 5.1 General This chapter consists of two parts. The first part contains a general description of the configuration software. The second part describes the application of the configuration software to the different protocols. Different styles are used for the description to clarify certain aspects of the software elements.
Installing and starting the program CP143 H1 / TCP/IP manual 5.2 Installing and starting the program The following files are located on the disk supplied with the package: NCS.EXE This is the executable configuration program. NCS.TXT Except for the help text, this file contains all the documentation of the configuration program. NCS.HLP This is the help system. NCS.BIB A library containing programming algorithms for EPROMs. RUNNCS.BAT Sample Siemens EPROM driver installation. TCPEVAL.
CP143 H1 / TCP/IP manual Software 5.3 Overview of available functions Overview of available functionsThe overview contains a summary of the available menu functions. This chapter also contains references to those chapters containing a description of the respective functions.
Overview of available functions CP143 H1 / TCP/IP manual Test This menu item contains functions for displaying data from a specific target module. You must specify the target module in Init/Online. Ident returns the address and the serial number of the target module. Anzw Dump displays all indicator words from 0 through 223 in hexadecimal form. See chapter 5.9 Help Help text contains an abridged version of the explanations of the manual. Context contains an overview of the menu items.
CP143 H1 / TCP/IP manual Software 5.4 Using on-line help Whenever you require help you may press the key . You will also find help buttons at many points throughout the program. You may use the left mouse button to click on these buttons or you may access them by means of the -key (tabulator) and the Enter-key. This will display the help text associated with the respective function.
CP143 H1 / TCP/IP manual The base file 5.5 The base file The base file, which is also called the data base file or connection parameter file, contains all the parameters that may be configured by means of the NCS configuration software. A saved base file may be transferred into an EPROM or directly to the CP. It is also possible to read an EPROM or a CP and to save the respective parameters into base file. The default extension of the base file is ".ncs" but you may change this as desired. 5.5.
CP143 H1 / TCP/IP manual Software 5.5.2 Printing the base file You can send the contents of the base file to a text file by means of file/print. This file contains all initalization data and the configured connections. This text file has the name of the base file with an extension prn. It is created in the current directory. You can use a text processor to open this file and to edit its contents.
CP143 H1 / TCP/IP manual The base file 5.5.3 Transferring the base file The NCS provides two options to transfer the base file into the CP: • by means of an EPROM that you have created using the VIPA-EPROM programmer or the PG. • Via the serial interface or the network in remote mode. The menu item Transfer contains all the functions required for a data transfer between the PC, the EPROM programmer and the CP. 5.5.3.
CP143 H1 / TCP/IP manual Software 5.5.3.2 Data base ↔ PG-EPROM You can only use the EPROM functions in conjunction with a PG7xx and the respective EPROM drivers. Otherwise you will receive an error message! The diskette included in the package contains a program RUNNCS.BAT. This program loads the EPROM driver as a memory resident TSR and starts the configuration program NCS.EXE. When the configuration program is terminated the driver is removed from memory. Please start RUNNCS.BAT.
The base file CP143 H1 / TCP/IP manual Data base ↔ EPROM When you select Data base ↔ EPROM from Transfer the interactive window "Data base<>EPROM" will be displayed. If the program responds with an error message "Eprom-driver not installed!" the driver could not be installed. Check the file RUNNCS.BAT for the correct path statement. You may select a base file from one of the following 4 source / destination combinations for the transfer: [Dbase->EP] You are presented with a file selection window.
CP143 H1 / TCP/IP manual Software 5.5.3.3 Data base ↔ CP The remote functions provide the different functions required for remotely controlling the CP module (start, stop and delete), to request the status from the CP and to transfer data base files into the CP. Please make sure that you have specified the online transfer parameters in the section Online (see chapter 5.6.2). Fig. 5-4: Window for remote configuration Remote control of the CP Switch the RUN/STOP switch on your CP module to RUN.
The base file CP143 H1 / TCP/IP manual Transferring the base file The following points must be noted when base data is transferred between a CP and a PC: • Communication parameters must have been set in Online. • A transfer is only possible when the PLC is stopped (STOP status). Please ensure that your PLC has been STOPped. • You can only overwrite the data on the CP if the CP does not contain an EPROM.
CP143 H1 / TCP/IP manual Software 5.6 Initialization Every now configuration requires initialization. It is necessary to initialize the identification parameters as well as H1 and TCP/IP-parameters of the CP143 H1 / TCP/IP-module. The initialization is not required if you have already loaded a base file. You can find the initialization functions under menu item Init. You enter online transfer parameters in the section Online. 5.6.
Initialization CP143 H1 / TCP/IP manual Frame base address The frame base address Frame base address determines the origin of the frames that are inserted into the memory area of the controller. The PLC program normally operates on the base frame. Any other frames may be used by other controller or systems. The frame base address must be divisible by 4 and it is located between 0 and 255. This means that you may enter the values 0, 4, 8, 12, ... 252.
CP143 H1 / TCP/IP manual Software 5.6.2 Online Online parameters must be specifies when functions are to be used that access the module directly via the network or via the serial interface. Online functions are only available from firmware level V110 and an NCS V2.1. The function database <-> CP under Transfer and die functions under Test make use of online parameters. The online dialog window provides access to the following settings: Fig.
CP143 H1 / TCP/IP manual Initialization 5.6.3 System configuration When you select system configuration a dialog window containing the general settings for optimizing the system performance is displayed. Fig. 5-7: System configuration parameters SNMP active When this item is selected the Simple Network Management Protocol will be used. SNMP is normally used for UDP connections. Default setting: ticked H1 PDU-Size Maximum size for H1 data blocks (in byte) that may be transferred via the network level.
CP143 H1 / TCP/IP manual Software 5.7 Real-time clock functions 5.7.1 General Many practical situations require that the operations are synchronized and referenced to real time. The real-time clock functions of the CP143 module may be used to synchronize up to 256 modules with an accuracy of 10ms. The synchronization is maintained even if the time standard transmitter should fail.
CP143 H1 / TCP/IP manual Real-time clock functions 5.7.3 Construction of a synchronized system: Fig. 5-9: Construction of a synchronized system The DCF-77 module receives highly accurate time information and transfers this to the PLC. The PLC generates a timing message that is transferred via the LAN. This message synchronizes all CP143 modules connected to the H1-network. The real-time ICs of the different CPs maintain the time until the next timing message is received. 5.7.
CP143 H1 / TCP/IP manual Software 5.7.5 Master clock initialization Every CP may assume the role of master provided that it has been configured as a master. You may mix and match VIPA CPs and Siemens CPs. Please ensure that you use the MMS-timing format as Siemens supports only this format. From Init you can use Uhr-Init to access the following initialization window: Fig.
CP143 H1 / TCP/IP manual Real-time clock functions Please note: the format for the time and the cycle time must be configured in the same way throughout your system! The last byte of the ethernet address of each CP must be different! Time format MMS format This is the only format allowed for synchronizing foreign modules.
CP143 H1 / TCP/IP manual Software 5.7.6 Important considerations when using real-time clock functions Here follow the most important considerations that you should take into account when using the real-time clock functions: • use consistent cycle times for SYNC messages • use a consistent format for time • the format for time must be MMS when you are employing CPs from VIPA as well as Siemens.
CP143 H1 / TCP/IP manual Real-time clock functions Clock status, status message in the indicator word Setting the clock Hex Description 0h completed without errors 1h protocol error, bad time No errors when reading clock Hex Description 6h clock master 7h clock slave synchronous 8h clock slave invalid 9h clock slave asynchronous Ah clock slave/master Ch clock slave dynamic synchronous 5-22 Explanation CP is master clock and is currently active CP is slave clock (the time transmitter is active) CP has a
CP143 H1 / TCP/IP manual Software 5.7.8 Test functions for the clock The test functions for the clock are for use in online mode. You must specify parameters for online transfers using the Online function located under Init (see chapter 5.6.2). The test functions for the clock are available via the menu item Test. The mask for clock test functions of the respective CP143 module provides options for setting or reading the clock.
Real-time clock functions CP143 H1 / TCP/IP manual current time The current time. You can modify this value and it is transferred to the CP when you select "set". time difference You may enter the time difference in steps of 0,5 hours. This option is useful for daylight saving applications (summer and winter time). CP clock status Displays the status of the clock in readable form.
CP143 H1 / TCP/IP manual Software 5.8 Configuration of connections New configurations require that an initialization is performed. (see chapter 5.6). The initialization determines the station that must be configured.
Configuration of connections CP143 H1 / TCP/IP manual 5.8.2 The control field of the configuration window Fig. 5-13: Control field of a parameter configuration window [ OK ] After confirmation the new connection is accepted. You may also press the Enter key instead of [OK]. [ESC=Escape] The interactive window is closed and the entries are discarded. Connections that have previously been configured are not discarded however. [F1=Help] Displays the help window for the current interactive window.
CP143 H1 / TCP/IP manual Software 5.8.3 Indirect addressing The configuration windows for H1-transport or TCP-connections allow access to the input window for indirect addressing via the < IndAdr > button. Indirect addressing can only be used with the job types FETCH and WRITE. Fig. 5-14: Indirect addressing for TCP Here you may specify a static area where the specifications for source and destination data as well as the indicator word may be entered.
CP143 H1 / TCP/IP manual Configuration of connections Indicator word Specifies a data word on the PLC that contains the specifications for FETCH and WRITE Operand DB DX MW DB-No. Address Type 1..255 0..2040 Data module 1..255 0..2040 extended data module 0..252 Flag word Tab. 5-2: Data word for the indicator word for indirect addressing Notes on the structure of the data modules for indirect addressing are contained in the description of the standard handler modules provided by the Siemens manuals.
CP143 H1 / TCP/IP manual Software 5.8.4 Multi-connections Except for the configuration window for H1-datagram connections, all configuration windows provide the facility to configure multi-connections. Multi-connections refer to multi-drop connections. Here you may configure a second SSNR/ANR for an existing SSNR/ANR and its TSAP or port. The respective and opposite job types are configured automatically. You may also choose to let the multi-connection operate via a different channel.
CP143 H1 / TCP/IP manual Configuration of connections Job number (ANR) A job number{ XE "Job number" } must be allocated to each connection that should be used by Siemens handler modules. This number is used to access the connection from the PLC program. The job number together with the frame offset number determines the connection. This precludes multiple assignments. The job number and the respective frame offset number must be supplied in the control program.
CP143 H1 / TCP/IP manual Software 5.8.5 List of connections You may obtain a list of the configured connections for the respective protocol from the configuration window. This means that the content of the connection list is dependent on the interactive window from where the list was requested. The display will only show the connections for a single protocol. Depress the < List > button in the interactive window to request a list of connections.
Configuration of connections CP143 H1 / TCP/IP manual ANR ANR represents the job number. A job number must be allocated to each connection that should be used by Siemens handler modules. This number is used to access the connection from the PLC program. The job number together with the frame offset number determines the connection. This precludes multiple assignments. The job number and the respective frame offset number must be supplied in the control program.
CP143 H1 / TCP/IP manual Software 5.9 General test functions The menu item Test provides access to an extensive set of functions that return information on a module that is connected in online mode. You must supply the online parameters before you use this function (Init sub-menu Online). See also 5.6.2. 5.9.1 Ident You can use this function to identify the module in online mode.
CP143 H1 / TCP/IP manual General test functions Subnet-Mask The Subnet-Mask for IP addresses. This may be entered and/or modified under Init CP Init. Serial number The serial number of the module. This value can not be modified. Firmware-Version The version number of the firmware installed on the module. This value can not be modified. 5.9.2 Anzw Dump The function Anzw Dump opens a window containing the indicator words between 0 and 223. The indicator words are displayed as hexadecimal bytes. Job-No.
CP143 H1 / TCP/IP manual Software Indicator words returned by Anzw Dump Indicator word: FA Error indicator "F" means that the respective job has not been defined on the CP 143. Status indicator A means that the job has been inhibited ( for SEND / FETCH and RECEIVE). Indicator word: AA Error indicator "A" means that the connection of the communication task has not or not yet been established. Status indicator "A" inhibits SEND as well as the RECEIVE and FETCH.
CP143 H1 / TCP/IP manual General test functions 5.9.3 Overall status functions Menu item Test provides access to four sub-menus for displaying the overall status. The overall status function returns information on all the configured connections. Up to a maximum of 10 connections can be displayed simultaneously. Depending on the selected menu item the display will show all transport, datagram, TCP/IP or UDP connections.
CP143 H1 / TCP/IP manual Software A-Art displays the job type: SEND, RECEIVE, READ AKTIV (PASSIV), WRITE AKTIV (PASSIV). A-Status returns the processing status of the job (see table in chapter 5.9.3.1.2). A-Fehler errors that occurred when processing jobs (see chapter 5.9.3.1.3) Aend status changes are depicted by a "*". Buttons Status returns the status in online mode for all the connections that are visible in the mask. The data in the respective tables is updated on a cyclic basis.
CP143 H1 / TCP/IP manual General test functions Trace All messages for the selected connection (selection bar) are listed in online mode. This list can accommodate a maximum of 200 of the most recent messages. When this limit is exceeded the older messages are overwritten. You can page through the list as soon as you depress the key. To view the data that is transferred with the individual messages you can click on [display data].
CP143 H1 / TCP/IP manual Software 5.9.3.1 Status and error indication for the overall status functions 5.9.3.1.1 V-Status V-status displays the status of a connection. Code sF00 s000 s100 s101 s300 s500 s501 Description Connection error Initialization phase active Connection is being established Connection is being re-established Connection established Local termination of connection Connection terminated by partner Tab. 5-3: Status of a connection s: 1=aktive; 0=passive; 2=dynamic 5.9.3.1.
General test functions CP143 H1 / TCP/IP manual 5.9.3.1.3 A-error Any error that has occurred during error processing is displayed here. The following error messages are possible: 0 No error if the bit "job completed with error" is set the CP143 H1 / TCP/IP had to re-establish the connection, i.e. after a restart or a RESET. 1 Bad Q/ZTYP on the HTB the configuration for the job had a bad TYP parameter.
CP143 H1 / TCP/IP manual Software D Termination after RESET This is a message from the operating system. For priority 1 and 2 the connection has been interrupted and will be re-established once the communication partner has reached the stage that it can accommodate a new connection. In the case of priority 3 connections the connection has been cleared but a new connection may be initiated at any time. E Job with bootstrap function This is a message from the operating system.
Application in combination with H1 CP143 H1 / TCP/IP manual 5.10 Application in combination with H1 5.10.1 Initialization The entry CP-Init under Init places you in an interactive window that provides access to the CPbase initialization: Fig. 5-20: CP-base initialization (initial initialization) Here you must configure the addresses and other identification parameters of the CP. Before entering a connection, you must also enter a frame base address into this interactive mask.
CP143 H1 / TCP/IP manual Software Frame base address The frame base addressFrame base address determines the origin of the 4 frames that are inserted into the memory area of the controller. The PLC program normally operates on the base frame. Any other frames may be used by other controller or systems. The frame base address must be divisible by 4 and it is located between 0 and 255. This means that you may enter the values 0, 4, 8, 12, ... 252.
CP143 H1 / TCP/IP manual Application in combination with H1 5.10.1.1 Initialization of H1 transport parameters The H1 system parameters represent the operational parameters of level 4 that are required for master-slave communications. Only under special circumstances should these values be modified. You can access the following dialog window via H1 Transport-Parameter under Init: Fig. 5-21: H1 Transport parameters The parameters for H1 initialization Min.
CP143 H1 / TCP/IP manual Software TPDU Additional Options This value is fixed at 3 It can not be modified. Retrans. Timeout Interval for the connect retry in the abort-timeout time. Range: 0 to 65535 in units of 10ms (Default: 100) Min. Retrans Time Retransmission of unacknowledged data frames. Range: 0 to 65535 in units of 10ms (Default: 10) Closing Abort Timeout Maximum time during which the partner can acknowledge frames.
CP143 H1 / TCP/IP manual Application in combination with H1 5.10.2 Configuration of H1 connections H1 connections are configured via the submenu items H1-Transport-connection and H1 Datagramconnection located under Connections. H1-connections are supported by the TP4-protocolstack. Connection-oriented communications (transport control) are controlled by H1-Transportconnection. Multicast- and broadcast messages are sent via the H1-Datagram-connection. This type of connection is not connection oriented.
CP143 H1 / TCP/IP manual Software 5.10.2.1 H1 Transport-connections Select the sub-menu H1Transport-connection from the menu item Connection to establish connection oriented communications. This opens the following interactive window: Fig. 5-22: Interactive window H1 connections Parameters for an H1 Transport-connection Connection name You may specify a name for the connection. The name may consist of a maximum of 32 characters.
Application in combination with H1 CP143 H1 / TCP/IP manual Priority This parameter specifies the priority of the message for the CP143plus. The priority may range from 0 (highest priority) to 4 (lowest priority). When establishing a connection, priority 0,1 and 2 connections are so-called static connections. This means that the connection will be re-established, if possible, should it have been terminated (e.g. by the reset handler module).
CP143 H1 / TCP/IP manual Software 5.10.2.2 H1 Datagram-connections H1-Datagram connections are unsecured connections. The transfer is not subject to a negotiated type of connection. No acknowledgement is required when data is received. Lost datagrams are not detected, e.g. when the receive buffer is too small. The datagram service is intended for multicast- and broadcast messages. To initiate an unsecured connection select the sub-menu H1 Datagram-connection from the menu item Connection.
Application in combination with H1 CP143 H1 / TCP/IP manual Job number A job number must be allocated to each connection that should be used by handler modules. This number is used to access the connection from the PLC program. The job number together with the frame offset number determines the connection. This precludes multiple assignments. The job number and the respective frame offset number must be supplied in the control program.
CP143 H1 / TCP/IP manual Software Ethernet address (Adr) The ethernet address identifies a station. The ethernet address of the station must be unique within the network. The structure of the ethernet address is as follows: The ethernet address consists of 6 bytes. The first three bytes are specific to the manufacturer. These bytes are allocated by the IEEE-committee. The remaining three bytes are supplied by the end-user.
CP143 H1 / TCP/IP manual Application in combination with H1 5.10.3 Test functions The menu item Test provides access to test and diagnostic functions for your H1 transport- or datagram jobs. When you select H1-Transport or H1-Datagramm the following dialog window appears. This contains the overall status for all transport and datagram jobs of the respective module: Fig.
CP143 H1 / TCP/IP manual Software 5.11 Application in combination with TCP/IP 5.11.1 Initialization 5.11.1.1 CP initialization The entry CP-Init under Init places you in an interactive window that provides access to the CPbase initialization: Fig. 5-25: CP base initialization (initial initialization) Here you must configure the addresses and other identification parameters of the CP. Before entering a connection, you must also enter a frame base address into this interactive mask.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual Frame base address The frame base addressFrame base address determines the origin of the 4 frames that are inserted into the memory area of the controller. The PLC program normally operates on the base frame. Any other frames may be used by other controller or systems. The frame base address must be divisible by 4 and it is located between 0 and 255. This means that you may enter the values 0, 4, 8, 12, ... 252.
CP143 H1 / TCP/IP manual Software 5.11.1.2 TCP/IP-transport parameter initialization The entry IP Transport-parameter under Init places you in an interactive window that allows initialization of the TCP/IP-Transport parameters for the local (own) CP (base-CP): Fig. 5-26: IP Transport-parameters Parameters for the TCP/IP-initialization Keep-Alive-Time This parameter specifies the idle-time limit for the TCP-connection in milliseconds. The idle-time limit is a timer that monitors inactive connections.
CP143 H1 / TCP/IP manual Application in combination with TCP/IP Small-Packets-Size Specifies the size of small packets. Range: 1 to 65535 (default: 160) Time-out-Time Internal CP-parameter; this should not be altered. Range: 1 to 999999 (default: 10000) 5.11.2 Configuration of TCP/IP-connections You can access the configuration options for TCP/IP-Connections via the sub-menu items TCPConnection and UDP-Connection under Connections. H1-connections are supported by the TP4-protocolstack.
CP143 H1 / TCP/IP manual Software 5.11.2.1 TCP-Connection You may enter the TCP configuration via the interactive mask below. TCP is a connection oriented protocol. TCP uses port numbers to address services on the application level. TCP provides reliable end-to-end services. It also provides configurable performance improvements for slower longdistance connections (PTT). The use of TCP is advisable where reliable data transfer services are required. Fig.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual Job number (ANR) A job number must be allocated to each connection that should be used by handler modules. This number is used to access the connection from the PLC program. The job number together with the frame offset number determines the connection. This precludes multiple assignments. The job number and the respective frame offset number must be supplied in the control program.
CP143 H1 / TCP/IP manual Software Type Single job The order types SEND and RECEIVE, send and receive the messages in TCP protokolls as reference data without any additional Header. With the type single order, the message data exchange should consist of defined, fixed message lengths! This means that the Default Parameter "-1" cannot be used in the length data in the FB RECEIVE! TRADA without Response The reference data is preceded by a Header in the order type SEND (Header set-up see Chap. 4.3.5.2).
Application in combination with TCP/IP CP143 H1 / TCP/IP manual DNS Domain Name System: makes a relation between the symbolic names and IP-Adress. The communication is made operator friendly by this. A DNS-Server comes into use over which the communication abaut a domain is carried out. The DNS-Server manages the symbollic names and with the help of the "Host-Name-Table" it makes a relation between the symbolic names an IP-Adress during the communication.
CP143 H1 / TCP/IP manual Software Port address for local and for external stations The port address determines the address of the connection that is used for the transfer of data. The port address for the local station may be compared to the local (own) TSAP on the H1-level. A port address consists of a decimal number (16-bit-address) of 5-digits. Both, TCP as well as UDP use port addresses for data transfers to the respective application level.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual 5.11.2.2 UDP-Connection The UDP protocol is a communication control service that does not require a connection and that is not always reliable. This protocol may be used to transfer data with one or more processors without first establishing a virtual connection. Individual datagrams are transferred to an external node but the reception of transmissions is not acknowledged. (UDP may be used to transfer information that changes continuously.
CP143 H1 / TCP/IP manual Software Job number (ANR) A job number must be allocated to each connection that should be used by Siemens handler modules. This number is used to access the connection from the PLC program. The job number together with the frame offset number determines the connection. This precludes multiple assignments. The job number and the respective frame offset number must be supplied in the control program.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual Port address for local and for external stations The port address determines the address of the connection that is used for the transfer of data. The port address for the local station may be compared to the local (own) TSAP on the H1-level. The port address of the local station consists of a decimal number (16-bit-address) of 5-digits. Both, TCP as well as UDP use port addresses for data transfers to the respective application level.
CP143 H1 / TCP/IP manual Software 5.11.3 Test functions The menu item Test provides access to test and diagnostic functions for your TCP or UDP connections. When you select TCP or UDP the following dialog window appears. This contains the overall status for all TCP or UDP connections of the respective module: Fig.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual 5.11.4 OnNet-Kernel for TCP/IP of ftp 5.11.4.1 General When NCS is to be used in conjunction with TCP/IP it is necessary to install a TCP/IP-Kernel. The kernel provides the basic functions of an operating system. The kernel has network functions as well as certain tools required for network operations. A kernel is available from ftp. The OnNet-Kernel also provides the TCP/IP-Kernel that supports the TCP/IP-Stack.
CP143 H1 / TCP/IP manual Software 5.11.4.4 Data required for the installation The required data is usually available from your system administrator. General Data Serial Number Authentication Key Data for the network adapter for Windows 3.x Name of Network Card Interrupt (IRQ) Base I/O Port (hex.) Base Memory Address (hex.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual 5.11.4.5 OnNet kernel installation The data you have noted down above will be required during the installation. You may obtain more information on the required items by clicking on . The installation program will only request the data required by your system. 1. Insert installation diskette (Disk 1) into drive A:. Start the Setup-program Win 3.x: In Windows go to Run from the pull-down menu File.
CP143 H1 / TCP/IP manual Software 5.11.5 Microsoft kernel for TCP/IP under WINDOWS 95/NT 5.11.5.1 General When NCS is to be used in conjunction with TCP/IP under Windows 95 or Windows NT it is necessary to install the TCP/IP-Kernel supplied by Microsoft. These paragraphs describe the installation of the Microsoft kernel for Windows 95 or Windows NT V4.0. 5.11.5.2 Installation From the START menu click on Settings and Control panel. Double-click on "Network" in the control panel window.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual 5.11.6 Test program for TCP/IP-Connections The name of the test program is TCPEVAL.EXE. This program is only compatible with Windows 95. You may use so-called PING-applications for tests under Windows 3.x. These applications can be used to send a PING to a host computer and this will answer if the installation is OK. Start the test program for Win 95: Insert the supplied diskette (SSN-SW893, Disk 1) into drive A:.
CP143 H1 / TCP/IP manual Software Every one of the above pages has an additional menu. This is accessible by means of the right mouse button. The additional menu contains the following options: Menu provided by the right mouse key Save All save all parameters. Save Conn 1 to Save Conn5 save the respective connection. Save Win Pos save the current window position. Show Hints displays a help summary for any input field or button. 5.11.6.1 Connect-tab Fig.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual 5.11.6.2 ReadA-tab Connection data Source data hexadecimal representation of received data ASCII-representation of received data Information on the connection status and error messages Fig. 5-33: Test program "Read A" This window may be used to configure an active read connection. You must specify the data required for establishing the connection and the source from where the data should be read.
CP143 H1 / TCP/IP manual Software 5.11.6.3 WriteA-tab Connection data Target data ASCII-text that must be transferred to the CP. Result code of the write job Information on the connection status and error messages Fig. 5-34: Test program "WriteA" tab This is where you activate an active write connection In the same manner as specified for the READ AKTIV-command you must enter the data required to establish the connection as well as the target module for the data.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual 5.11.6.4 Receive-Register Connection data List containing received Information on the connection status and error messages Fig. 5-35: Test program "Receive" In this dialogue window you can configure the reception of messages from a specific host processor. Input fields Remote Host Remote Port Local Port Control box UDP AutoListen IP-Address of the station to which the data must be written. Connection address of the external station.
CP143 H1 / TCP/IP manual Software 5.11.6.5 Send-tab Connection data List containing received Information on the connection status and error messages Fig. 5-36: Test program "Send" You may use this window to send a message to a specific host processor. Input fields Remote Host Remote Port Local Port Time (10mSec) Control box UDP Buttons Connect Send this Rev. 00/07 IP-Address of the station to which the data must be written. Connection address of the external station.
Application in combination with TCP/IP CP143 H1 / TCP/IP manual 5.11.6.6 System-tab Host-CP contol panel: ...Status check ...in Stop ...in Run Connection data Status display requested with GetState Information on the connection status and error messages Fig. 5-37: Test program "System" This window returns information about the selected host-CP. Input fields Remote Host Remote Port Local Port Buttons Connect GetState IP-Address of the station to which the data must be written.
CP143 H1 / TCP/IP manual Software 5.11.7 Accessing the PLC from the PC The following flowcharts are intended as a guideline for programming WRITE and FETCH jobs. Entries in [] refer to function calls to the TCP/IP stack provided by FTP.
Application in combination with TCP/IP 5-78 CP143 H1 / TCP/IP manual Rev.
6 Commissioning 6.1 Plug-in slots in the PLC 6-1 6.1.1 Plug-in slots in the AG-115U 6-1 6.1.2 Plug-in slots in the AG-135U 6-2 6.1.3 Plug-in slots in the AG-150U 6-3 6.1.4 Plug-in slots in the AG-155U 6-4 6.1.5 Plug-in slots in the EG-185U 6-5 6.1.6 Plug-in slots in the AG-188U 6-6 6.2 Start-up properties 6-7 6.2.1 Status after the CP has started 6-7 6.2.2 Status indicators 6-8 6.3 PLC programming 6.3.1 General 6.3.2 Programming 6.4 Example 6-9 6-9 6-10 6-11 6.4.
LerrzLerrzeicheneichen
CP143 H1 / TCP/IP manual Commissioning 6 Commissioning 6.1 Plug-in slots in the PLC No configuration settings are required before the module is installed. The following diagrams indicate possible slots (indicated by means of the grey squares) where the CP143 H1 / TCP/IP may be installed into the different PLC frames. 6.1.1 Plug-in slots in the AG-115U Fig. 6-1: Plug-in slots in the AG-115U The grey squares indicate the locations where the CP143 H1 / TCP/IP adapter may be installed.
CP143 H1 / TCP/IP manual Plug-in slots in the PLC 6.1.2 Plug-in slots in the AG-135U Fig. 6-2: Plug-in slots in the AG-135U The grey squares indicate the locations where the CP143 H1 / TCP/IP adapter may be installed. 6-2 Rev.
CP143 H1 / TCP/IP manual Commissioning 6.1.3 Plug-in slots in the AG-150U Fig. 6-3: Plug-in slots in the AG-150U The grey squares indicate the locations where the CP143 H1 / TCP/IP adapter may be installed. Rev.
CP143 H1 / TCP/IP manual Plug-in slots in the PLC 6.1.4 Plug-in slots in the AG-155U Fig. 6-4: Plug-in slots in the AG-155U The grey squares indicate the locations where the CP143 H1 / TCP/IP adapter may be installed. 6-4 Rev.
CP143 H1 / TCP/IP manual Commissioning 6.1.5 Plug-in slots in the EG-185U Fig. 6-5: Plug-in slots in the EG-185U The grey squares indicate the locations where the CP143 H1 / TCP/IP adapter may be installed. Q 304/314 interface Rev.
CP143 H1 / TCP/IP manual Plug-in slots in the PLC 6.1.6 Plug-in slots in the AG-188U Fig. 6-6: Plug-in slots in the AG-188U The grey squares indicate the locations where the CP143 H1 / TCP/IP adapter may be installed. 6-6 Rev.
CP143 H1 / TCP/IP manual Commissioning 6.2 Start-up properties When power is turned on the CP143 H1 / TCP/IP executes the BIOS routines (hardware initialization, memory test, initialization of drivers). Once the CP-job is started the CPs program control is initiated. The frames of the DPR are only controlled from this point onwards, i.e. after the CP-job has booted up (app. 10 seconds after power on). At this time the unit waits for the synchronization from the PLC.
CP143 H1 / TCP/IP manual Start-up properties 6.2.2 Status indicators CP status Start-up phase Lack of resources IDLE (not synchronous) RUN STOP Indication RUN LED off STOP LED on COM LED off COM LED blinking RUN/STOP LED indicates the CPs -status. RUN LED on STOP LED on COM LED off RUN LED on STOP LED off COM LED off RUN LED off STOP LED on COM LED off Activity Hardware test Check the parameter file, start the job, initialize the interrupt handler, etc. Waiting for synchronization request from PLC.
CP143 H1 / TCP/IP manual Commissioning 6.3 PLC programming 6.3.1 General To execute H1 jobs or TCP/IP jobs you require the standard handler modules supplied by Siemens. The description and documentation of these standard handler modules is also available from Siemens. The following table lists the handler modules required for the PLC. Handler module SYNCHRON Description The SYNCHRON module synchronizes the PLC and the CP during the start-up phase.
CP143 H1 / TCP/IP manual PLC programming 6.3.2 Programming With the exception of FB125, which must be replaced by FB249 for the CPUs of type 115, the FB22 frame applies to all types of PLC. OB22 BIB ; 00000 00002 #18075 Restart after power on : :SPA FB 22 NAME #POWERON 00009 :BE Delay time and synchron. FB22 0000E 00010 00014 00016 00018 0001A 0001C 0001E 00020 00022 0002C 0002E 00030 00032 00034 00036 00038 0003C 0003E BSTNAME #POWERON BIB #2085 : :L KT 20.2 :U M 0.0 :UN M 0.0 :SV T 43 :O M 0.
CP143 H1 / TCP/IP manual Commissioning 6.4 Example 6.4.1 Overview and conditions This chapter is intended to introduce the first-time user of the CP143 H1 / TCP/IP to the H1 LAN and TCP/IP for the PLC. The emphasis will be on the use of the configuration software for the CP143 H1 / TCP/IP. The chapter describes simple communication system that allows control of the communication processes. You need to have some knowledge of the CP handler modules. These CP handlers are standard function modules.
CP143 H1 / TCP/IP manual Example 6.4.2 Problem This introductory example for the use of the H1 and the TCP/IP protocols is based upon the communication problem described below. Fig. 6-7 and Fig. 6-8 show the required system as well as the components mentioned in chapter 6.4.1. The structure of the system depends on the respective protocol. 6.4.2.1 System structure required for the H1 protocol Fig. 6-7: System structure for the introductory example using H1 6.4.2.
CP143 H1 / TCP/IP manual Commissioning 6.4.2.3 Jobs to be performed by the PLCs Jobs for PLC 1 • Every 100ms the data words DW0 to DW99 are transferred via the data module DB11. • The data word DW0 of DB11 is used as a message counter. It is incremented only when the previous send job has been completed correctly (complete without errors). The remaining data words (DW1 to DW99) may be used to transfer user data. • SEND is configured by the job number A-NR = 11 and the base-frame number SSNR = 0 .
CP143 H1 / TCP/IP manual Example 6.4.3 Programs for the PLCs The programming of the PLCs does not depend on the protocol and may be used for H1 and TCP/IP. The following sample programs are provided for PLCs of the type AG135U and AG155U. These programs may also be used on PLCs of the type 115U and 150U after the respective handler modules have been changed. 6.4.3.
CP143 H1 / TCP/IP manual Commissioning Function module: FB22 0000E 00010 00014 00016 00018 0001A 0001C 0001E 00020 00022 0002C 0002E 00030 00032 00034 00036 00038 0003C 0003E BSTNAME #POWERON BIB #2085 : :L KT 20.2 :U M 0.0 :UN M 0.0 :SV T 43 :O M 0.0 :ON M 0.0 :SV T 43 : SYN :SPA FB 125 NAME #SYNCHRON SSNR =KY 0,0 BLGR =KY 0,6 PAFE =MB 199 : :UN M 199.0 :BEB : :U T 43 :SPB =SYN :L KH 2222 :STP :BE max. Delay time 20s VKE 0 for neg.
CP143 H1 / TCP/IP manual Example 6.4.3.2 Cycle, function and data module for PLC1 The transmission from PLC1 is initiated by means of the handler module SEND. This call is issued in function module FB1. FB1 is accessed by the first command, a jump, in the cycle organization module OB1. The send-job is configured as follows. Cycle operation module: OB1 Network 1 ; 00001 NAME TIME 00002 00004 00006 NAME SSNR A-NR ANZW PAFE 00012 00014 NAME SSNR A-NR ANZW PAFE 00020 00030 6-16 Cycle :SPA FB 1 #FB1 =KT 10.
CP143 H1 / TCP/IP manual Commissioning Function module: FB1 00010 00014 00020 00022 00024 00026 00028 0002A 0002C 0002E 00030 00032 00034 00036 00038 0003A 0003C 0003E 00040 00042 00044 00046 00048 0004A 0004C 0004E 00062 00064 BSTNAME #FB1 BIB #19075 BEZ #TIME D:KT : :SPA FB 123 NAME #CONTROL SSNR =KY 0,0 A-NR =KY 0,11 ANZW =MW 0 PAFE =MB 189 : :O M 1.1 :O T 11 :BEB : :LW =TIME :U M 0.0 :UN M 0.0 :SV T 11 :O M 0.0 :ON M 0.0 :SV T 11 : :U M 1.
CP143 H1 / TCP/IP manual Example Data module: DB11 MODULE#DB11 BIB 00000: 00001: 100 00001: 00002: #9095 KH = 0000 ( KH = 1111 ) 1st Data message counter 100 other data words When FB1 is called, the value for the timer determines how often the SEND job is triggered. In this example the timer has been set to 100ms. The sample program will thus trigger the SEND job every 100ms. Data word DW0 of the data module DB11 is incremented before a SEND call transmitting a proper message is executed.
CP143 H1 / TCP/IP manual Commissioning 6.4.3.3 Cycle, function and data module for PLC2 The data that was transmitted by PLC1 is received in PLC2 by means of handler module RECEIVE. The respective job is initiated in organization module OB1. Cycle operation module: OB1 Network 1 ; 00001 NAME 00002 00004 00006 NAME SSNR A-NR ANZW PAFE 00012 00014 NAME SSNR A-NR ANZW PAFE 00020 00030 Rev. 00/07 Cycle :SPA FB 2 #FB2 :O M 0.0 :ON M 0.
CP143 H1 / TCP/IP manual Example Function module: FB2 0000C 0000E 0001A 0001C 0001E 00020 00028 0002A 0002C 0002E 00030 00032 00034 00048 0004A BSTNAME #FB2 BIB #19075 : :SPA FB 123 NAME #CONTROL SSNR =KY 0,0 A-NR =KY 0,12 ANZW =MW 4 PAFE =MB 199 : :UN M 5.0 :BEB : :L MW 12 :L KB 1 :+F :T MW 12 : REC : :SPA FB 121 NAME #RECEIVE SSNR =KY 0,0 A-NR =KY 0,12 ANZW =MW 4 ZTYP =KC DB DBNR =KY 0,12 ZANF =KF +0 ZLAE =KF +100 PAFE =MB 199 : :BE Control module Interface No. 0 Job No.
CP143 H1 / TCP/IP manual Commissioning 6.4.4 Module configuration under H1 The configuration for station 1 and 2 differs only in the respective parameters. The method is the same. The following steps show how both stations must be configured. The parameters for each station must be set individually. To configure the two stations you must please perform the following steps: • Construct a network as per Fig. 6-7. • If you have not yet installed the configuration software, do so now.
CP143 H1 / TCP/IP manual Example Station 1 Fig. 6-10: CP initialization station 1 for H1 Station 2 Fig. 6-11: CP initialization station 2 for H1 6-22 Rev.
CP143 H1 / TCP/IP manual Commissioning Re: 2. Check transport parameters Normally, transport parameters do not require changing. The dialogue window is displayed so that the H1 transport parameters may be checked.. Please note, that the transport parameters for all stations are the same. Fig. 6-12: Transport-parameter of station 1 and station 2 Re: 3. Configure the connection Station 1 This example is concerned with H1 connections.
CP143 H1 / TCP/IP manual Example Station 2 Enter the following values for station 2: • Connection name: RECEIVE from Station 1 • Job number: 12 • Priority: 2 • Type of job: RECEIVE • TSAP local station (ASCII): receive • TSAP remote station (ASCII): send • Adr. remote st.: enter the ethernet address of station 1. Fig. 6-14: H1 transport parameter station 2 Click on [OK] when you have completed the entries. You will be asked whether the connection should be accepted.
CP143 H1 / TCP/IP manual Commissioning Re: 5. Transfer base data to the CP You can select one of two methods to transfer the base data into the CP: you may write the data to an EPROM or you may transfer the data via the serial interface to the respective CP. Here we will transfer the data directly via the serial interface. First you have to connect your PC with the CP 1. Load the data base CP1.NCS for station 1. Check the data by selecting the respective window from Init and connections.
CP143 H1 / TCP/IP manual Example 6.4.5 Module configuration under TCP/IP The configuration for station 1 and 2 differs only in the respective parameters. The method is the same. The following steps show how both stations must be configured. The parameters for each station must be set individually. To configure the two stations you must please perform the following steps: • Construct a network as per Fig. 6-8. • If you have not yet installed the configuration software, do so now.
CP143 H1 / TCP/IP manual Commissioning Station 1 Fig. 6-17: CP initialization station 1 for TCP Station 2 Fig. 6-18: CP initialization station 2 for TCP Rev.
CP143 H1 / TCP/IP manual Example Re: 2. Check transport parameters Normally, transport parameters do not require changing. The dialogue window is displayed so that the IP transport parameters may be checked.. Please note, that the transport parameters for all stations are the same. Fig. 6-19: Transport parameters of station 1 and station 2 Re: 3. Configure the connection Station 1 This example is concerned with the respective TCP connections.
CP143 H1 / TCP/IP manual Commissioning Station 2 Enter the following values for station 2: • Connection name: RECEIVE from Station 1 • Job number: 12 • Priority: 2 • Type of job: RECEIVE • Port local station: 00200 • Port remote station: 00100 • IP-Adr. remote St.: Enter the IP address of Station 1. Fig. 6-21: TCP transport parameters station 2 Click on [OK] when you have completed the entries. You will be asked whether the connection should be accepted. Please confirm to enable the connection.
CP143 H1 / TCP/IP manual Example Re: 5. Transfer base data to the CP You can select one of two methods to transfer the base data into the CP: you may write the data to an EPROM or you may transfer the data via the LAN or the serial interface to the respective CP. Here we will transfer the data directly via the LAN. To do this, the TCP/IP-stack of ftp-Software must be up and running. Load the data base CP1.NCS for station 1.
CP143 H1 / TCP/IP manual Commissioning 6.4.6 Monitoring the transfer by means of the MC5 package Both, modules and PLCs must be programmed to allow monitoring of connect requests. It is assumed that all modules have been configured and that the PLCs have not been erased. The RUN/STOP switches of the PLCs must be in the STOP location. You must now load the PLCprograms described in chapter 6.4.3 into the two PLCs. Start the PLCs by switching the RUN/STOP switches to RUN.
CP143 H1 / TCP/IP manual Example • Press F1 (Start). The entered values are transferred and the following display will appear: MC5 198600 Bytes free Control Variables TEST - Control Variables Occupied: 35% Page: 1 Operand KOM KOM MW 0 DB 11 DW 0 DW 1 DW 2 DW 3 DW 99 F1 Format Value Send ANZW:MW0 Send area Send counter in DW0 KM 00000000 00000100 KH KH KH KH KH ¦ ¦ F2 ¦ ¦ F3 PC scanning Acc DB11 from DW0 A61E 1111 1111 1111 1111 ¦ ¦ F4 ¦ ¦ F5 Edit ¦ ¦ F6 ¦ ¦ F7 ¦ ¦ F8 Fig.
Appendix A Technical data ......................................................................................................... A-1 B Error messages from the NCS configuration program ....................................... B-1 C List of abbreviations............................................................................................... C-1 D List of figures .......................................................................................................... D-1 E List of tables...........
Lerrzeichen
CP143 H1 / TCP/IP manual Technical data Appendix A Technical data Operating voltage 5 V DC ± 5% Current consumption 1,5 A max. without transceiver Processor CPU 80486 SLC Clock speed 33 MHz RAM 1 MB Serial interface TTY Configuration memory 60 KB CMOS EPROM socket for EPROMs 376 (EPROM) Ethernet interface AUI (IEEE 802.
Technical data A-2 CP143 H1 / TCP/IP manual Rev.
CP143 H1 / TCP/IP manual Error messages from the NCS configuration program B Error messages from the NCS configuration program General errors: Nullpointer detected An internal error has occurred during the transfer of parameters. Please contact us with the respective details. Insufficient memory DOS main memory is full, remove all unneccessary programs from main memory. Message administration The message file could not be found. The file "ncs.txt" is not available.
Error messages from the NCS configuration program CP143 H1 / TCP/IP manual Connection configuration error: SSNR/ANR already assigned The entered combination of SSNR/ANR exists. Invalid task number (valid range 1..199) The task number (ANR) must be a number between 1-199 (please note any reserved ANRs). No task number was specified Every connection must be associated with a task number. The tile offset was omitted Each connection must have a tile offset.
CP143 H1 / TCP/IP manual Error messages from the NCS configuration program EPROM errors: EPROM function terminated EPROM programming was terminated by the user. EPROM programming error An error occurred while an eprom was being programmed. Please erase the EPROM or exchange it for a clean one, then repeat the operation. EPROM programmer faulty The controller on the ISA interface board is faulty. EPROM programmer does not exist The interface board is faulty or does not exist.
Error messages from the NCS configuration program CP143 H1 / TCP/IP manual Database file functions: Module handler syspar eror An error in the syspar area occurred when reading from or writing to the database file. This error can occur only when you load a file that is not a database file. It is also not possible to load database files that were created with version 1.00 of NCS. Module handler boot error An error occurred in the boot module when reading from or writing to the database file.
CP143 H1 / TCP/IP manual List of abbreviations C List of abbreviations ANR ANZW CP CSMA/CD FTP HTB IP NCS OSI PAFE QVZ RTK SSNR TCP TP UDP Rev.
List of abbreviations C-2 CP143 H1 / TCP/IP manual Rev.
CP143 H1 / TCP/IP manual List of figures D List of figures Fig. 1-1: Construction of the CP143 H1 or TCP/IP..........................................................................1-3 Fig. 2-1: Example for the cabling of the Industrial Ethernet H1 LAN .............................................2-2 Fig. 2-1: ISO-OSI level model ..........................................................................................................2-3 Fig. 3-1: Parts of an ethernet network..............................
List of figures CP143 H1 / TCP/IP manual Fig. 5-23: Interactive window H1 datagram-connections .............................................................. 5-49 Fig. 5-24: Test function under H1 .................................................................................................. 5-52 Fig. 5-25: CP base initialization (initial initialization)................................................................... 5-53 Fig. 5-26: IP Transport-parameters ...........................................
CP143 H1 / TCP/IP manual List of tables E List of tables Tab. 4-1: Pin configuration of the 15-pole AUI-/TP socket .............................................................4-6 Tab. 4-2: Pin configuration of the PG interface................................................................................4-7 Tab. 4-3: Configuration of the TP socket (RJ45)..............................................................................4-7 Tab. 4-4: block size..................................................
List of tables E-2 CP143 H1 / TCP/IP manual Rev.
CP143 H1 / TCP/IP manual Index F Index System properties ............................................... 4-12 1 12V supply................................................................ 4-4 A Abort Timeout ........................................................ 5-44 ANR........................................................................ 5-32 ANZW .................................................................... 4-22 Anzw Dump............................................................
Index CP143 H1 / TCP/IP manual Keep-Alive-Time .................................................... 5-55 physical level.............................................................2-4 Pin-configuration for sockets and plugs ....................4-6 Planning a network-layout.......................................3-18 PLC programming.....................................................6-9 PLC-header .............................................................4-20 Plug-in slots..............................
CP143 H1 / TCP/IP manual Index Transport parameters ......................................... 5-55 UDP-Connection................................................ 5-62 TCP/IP-protocols...................................................... 2-3 Technical data thick-ethernet.................................. 3-13 Technical data thin-ethernet...................................... 3-7 Test functions ......................................................... 5-33 Anzw Dump ........................................
Index F-4 CP143 H1 / TCP/IP manual Rev.