hit counter script
Siemens CP 243-1 Operating Instructions Manual
Siemens CP 243-1 Operating Instructions Manual

Siemens CP 243-1 Operating Instructions Manual

S7-200 industrial ethernet
Hide thumbs Also See for CP 243-1:
Table of Contents

Advertisement

CP 243-
1


SIMATIC NET
S7-200 - Industrial Ethernet
CP 243-1
Operating Instructions
03/2012
C79000-G8976-C244-02
___________________
Preface
___________________
Application and properties
Installation and
___________________
commissioning
___________________
Configuration
___________________
Programming
___________________
Diagnostics
___________________
Technical specifications
___________________
Certification
Access from and to the S7-
___________________
200
___________________
Timeouts
___________________
Sample program
___________________
Training, Service & Support
1
2
3
4
5
6
7
A
B
C
D

Advertisement

Table of Contents
loading

Summary of Contents for Siemens CP 243-1

  • Page 1 CP 243- Preface ___________________ Application and properties Installation and ___________________ commissioning SIMATIC NET ___________________ Configuration S7-200 - Industrial Ethernet ___________________ CP 243-1 Programming ___________________ Diagnostics Operating Instructions ___________________ Technical specifications ___________________ Certification Access from and to the S7- ___________________ ___________________...
  • Page 2 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 3: Preface

    This manual replaces the manual release 01/2010. Requirements To be able to understand how the CP 243-1 works, you should be familiar with this manual and the "SIMATIC S7-200 Automation System" system manual and have programming experience in STEP 7-Micro/WIN.
  • Page 4 S7-200 CPU, you may need to adjust the configuration for the sample program. Address label: MAC address The CP 243-1 ships with a fixed MAC address. You will find the MAC address beneath the top cover of the device. SIMATIC NET glossary Explanations of the specialist terms used in this documentation can be found in the SIMATIC NET glossary.
  • Page 5 Security messages NOTICE For its automation and drives product portfolio, Siemens provides IT security mechanisms to support secure operation of the plant/machine. Our products are continuously being further developed also taking into account the aspect of IT security. We therefore recommend that you regularly check for updates of our products and that you only use the latest versions.
  • Page 6 Preface CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 7: Table Of Contents

    Dimensions for installation in a switching panel ................48 Dimensions for installation on a DIN rail..................48 Installation in a panel ........................49 Installation on a standard DIN rail....................50 Replacing a module ........................51 Uninstalling the CP 243-1 ......................51 CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 8 3.4.9 Structure of the configuration file for the FTP client (.fdb file)............. 84 Configuration of a communications partner with STEP 7 ............88 Reaction of the CP 243-1 to configuration errors ............... 91 Programming ............................93 ETHx_CTRL ..........................94 ETHx_CFG ..........................96 ETHx_XFR ..........................
  • Page 9 Table of contents Access from and to the S7-200......................125 Access from S7-300/400 to S7-200 ...................125 Access by CP 243-1 to S7-200/300/400..................126 Timeouts..............................129 Sample program ............................ 131 Training, Service & Support ........................139 Index..............................141 CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 10 Table of contents CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 11: Application And Properties

    As a result, an S7-200 can be configured, programmed and diagnosed even at a distance using STEP 7 Micro/WIN 32 via Ethernet. Using a CP 243-1 also means that an S7-200 can communicate with another S7-200, an S7-300 or S7-400 controller via Ethernet.
  • Page 12 S7-200/300/400 in the appendix Access from and to the S7-200 (Page 125). NOTICE Only one CP 243-1 may be connected to an S7-200 CPU. If additional CP 243-1 communications processors are connected, the S7-200 system may not function correctly. CP 243-1...
  • Page 13: Overview Of The Functions

    – Sending a test e-mail via a ready-made HTML page – Storage of your own HTML pages and Java applets in the file system of the CP 243-1 – Availability of Java applets and beans for development of user-defined HTML pages...
  • Page 14 CP 243-1 starts up. If the watchdog monitoring is triggered, the CP 243-1 is automatically reset. This restarts the CP 243-1. During this time, the CP 243-1 reports a parity error to the S7-200 CPU. Handling such an error is described in the documentation of STEP 7 Micro/WIN 32.
  • Page 15: S7 Communication Via Industrial Ethernet

    ● The CP 243-1 has a valid IP address. This address may be permanently specified in the configuration or obtained from a BOOTP/DHCP server. At any one time, only one STEP 7 Micro/WIN 32 can communicate via a CP 243-1 with the S7-200 CPU. The Ethernet interface must be used when configuring the IT services.
  • Page 16: Communications Partners

    If you require communication with an OPC server, remember that the CP 243-1 does not support automatic querying of the objects on the S7-200 (for example DBxx etc.). A CP 243-1 can only communicate with an OPC server if this server supports the two S7 services READ and WRITE.
  • Page 17 Figure 1-1 Communications partners A CPU 22x with a CP 243-1 can communicate both with other S7-200, S7-300 and S7-400 systems and with an OPC server. A maximum of 8 connections are possible in addition to a STEP 7 Micro/WIN connection.
  • Page 18 CP 243-1 can be used both as client and as server. Communication between a CP 243-1 and an OPC server running on a PC/PG is based on the READ and WRITE S7 services. In this case, the CP 243-1 always functions as the server.
  • Page 19: It Communication

    When an S7-300 or S7-400 is acting as the server for a client running on an S7-200 system, the CP 243-1 expects that this server will always have a passive role. This means that, the S7-300 or S7-400 system is not allowed to send S7 requests to the S7-200 system.
  • Page 20: Types Of Communication

    2. Communication with an FTP client located on a remote system. 3. Communication with an FTP server. Such a server is typically located on a remote system. A link to the FTP server running on the CP 243-1 of the local S7-200 system is also possible.
  • Page 21 STEP 7 Micro/WIN 32. Note To allow e-mails to be sent by the CP 243-1, make sure that it can access a functioning e- mail server. One of the ways in which you can test whether or not a e-mail server is accessible is to use HTML page sendmail.htm, which ships with the CP 243-1 (see chapter HTTP server...
  • Page 22 Conversion procedures such as MIME or UUENCODE are not supported. It is also not possible to add attachments such as files to e-mails. The e-mail function of the CP 243-1 can always be enabled or disabled in the configuration. Communications partners In addition to conventional PCs, it is possible in principle to specify any terminal with e-mail capability as the e-mail recipient (for example cell phones or FAX machines).
  • Page 23: Ftp Server

    S7-200 CPU. Only one such value can be transferred per S7 cycle from the S7- 200 CPU to the CP 243-1. This means that the time needed to set up an e-mail depends on the amount of data to be inserted, the cycle time of the S7-200 CPU and the load on the S7 bus.
  • Page 24 FTP client. If the FTP server on the CP 243-1 is connected to an FTP client and a second FTP client wants to establish a connection to the FTP server, the server checks whether or not there was FTP-based communication between it and the first FTP client during the last 60 seconds.
  • Page 25: Ftp Client

    How it works The FTP client of the CP 243-1 can be used to transfer data from an S7-200 system to the file system of an FTP server, or the contents of a file can be copied to the DB of the local S7- 200 system.
  • Page 26 The FTP requests are configured with the Internet wizard of STEP 7 Micro/WIN 32. The configuration data entered here is stored permanently in the file system of the CP 243-1 in a file with the extension .fdb. The data is transferred from the system on which the configuration was created with STEP 7 Micro/WIN 32 to the CP 243-1 via FTP.
  • Page 27 CPU and its duration cannot be predicted. With FTP write requests, the CP 243-1 can read 246 bytes per cycle from the memory of the S7-200 CPU. On the other hand, with FTP read requests, the CP 243-1 can transfer up to 254 bytes per cycle to the memory of the S7-200 CPU.
  • Page 28: Http Server

    Application and properties 1.6 IT communication When a transfer between the FTP client of the CP 243-1 and an FTP server is interrupted, it is possible that only parts of the transferred data are stored on the destination system. In such cases, an error message is output in the S7-200 user program.
  • Page 29 Java applets. If the Java beans described in this document are used to access an S7-200 via a CP 243-1, symbolic addressing cannot be used. Using the HTML pages and Java applets supplied in...
  • Page 30 The following table lists the predefined HTML pages included in the file system of the CP 243-1 or that can be put together dynamically by the CP 243-1 as soon as a request is received from a Web browser. These HTML pages have been optimized for monitor settings: ●...
  • Page 31 S7-200 system. Predefined HTML pages Note Some of the HTML pages included with the CP 243-1 have linked Java applets. To ensure that these function correctly, the execution of Java applets must be enabled in the Web browser. Communications partners All HTTP clients (for example Web browsers) represent potential communications partners for the HTTP server.
  • Page 32: Configuration And Programming

    Storing the configuration data (Page 36). ● IT services The configuration of the IT services is stored in the file system of the CP 243-1 in the form of configuration files, one each for user administration, FTP client and e-mail service.
  • Page 33: File System

    We recommend that you store files in suitable subdirectories and not in the root directory. The CP 243-1 has no real-time clock for the date or time. For this reason, all files stored in the file system of the CP 243-1 have the date 01.01.1980 and the time 00:00.
  • Page 34: User Administration

    Application and properties 1.9 User administration The file system of the CP 243-1 uses an internal optimization routine to assign all available cells of the flash memory uniformly. When individual memory cells fail due to aging, these cells are detected and marked internally as unusable. Despite this, fast cyclic write or delete access to the file system of the CP 243-1 should be avoided.
  • Page 35 These access rights control authorization to access process data and the file system. The configuration of up to 8 users is stored on the file system of the CP 243-1 in a file with the extension .udb. To increase security, the passwords assigned during the configuration are stored in encrypted form in this file.
  • Page 36: Safety

    Part of the configuration of the CP 243-1 is stored retentively on the S7-200 CPU and part in the file system of the CP 243-1. The validity of the part of the configuration stored on the S7- 200 CPU is checked using by a CRC mechanism. In contrast, no CRC mechanism is used for the part of the configuration stored in the file system of the CP 243-1.
  • Page 37: Data Security

    STEP 7 Micro/WIN 32. Note Access by the server to the S7-200 CPU via the CP 243-1 is possible both in CPU RUN and STOP mode. In STOP mode, however, program variables or I/O values are not updated.
  • Page 38: Reliability Of Communication

    1.10.3 Reliability of communication The CP 243-1 is equipped with a "keepalive" mechanism. This means that the CP 243-1 can recognize the failure of a communications partner or the relevant connection automatically within a configurable period of time. The keepalive time specified when the CP 243-1 is configured is the time after which this internal mechanism is started and an attempt is made to reach the communications partner.
  • Page 39: Connectors

    Connectors Front view: Figure 1-3 Connectors The CP 243-1 has the following connectors: ● Terminal block for 24 V DC power and grounding connector ● 8-pin RJ-45 jack for Ethernet connector ● Male connector for S7 bus ● Integrated ribbon cable with connection socket for the S7 bus The connectors are located under the covers of the front doors.
  • Page 40: Codes: Front Leds

    System fault: Flashes (at an interval of approximately 1 second) if the configuration is incorrect or no BOOTP/DHCP server could be found. LINK Green, on continuously Connection via the RJ-45 interface: Ethernet connection is established CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 41 Function of the individual LEDs During the startup phase of the CP 243-1, the SF LED flashes twice. The LINK and the RX/TX LEDs then flash several times. As soon as the RUN LED is lit, the CP 243-1 startup has completed.
  • Page 42 Application and properties 1.12 Codes: Front LEDs CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 43: Installation And Commissioning

    General notices for use in hazardous areas WARNING Risk of explosion when connecting or disconnecting the device EXPLOSION HAZARD DO NOT CONNECT OR DISCONNECT EQUIPMENT WHEN A FLAMMABLE OR COMBUSTIBLE ATMOSPHERE IS PRESENT. CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 44 80 °C, special precautions must be taken. If the equipment is operated in an air ambient in excess of 50 °C, only use cables with admitted maximum operating temperature of at least 80 °C. CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 45: Installation And Electrical Connections

    Wiring WARNING If you attempt to install or remove the CP 243-1 or other devices while they are on, you may receive an electric shock or the devices may not work properly. If the power for the CP 243-1 and all connected devices is not switched off while the devices are being installed/removed, this may cause injury and/or property damage.
  • Page 46 ● The CP 243-1 is equipped with an integrated ribbon cable with a socket for fast connection to other S7-200 components. ● The slot in which a CP 243-1 can be operated depends on the firmware version of the S7-200 CPU being used.
  • Page 47 ● When the rack installed vertically, the maximum permissible ambient temperature drops by 10 °C. The CP 243-1 must be positioned above the CPU. If you are using a vertical standard DIN rail, you should use standard DIN rail stoppers to prevent the module from slipping.
  • Page 48: Dimensions For Installation In A Switching Panel

    Installation and commissioning 2.3 Dimensions for installation in a switching panel Dimensions for installation in a switching panel The CP 243-1 has holes that make it easier to install in a switching panel. 96 mm 88 mm CP 243-1 80 mm 63.2 mm...
  • Page 49: Installation In A Panel

    1. Bore holes for DIN M4 screws on the panel. Follow the instructions in section Dimensions for installation in a switching panel (Page 48). 2. Screw the CP 243-1 to the panel to the right of the CPU for horizontal installation and above the CPU for vertical installation. Use DIN M4 screws.
  • Page 50: Installation On A Standard Din Rail

    Installation on a standard DIN rail 1. Open the catch and hang the CP 243-1 on the DIN rail to the right of or above the CPU. 2. Close the catch to secure the CP 243-1 to the rail. Make sure that the catch snaps in correctly and that the device is firmly secured to the rail.
  • Page 51: Replacing A Module

    Uninstalling the CP 243-1 WARNING If you attempt to install or remove the CP 243-1 or other devices while they are on, you may receive an electric shock or the devices may not work properly. If the power for the CP 243-1 and all connected devices is not switched off while the devices are being installed/removed, this may cause injury and/or property damage.
  • Page 52 Installation and commissioning 2.8 Uninstalling the CP 243-1 CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 53: Configuration

    ● Configuration using STEP 7 Micro/WIN 32, version 3.2.3 or higher ● Configuration by an S7-200 user program The configuration data for the IT services is located in the file system of the CP 243-1. This is read during startup and then monitored continuously for changes. This means that every change to this data during ongoing operation is immediately adopted by CP 243-1.
  • Page 54: Value Ranges Of The Configuration Data

    Ethernet interface of the CP 243-1. The CP 243-1 must already have an IP address before the configuration data of the IT services can be downloaded to the CP 243-1. If you want an S7-200 system to communicate via a CP 243-1 with an S7-300, an S7-400 or an OPC-based system, use STEP 7 with at least version 5.1 and service pack 3 or higher (with NCM S7 for...
  • Page 55: Tsaps

    \n and \t, the text can also contain placeholders defining an embedded data value. When an e-mail is sent, the CP 243-1 reads the current value of such a placeholder from the local S7-200 CPU, formats it and inserts it in the message.
  • Page 56 (for example VD100, VW50 or MB20). The permitted data types are input, output, bit memory, special memory bits, variables and analog input. The CP 243-1 supports both the German designations of these data types (E, A, M, SM, V and AE) and the international notations (I, Q, M, SM, V and AI).
  • Page 57: Configuring A Cp 243-1 With Step 7

    Configuration 3.3 Configuring a CP 243-1 with STEP 7 Example Below, you will find several examples of how different formatting instructions affect the representation of a current value: Current value Formatting instruction Output (⃞ corresponds to a blank) 16#F4 in address VB0 %VB0:1.0I%...
  • Page 58: Basic Configuration

    Once you have installed and started STEP 7 Micro/WIN 32 on your PC, start the wizard for the CP 243-1. You will find this in the "Options" menu under "Internet Wizard..." or in the left window area of STEP 7 Micro/WIN 32 in the window with the navigation bar under "Options"...
  • Page 59 CP 243-1 can be accessed by the S7-200 CPU. This address depends on the position of the CP 243-1 in your S7-200 system and the number of outputs in your S7- 200 system. If you used the wizard to search for the position of the CP 243-1 in your S7-200 system at the beginning of the configuration, the wizard will set the address to be used here.
  • Page 60 The CP 243-1 can then only communicate with STEP 7 Micro/WIN 32 but not with other partners. We recommend that you always activate CRC. This is the only way in which the CP 243-1 can detect that the user program has made undesired changes to the configuration data.
  • Page 61: Configuration Of User Administration

    The next dialog can be used to enable various IT services of the CP 243-1 individually. Every IT service that will be used later with the CP 243-1 must be selected as enabled in this dialog. Any service not selected in this dialog will not be started when the CP 243-1 starts up and will remain unavailable.
  • Page 62: Configuration Of The E-Mail Functions

    The next dialog is used to configure the e-mails. In this dialog, enter the address to which the e-mail will be sent for every e-mail to be sent by the CP 243-1. You can also enter a second recipient to receive a a copy of the e-mail. Here, you also enter the subject.
  • Page 63 Configuration 3.3 Configuring a CP 243-1 with STEP 7 Authentication CPs that use ESMTP with authentication support the following authentication methods: ● PLAIN ● LOGIN ● CRAM−MD5 ● DIGEST−MD5 In terms of authentication for communication between the CP and mail server, the following situations are possible: ●...
  • Page 64: Configuring The Ftp Functions

    All the information entered in the FTP wizard is stored in the file system of the CP 243-1 in a file with the extension .fdb when you download to the S7-200 system. Using the FTP wizard, you can configure the FTP requests to be sent by your S7-200 user program via the FTP client on the CP 243-1.
  • Page 65: Completing Configuration

    (for example enabling or disabling individual IT services) made for an IT configuration. While it is starting up, the CP 243-1 reads this part of the configuration from the memory of the S7- 200 CPU and evaluates it (during ongoing operation, it monitors it continuously for changes)
  • Page 66: Occupied Special Memory (Sm Area)

    The CP 243-1 occupies 50 bytes in the special memory area of the S7-200 CPU. The address of these 50 bytes depends on the current position at which a CP 243-1 is located in an S7-200 system. These 50 bytes primarily contain general information and status information of the CP 243-1.
  • Page 67: Structure Of The Configuration Data Block (Cdb)

    Configuration 3.4 Other options when configuring a CP 243-1 Table 3- 1 Special memory area Position in the S7-200 system Occupied special memory area 200..249 250..299 300..349 350..399 400..449 450..499 500..549 3.4.2 Structure of the configuration data block (CDB) The CDB is created by the Internet wizard in STEP 7 Micro/WIN 32. The structure of the CDB is shown below in the following table.
  • Page 68 Configuration 3.4 Other options when configuring a CP 243-1 Byte offset in Description Data format Example variable memory 13-14 Common flag 2 bytes, hex 16#0004: Autonegotiation, Bit [0] duplex mode • use configured network – 0: half duplex parameters, –...
  • Page 69 Configuration 3.4 Other options when configuring a CP 243-1 Byte offset in Description Data format Example variable memory 16#82: Flag byte 1 byte, hex server, keepalive support, S7 Bit [0] server/client • connection 0 is used and – 0: server contains valid data.
  • Page 70 Configuration 3.4 Other options when configuring a CP 243-1 Byte offset in Description Data format Example variable memory 61-62 Local TSAP 2 bytes, hex 16#1300 63-64 Remote TSAP 2 bytes, hex See S7 connection 0 section. S7 connection 4 section (If some bytes of this section are unused, pad them with16#00)
  • Page 71 Configuration 3.4 Other options when configuring a CP 243-1 Byte offset in Description Data format Example variable memory STEP 7 Micro/Win server section Flag byte 1 byte, hex 16#82: server, keepalive support, Bit [0] server • STEP 7 Micro/WIN server –...
  • Page 72: Structure Of The Network Parameter Block (Npb)

    Up to 32 read/write requests can be configured for each of the 8 possible S7 channels. if the CP 243-1 is the server on a channel, there is no entry in the NDB structure for this channel.
  • Page 73 Configuration 3.4 Other options when configuring a CP 243-1 The structure of the NDB is shown in the following table. The identifiers for read/write requests are represented by the letters n, m, p = 0, ..., 31 and the channel identifiers by the letters r = 0, ...,7.
  • Page 74 Configuration 3.4 Other options when configuring a CP 243-1 Byte offset in variable Name Description Data format memory CRC section The last two bytes of the CRC for all NDB bytes 2 bytes, hex The last two bytes of the...
  • Page 75: Structure Of The Internet Data Block (Idb)

    Configuration 3.4 Other options when configuring a CP 243-1 3.4.5 Structure of the Internet data block (IDB) The IDB is created by the Internet wizard in STEP 7 Micro/WIN 32. The structure of the IDB is shown in the following table.
  • Page 76: Structure Of The Configuration File For User Administration (.Udb File)

    Configuration 3.4 Other options when configuring a CP 243-1 Byte offset in variable Description Data format Example memory 32 ASCII characters (bytes) "admin123" 25 -56 CP 243-1 admin. password The password is encrypted 16#31'1'Byte 0 and stored with a character...
  • Page 77 Only the administrator entered in the configuration of the CP 243-1 is permitted to transmit a .udb file via FTP to the file system of the CP 243-1. This means it is not possible to transfer the configuration file for the user administration to the file system of the CP 243-1 until an administrator is created.
  • Page 78 Configuration 3.4 Other options when configuring a CP 243-1 Table 3- 4 Structure of the parameter record of a user Parameter Description Example Access right The access rights are represented in 00|00010048|<username>| hexadecimal format. <password> Bit [0-1] not used Read and write access via HTTP •...
  • Page 79: Structure Of The Configuration File For The E-Mail Client (.Edb File)

    Configuration 3.4 Other options when configuring a CP 243-1 # End of File Notes: ● Comments are inserted in the file with the # character. ● A blank user entry is stored in the .udb file as follows: 0x|00000000||| (where x stands for the current user number) ●...
  • Page 80 Configuration 3.4 Other options when configuring a CP 243-1 Keyword in the .edb file Description Example SMTPSA2 IP address of the substitute e-mail SMTPSA2=192.168.162.97 server SMTPSP2 Port address of the substitute e-mail SMTPSP2=25 server E-mail 00 (identification of the 32 possible e-mails with 00, 01, 02...30, 31)
  • Page 81 Configuration 3.4 Other options when configuring a CP 243-1 02|TO| 02|CC| 02|SU| 02|TX| ..30|TO| 30|CC| 30|SU| 30|TX| 31|TO|Name.Name@provider.de 31|CC|Name.Name@provider.de 31|SU|temperature station 4 31|TX|temperature = %VD100:4.2F%°C # End of File Note • Comments are inserted in the file with the # character.
  • Page 82: Structure Of The Configuration File For The E-Mail Client (.Adb File)

    Configuration 3.4 Other options when configuring a CP 243-1 3.4.8 Structure of the configuration file for the e-mail client (.adb file) The structure of the .adb file is shown in the table below. Keyword in the .adb file Description Example...
  • Page 83 Configuration 3.4 Other options when configuring a CP 243-1 Keyword in the .adb file Description Example 31|SU| Subject 31|SU|temperature station 4 31|TX| Text 31|TX|temperature = %VD100:4.2F%°C End identifier Structure of the .adb configuration file for the e-mail client Example of an e-mail configuration file...
  • Page 84: Structure Of The Configuration File For The Ftp Client (.Fdb File)

    Configuration 3.4 Other options when configuring a CP 243-1 Note • Comments are inserted in the file with the # character. • Valid e-mails must have entries in the fields TO, SU and TX. • The last character of a line is \n.
  • Page 85 Configuration 3.4 Other options when configuring a CP 243-1 Keyword for the .fdb file Description Example FTP request 00 (identification of the 32 possible FTP requests with 00, 01, ...30, 31) Parameter record of FTP request 00 00|<action>|<number_of_bytes>|<DB_s tart_address>|<path/file_number>|<ser Action, number of bytes, DB start ver_address>|<user_name>|<password...
  • Page 86 Configuration 3.4 Other options when configuring a CP 243-1 Parameter Description Example Number of bytes Number of bytes (0 to max. of 10240 00|W|5354|<DB_start_address>|<path/ with CPU226XM) that can be written to _file name>|<server_address>| the DB or read from the DB.
  • Page 87 Configuration 3.4 Other options when configuring a CP 243-1 Parameter Description Example User name Valid user name on the addressed FTP 00|R|23|VB11|/flash:/dat/CPU10_VB11 server _23.dat| 192.168.162.65|FTP_server_4| <password> Written in plain text and consisting of 1 to 32 characters The file /flash:/dat/CPU10_VB11_23.dat is...
  • Page 88: Configuration Of A Communications Partner With Step 7

    With a READ action, <number_of_bytes> is usually between 0 and 10240 (maximum for CPU 226XM). If the value 0 is entered, the CP 243-1 does not check the actual file length. All data in the file is read and, starting with <DB_start_address>, copied to the DB of the S7-200 CPU if this does not exceed the memory size.
  • Page 89 S7-300 or S7-400 system for the connection is located in the same dialog under the entry "Local" in the "TSAP" box. Take the value shown there and enter it in the "TSAP" box under "Remote Properties" in STEP 7 Micro/WIN 32. CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 90 The specified communication access points (TSAPs) in STEP 7 and in STEP 7 Micro/WIN 32 must be compatible. No client services may be operated from partners on a client connection of the CP 243-1. A clear client-server relation must exist. Free connections A free connection can only be used when your S7-300 or S7-400 system is acting as server.
  • Page 91: Reaction Of The Cp 243-1 To Configuration Errors

    (IP address, subnet mask and IP address of the gateway) via a BOOTP/DHCP service. The CP 243-1 continues to attempt this for approximately 1 minute. When it fails to receive a reply from a BOOTP/DHCP service within this time or the reply is invalid or contains errors, the red LED ("SF") flashes for approximately 30 seconds.
  • Page 92 3.6 Reaction of the CP 243-1 to configuration errors Note If no valid CDB/NDB/IDB configuration exists but the CP 243-1 will start up with the aid of a BOOTP/DHCP server, the functions FTP server and client, e-mail client and HTTP server are not supported.
  • Page 93: Programming

    V3.2.3 or higher so that you can use the functions of the CP 243-1 in these programs. To be able to use the CP 243-1 as an S7, e-mail or FTP client, at least one of the communication channels of the CP 243-1 must be configured for this purpose. The user program of the S7-200 must have the relevant programming.
  • Page 94: Ethx_Ctrl

    CP 243-1. If the CRC check is enabled, calling the subroutine initiates a restart of the CP 243-1 if a change is detected in the configuration data by the CP 243-1. If, on the other hand, the CRC check is disabled, there is always a restart of the CP 243-1 after the download of the user program or a new configuration from STEP 7 Micro/WIN 32 to the S7-200-CPU and the restart on the S7-200 CPU.
  • Page 95 This means that a communication connection to the partner specified in the configuration could be established with the communication parameters specified there (IP address, TSAPs etc.) or a service was started on the CP 243-1. CP 243-1...
  • Page 96: Ethx_Cfg

    Calling the subroutine ETHx_CFG causes the CP 243-1 to read in the configuration data that is stored in the memory of the S7-200 CPU. The CP 243-1 then automatically performs a reset after the ETHx_CFG subroutine is called. The configuration read from the memory of the S7-200 CPU takes effect after the restart following the reset.
  • Page 97: Ethx_Xfr

    Calling the subroutine ETHx_XFR causes the CP 243-1 to transfer data to or request data from another S7 system. The type of data access that your CP 243-1 uses is specified in the configuration. This means that you have already specified the following during configuration: ●...
  • Page 98 Value range: 0 .. 31 Abort BOOL Input condition for aborting a data access 0: Do not abort data access 1: Abort data access Input parameters (ETHx_XFR) CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 99: Ethx_Email

    The ETHx_EMAIL subroutine is created by the Internet wizard in STEP 7 Micro/WIN 32 if you activated the e-mail service while configuring the CP 243-1. Only then can you send e- mails via the CP 243-1 from an S7-200 user program.
  • Page 100 Value range: 0 .. 31 Abort BOOL Input condition for aborting an e-mail request 0: Do not abort e-mail request 1: Abort e-mail request Input parameters (ETHx_EMAIL) CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 101: Ethx_Ftpc

    The ETHx_FTPC subroutine is created by the Internet wizard in STEP 7 Micro/WIN 32 if you activated the FTP client service in the configuration of the CP 243-1. Only then can you sent FTP client requests via a CP 243-1 from an S7-200 user program.
  • Page 102 Value range: 0 .. 31 Abort BOOL Input condition for aborting of an FTP client request 0: Do not abort FTP client request 1: Abort FTP client request Input parameters (ETHx_FTPC) CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 103 Error messages of the CP 243- 1 (Page 108)) Return parameters (ETHx_FTPC) NOTICE FTP client communication is subordinate to S7 communication. Reaction times depend on the configuration and cannot be predicted in general terms. CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 104 Programming 4.5 ETHx_FTPC CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 105: Diagnostics

    ● Ping server: Using the "ping" program that exists on all standard computers with a Windows operating system from Microsoft, you can check whether a CP 243-1 can be reached at all at a specified IP address. ● STEP 7 Micro/WIN 32: Under the entry "Information ..."...
  • Page 106 A pointer to the memory area in which the configuration data of the CP 243-1 is stored is located in bytes 46 to 49 of the SM area currently being used for the CP 243-1. If you increase this pointer by 108, you will find the NPB memory area in which the TCP/IP...
  • Page 107 ● LEDs (see chapter Codes: Front LEDs (Page 40)) ● Test e-mail: The CP 243-1 can send a test e-mail with an HTML page that is called from a Web browser. This mechanism makes it easy to check whether a desired e-mail server or e- mail receiver can be reached from the CP 243-1.
  • Page 108: Error Messages Of The Cp 243-1

    Using the FTP server, the contents of the file system can be changed. If there are effects that indicate errors in the file system while the CP 243-1 is running, the contents of the file system on the CP 243-1 should be checked from an FTP client. If necessary, bad files can sometimes be corrected in this way.
  • Page 109 If your CP 243-1 returns errors indicating a problem with the configuration, check whether your user program has overwritten the configuration. NOTICE During failure of the 24 V power supply, the CP 243-1 can no longer return errors. CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 110: Error Messages In Byte Format

    Diagnostics 5.2 Error messages of the CP 243-1 5.2.1 Error messages in byte format Error byte Description Reaction/remedy Transfer mechanism Byte offset in the Return value SM area (ETHx_) 16#01 Timeout on the S7 bus Automatic restart 25 - 32...
  • Page 111 Diagnostics 5.2 Error messages of the CP 243-1 Error byte Description Reaction/remedy Transfer mechanism Byte offset in the Return value SM area (ETHx_) The connection could not be Check connection path established or was aborted to the communications or an attempt was made to...
  • Page 112 Diagnostics 5.2 Error messages of the CP 243-1 Error byte Description Reaction/remedy Transfer mechanism Byte offset in the Return value SM area (ETHx_) 16#0E The data to be transferred Check configuration, _FTPC could not be read from the particularly the .fdb file...
  • Page 113 Diagnostics 5.2 Error messages of the CP 243-1 Error byte Description Reaction/remedy Transfer mechanism Byte offset in the Return value SM area (ETHx_) 16#1A A memory area was Check whether this file _FTPC exceeded while files were has sufficient memory...
  • Page 114: Error Messages In Word Format

    Diagnostics 5.2 Error messages of the CP 243-1 5.2.2 Error messages in word format Error word Description Reaction/remedy Transfer mechanism Byte offset in the Return value SM area (ETHx_) 16#0001 Timeout on the S7 bus Automatic restart 20, 21 _CTRL...
  • Page 115 Diagnostics 5.2 Error messages of the CP 243-1 Error word Description Reaction/remedy Transfer mechanism Byte offset in the Return value SM area (ETHx_) 16#003C The configuration has an Check the configuration 20, 21 _CTRL invalid gateway address 16#003D The configuration has an...
  • Page 116 Diagnostics 5.2 Error messages of the CP 243-1 Error word Description Reaction/remedy Transfer mechanism Byte offset in the Return value SM area (ETHx_) 16#00B7 The administrator password is Create configuration 20, 21 _CTRL too short. with STEP 7 Micro/WIN 16#00BB...
  • Page 117: Error Messages Of The Test Mechanism For E-Mails

    Diagnostics 5.2 Error messages of the CP 243-1 5.2.3 Error messages of the test mechanism for e-mails The error messages of the test routine for e-mails are shown in the Web browser as an error code with explanatory text in English. The errors that can occur here are listed in the table below.
  • Page 118 Diagnostics 5.2 Error messages of the CP 243-1 CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 119: Technical Specifications

    1.5 W Memory Size Flash memory size 8 MB as ROM for the firmware of the • CP 243-1 8 MB as ROM for the file system • SDRAM memory size 16 MB Working life Guaranteed life of flash memory for...
  • Page 120 Max. nesting depth of the directories: 49 • Server ports used HTTP: 80 • FTP command channel: 21 • FTP data channel for FTP server: 3100 - 3199 • S7 connection establishment: 102 • CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 121: Certification

    Certificates for shipbuilding and national approvals The device certificates for shipbuilding and special national approvals can be found on the Internet pages of Siemens Automation Customer Support under the following entry ID: 10805878 (http://support.automation.siemens.com/WW/view/en/10805878) Under this entry, go to the required product and select the following settings: "Entry list" tab >...
  • Page 122 D-90327 Nuernberg Germany You will find the EC Declaration of Conformity for this product on the Internet at the following address: 10805878 (http://support.automation.siemens.com/WW/view/en/10805878) → tab "Entry list" Filter settings: Entry type: "Certificates" Certificate Type: "Declaration of Conformity" Search items(s): <name of the module>...
  • Page 123 ● GL- Germanischer Lloyd ● LRS Lloyd’s Register of Shipping ● NKK - Nippon Kaiji Kyokai ● PRS - Polski Rejestr Statkóv, Certificate no.: TE/1896/883241/11 ● RINA - Registro Italiano Navale, Certificate No.: ELE45810CS001 CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 124 Certification CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 125: Access From And To The S7-200

    √ √ √ √ DWORD √ √ √ DINT √ REAL √ Memory areas INPUT √ √ √ OUTPUT √ √ √ BIT MEMORY √ √ √ DATA BLOCK VARIABLES * √ √ √ CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 126: Access By Cp 243-1 To S7-200/300/400

    SPECIAL MEMORY The access to VBxx should be formulated as DB1.DBBxx (standard STEP 7). Access by CP 243-1 to S7-200/300/400 CP 243-1 access as client to S7-200/300/400 supported by STEP 7 Micro/WIN 32 Wizard S7-300/400 S7-200 with CPU222, CPU224, CPU 226/XM CPU firmware version 1.21...
  • Page 127 Access from and to the S7-200 A.2 Access by CP 243-1 to S7-200/300/400 Supported access by CP 243-1 to S7-200/300/400 using JAVA Beans The JAVA Beans are a common package for SIMATIC S7-200/300/400 communications processors. S7-300/400 S7-200 with CPU222, CPU224, CPU 226/XM CPU firmware version 1.21...
  • Page 128 Access from and to the S7-200 A.2 Access by CP 243-1 to S7-200/300/400 S7-200 with CPU222, CPU224, CPU 226/XM Memory areas INPUT OUTPUT BIT MEMORY DATA BLOCK VARIABLES ANALOG INPUT * RO (WORD) RO (WORD) RO (WORD) SPECIAL MEMORY Read access possible only as WORD access.
  • Page 129: Timeouts

    FTP client FTP client wants to establish a connection Maximum wait time of the FTP server The FTP client not establish a data for the establishment of a data connection. connection Timeouts on Ethernet CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 130 Fixed set time in seconds Maximum time for one communication Request rejected, CP 243-1 restarts 10 (per cycle) cycle between the CP 243-1 and the S7-200 CPU via the S7 bus Note: Three cycle times are usually required per read/write request in the client use case, one cycle time is required in the server use case.
  • Page 131: Sample Program

    Sample program Below, you will find an example of how to handle the CP 243-1 as an S7 client. This example shows how to use the subroutines created by the Internet wizard integrated in STEP 7 Micro/WIN 32 at the end of configuration. The data block in which the configuration is stored by the Internet wizard is specified at the end of the program code.
  • Page 132 SBR1 This POU was generated by the ETH0_CTRL Ethernet wizard for use with CP 243-1 NETWORK 2 As soon as channel 0 is ready for the transfer and "ch0_ready" is set, the "start" variable is set. This may take several cycles.
  • Page 133 Done bit of the write request ch0_done_write MB14 Error memory bit of channel 0, "write" ch0_error_write request M8.0 Bit for channel 0 in the CH_READY ch0_ready return value of the ETH0_CTRL subroutine VB233 Connection0_0 M7.0 Transfer aborted Connection_abort CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 134 Sample program Symbol Address Comment SBR2 This POU was generated by the ETH0_XFR Ethernet wizard for use with CP 243-1 M4.0 Flip flop for automatic start of the data start transfer VB234 Write_1 NETWORK 5 The local S7-200 station now reads out data from VB500 of another S7-200 station and stores this starting at VB500 of the local S7-200 station.
  • Page 135 Sample program //------------------------------------------------------------------ // CP 243-1 Module Configuration block. Generated by the Internet // Wizard //------------------------------------------------------------------ VB0'CP243'// Module ID for CP 243-1 module at position 0 VW516#006C// Length of CDB VW716#0014// Length of NPB VB916#81// Configuration Data Version VB10 16#00// Project Configuration Version...
  • Page 136 VD93 16#00000000 VW97 16#0000 VW99 16#0000 //----------------------------- STEP 7-Micro/WIN reserved connection. VB10116#82 VD10216#00000000 VW10616#A9A8 //------------------------------------------------------------------ // Network Parameter Block Section // This section is used by the CP 243-1 Module //------------------------------------------------------------------ VW10816#0000 VD11016#00000000 VD11416#00000000 VD11816#00000000 VB12216#00 VB12316#00 VB12416#00 VB12516#00 VB12616#00...
  • Page 137 Sample program VW22516#0000 //FTP Client enable flag VW22716#0000 VW22916#0000//HTTP Server enable flag VW23116#9E28 //------------------------------------------------------------------ //Symbol Initializations //------------------------------------------------------------------ VB2330 VB2340 VB2351 //------------------------------------------------------------------ VB500'CP243'// Module ID for testing CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 138 Sample program CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 139: Training, Service & Support

    Expert advice on technical questions with a wide range of demand-optimized services for all our products and systems. Phone: +49 (0)911 895 7222 (https://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&ob jid=38718979&caller=view) You will find contact data on the Internet at the following address: (www.automation.siemens.com/partner) CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 140 Training, Service & Support SITRAIN - Siemens training for automation and industrial solutions With over 300 different courses, SITRAIN covers the entire Siemens product and system spectrum in the field of automation and drive technology. Advanced training tailored to your needs is also available.
  • Page 141: Index

    Hardware product version, 3 Java Beans, download, 28 MAC address, 4 Micro/WIN version 4, 32 Module replacement, 14 Performance data, 120 SIMATIC NET glossary, 4 SM area, 66 Special memory area, 66 STEP 7 Micro/WIN, version, 32 CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...
  • Page 142 Index CP 243-1 Operating Instructions, 03/2012, C79000-G8976-C244-02...

Table of Contents