You are on page 1of 12

APPLICATION

NOTES

Configuring Siemens CP-143


The Siemens CP 143 card is an Ethernet-based Manufacturing Message Services (MMS) compliant device which follows the ISO International Standard 9506. It allows Siemens SIMATIC PLCs to communicate with host computers and PLCs. The CP 143 card firmware implements the complete OSI 7 Layer protocol stack and is available for SIMATIC S5 processors such as the S5-115U, S5-135U, and S5-155U. The CP 143 is configured using the COM 143 software package that runs on SIMATIC S5 PG685, PG730, or PG750 programming units or on IBMcompatible PCs running CPM-86. All configuration data (object, domain, VMD descriptions) is stored in a plug-in RAM or EPROM memory sub-module on the CP 143. This document offers supplementary explanations which you may find useful including information about:

System Identification Definition Job Configuration VMD-Specific Named Variable Definition PLC Program Considerations

Configuring Siemens CP-143

Configuring Siemens CP-143

Scope of Information and Intended Audience


This document is intended for anyone who is responsible for configuring a Siemens CP 143 to work with VXL. Although this document does not purport to offer comprehensive information about the CP 143, the information contained in it may be useful to those who do not understand the German user interface and documentation available from Siemens. While this document includes information which the authors believe to be accurate at the time of publication, it should not be used as a substitute for Siemens documentation. Any conflict or question in the readers mind or any contradiction between this document and a Siemens document should be resolved by consulting Siemens publications and/or a Siemens technical representative. IMPORTANT! CSI cannot be held responsible for the accuracy of the information contained in this document nor for its application in any given situation including but not limited to circumstances described herein. Use this information at your own risk.

German/English Terms
Wherever possible, this document uses both the German and English term to describe a particular function. In all configuration screens, the COM 143 software provides a Save and Exit function key and a Quit, Goto Previous Menu function: German FERTIG ZURUECK English Save and Exit Quit, Goto Previous Menu Key usually F7 usually F8

Configuring Siemens CP-143

System Identification

System Identification
The first step in configuring the CP 143 card is to define the Ethernet address for this station. The COM 143 SYSID Screen (System Identification) allows the programmer to define the interface type and Ethernet address. The screen fields are described below: SYSTEM IDENTIFICATION German CP-TYP English CP Type Comments This field is the Communications Processor Type and should be set to CP143. Hardware version of the card. This field is optional. Optional password field. Optional date field. This field should be set to zero (0). This field should be set to RAM or EPROM depending on which module is installed in the CP 143.

VERSION

Version

PASSWORT DATUM BASIS-SSNR MODULART

Password Date Base job number Expansion module type

MODULLAENGE

Size of the installed expansion If a 32K RAM cartridge is installed, the module field should display 32K.

Configuring Siemens CP-143

Configuring Siemens CP-143


SYSTEM IDENTIFICATION German ETHERNETADRESSE English Ethernet address of the CP 143 Comments The last four characters are variable and are used to provide up to 65536 different addresses. The VXL Siemens Ethernet driver uses the Group Routing ID for the upper two characters and the CPU ID as the lower two characters. For example: 080006010360 (Hex) In this example the Group Routing ID equals 03, and the CPU ID equals 60 (or 96 decimal). If the CP 143 card has never been initialized, the COM 143 software displays the INIT option (function key 2). Otherwise, this key is not used. An example configuration screen is shown in Figure 1 on page 4.
SYSTEMIDENTIFIKATION FUER BAUGRUPPE: SIMATIC S5/COM143 ________________________________________________________________________________

CP-TYP PASSWORT

: CP143 : 0

VERSION: DATUM :

BASIS-SSNR: MODULART

: EPROM

MODULLAENGE: :080006010060 H

ETHERNETADRESSE

F1

F2 INIT

F3

F4

F5

F6

F7 FERTIG

F8 ZURUECK

Figure 1 System Identification Screen

Configuring Siemens CP-143

Job Configuration

Job Configuration
The CP 143 card can be configured to support multiple connections using several jobs (or verb in German). These are defined using the VERB screen from the COM 143 communications package. For a VXL system to communicate with a Siemens 143 Ethernet Card, a job must be defined to accept connections for the specific VAX Ethernet address and Transport Service Access Points (TSAPs). This job validates Transport information and MMS requests for the PLC. The job needs to define the following information: JOB CONFIGURATION German SSNR English Dual-port RAM interface number Comments All requests for this job will use this number to communicate with PLCs. This value is specific to the current PLC configuration. This value is also specific to the current PLC configuration. ANZW requires three words for the status, length, and error code that are updated when connections are made or concluded. This value is specific to the current PLC configuration. This is the length of the TSAP for this job. VXL requires that this value be set to 6. This is the name of this job for the Transport Layer. VXL requires that this value be set to SERVER. This name must be upper case and must be exactly six characters long.

ANR

Job number

ANZW

Address for status words relating to this job

LOKALER TSAP: LAENGE

Local TSAP length

LOKALER TSAP: ASC Local TSAP name

Configuring Siemens CP-143

Configuring Siemens CP-143


JOB CONFIGURATION German AUFBAUART English Connection type Comments This is the access mode for establishing connections to/from the CP 143. VXL requires that this value be set to P7. This indicates that the CP 143 will only accept connection requests and process responses up to Layer 7 (Application Layer). This must be set to a value of zero (0) if mux operation is not used. This value is specific to the current PLC configuration. This is a text field for describing the job. This field is optional and VXL does not use this information. This is the length of the TSAP for the remote system that will communicate with this job. VXL requires that this value be set to 6. This is the name of the remote job that will communicate with this job. VXL requires this value be set to CLIENT. This name must be upper case and must be exactly six characters long. This is the Ethernet address for the remote node that will connect to this job. VXL requires that this value be set with the address obtained from NCP. The following command returns the physical address for the VAX system that will make connection requests: NCP>SHOW EXEC STATUS

MUX-ADRESSE

Mux address

LOKALER AP-TITEL

Local AP-Title

FREMDER TSAP: LAENGE

Remote TSAP length

FREMDER TSAP: ASC Remote TSAP name

FREMDE ETHERNET ADRESSE

Remote address

Configuring Siemens CP-143

Job Configuration
An example configuration screen is shown in Figure 2 on page 7.
SIMATIC
S5/COM143 VERBINDUNG ________________________________________________________________________________ SSR: LAENGE: 0 6 ANR: 1 ANZW: MW 100<D> HEXA: 53 45 52 56 45 52<D> ASC: SERVER : P7 MUX-ADRESSE: 0

LOKALER TSAP:

AUFBAUART (A4/A7/D4/D7/P4/P7) LOKALER AP-TITEL FREMDER TSAP:

: VAX-TO-PLC-CONNECTION 6 HEXA: 43 4C 49 45 4E 54 : AA000400CD04 1 AKTUELLER AUFTRAG: 1 ASC: CLIENT

LAENGE:

FREMDE ETHERNET ADRESSE

ANZAHL STF-VERBINDUNGEN FUER AKT. TSAP:

F1 +1

F2 -1

F3 EINGABE

F4 DEF LOKAL

F5 DEF REMOTE

F6 LOESCHEN

F7 FERTIG

F8 ZURUECK

Figure 2 Job Configuration Screen

Configuring Siemens CP-143

Configuring Siemens CP-143

VMD-Specific Named Variable Definition


Each named variable will need the following information defined: NAMED VARIABLE DEFINITION German NAME English Name Comments This is the variable MMS object name that will be translated into a SIMATIC S5 address. This is the variable data type for the MMS object. Valid options are:

TYP

Type Data Type Signed Byte Unsigned Byte Signed Word Unsigned Word Signed Longword Unsigned Longword 32 bit Floating Point Bit String 16 Arrays of Signed Words

Variable Type IN 8 UN 8 IN 16 UN 16 IN 32 UN 32 FP 32 BS 16 AR [2 .. 256] IN 16 Arrays of Unsigned Words AR [2 .. 256] UN 16 Arrays of Signed Longwords AR [2 .. 128] IN 32 Arrays of Unsigned Longwords AR [2 .. 128] UN 32 Arrays of Floats AR [2 .. 128] FP 32 Arrays of Bit String 16 AR [2 .. 128] BS 16 NULL Terminated Strings VS [2 .. 40] ZGRF MMS object write-protect flag This enables write protection for an MMS object. This is the SIMATIC data block address that the MMS object name will map to.

S5S5 address ADRESSE

Configuring Siemens CP-143

VMD-Specific Named Variable Definition


NAMED VARIABLE DEFINITION German ANZW English Address for status words relating to requests for this object Number of the dual-port RAM interface Comments The ANZW requires four words for the status and error code that are updated when a read or write request for this object is made. The resulting S5 address will be sent to this number for data transfer.

SSNR

To illustrate, lets say that a block named EXT_BLOCK_1 in the Define Blocks Editor is defined as an array of 256 words. Here is the corresponding VMD definition: NAME EXT_BLOCK_1 TYP AR 256 IN 16 ZGRF S5-ADRESSE DB 10 100 ANZW MW 50 SSNR 0

An example Named Variable Definition Screen is shown in Figure 3 on page 9.


VMD DEFINITION SIMATIC S5/COM143 ________________________________________________________________________________ NAME PROCESS_VAR ARRAY_256W PROCESS_FLOAT PROCESS_BIT16 ARRAY_32UW TYP AR IN AR IN FP BS AR UN 2 16 256 16 32 16 32 16 ZGRF S5-ADRESSE DB 10 50 DB 10 0 DB 10 52 DB 100 0 DB 10 0 ANZW MW 80 MW 84 MW 88 MW 92 MW 96 SSNR 0 0 0 0 0

F1 SEITE +1

F2 SEITE -1

F3 ZEILE +1

F4 ZEILE -1

F5 F6 ZEILE ZEILE LOESCHEN EINFUEGEN

F7 WEITER

F8 ZURUECK

Figure 3 Named Variable Definition Screen

Configuring Siemens CP-143

Configuring Siemens CP-143

PLC Program Considerations


The COM 143 software provides the function blocks necessary for communicating with the CP 143. These should be loaded into the PLC program and may be different depending on the model of S5 PLC purchased. Some of the function blocks software may have to be purchased and loaded separately. In order to handle all requests for data transfer to and from the SIMATIC S5 PLC, there must be at least one send function block and one receive function block defined in the program loop. The RCVALL and SENDALL function blocks allow the processor to service CP 143 requests and should be called as often as possible to provide adequate service to the CP. Without these two function blocks, data cannot be sent or received.

10

Configuring Siemens CP-143

PLC Program Considerations

NOTES

Configuring Siemens CP-143

11

Configuring Siemens CP-143

Notice
All procedures, data, information, drawings, specifications or other material, whether accompanying this document or separately supplied in furtherance of this document, contain confidential and proprietary information which (i) is the property of Control Systems International, Inc. (CSI), (ii) is disclosed by CSI only in confidence, and (iii) except as CSI may otherwise permit in writing, is to be used, disclosed or copied only to the extent necessary for the evaluation and use thereof by the recipient. The foregoing shall not apply to any such material to the extent that the contents (i) are now or subsequently become available to the public without payment, (ii) were previously known to the recipient, or (iii) subsequently become otherwise known to the recipient without restriction. This document is based on information available at the time of its publication. While efforts have been made to be accurate, the information contained herein does not purport to cover all details or variations in hardware and software, nor to provide for every possible contingency in connection with installation, operation and maintenance. The information contained in this document is subject to change, without notice, at any time and should not be used as a specification for VXL nor for any particular VXL project. CSI makes no representation or warranty, either expressed or implied, with respect to, and assumes no responsibility for, the accuracy, completeness, or sufficiency of the information contained herein. No warranties of merchantability or fitness for a particular purpose shall apply. VXL, FUEL-FACS, UCOS and the CSI logo are registered marks of Control Systems International, Inc. Control Systems International and CSI are trademarks of Control Systems International, Inc. UCOS Patent Pending. All other product and company names/logos mentioned in this document are trademarks and/or registered trademarks of their respective holders. Copyright Control Systems International, Inc. 1996. All Rights Reserved. 4210 Shawnee Mission Parkway, Suite 200A, Fairway, Kansas 66205 Telephone: (913) 432-4442 Facsimile: (913) 432-0392 CSI Document No. 866010-08051996-HS/MJK-31A-1 for VXL Version 4.7

12

Configuring Siemens CP-143

You might also like