0% found this document useful (0 votes)
473 views250 pages

Simatic S7-400 Point-To-Point Connection CP 441 Installation and Parameter Assignment

Uploaded by

majdiimseitif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
473 views250 pages

Simatic S7-400 Point-To-Point Connection CP 441 Installation and Parameter Assignment

Uploaded by

majdiimseitif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 250

Preface

Product Description 1
Basic Principles of Serial
Data Transmission 2
SIMATIC
Commissioning the CP 441 3
S7-400
Point-to-point connection CP 441 4
Mounting the CP 441
Installation and Parameter
Assignment Configuring and Assigning
Parameters for the CP 441 5
Manual
Communication via System
Function Blocks 6
Start-up Characteristics and
Operating Mode Transitions 7
of the CP 441

Diagnostics Functions of the


CP 441 8
Programming Example for
System Function Blocks 9

Technical Specifications A

Cables B

SFB Parameters C
Accessories and Order
Numbers D

Literature on SIMATIC S7 E

10/2005
A5E00405449-01
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.

Danger
indicates that death or severe personal injury will result if proper precautions are not taken.

Warning
indicates that death or severe personal injury may result if proper precautions are not taken.

Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.

Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.

Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.

Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.

Prescribed Usage
Note the following:

Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.

Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.

Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.

Siemens AG Order No.: A5E00405449-01 Copyright © Siemens AG .


Automation and Drives Edition 10/2005 Technical data subject to change
Postfach 48 48
90437 NÜRNBERG
GERMANY
Preface

Purpose of This Manual


This manual explains how to establish and operate a point-to-point connection.

Contents of the Manual


The manual describes the hardware and software of the CP 441 communication processor
and its integration in an S7-400 automation system.
The following subjects are covered:
• The basics of point-to-point communication with the CP 441
• Commissioning the CP 441
• Mounting the CP 441
• Communication via the CP 441
• Troubleshooting
• Application examples
• Properties and technical specifications

Scope of the manual


The manual is relevant to the following CPs and interface submodules:

Product Order Number As of Release


CP 441-1 6ES7 441-1AA04-0AE0 01
CP 441-2 6ES7 441-2AA04-0AE0 01
RS 232C module 6ES7 963-1AA00-0AA0 01
20mA TTY module 6ES7 963-2AA00-0AA0 01
X27 (RS 422/485) module 6ES7 963-3AA00-0AA0 01

Note
The descriptions of the CP 441 communication processor and the interface submodules in
this manual were correct at the time of publication. We reserve the right to describe
modifications to the functionality of the modules in a separate Product Information.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 iii
Preface

Approvals
You will find detailed information about certificates, approvals and standards in the manual
S7-400 Programmable Controller; Module Specifications.

Structure of This Manual


To help you to quickly find the information you require, this manual offers the following:
• A heading indicating the contents of each section is provided in the left-hand column on
each page of each chapter.
• Following the appendices, a glossary defines important technical terms used in the
manual.
• Finally, a comprehensive index allows quick access to information on specific subjects.

Additional Assistance
Please contact your local Siemens representative if you have any queries about the products
described in this manual.
• Find your contact partner at:
http://www.siemens.com/automation/partner
• A signpost to the documentation of the various SIMATIC products and systems is
available at:
http://www.siemens.de/simatic-tech-doku-portal
• The online catalog and the online ordering system is available at:
http://mall.automation.siemens.com

Conventions
This manual uses the generic term CP 441. This information in the manual apples to the
CP 441-1 and CP 441-2 communication processors, unless otherwise specified.

Training Center
We offer courses to help you get started with the S7 automation system. Please contact your
local training center or the central training center in Nuremberg, D-90327 Germany.
Tel: +49 (911) 895-3200.
Internet: http://www.sitrain.com

Point-to-point connection CP 441 Installation and Parameter Assignment


iv Manual, 10/2005, A5E00405449-01
Preface

Technical Support
Here you can access Technical Support for all A&D products
• Use the Web form for the support request at:
http://www.siemens.de/automation/support-request
• Tel: + 49 180 5050 222
• Fax: + 49 180 5050 223
You will find further information about our technical support services under:
http://www.siemens.de/automation/service

Service & Support on the Internet


In addition to our documentation, we offer a comprehensive knowledge base online on the
Internet at:
http://www.siemens.com/automation/service&support

There you will find:


• The newsletter, which provides the latest information on your products.
• The documents you require, using our Service & Support search engine.
• A forum where users and specialists exchange information worldwide.
• Your local service partner for Automation & Drives in our contact database.
• Information about local service, repairs, and spare parts. And much more is available
under "Services".

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 v
Preface

Point-to-point connection CP 441 Installation and Parameter Assignment


vi Manual, 10/2005, A5E00405449-01
Table of contents
Preface ...................................................................................................................................................... iii
1 Product Description ................................................................................................................................ 1-1
1.1 Applications for the Communication Processor ......................................................................... 1-1
1.2 Transmission Procedure with a Point-to-Point Connection ....................................................... 1-3
1.3 Structure of the CP 441 ............................................................................................................. 1-5
1.4 Properties of the Serial Interface ............................................................................................... 1-7
1.4.1 Properties of the RS 232C Interface Submodule....................................................................... 1-7
1.4.2 Attributes of the 20mA TTY interface submodule ...................................................................... 1-8
1.4.3 Properties of the X27 (RS 422/485) Interface Submodule ........................................................ 1-9
1.5 Installation Guidelines.............................................................................................................. 1-10
2 Basic Principles of Serial Data Transmission.......................................................................................... 2-1
2.1 Serial Transmission of a Character ........................................................................................... 2-1
2.2 Transmission Procedure with a Point-to-Point Connection ....................................................... 2-5
2.3 Transmission integrity ................................................................................................................ 2-7
2.4 Data Transmission with the 3964(R) Procedure...................................................................... 2-10
2.4.1 Control characters.................................................................................................................... 2-11
2.4.2 Block Checksum ...................................................................................................................... 2-12
2.4.3 Sending Data with 3964(R)...................................................................................................... 2-13
2.4.4 Receiving Data with 3964(R) ................................................................................................... 2-17
2.4.5 Handling Erroneous Data......................................................................................................... 2-20
2.5 Data Transmission with the RK 512 Computer Connection .................................................... 2-23
2.5.1 Sending Data with RK 512....................................................................................................... 2-26
2.5.2 Fetching Data with RK 512 ...................................................................................................... 2-29
2.6 Data Transmission with the ASCII Driver ................................................................................ 2-35
2.6.1 Sending Data with the ASCII Driver......................................................................................... 2-36
2.6.2 Receiving Data with the ASCII Driver ...................................................................................... 2-38
2.6.3 RS 485 Mode ........................................................................................................................... 2-45
2.7 Data Transmission with the Printer Driver ............................................................................... 2-49
2.8 Parameter Assignment Data of the Protocols.......................................................................... 2-51
2.8.1 Parameter Assignment Data of the 3964(R) Procedure.......................................................... 2-51
2.8.2 Parameter Assignment Data of the RK 512 Computer Connection ........................................ 2-57
2.8.3 Parameter Assignment Data of the ASCII Driver..................................................................... 2-58
2.8.4 Parameter Assignment Data of the Printer Driver ................................................................... 2-65
2.8.4.1 Parameter assignment data..................................................................................................... 2-65
2.8.4.2 Conversion and Control Statements for Printer Output ........................................................... 2-75

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 vii
Table of contents

3 Commissioning the CP 441 .................................................................................................................... 3-1


4 Mounting the CP 441 .............................................................................................................................. 4-1
4.1 CP 441 slots............................................................................................................................... 4-1
4.2 Mounting and Dismounting the CP 441 ..................................................................................... 4-2
4.2.1 Installation steps ........................................................................................................................ 4-2
4.2.2 Removal steps ........................................................................................................................... 4-2
4.3 Installing and Removing the Interface Submodules of the CP 441 ........................................... 4-3
4.3.1 Mounting Sequence ................................................................................................................... 4-3
4.3.2 Dismounting Sequence .............................................................................................................. 4-3
5 Configuring and Assigning Parameters for the CP 441........................................................................... 5-1
5.1 Parameters for the Communications Protocols ......................................................................... 5-3
5.2 Connection Configuration........................................................................................................... 5-5
5.2.1 Simplified Connection Configuration.......................................................................................... 5-6
5.2.2 Complete Connection Configuration .......................................................................................... 5-7
5.2.3 Enter a connection in the connection table ................................................................................ 5-8
5.3 Procedure in the "Object Properties" Dialog .............................................................................. 5-9
5.3.1 "Object Properties" Dialog, Procedures for the ASCII Driver, Printer Driver and 3964(R)
Procedure................................................................................................................................... 5-9
5.3.2 Under the "Object Properties" dialog, the procedures for the RK 512 computer connection .. 5-12
5.4 Managing the Parameter Data ................................................................................................. 5-16
5.5 Multiprocessor communication................................................................................................. 5-17
5.6 Subsequent Loading of Drivers (Transmission Protocols)....................................................... 5-18
5.7 Firmware Updates.................................................................................................................... 5-20
5.7.1 Subsequent Loading of Firmware Updates.............................................................................. 5-20
5.7.2 Viewing the Firmware Version ................................................................................................. 5-22
6 Communication via System Function Blocks .......................................................................................... 6-1
6.1 Overview of the System Function Blocks................................................................................... 6-2
6.2 Using the System Function Blocks ............................................................................................ 6-3
6.3 Using the System Function Blocks with the 3964(R) Procedure ............................................... 6-8
6.3.1 Applications................................................................................................................................ 6-8
6.3.2 Data Transmission with 3964(R) Using BSEND and BRCV...................................................... 6-9
6.3.3 Data Transmission with 3964(R) Using BSEND and a Receive Mailbox ................................ 6-12
6.4 Using the System Function Blocks with the RK 512 Computer Connection............................ 6-14
6.4.1 Send data with a static destination definition with RK 512 ...................................................... 6-14
6.4.2 Sending Data with RK 512 to the Communication Partner CP 441 with Static Destination
Definition, Use of BSEND and BRCV ...................................................................................... 6-16
6.4.3 Sending Data with RK 512 to the Communication Partner CP 441 with Static Destination
Definition, Using BSEND.......................................................................................................... 6-19
6.4.4 Sending Data with RK 512 to the S5 Communication Partner or Third-party Device with Static
Destination Definition ............................................................................................................... 6-23
6.4.5 Sending Data to a Communication Partner with Dynamic Destination Definition with the RK 512
Computer Link.......................................................................................................................... 6-28
6.4.6 Fetching data from a communication partner with RK 512...................................................... 6-32
6.5 Using the System Function Blocks with the ASCII Driver........................................................ 6-35
6.5.1 Reading the RS 232C Secondary Signals ............................................................................... 6-36
6.5.2 Controlling the RS 232C Secondary Signals ........................................................................... 6-39

Point-to-point connection CP 441 Installation and Parameter Assignment


viii Manual, 10/2005, A5E00405449-01
Table of contents

6.6 Using the System Function Blocks with the Printer Driver ...................................................... 6-41
6.7 Summary.................................................................................................................................. 6-43
7 Start-up Characteristics and Operating Mode Transitions of the CP 441................................................ 7-1
7.1 Startup Characteristics of the CP 441 ....................................................................................... 7-1
7.2 Operating Mode Transitions of the CP 441 ............................................................................... 7-2
8 Diagnostics Functions of the CP 441 ...................................................................................................... 8-1
8.1 Diagnostics via the display elements of the CP 441.................................................................. 8-3
8.2 Diagnostics Messages of the System Function Blocks ............................................................. 8-4
8.3 Diagnostics via the Error Signaling Area SYSTAT .................................................................... 8-8
8.4 Error Numbers in the Response Message Frame ................................................................... 8-21
8.5 Diagnostics via the diagnostic buffer of the CP 441 ................................................................ 8-23
8.6 Diagnostic Interrupt.................................................................................................................. 8-25
9 Programming Example for System Function Blocks ............................................................................... 9-1
9.1 General Information ................................................................................................................... 9-1
9.2 Device Configuration.................................................................................................................. 9-2
9.3 Configuring the Controller Setup................................................................................................ 9-3
9.4 Parameterizing the CP 441........................................................................................................ 9-3
9.5 Configuring the Connection to the Communication Partner ...................................................... 9-4
9.6 Programming an RK 512 User Program.................................................................................... 9-5
9.6.1 Program CP441 RK 512 Send/Recv ......................................................................................... 9-5
9.6.2 Blocks Used in the Sample Program ......................................................................................... 9-7
9.7 Programming an ASCII/3964(R) User Program ........................................................................ 9-8
9.8 Programming a Printer User Program ....................................................................................... 9-8
9.8.1 Cyclic Program........................................................................................................................... 9-9
9.8.2 Blocks Used in the Sample Program ....................................................................................... 9-10
9.9 Installation, Error Messages .................................................................................................... 9-10
A Technical Specifications .........................................................................................................................A-1
A.1 Technical Specifications of the CP 441 and the Interface Submodules .................................... A-1
A.2 Transmission times of the protocols .......................................................................................... A-3
B Cables ....................................................................................................................................................B-1
B.1 Interface Submodule RS 232C .................................................................................................. B-1
B.2 20mA TTY interface submodule ................................................................................................ B-8
B.3 Interface Submodule X27 (RS 422/485).................................................................................. B-15
C SFB Parameters .....................................................................................................................................C-1
D Accessories and Order Numbers............................................................................................................D-1
E Literature on SIMATIC S7.......................................................................................................................E-1
Index................................................................................................................................................ Index-1

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 ix
Table of contents

Tables
Table 1-1 Transmission Protocols in the Module Firmware ....................................................................... 1-2
Table 1-2 Functions of the CP 441 Depending on the Interface Submodule Used ................................... 1-2
Table 1-3 Hardware Components for a Point-to-Point Connection with the CP 441 ................................. 1-3
Table 1-4 Software Components for a Point-to-Point Connection with the CP 441 .................................. 1-4
Table 2-1 Structure of Message Frame Header (RK 512) ....................................................................... 2-24
Table 2-2 3964(R) Protocol ...................................................................................................................... 2-52
Table 2-3 Protocol Parameters (3964(R) Procedure) .............................................................................. 2-53
Table 2-4 Baud Rate / Character Frame (3964(R) Procedure)................................................................ 2-54
Table 2-5 Receive buffer on CP (3964(R) procedure) ............................................................................. 2-55
Table 2-6 X27 (RS 422) Interface (3964(R) procedure)........................................................................... 2-55
Table 2-7 Protocol Parameters (ASCII Driver)......................................................................................... 2-59
Table 2-8 Baud Rate / Character Frame (ASCII Driver) .......................................................................... 2-60
Table 2-9 Data flow control (ASCII driver) ............................................................................................... 2-61
Table 2-10 Receive Buffer on CP (ASCII Driver) ....................................................................................... 2-62
Table 2-11 X27 (RS 422/485) interface submodule (ASCII driver)............................................................ 2-63
Table 2-12 Baud Rate/Character Frame (Printer Driver) ........................................................................... 2-66
Table 2-13 X27 (RS 422) interface submodule (printer) ............................................................................ 2-67
Table 2-14 Data flow control (printer driver)............................................................................................... 2-69
Table 2-15 Page layout (printer driver)....................................................................................................... 2-70
Table 2-16 Character Set (Printer Driver) .................................................................................................. 2-71
Table 2-17 Control Characters (Printer Driver) .......................................................................................... 2-71
Table 2-18 Message Texts (Printer Driver) ................................................................................................ 2-73
Table 2-19 Representation types in the conversion statement.................................................................. 2-77
Table 2-20 Example: The pressure in the chamber "is falling" .................................................................. 2-78
Table 2-21 Example: (Setting the page number to 10) .............................................................................. 2-79
Table 5-1 Configuration Options for the CP 441 ........................................................................................ 5-1
Table 5-2 Basic Parameter......................................................................................................................... 5-3
Table 5-3 Settings in the "Object Properties" dialog for the ASCII driver, printer driver and 3964(R)
procedure ................................................................................................................................. 5-10
Table 5-4 Settings in the "Object Properties" dialog for the RK 512........................................................ 5-13
Table 5-5 LEDs for firmware update ........................................................................................................ 5-21
Table 6-1 System function blocks of the S7-400 programmable controller ............................................... 6-2
Table 6-2 SFB Control Parameters ............................................................................................................ 6-3
Table 6-3 SFB Addressing Parameters...................................................................................................... 6-4
Table 6-4 SFB Status Parameters ............................................................................................................. 6-5
Table 6-5 If the communication load is increased please note the following: ............................................ 6-7
Table 6-6 Example of Calling SFB12 (BSEND) using 3964(R) ............................................................... 6-10

Point-to-point connection CP 441 Installation and Parameter Assignment


x Manual, 10/2005, A5E00405449-01
Table of contents

Table 6-7 Example of Calling SFB13 (BRCV) using 3964(R).................................................................. 6-11


Table 6-8 Request table for sending data with the 3964(R) using BSEND and BRCV ........................... 6-11
Table 6-9 Request Table for Sending Data with 3964(R) Using BSEND and a Receive Mailbox........... 6-13
Table 6-10 Example of Calling SFB12 (BSEND) using RK 512: ............................................................... 6-17
Table 6-11 Example of Calling SFB13 (BRCV) using RK 512:.................................................................. 6-17
Table 6-12 Request Table for Sending Data with RK 512 to the CP 441 Communication Partner,
Using BSEND and BRCV" ....................................................................................................... 6-18
Table 6-13 Specifications in Message Frame Header of RK 512 Protocol, "Sending Data
to Communication Partner CP 441 with RK 512, Using BSEND and BRCV" ......................... 6-18
Table 6-14 Example of Calling SFB12 (BSEND) using RK 512: ............................................................... 6-20
Table 6-15 Request table for "Sending data with RK 512 to the communication partner CP 441,
using BSEND".......................................................................................................................... 6-21
Table 6-16 Specifications in message frame header of RK 512 protocol, "Sending data
to communication partner CP 441 with RK 512, using BSEND" ............................................. 6-21
Table 6-17 Example of Calling SFB12 (BSEND) using RK 512: ............................................................... 6-24
Table 6-18 Request table for "Sending data to an S5 communication partner or third-party device
with RK 512, data destination DB"........................................................................................... 6-25
Table 6-19 Specifications in message frame header of RK 512 protocol, "Sending data to an
S5 communication partner or third-party device with RK 512, data destination DB"............... 6-26
Table 6-20 Request table for "Sending data to an S5 communication partner or third-party device
with RK 512, data destination DX"........................................................................................... 6-26
Table 6-21 Specifications in message frame header of RK 512 protocol, "Sending data to an S5
communication partner or third-party device with RK 512, data destination DX" .................... 6-27
Table 6-22 Example for calling SFB 15 (PUT):.......................................................................................... 6-30
Table 6-23 Request table for "Sending data with RK 512 to the communication partner CP 441,
using PUT" ............................................................................................................................... 6-30
Table 6-24 Specifications in Message Frame Header of RK 512 Protocol, "Sending Data
to Communication partner CP 441 with RK 512, Using PUT" ................................................. 6-31
Table 6-25 Example of Calling SFB14 (GET) ............................................................................................ 6-33
Table 6-26 Request table for "Fetching data with RK 512 from communication partner" ......................... 6-34
Table 6-27 Specifications in Message Frame Header of RK 512 Protocol, "Fetching Data from the
Communication Partner with RK 512" ..................................................................................... 6-34
Table 6-28 Function blocks / functions of the CP 441 ............................................................................... 6-35
Table 6-29 FB 5 V24_STAT Parameters ................................................................................................... 6-37
Table 6-30 Example of Calling the 5 V24_STAT FB.................................................................................. 6-38
Table 6-31 6 V24_SET FB Parameters...................................................................................................... 6-40
Table 6-32 Example of Calling the 6 V24_SET FB .................................................................................... 6-40
Table 6-33 Example of Calling the PRINT SFB in a FB............................................................................. 6-42
Table 6-34 The following applies for the 3964(R) procedure:.................................................................... 6-43
Table 6-35 The following applies when sending data via the RK 512 computer connection:.................... 6-43
Table 6-36 The following applies when fetching data via the RK 512 computer connection:.................... 6-44

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 xi
Table of contents

Table 6-37 The following applies to the output of message texts on a printer:.......................................... 6-44
Table 8-1 Error Messages of the CP 441 Display Elements...................................................................... 8-3
Table 8-2 Error Information for SFB 12 "BSEND"...................................................................................... 8-4
Table 8-3 Error Information for SFB 13 "BRCV" ........................................................................................ 8-5
Table 8-4 Error Information for SFB 14 "GET" ........................................................................................... 8-6
Table 8-5 Error Information for SFB 15 "PUT" ........................................................................................... 8-6
Table 8-6 Error Information for SFB 16 "PRINT" ....................................................................................... 8-7
Table 8-7 Error Information for SFB 22 "STATUS" .................................................................................... 8-7
Table 8-8 Example for calling SFB 22 (STATUS) ...................................................................................... 8-9
Table 8-9 Event classes and event numbers ........................................................................................... 8-10
Table 8-10 Error messages in the response message frame with RK 512................................................ 8-21
Table 9-1 Blocks Used in the Sample Program ......................................................................................... 9-7
Table 9-2 Blocks Used in the Sample Program for Printers..................................................................... 9-10
Table A-1 Technical Specifications of the CP 441 .....................................................................................A-1
Table A-2 Technical Specifications of the Interface Submodules ..............................................................A-2
Table A-3 Transmission Times for ASCII Drivers (in seconds) ..................................................................A-3
Table A-4 Transmission Times for the 3964(R) Procedure (in Seconds)...................................................A-4
Table A-5 Transmission Times for the RK 512 Computer Connection (in Seconds) .................................A-4
Table B-1 Pin assignment for the 9-pin subminiature D male connector of the RS 232C
interface submodule...................................................................................................................B-1
Table B-2 Pin Allocation for the 9-Pole Sub D Female Connector on the 20mA TTY
Interface Submodule ..................................................................................................................B-8
Table B-3 Pin assignment for the 15-pin subminiature D female connector of the X27
interface submodule.................................................................................................................B-15
Table C-1 SFB Parameters.........................................................................................................................C-1
Table C-2 SFB Parameters.........................................................................................................................C-1
Table D-1 The following is an overview of the accessories for the CP 441:...............................................D-1
Table E-1 Manuals for Configuring and Programming the S7–400............................................................E-1
Table E-2 Manuals for PROFIBUS-DP....................................................................................................... E-2

Point-to-point connection CP 441 Installation and Parameter Assignment


xii Manual, 10/2005, A5E00405449-01
Product Description 1
1.1 Applications for the Communication Processor

Introduction
The CP 441 communication processor allows you to exchange data between programmable
controllers or computers by means of a point-to-point connection.

Functionality of the CP 441


The CP 441 communication processor provides the following functionality:
• A choice of two models with either one (the CP 441-1) or two (CP 441-2) serial device
interfaces, which can be adjusted to suit the properties of the communication partners by
means of plug-in interface submodules. There are three interface submodules available:
– RS 232C interface submodule
– 20mA TTY interface module
– X27 (RS422/485) interface submodule
• Transmission speed:
– CP441-1 max. 38.4 Kbps
– CP441-2 max. 115.2 Kbps (total)
• Integration of the most important transmission protocols in the module firmware.
• Custom parameter assignment of the transmission protocols with the CP441:
Configuration Package for Point to Point Communication parameter assignment interface
• Subsequent loading of additional drivers (transmission protocols) to the CP 441-2 (as of
6ES7 441-2AA02-0AE0) with the CP 441: Configuration Package for Point to Point
Communication parameter assignment interface.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 1-1
Product Description
1.1 Applications for the Communication Processor

Integrated Transmission Protocols


The following transmission protocols are integrated in the module firmware of the CP 441:

Table 1-1 Transmission Protocols in the Module Firmware

Product Order Number Integrated drivers


CP 441-1 6ES7 441-1AA00-0AE0 3964(R) procedure
CP 441-2 6ES7 441-2AA00-0AE0 3964(R) procedure, RK 512 computer connection
CP 441-1 6ES7 441-1AA01-0AE0 3964(R) procedure, ASCII driver, printer driver
CP 441-2 6ES7 441-2AA01-0AE0 3964(R) procedure, ASCII driver, RK 512 computer
connection, printer driver
CP 441-1 6ES7 441-1AA02-0AE0 3964(R) procedure, ASCII driver, printer driver
6ES7 441-1AA03-0AE0
6ES7 441-1AA04-0AE0*
CP 441-2 6ES7 441-2AA02-0AE0 3964(R) procedure, ASCII driver, RK 512 computer
6ES7 441-2AA03-0AE0 connection, printer driver
6ES7 441-2AA04-0AE0*
* Modules described in this manual

Applications for the Communication Processor


The communication processor allows point-to-point communication with SIMATIC modules
and with third-party products.

Supported Interface Submodule Functions


Different driver functions can be used depending on the interface submodule used:

Table 1-2 Functions of the CP 441 Depending on the Interface Submodule Used

Function RS 232C 20mA TTY X27 (RS 422/485)


RS 422* RS 485*
3964(R) procedure Yes Yes Yes No
RK 512 computer connection Yes Yes Yes No
ASCII driver: Yes Yes Yes Yes
• Use of RS 232C secondary signals Yes No No No
• Controlling/reading of RS 232C secondary signals with Yes No No No
FBs
• RTS/CTS flow control Yes No No No
• XON/XOFF flow control Yes Yes Yes No
Printer driver: Yes Yes Yes Yes
• RTS/CTS flow control Yes No No No
• XON/XOFF flow control Yes Yes Yes No
* The RS 422 and RS 485 are distinguished by their parameter configuration.

Point-to-point connection CP 441 Installation and Parameter Assignment


1-2 Manual, 10/2005, A5E00405449-01
Product Description
1.2 Transmission Procedure with a Point-to-Point Connection

1.2 Transmission Procedure with a Point-to-Point Connection

Hardware Components
For a point-to-point connection using the CP 441, you require certain hardware components.

Table 1-3 Hardware Components for a Point-to-Point Connection with the CP 441

Components Function Diagram


Rack ... provides the mechanical and electrical
connections of the S7-400.

Power supply module (PS) ... converts the line voltage (120/230 V AC or
24 V DC) into the operating voltage of 24 V
and 5 V DC required to supply the S7-400.

Central processor unit (CPU) ... executes the user program; communicates
Accessories: via the MPI interface with other CPUs or with
a programming device.
• Memory card
• Backup battery

CP 441 communication processor ... communicates via the interface with one or
more communication partners.
... enable the CP 441 to be adapted to suit
Interface submodules the communication partner.

Standard cable ... connects the CP 441 communication


processor to the communication partner.

Programming device cable ... connects a CPU to a programming


device/PC.

Programming device (PG) or PC ... communicates with the CPU of the S7-400.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 1-3
Product Description
1.2 Transmission Procedure with a Point-to-Point Connection

Software Components
The following table lists the software components required for establishing a point-to-point
connection with the CP 441.

Table 1-4 Software Components for a Point-to-Point Connection with the CP 441

Components Function Diagram


STEP 7 software package ... configures, assigns parameters,
programs and tests the S7-400.
+ /LFHQFH

CP 441: Configuration Package for Point ... assigns parameters for the interfaces
to Point Communication parameter of the CP 441.
assignment interface
Function blocks ... for reading and controlling the
RS 232C secondary signals.
Programming example ... with user programs for printer output
and data transfer by means of the RK 512
computer connection and the 3964(R)
procedure.
Loadable drivers ... with transmission protocols that can be
loaded on the CP 441-2 in addition to the
standard protocols in the module
firmware. &'  'RQJOH

Point-to-point connection CP 441 Installation and Parameter Assignment


1-4 Manual, 10/2005, A5E00405449-01
Product Description
1.3 Structure of the CP 441

1.3 Structure of the CP 441

Setup
The CP 441-1 communication processor has one slot and the CP 441-2 has two slots for
plug-in interface submodules. The operator control and display elements are in the same
position on both the CP 441-1 and the CP 441-2. Identical elements have the same functions
on both models.

Position of Operator Control and Display Elements


The figure shows the positions of the operator control and display elements on the front
panel of the CP 441-1 and the CP 441-2 communication processors.
CP 441 - 2

&3 &3
CP 441 - 1
X 2 X 2
3 4 3 4

441 - 1AA04 - 0AE0 441 - 2AA04 - 0AE0

Vx.x.x Vx.x.x

INTF
,17) ,17) INTF

EXTF (;7) (;7) EXTF

FAULT 1 )$8/7 )$8/7 FAULT 1

TxD 1
7[' 7[' TxD 1
RxD 1
RxD 1
5[' 5['
)$8/7 FAULT 2
TxD 2
7[' RxD 2
5['

,QWHUIDFH
VXEPRGXOHVORW
,)

,QWHUIDFH IF
1
VXEPRGXOHVORW
,QWHUIDFH
,)
VXEPRGXOHVORW
,)

IF IF
1 2

Figure 1-1 Position of the operator control and display elements on the CP 441-1 and CP 441-2
communication processors

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 1-5
Product Description
1.3 Structure of the CP 441

LEDs
The following LEDs are located on the front panel of the CP 441:
• INTF (red) CP 441 signals internal fault
• EXFT (red) CP 441 signals external fault
• FAULT 1 (red) Fault LED for interface IF 1
• TXD 1 (green) Interface IF 1 transmitting
• RXD 1 (green) Interface IF 1 receiving
• FAULT 2 (red) Fault LED for interface IF 2 (CP 441-2)
• TXD 2 (green) Interface IF 2 transmitting (CP 441-2)
• RXD 2 (green) Interface IF 2 receiving (CP 441-2)

Slot for Interface Modules


The CP 441-1 contains one slot and the CP 441-2 has two slots for plug-in interface
submodules. By exchanging the interface submodules, you can adapt the CP 441 to suit the
properties of the communication partners.
There are three types of interface submodules:
• RS 232C
• X27 (RS 422/485)
• 20mA TTY

Base Connector for S7 Backplane Bus


On the back panel of the CP 441 you will find the base connector for the S7-400 backplane
bus.
The S7-400 backplane bus is a serial data bus via which the CP 441 communicates with the
modules of the programmable controller and is supplied with the necessary voltage.

See also
Properties of the RS 232C Interface Submodule (Page 1-7)
Attributes of the 20mA TTY interface submodule (Page 1-8)
Properties of the X27 (RS 422/485) Interface Submodule (Page 1-9)

Point-to-point connection CP 441 Installation and Parameter Assignment


1-6 Manual, 10/2005, A5E00405449-01
Product Description
1.4 Properties of the Serial Interface

1.4 Properties of the Serial Interface

Introduction
Three module variants of the communication processor are available, each having a different
interface type suitable for the different properties of communication partners.

Standard Cables
Siemens offers standard cables in various lengths for point-to-point connection between the
communication processor and a communication partner.

1.4.1 Properties of the RS 232C Interface Submodule

Definition
The RS 232C interface submodule is a voltage interface used for serial data transmission in
compliance with the RS 232C standard.

Properties
The RS 232C interface submodule has the following properties and fulfils the following
requirements:
• Type: Voltage interface
• Front connector: 9-pin subminiature D male connector with a screw-type fitting
(compatible with the 9-pin COM port (PC/PG))
• Max. transmission rate: 115.2 Kbps
• Max. cable length: 10 m
• Standard: DIN 66020, DIN 66259, EIA-RS 232C, CCITT V.24/V.28
• Degree of protection: IP 00
Please observe the maximum permitted transmission rates for the modules.

See also
Interface Submodule RS 232C (Page B-1)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 1-7
Product Description
1.4 Properties of the Serial Interface

1.4.2 Attributes of the 20mA TTY interface submodule

Definition
The 20mA TTY interface submodule is a current-loop interface used for serial data
transmission.

Properties
The 20mA TTY interface submodule has the following attributes and fulfills the following
requirements:
• Type: Linear current interface
• Front connector: 9-pin subminiature D female with screw interlock
• Max. transmission rate: 19,2 Kbps
• Max. cable length: 1000 m at 9600 bps
• Standard: DIN 66258 Part 1
• Degree of protection: IP 00
Please observe the maximum permitted transmission rates for the modules.

See also
20mA TTY interface submodule (Page B-8)

Point-to-point connection CP 441 Installation and Parameter Assignment


1-8 Manual, 10/2005, A5E00405449-01
Product Description
1.4 Properties of the Serial Interface

1.4.3 Properties of the X27 (RS 422/485) Interface Submodule

Definition
The X27 (RS 422/485) interface is a voltage-difference interface for serial data transmission
in compliance with the X27 standard.

Properties
The X27 (RS 422/485) interface submodule has the following properties and fulfils the
following requirements:
• Type: Differential voltage interface
• Front connector: 15-pin sub-D female, with screwed interlock
• Max. transmission rate: 115.2 Kbps
• Max. cable length: 1200 m at 19200 Bps
• Standard: DIN 66259 Parts 1 and 3, EIA-RS 422/485, CCITT V.11
• Degree of protection: IP 00
Please observe the maximum permitted transmission rates for the modules.

Note
With the RK 512 and 3964(R) protocols, the X27 (RS 422/485) interface submodule can only
be used in four-wire mode.

See also
Interface Submodule X27 (RS 422/485) (Page B-15)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 1-9
Product Description
1.5 Installation Guidelines

1.5 Installation Guidelines

Considerations
The general installation guidelines for S7-400 must be observed (see the S7-400/M7-400
Programmable Controller, Hardware and Installation manual).
To meet the EMC (electromagnetic compatibility) values, the cable shield must be connected
to a shield bus.

Point-to-point connection CP 441 Installation and Parameter Assignment


1-10 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission 2
2.1 Serial Transmission of a Character

Introduction
The system provides various networking options for the exchange of data between two or
more communication partners. The simplest form of data interchange is via a point-to-point
connection between two communication partners.

Point-to-point Communication
In point-to-point communication the communication processor forms the interface between a
programmable controller and a communication partner. In PtP communication with
communication processor, data are transferred via serial interface.

Serial Transmission
In serial transmission, the individual bits of each byte of information are transmitted one after
the other in a fixed order.

Unidirectional/Bidirectional Data Traffic


The CP 441 itself handles data transmission with communication partners via its serial
interface. The CP 441 is equipped with three different drivers for this purpose.
• Unidirectional data traffic:
– Printer Driver
• Bidirectional data traffic:
– ASCII driver
– 3964(R) procedure
– RK 512 computer connection
The CP 441 handles data transmission via the serial interface in accordance with the
interface type and the selected driver.

Unidirectional Data Traffic - Printer Output


In the case of printer output (printer driver), n bytes of user data are output to a printer. No
characters are received. The only exception to this are data flow control characters
(e.g. XON/XOFF).

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-1
Basic Principles of Serial Data Transmission
2.1 Serial Transmission of a Character

Bidirectional Data Traffic - Operating Modes


The communication processor has two operating modes for bidirectional data traffic:
• Half-duplex operation (3964(R) procedure, ASCII driver, RK 512)
The data is exchanged between the communication partners in both directions
alternately. In half-duplex operation, therefore, at any one time data is being either sent or
received. The exception to this may be individual control characters for data flow control
(e.g. XON/XOFF), which can also be sent during a receive operation or received during a
send operation.
• Full-duplex operation (ASCII driver)
The data is exchanged between the communication partners in both directions
simultaneously, it can both send and receive at the same time. Every communication
partner must be able to operate a send and a receive facility simultaneously.
With an RS 485 (2-wire) setting, the X27 (RS 422/485) interface submodule can only be run
in half-duplex mode.

Asynchronous Data Transmission


With the communication processor, serial transmission occurs asynchronously. The so-
called time base synchronism (a fixed timing code used in the transmission of a fixed
character string) is only upheld during transmission of a character. Each character to be sent
is preceded by a synchronization impulse, or start bit. The length of the start-bit transmission
determines the clock pulse. The end of the character transmission is signaled by the stop bit.

Declarations
As well as the start and stop bits, further declarations must be made between the sending
and receiving partners before serial transmission can take place. These include:
• Transmission speed (baud rate)
• Character and acknowledgment delay times
• Parity
• Number of data bits
• Number of stop bits

Point-to-point connection CP 441 Installation and Parameter Assignment


2-2 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.1 Serial Transmission of a Character

Character frame
Data is transmitted between the communication processor and a communication partner via
the serial interface in a character frame. Various data formats are available for the character
frame. You can set the format for data transmission with the CP 441: Configuration Package
for Point to Point Communication parameter assignment interface.
The figure below shows examples of different data formats for a 10-bit character frame.

GDWDELWVVWDUWELWGDWDELWVVWRSELWV

6LJQDOVWDWH
    
6LJQDOVWDWH

VWRSELWV
VWDUWELW

GDWDELWV
GDWDELWVVWDUWELWGDWDELWVSDULW\ELWVWRSELW

6LJQDOVWDWH
    
6LJQDOVWDWH

VWRSELW
VWDUWELW

GDWDELWV

SDULW\ELW

GDWDELWVVWDUWELWGDWDELWVVWRSELW

6LJQDOVWDWH
   
6LJQDOVWDWH
VWRSELW
VWDUWELW

GDWDELWV

Figure 2-1 10-Bit Character Frame

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-3
Basic Principles of Serial Data Transmission
2.1 Serial Transmission of a Character

Character Delay Time


The figure below shows the maximum time permitted between two characters received
within a message frame. This is known as the character delay time.

Signal

nth character (n + 1)th character

ZVZ
1

Time t

Figure 2-2 Character Delay Time

See also
Parameter Assignment Data of the Protocols (Page 2-51)

Point-to-point connection CP 441 Installation and Parameter Assignment


2-4 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.2 Transmission Procedure with a Point-to-Point Connection

2.2 Transmission Procedure with a Point-to-Point Connection

Introduction
When data are transmitted, all communication partners must adhere to a fixed set of rules for
handling and implementing data traffic. The ISO has defined a 7-layer model, which is
recognized as the basis for a worldwide standardization of transmission protocols for
computer-to-computer communication.

ISO 7-Layer Reference Model for Data Transmission


All communication partners must adhere to a fixed set of rules for handling and implementing
data traffic. Such rules are called protocols.
A protocol defines the following:
• Operating mode
Half-duplex or full-duplex operation
• Initiative
Specifies which communication partners can initiate the transmission and under what
conditions.
• Control characters
Specifies the control characters to be used for data transmission.
• Character frame
Specifies which character frames are to be used for data transmission.
• Data backup
Specifies the data backup procedure to be used.
• Character delay time
Specifies the time period within which an incoming character must be received.
• Transmission speed
Specifies the speed in bits per second.

Procedure
This is the specific process according to which the data is transmitted.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-5
Basic Principles of Serial Data Transmission
2.2 Transmission Procedure with a Point-to-Point Connection

ISO 7-Layer Reference Model


The reference model defines the external behavior of the communication partners. Each
protocol layer, except for the lowest one, is embedded in the next one down.
The individual layers are as follows:
1. Physical layer
– Physical conditions for communication, e.g. transmission medium, baud rate
2. Data-link layer
– Security procedure for the transmission
– Access modes
3. Network layer
– Network connections
– Specifies the addresses for communication between two partners.
4. Transport layer
– Error-recognition procedure
– Debugging
– Handshaking
5. Session layer
– Establishing communication
– Communication control
– Terminating communication
6. Presentation layer
– Conversion of the standard form of data representation of the communication system
into a device-specific form (data interpretation rules)
7. Application layer
– Defining the communication task and the functions it requires

Processing the Protocols


The sending communication partner runs through the protocols from the highest layer
(no. 7 - application layer) to the lowest (no. 1 - physical layer), while the receiving partner
processes the protocols in the reverse order, i.e. starting with layer 1.
Not all protocols have to take all 7 layers into account. If the sending and receiving partners
both use the same protocol, layer 6 can be omitted.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-6 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.3 Transmission integrity

2.3 Transmission integrity

Introduction
Transmission integrity plays an important role in the transmission of data and in selection of
the transmission procedure. Generally speaking, the more layers of the reference model are
applied, the greater the transmission integrity.

Classifying the Supplied Protocols


The CP 441 can use the following protocols:
• 3964(R) procedure
• RK 512 computer connection
• ASCII driver
• Printer Driver
The figure below illustrates how these protocols of the CP 441 fit into the reference model:

7UDQVSRUWOD\HU

/D\HU (YHU\FRUUHFWO\UHFHLYHGFRPPDQG
PHVVDJHIUDPHLVDQVZHUHGZLWKD

5.
UHVSRQVHPHVVDJHIUDPH

1RWSUHVHQWZLWKDSXUH
/D\HU SRLQWWRSRLQWFRQQHFWLRQ

'DWDOLQNOD\HU
 5

/D\HU 7KHGDWDE\WHVDUHWUDQVPLWWHGZLWK
 5 6WDUWDQGVWRSELWVDUHDGGHG
LQWKHHYHQWRIDQHUURUWKHWUDQVPLVVLRQ
PD\EHUHSHDWHG

3K\VLFDOOD\HU
3ULQWHUGULYHU
$6&,,GULYHU

/D\HU 7KHSK\VLFDOWUDQVPLVVLRQRWWKH
GDWDE\WHVLVGHILQHG

Figure 2-3 Position of the supplied protocols of the CP 441 in the reference model

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-7
Basic Principles of Serial Data Transmission
2.3 Transmission integrity

Transmission Integrity with the Printer Driver


Data Integrity When Using the Printer Driver:
• No data integrity precautions are taken for data transmission with the printer driver.
• To prevent data from being lost in the event of the printer receive buffer overflowing, you
can work with data flow control (XON/XOFF, RTS/CTS).
• When data is output to the printer, the printer's BUSY signal is evaluated. The CP 441
receives the BUSY signal as a CTS signal and evaluates it in the same way (see ASCII
driver). Please note that, when using CTS/RTS flow control, you must set the polarity of
the BUSY signal to CTS = "OFF" on the printer (only with the RS 232C interface).

Transmission Integrity with the ASCII Driver


Data Integrity When Using the ASCII Driver:
• When data is transmitted via the ASCII driver, there are no data integrity precautions
other than the use of a parity bit (can also be canceled, depending on how the character
frame is set). This means that, although this type of data transport has a very efficient
throughput rate, security is not guaranteed.
• Using the parity bit ensures that the inversion of a bit in a character to be transmitted can
be recognized. If two or more bits of a character are inverted, this error can no longer be
detected.
• To increase transmission integrity, a checksum and length specification for a message
frame can be employed. These measures must be implemented by the user.
• A further increase in data integrity can be achieved by means of acknowledgment
message frames in response to send or receive message frames. This is the case with
high-level protocols for data communication (see ISO 7-layer reference model).

Transmission Integrity with 3964R


Enhanced Data Integrity with the 3964R Procedure:
• The hamming distance with the 3964R is 3. This measures the integrity of data
transmission.
• The 3964R procedure ensures high transmission integrity on the data line. This high
integrity is achieved by means of a fixed message-frame set-up and clear-down as well
as the use of a block check character (BCC).
Two different procedures for data transmission can be used, either with or without a block
check character:
• data transmission without a block check character: 3964
• data transmission with a block check character: 3964R
In this manual, the designation 3964(R) is used when descriptions and notes refer to both
data transmission procedures.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-8 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.3 Transmission integrity

Performance Limits with 3964R


• Further processing of the send/receive data by the PLC program in the communication
partner is not guaranteed. You can only ensure this by using a programmable
acknowledgment mechanism.
• The block check of the 3964R procedure (EXOR operation) cannot detect missing zeros
(as a whole character) because a zero in the EXOR operation does not affect the result of
the calculation.
Although the loss of an entire character (this character has to be a zero!) is highly
unlikely, it could possibly occur under very bad transmission conditions.
You can protect a transmission against such errors by sending the length of the data
message along with the data itself, and having the length checked at the other end.
• Such transmission errors are ruled out when the RK 512 computer connection is used for
data transmission, because here (unlike the 3964(R) procedure) further processing is
acknowledged via response message frames (e.g. stored in the destination data block)
and the send data length is recorded in the message frame header. This enables the
RK 512 to achieve a higher Hamming distance (of 4) than the 3964R.

Transmission Integrity with RK 512


Very High Data Integrity with the RK 512:
• The hamming distance with the RK 512 and 3964R is 4. This is a measure of the integrity
of data transmission.
• Using the RK 512 computer connection guarantees high transmission integrity on the
data line (because the RK 512 uses the 3964R procedure for data transport).
• Further processing in the communication partner is ensured (because the RK 512
interpreter checks the additional length specification in the header and, after storing the
data in the destination data block of the communication partner, generates a message
frame acknowledging the success or failure of the data transmission).
• The RK 512 driver guarantees the correct use of the 3964R procedure and the
analysis/addition of the length specification as well as the independent generation of the
response message frames. There is no user handling! All you need to do is evaluate the
positive/negative final acknowledgment.

Performance Limits with RK 512


• Using the RK 512 computer connection provides maximum data security! Another
advantage, for example, is the use of other block check mechanisms (such as CRC
checks).

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-9
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

2.4 Data Transmission with the 3964(R) Procedure

Introduction
The 3964(R) procedure controls point-to-point data exchange between the communication
processor and a communication partner. As well as the physical layer (layer 1), the 3964(R)
procedure also incorporates the data-link layer (layer 2).

Startup
The figure below illustrates the start-up of the 3964(R) procedure.

3RZHUXSDIWHUUHVWDUWRIWKH
&38RUYROWDJHUHFRYHU\

(YDOXDWHSDUDPHWHUDVVLJQPHQW

,QLWLDOL]HLQWHUIDFH

6HQG1$.

Figure 2-4 Flow diagram of the start-up of the 3964(R) procedure

Point-to-point connection CP 441 Installation and Parameter Assignment


2-10 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

2.4.1 Control characters

Introduction
The RK 512 computer connection provides a very high degree of data integrity. During data
transmission, the 3964(R) procedure adds control characters to the information data
(data-connection layer). These control characters allow the communication partner to check
whether the data has arrived complete and without errors.

The Control Characters of the 3964(R) Procedure


The 3964(R) procedure analyzes the following control codes:
• STXStart of Text; start of character string for transfer
• DLEData Link Escape; data connection escape
• ETXEnd of Text; end of character string for transfer
• BCCBlock Check Character (3964R only)
• NAKNegative Acknowledge

Note
If DLE is transmitted as an information string, it is sent twice so that it can be
distinguished from the control code DLE during connection setup and release on the send
line (DLE duplication). The receiver then reverses the DLE duplication.

Priority
With the 3964(R) procedure, one communication partner must be assigned a higher priority
and the other partner a lower priority. If both partners begin connection setup at the same
time, the partner with the lower priority will defer its send request.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-11
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

2.4.2 Block Checksum

Block Checksum
With the 3964R transmission protocol, data integrity is increased by the additional sending of
a block check character (BCC).

0HVVDJHIUDPH
67;'DWD'/((7;%&&

+ൺ+ൺ+ൺ+ൺ+ൺ+ൺ+

    


    

;25    


    

;25    


    

;25    


    

;25    

%&&ൺ   

Figure 2-5 Block Checksum

The block checksum is the even longitudinal parity (EXOR operation on all data bytes) of a
sent or received block. Its calculation begins with the first byte of user data (first byte of the
message frame) after the connection setup, and ends after the DLE ETX code on connection
release.

Note
If DLE duplication occurs, the DLE code is accounted for twice in the BCC calculation.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-12 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

2.4.3 Sending Data with 3964(R)

Process of Data Transmission when Sending


The figure below illustrates the transmission sequence when data is sent with the 3964(R)
procedure.

&3 &RPPXQLFDWLRQSDUWQHU

6WDUWFRGH + 67; &RQQHFWLRQ


3RVDFNQRZOHGJPHQW + '/( VHWXS

VWGDWDE\WH VWE\WH
QGGDWDE\WH QGE\WH
8VHU
1XW]
ವ ವ GDWD
GDWHQ
ವ ವ
QWKGDWDE\WH QWKE\WH

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
UHOHDVH
 5 RQO\ %&&
3RVDFNQRZOHGJPHQW + '/(

Figure 2-6 Data traffic when sending with the 3964(R) procedure

Establishing a Send Connection


To establish the connection, the 3964(R) procedure sends the control code STX. If the
communication partner responds with the DLE code before the acknowledgment delay time
expires, the procedure switches to send mode.
If the communication partner answers with NAK or with any other control code (except for
DLE or STX), or the acknowledgment delay time expires without a response, the procedure
repeats the connection setup. After the defined number of unsuccessful setup attempts, the
procedure aborts the connection setup and sends the NAK code to the communication
partner. The CP 441 enters an appropriate error number in its SYSTAT area.

Sending Data
If a connection is successfully established, the user data contained in the output buffer of the
communication processor is sent to the communication partner with the chosen transmission
parameters. The partner monitors the times between incoming characters. The interval
between two characters must not exceed the character delay time.
If the communication partner sends the NAK control code during an active send operation,
the procedure aborts its transmission of the block and tries again as described above,
beginning with connection setup. If a different code is sent, the procedure first waits for the
character delay time to expire and then sends the NAK code to change the mode of the
communication partner to idle. Then the procedure starts to send the data again with the
connection setup STX.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-13
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

Releasing a Send Connection


Once the contents of the buffer have been sent, the procedure adds the codes DLE, ETX
and with the 3964R only the block checksum BCC as the end identifier, and waits for an
acknowledgment code. If the communication partner sends the DLE code within the
acknowledgment delay time, the data block has been received without errors. If the
communication partner responds with NAK, any other code (except DLE), or a damaged
code, or if the acknowledgment delay time expires without a response, the procedure starts
to send the data again with the connection setup STX.
After the defined number of attempts to send the data block, the procedure stops trying and
sends an NAK to the communication partner. The CP 441 reports the error in the SYSTAT
error-signaling area.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-14 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

Sending with the 3964(R) Procedure


The figure below illustrates sending with the 3964(R) procedure.

,QWHQWLRQWR
*  VHQG *
*

6HQG1$.

:  6HQG1$.
[!
 [ 
[!
[ 
[ 

6HQG67;
:

6WDUW7$'7 [

7!7$'7
FKDUDFWHUH[FHSW

+LJK :DLWIRU'/( '/(67;RU
SULRULW\ 67; DFNQRZOHGJ LQYDOLG
/RZ
SULRULW\
'/( 5HFHLSWQRW
SHUPLWWHG
6HQGEORFN
SRVV
GXSOLFDWH'/( 6HQG1$.

6HQG'/(
 (7;
 5

 6HQG%&&

6WDUW7$'7
7!7$'7
FKDUDFWHUH[FHSW

'/(RULQYDOLG
:DLWIRU'/( FKDUDFWHU
DFNQRZOHGJ

'/(

6HQGLOHWHG

*
%&&RQO\ZLWK5
[ VHWXSDWWHPSWFRXQW
7$'7 PV 57$'7 V
: WUDQVPLVVLRQDWWHPSWFRXQW
,PPHGLDWHUHWXUQWRLQLWLDOVWDWHDWOLQHEUHDN %5($.
Figure 2-7 Flow diagram of sending with the 3964(R) procedure

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-15
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

Receiving with the 3964(R) Procedure


The figure below illustrates receiving with the 3964(R) procedure.

&KDUDFWHUVH[FHSW
67;1$. ,QWHQWLRQWRVHQG
* 

5HFHLYH
67;
5HSHWLWLRQ
 H[SHFWHG
1RWH
1$.
:

 

,QLWLDOL]DWLRQ
FRQIOLFWORZ
6WDUW
SULRULW\
71$.7,0

:DLW

7!71$.7,0
%XIIHUIUHH %XIIHUQRWIUHH

6HQG'/( 6HQG1$.

 *
71$.7,0 PV
: WUDQVPLVVLRQDWWHPSWFRXQWHU
,PPHGLDWHUHWXUQWRLQLWLDOVWDWHDWOLQHEUHDN %5($.

Figure 2-8 Flow Diagram for Receiving with the 3964(R) Procedure

Point-to-point connection CP 441 Installation and Parameter Assignment


2-16 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

2.4.4 Receiving Data with 3964(R)

Process of Data Transmission when Receiving


The figure below illustrates the transmission sequence when data is received with the
3964(R) procedure.

&RPPXQLFDWLRQSDUWQHU &3

&RQQHFWLRQ 67; 6WDUWFRGH +


VHWXS '/( 3RVDFNQRZOHGJPHQW +

VWE\WH VWGDWDE\WH
QGE\WH QGGDWDE\WH
8VHU
GDWD ವ ವ
ವ ವ
QWKE\WH QWKGDWDE\WH

'/( (QGFRGH +


&RQQHFWLRQ (7; (QGFRGH +
UHOHDVH %&&  5 RQO\
'/( 3RVDFNQRZOHGJPHQW +

Figure 2-9 Data traffic when receiving with the 3964(R) procedure

Note
As soon as it is ready, the 3964(R) procedure sends a single NAK to the communication
partner to set the latter to idle.

Establishing a Receive Connection


In idle mode, when there is no send request to be processed, the procedure waits for the
communication partner to establish the connection.
If no empty receive buffer is available during a connection setup with STX, a wait time of 400
ms is started. If there is still no empty receive buffer after this time has expired, the system
program reports the error (error number in SYSTAT). and the procedure sends a NAK and
returns to idle mode. Otherwise, the procedure sends a DLE and receives the data as
described above.
If the idle procedure receives any control code except for STX or NAK, it waits for the
character delay time to expire, then sends the code NAK. The CP 441 reports the error in the
SYSTAT error-signaling area.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-17
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

Receiving Data
After a successful connection setup, the receive characters that are arrive are stored in the
receive buffer. If two consecutive DLE codes are received, only one of these is stored in the
receive buffer.
After each receive character, the procedure waits out the character delay time for the next
character. If this period expires before another character is received, an NAK is sent to the
communication partner. The CP 441 reports the error in the SYSTAT error-signaling area.
The 3964(R) procedure does not initiate a repetition.
If transmission errors occur during receiving (lost character, frame error, parity error, etc.),
the procedure continues to receive until the connection is shut down, then an NAK is sent to
the communication partner. A repetition is then expected. If the undamaged block still cannot
be received after the number of transmission attempts defined in the static parameter set, or
if the communication partner does not start the repetition within a block wait time of 4
seconds, the procedure aborts the receive operation. The CP 441 reports the first erroneous
transmission and the final abortion in the SYSTAT error-signaling area.

Releasing a Receive Connection


When the 3964 procedure detects a DLE ETX character string, it ends the receiving
operation and confirms the successfully received block by sending a DLE signal to the
communication partner. When errors are found in the received data, it outputs a NAK signal
to the communication partner. A repetition is then expected.
If the CP recognizes the string DLE ETX BCC, it stops receiving and compares the received
block check character with the longitudinal parity calculated internally. If the BCC is correct
and no other receive errors have occurred, the CP sends the code DLE to the
communication partner. If the BCC is correct and no other receive errors have occurred, the
3964R procedure sends a DLE and returns to idle mode. If the BCC is faulty or a different
receiving error occurs, an NAK is sent to the communication partner. A repetition is then
expected.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-18 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

Receiving with the 3964(R) Procedure


The figure below illustrates receiving with the 3964(R) procedure.

6WDUW7FKDUGHOD\WLPH
1RWH
&RUUHFW
1$.
FKDUDFWHU
H[FHSWIRU :DLWWR
'/( UHFHLYH ,QYDOLGFKDUDFWHU

 FKDUDFWHUV 7!7FKDUGHOD\WLPH

'/(

6WDUW7FKDUGHOD\WLPH
'XDO'/(

:DLWIRU 7!7FKDUGHOD\WLPH
1RWH1$.
(7;
&KDUDFWHUV
(7;
H[FHSW
(7;'/( 5

6WDUW7FKDUGPH

7!7FKDUGHOD\WLPH
:DLWIRU %&&LQFRUUHFW
%&&

%&&

1$.QRWHG

6HQG'/( 6HQG1$.
,QLWLDOL]DWLRQFRQIOLFW
QRWHGORZSULRULW\ 5HFHLSWFRPSOHWHG :!
: 
1RWHUHSHWLWLRQH[SHFWHG
VWDUW7%ORFN

 *
:DLWIRU 7!7%ORFN
67;

67; *
7LPHV7FKDUGHOD\WLPH PV7%ORFN V
: WUDQVPLVVLRQDWWHPSWFRXQW
%&&ZLWK5RQO\ 
,PPHGLDWHUHWXUQWRLQLWLDOVWDWHDWOLQHEUHDN %5($.

Figure 2-10 Flow Diagram for Receiving with the 3964(R) Procedure

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-19
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

2.4.5 Handling Erroneous Data

Handling Erroneous Data


The figure below illustrates how erroneous data is handled with the 3964(R) procedure.

&RPPXQLFDWLRQSDUWQHU &3

5HFHLYLQJGDWD

6WDUWFRGH + 67; &RQQHFWLRQ


'/( VHWXS
3RVDFNQRZOHGJPHQW +

VWGDWDE\WH VWE\WH
8VHU
ವ ವ GDWD
QWKGDWDE\WH QWKE\WH
ವ ವ
ವ ವ

(QGFRGH + '/(


&RQQHFWLRQ
(QGFRGH + (7;
UHOHDVH
5RQO\ %&&
1HJDFNQRZOHGJPHQW + 1$.

QHZVHWXSDWWHPSW

Figure 2-11 Data traffic when receiving erroneous data

When the string DLE ETX BCC is received, the CP 441 compares the BCC of the
communication partner with its own internally calculated value. If the BCC is correct and no
other receive errors occur, the CP 441 responds with DLE.
Otherwise, the CP 441 responds with an NAK and waits the block wait time (T) of 4 seconds
for a new attempt. If after the defined number of transmission attempts the block cannot be
received, or if no further attempt is made within the block wait time, the CP 441 aborts the
receive operation.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-20 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

Initialization conflict
The figure below illustrates the transmission sequence during an initialization conflict.

&3 &RPPXQLFDWLRQSDUWQHU
ORZSULRULW\ KLJKHUSULRULW\

6WDUWFRGH + 67;


&RQQHFWLRQ
6WDUWFRGH + 67; VHWXS
3RVDFNQRZOHGJPHQW + '/(

VWGDWDE\WH VWE\WH
QGGDWDE\WH QGE\WH
8VHU
Ⴠ Ⴠ
GDWD
Ⴠ Ⴠ
QWKGDWDE\WH QWKE\WH

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
%&& UHOHDVH
5RQO\
3RVDFNQRZOHGJPHQW + '/(

QGVHWXSDWWHPSW

6WDUWFRGH + 67; &RQQHFWLRQ


3RVDFNQRZOHGJPHQW + '/( VHWXS

Figure 2-12 Data traffic during an initialization conflict

If a device responds to the communication partner's send request (code STX) within the
acknowledgment delay time by sending the code STX instead of the acknowledgment DLE
or NAK, an initialization conflict occurs. Both devices want to execute a send request. The
device with the lower priority withdraws its send request and responds with the code DLE.
The device with the higher priority sends its data in the manner described above. Once the
connection has been released, the lower-priority device can execute its send request.
To be able to resolve initialization conflicts you must set different priorities for the
communication partners.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-21
Basic Principles of Serial Data Transmission
2.4 Data Transmission with the 3964(R) Procedure

Procedure errors
The procedure recognizes both errors which are caused by the communication partner and
errors caused by faults on the line.
In both cases, the procedure makes repeated attempts to send/receive the data block
correctly. If this is not possible within the maximum number of transmission attempts set (or
if a new error status occurs), the procedure aborts the send or receive process. It reports the
error number of the first recognized error and returns to idle mode. The CP 441 reports the
error in the SYSTAT error-signaling area.
If the CP 441 frequently reports the error number in the SYSTAT for send and receive
repetitions, this implies occasional disturbances in the data traffic. The large number of
transmission attempts compensates for this, however. In this case you are advised to check
the transmission link for possible sources of interference, because frequent repetitions
reduce the user-data rate and integrity of the transmission. The disturbance could also be
caused, however, by a malfunction on the part of the communication partner.
If the receive connection is interrupted, the system program reports a BREAK status (in
SYSTAT). No repeat is started. The BREAK status in the SYSTAT is automatically reset as
soon as the connection is restored on the line.
For every recognized transmission error (lost character, frame or parity error), a standard
number is reported, regardless of whether the error was detected during sending or receiving
of a data block. The error is only reported, however, following unsuccessful repetitions.
If the damaged character is received when the procedure is idle, the system program reports
the error (error number in the SYSTAT) to inform you of major interference in the data
transmission circuit.

See also
Diagnostics via the Error Signaling Area SYSTAT (Page 8-8)

Point-to-point connection CP 441 Installation and Parameter Assignment


2-22 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

2.5 Data Transmission with the RK 512 Computer Connection

Introduction
The RK 512 computer connection controls data transmission via a point-to-point connection
between the CP 441 and a communication partner.
Unlike the 3964(R) procedure, the RK 512 includes not only the physical layer (layer 1), and
the data-link layer (layer 2), but also the transport layer (layer 4) of the ISO reference model.
The RK 512 computer connection also offers higher data integrity and better addressing.

Response Message Frame


The RK 512 computer connection answers every command message frame it receives
correctly with a response message frame to the CPU (transport layer). This allows senders
to check whether their data has arrived undamaged at the CPU or whether the data they
require is available on the CPU.

Command Message Frame


Command message frames are either SEND/PUT or GET message frames.

Continuation SEND/PUT Message Frame


A SEND/PUT message frame is created when the CP 441 sends a command message
frame with user data, and the communication partner replies with a response message frame
without user data.

GET Message Frame


A GET message frame is created when the CP 441 sends a command message frame
without user data, and the communication partner replies with a response message frame
with user data.

Continuation Message Frame


If the volume of data exceeds 128 bytes, SEND/PUT and GET message frames are
automatically accompanied by continuation message frames.

Message Frame Header


Each message frame with the RK 512 begins with a message frame header. It can contain
message frame IDs, information on the data destination and source and an error number.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-23
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

Structure of the Message Frame Header


The table below indicates the structure of the header of the command message frame.

Table 2-1 Structure of Message Frame Header (RK 512)

bytes Meaning
1 Message frame ID in command message frames (00H),
in continuation command message frames (FFH)
2 Message frame ID (00H)
3 'A' (41H) for SEND/PUT request with destination DB or
'O' (4FH) for SEND request with destination DX or
'E' (45H) for GET request
4 Data to be transmitted consists of:
'D' (44H)=data block
'E' (45H)=input bytes'A' (41H) =output bytes
'M' (4DH)=flag bytes
'C' (5AH)=counter cells'T' (54H)=time cells
(The entry for send requests with BSEND and PUT is always "D", irrespective of the
areas from which the data come.)
5 and 6 Data destination of SEND/PUT request or data source of GET request e.g. byte 5 = DB
no., byte 6 = DW no.
(RK 512 addressing describes the data source and destination with word limits.
Conversion to byte addresses in SIMATIC S7 is automatic.)
7 and 8 Length of high byte Length of data to be transmitted according to type in bytes or
Length of low byte words
9 Byte number of the interprocessor communication flag (You can specify interprocessor
communication flags for send requests with "BSEND". In the block of the partner you
cannot specify interprocessor communication flags, because the CP itself does not
support them.)
FFH is displayed if you have not specified an interprocessor communication flag.
10 Bit 0 to 3: Bit number of the interprocessor communication flag (You can specify
interprocessor communication flags for send requests with "BSEND". You cannot
specify interprocessor communication flags in the block of the partner because the CP
itself does not support them.).
The protocol enters FH here if you have not specified an interprocessor communication
flag.
Bit 4 to 7: CPU number (number from 1 to 4) (The CPU number 0 is supported as of
STEP 7, Version 4.0.);
If you have not specified a CPU number but you have specified an interprocessor
communication flag, OH is displayed here; if you specified neither a CPU number nor an
interprocessor communication flag, FH is shown here.
The letters in bytes 3 and 4 are ASCII characters.
The header of the continuation command message frame consists of bytes 1 to 4 only.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-24 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

Response message frame


Once the command message frame has been transmitted, the RK 512 waits for a response
message frame from the communciation partner within the monitoring time. The length of the
monitoring time depends on the transmission speed (baud rate).

Structure and Contents of the Response Message Frame


The response message frame consists of 4 bytes and contains information on the progress
of the request.

bytes Meaning
1 Message frame ID in response message frames (00H),
in continuation response message frames (FFH)
2 Message frame ID (00H)
3 Displays 00H
4 Error number of the communication partner in the response message frame:
• 00H if transmission was error-free
• > 00H error number
The error number in the response message frame automatically causes an error number to
be entered in the SYSTAT.

See also
Communication via System Function Blocks (Page 6-1)
Diagnostics via the Error Signaling Area SYSTAT (Page 8-8)
Error Numbers in the Response Message Frame (Page 8-21)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-25
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

2.5.1 Sending Data with RK 512

Process of Data Transmission when Sending


The figure below shows the transmission sequence when sending data with a response
message frame using the RK 512 computer connection.
&3 &RPPXQLFDWLRQSDUWQHU

6(1'387PHVVDJHIUDPH
6WDUWFRGH + 67; &RQQHFWLRQ
3RVDFNQRZOHGJPHQW + '/( VHWXS

+ VWE\WH
+ QGE\WH
6(1'387UHTXHVW + UGE\WH
'DWDEORFN + WKE\WH 0HVVDJH
IUDPH
'DWDGHVWLQDWLRQ'% $+ WKE\WH
KHDGHU
': + WKE\WH
/HQJWK + WKE\WH
': + WKE\WH
1R.0 ))+ WKE\WH
&38RQO\ )+ WKE\WH

VWGDWDE\WH WKE\WH
QGGDWDE\WH WKE\WH
8VHUGDWD
ವ ವ
ವ ವ
QWKGDWDE\WH QWKE\WH

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
ZLWKEORFNFKHFNRQO\ %&& UHOHDVH
3RVDFNQRZOHGJPHQW + '/(

5HVSRQVHPHVVDJHIUDPH
6WDUWFRGH + 67;
&RQQHFWLRQ
3RVDFNQRZOHGJPHQW + '/( VHWXS

+ VWE\WH
5HVSRQVH
+ QGE\WH PHVVDJH
+ UGE\WH IUDPH
(UURUFRGH + WKE\WH KHDGHU

(QGFRGH + '/(


(7; &RQQHFWLRQ
(QGFRGH +
%&& UHOHDVH
ZLWKEORFNFKHFNRQO\
3RVDFNQRZOHGJHPHQW + '/(

Figure 2-13 Data traffic when sending with a response message frame

Point-to-point connection CP 441 Installation and Parameter Assignment


2-26 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

Sending Data
The SEND/PUT request is executed in the following sequence:
• Active partner
Sends a SEND/PUT message frame. This contains a message frame header and data.
• Passive partner
Receives the message frame, checks the header and the data, and acknowledges it with
a response message frame after passing the data on to the CPU.
• Active partner
Receives the response message frame.
Sends user data.
If the volume of user data exceeds 128 bytes, the active partner sends a continuation
SEND/PUT message frame.
• Passive partner
Receives the continuation SEND/PUT message frame, checks the header and the data,
and acknowledges it with a continuation response message frame after passing the data
on to the CPU.

Note
If the CPU receives an errored SEND/PUT message frame or if an error has occurred in
the message frame header, the communication partner enters an error number in the 4th
byte of the response message frame. This does not apply when protocol errors occur.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-27
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

Continuation SEND/PUT Message Frame


A continuation SEND/PUT message frame is started if the volume of data exceeds 128
bytes. The process is the same as for SEND/PUT message frames.
If more than 128 bytes are sent, the extra bytes are automatically transmitted in one or more
continuation message frames.
The figure below shows the data transmission sequence when sending a continuation
SEND/PUT message frame with a continuation response message frame.

&3 &RPPXQLFDWLRQSDUWQHU

&RQWLQXDWLRQ6(1'387PHVVDJHIUDPH
6WDUWFRGH + 67; &RQQHFWLRQ
VHWXS
3RVDFNQRZOHGJ '/(
PHQW +
&RQWLQXDWLRQPHVVDJHIUDPH ))+ VWE\WH
+ QGE\WH 0HVVDJH
6(1'387UHTXHVW + IUDPHKHDGHU
UGE\WH
'DWDEORFN + WKE\WH

WKGDWDE\WH WKE\WH
WKGDWDE\WH WKE\WH
ವ ವ 8VHUGDWD
ವ ವ
QWKGDWDE\WH QWKE\WH

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
ZLWKEORFNFKHFNRQO\ %&& UHOHDVH
3RVDFNQRZOHGJHPHQW + '/(

&RQWLQXDWLRQUHVSRQVHPHVVDJHIUDPH

6WDUWFRGH + 67;


&RQQHFWLRQ
3RVDFNQRZOHGJPHQW + '/( VHWXS

&RQWLQXDWLRQUHVSRQVH
PHVVDJHIUDPH ))+ VWE\WH
5HVSRQVH
+ QGE\WH
PHVVDJH
+ UGE\WH
IUDPHKHDGHU
(UURUQXPEHU + WKE\WH

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
ZLWKEORFNFKHFNRQO\ %&& UHOHDVH
3RVDFNQRZOHGJHPHQW + '/(

Figure 2-14 Sequence of a continuation SEND message frame with a continuation response
message frame

Point-to-point connection CP 441 Installation and Parameter Assignment


2-28 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

2.5.2 Fetching Data with RK 512

Fetching Data with RK 512


The figure below shows the transmission sequence when fetching data with a response
message frame using the RK 512 computer connection.

&3 &RPPXQLFDWLRQSDUWQHU

*(7PHVVDJHIUDPH

6WDUWFRGH + 67; &RQQHFWLRQ


3RVDFNQRZOHGJPHQW + '/( VHWXS

+ %\WH
+ %\WH
*(7UHTXHVW + %\WH
'DWDEORFN + %\WH
'DWDVRXUFH'% + %\WH
0HVVDJH
': + %\WH IUDPHKHDGHU
/HQJWK + %\WH
%\WH
': +
1R.0 ))+ %\WH
&38RQO\ )+ %\WH

(QGFRGH + '/(


&RQQHFWLRQ
(QGFRGH + (7; VHWXS
ZLWKEORFNFKHFNRQO\ %&&
3RVDFNQRZOHGJPHQW + '/(

5HVSRQVHPHVVDJHIUDPHZLWKGDWD

6WDUWFRGH + 67; &RQQHFWLRQ


3RVDFNQRZOHGJPHQW + '/( VHWXS

+ %\WH
%\WH 5HVSRQVH
+ PHVVDJH
+ %\WH IUDPHKHDGHU
(UURUFRGH + %\WH

VWGDWDE\WH %\WH
QGGDWDE\WH %\WH 8VHU
಴ ಴ GDWD
಴ ಴
QWKGDWDE\WH %\WHQ

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
ZLWKEORFNFKHFNRQO\ %&& UHOHDVH
3RVDFNQRZOHGJPHQW + '/(

Figure 2-15 Data traffic when fetching with a response message frame

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-29
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

Fetching Data
The GET request is executed in the following sequence:
• Active partner
Sends a GET message frame. This contains a message frame header.
• Passive partner
Receives the message frame, checks the header, fetches the data from the CPU, and
acknowledges this with a response message frame containing the data. This contains the
data.
• Active partner
Receives the response message frame.
If the volume of user data exceeds 128 bytes, the active partner sends a continuation
GET message frame. This contains byte 1 to 4 of the message frame header.
• Passive partner
Receives the continuation GET message frame, checks the header, fetches the data from
the CPU, and acknowledges this with a continuation response message frame containing
further data.
If there is an error number (not equal to 0) in the 4th byte, the response message frame does
not contain any data.
If more than 128 bytes are requested, the extra bytes are automatically fetched in one or
more continuation message frames.

Note
If the CPU receives an errored GET message frame or if an error has occurred in the
message frame header, the communication partner enters an error number in the 4th byte of
the response message frame. This does not apply when protocol errors occur.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-30 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

Continuation GET Message Frame


The figure below shows the transmission sequence when fetching data with a continuation
response message frame.

&3 &RPPXQLFDWLRQSDUWQHU

&RQWLQXDWLRQ*(7PHVVDJHIUDPH
6WDUWFRGH + 67; &RQQHFWLRQ
3RVDFNQRZOHGJPHQW + '/( VHWXS
&RQWLQXDWLRQPHVVDJH
IUDPH ))+ VWE\WH
+ QGE\WH 0HVVDJH
UGE\WH IUDPH
*(7UHTXHVW +
WKE\WH KHDGHU
'DWDEORFN +

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
ZLWKEORFNFKHFNRQO\ %&& UHOHDVH
3RVDFNQRZOHGJPHQW + '/(

&RQWLQXDWLRQUHVSRQVHPHVVDJHIUDPH
6WDUWFRGH + 67;
&RQQHFWLRQ
3RVDFNQRZOHGJPHQW + '/( VHWXS

&RQWLQXDWLRQUHVSRQVH
PHVVDJHIUDPH ))+ VWE\WH
5HVSRQVH
+ QGE\WH
PHVVDJH
+ UGE\WH
IUDPH
(UURUQXPEHU + WKE\WH KHDGHU

WKGDWDE\WH WKE\WH
WKGDWDE\WH WKE\WH 8VHU
಴ ಴ ಴ GDWD
಴ ಴ ಴
QWKGDWDE\WH QWKE\WH

(QGFRGH + '/(


(QGFRGH + (7; &RQQHFWLRQ
ZLWKEORFNFKHFNRQO\ %&& UHOHDVH
3RVDFNQRZOHGJPHQW + '/(

Figure 2-16 Sequence of a continuation GET message frame with a continuation response message
frame

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-31
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

Quasi-Full-Duplex Operation
Quasi full-duplex operation means: the partners can send command and response message
frames at any time as long as the other partner is not sending. The maximum nesting depth
for command and response message frames is "1". The next command message frame,
therefore, cannot be processed until the previous one has been answered with a response
message frame.
It is possible under certain circumstances - if both partners want to send - to transmit a
SEND/PUT message frame from the partner before the response message frame. For
example, if a SEND/PUT message frame from the partner was entered in the output buffer of
the CP 441 before the response message frame.
In the following figure the continuation response message frame to the first SEND/PUT
message frame is not sent until after the partner's SEND/PUT message frame.

&3 &RPPXQLFDWLRQSDUWQHU

6(1'PHVVDJHIUDPH
5HVSRQVHPHVVDJHIUDPH

VWFRQWLQXDWLRQ6(1'PHVVDJHIUDPH
3DUWQHUಬV6(1'PHVVDJHIUDPH
VWFRQWLQXDWLRQ
UHVSRQVHPHVVDJHIUDPH
QGFRQWLQXDWLRQ6(1'PHVVDJHIUDPH
5HVSRQVHPHVVDJHIUDPH
QGFRQWLQXDWLRQ
UHVSRQVHPHVVDJHIUDPH

Figure 2-17 Quasi-full-duplex operation

Point-to-point connection CP 441 Installation and Parameter Assignment


2-32 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

RK 512 CPU Requests


The figure below shows the processes involved in the RK 512 computer connection when
CPU requests are made.

&38
UHTXHVW
LQLWLDO
SRVLWLRQ

&38UHTXHVW
&38FRPPDQG
IUDPH

6WDUW75(6

7!75(6
:DLWIRU (UURUDERUWLRQ
UHVSRQVH
IUDPH

5HVSRQVHIUDPH
UHFHLYHG

$OOGDWDWUDQVIHUUHG
&38UHTXHVW
0RUH FRPSOHWHG
VXEEORFNV
6HQG
FRQWLQXDWLRQ
FRPPDQGIUDPH

6WDUW75(6

7!75(6RUILUVW
UHVSRQVHIUDPH
:DLWIRUFRQW UHFHLYHG
UHVSIUDPH (UURUDERUWLRQ

&RQWUHVSRQVH
IUDPHUHFHLYHG

5HVSRQVHIUDPHPRQLWRULQJWLPH
GHSHQGHQWRQWUDQVPLVVLRQUDWH
75(6 V VV

Figure 2-18 Flow diagram of data transmission with the RK 512 when CPU requests are made

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-33
Basic Principles of Serial Data Transmission
2.5 Data Transmission with the RK 512 Computer Connection

RK 512 Partner Requests


The figure below shows the processes involved in the RK 512 computer connection when
partner requests are made.

3DUWQHU
UHTXHVWLQLWLDO
SRVLWLRQ

3DUWQHUFRPPDQG
IUDPHUHFHLYHG

6HQGGDWDWRRU
JHWGDWDIURP
WKH$6

(UURU

6HQGUHVSRQVHIUDPH 6HQGUHVSRQVHIUDPH
ZLWKRXWHUURU ZLWKHUURUPHVVDJH
PHVVDJH

3DUWQHUUHTXHVW
FRPSOHWHG

$OOGDWDWUDQVIHUUHG
0RUH
VXEEORFNV
6WDUW75(6

7!75(6RUILUVW
FRPPDQGIUDPH
:DLWIRU UHFHLYHG
FRQWLQXDWLRQ
IUDPH (UURUDERUWLRQ

&RQWUHVSRQVH
IUDPHUHFHLYHG

5HVSRQVHIUDPHPRQLWRULQJWLPHGHSHQGHQWRQWUDQVPLVVLRQUDWH
75(6 V VV 
$6 DXWRPDWLRQV\VWHP

Figure 2-19 Flow diagram of data transmission with the RK 512 when partner requests are made

Point-to-point connection CP 441 Installation and Parameter Assignment


2-34 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

2.6 Data Transmission with the ASCII Driver

Introduction
The ASCII driver controls data transmission via a point-to-point connection between the
communication processor and a communication partner. This driver contains the physical
layer (layer 1).
The structure of the message frames is left open through the S7 user passing on the
complete send message frame to the communication processor. For the receive direction,
the end criterion of a message must be configured. The structure of the send message
frames may differ from that of the receive message frames.
The ASCII driver allows data of any structure (all printable ASCII characters as well as all
other characters from 00 through FFH (with 8 data bit character frames) or from 00 through
7FH (with 7 data bit character frames) to be sent and received.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-35
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

2.6.1 Sending Data with the ASCII Driver

Sending Data
When you send data, you specify the number of user data bytes to be transferred in the
"LEN" parameter of the call for the BSEND system function block.
When you work with the end criterion "Character Delay Time" when receiving data, the
ASCII driver pauses between two message frames when sending. You can call the BSEND
SFB at any time, but the ASCII driver does not begin with output until a time greater than the
configured character delay time has passed since the last message frame was sent.

Note
When XON/XOFF flow control is configured, the user data must not contain the configured
XON or XOFF characters. The default settings are DC1 = 11H for XON and DC3 = 13H for
XOFF.

If you work with the "End-of-Text Character" criterion, you have a choice of three options:
• Send up to and including the end-of-text character
The end-of-text character must be included in the data to be sent. Data is sent only up to
and including the end-of-text character, even if the data length specified in the FB is
longer.
• Send up to length configured at the FB
Data is sent up to the length configured at the FB. The last character must be the end-of-
text character.
• Send up to the length configured at the FB and automatically append the end-of-text
character or characters
Data is sent up to the length configured at the FB. The end-of-text character is
automatically appended, in other words the end-of-text characters must not be included in
the data to be sent. 1 or 2 characters more than the number specified at the FB are sent
to the partner, depending on the number of end-of-text characters.
When you work with the end criterion "Fixed Message Frame Length", the number of data
bytes transferred in the send direction is as specified for the "LEN" parameter of the BSEND.
The number of data bytes transferred in the receive direction, i.e. in the receive DB, is as
specified at the receiver using the "fixed message frame length" parameter in the parameter
assignment interface interface. The two parameter settings must be identical, in order to
ensure correct data traffic. A pause equal to the length of the character delay time (CDT) is
inserted between two message frames when sending, to allow the partner to synchronize
(recognize start of message frame).
If some other method of synchronization is used, the pause in sending can be deactivated by
means of the parameter assignment interface.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-36 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

Send Operation
The figure below illustrates a send operation.

:DLWLQJIRU
VHQGUHTXHVW
5HTXHVWSURFHVVHG

6HQGUHTXHVWDUULYHG


7KHDPRXQWRIGDWDWR
6HQGLQJ
EHVHQWLVWDNHQIURP
XVHUGDWD
WKH/(1SDUDPHWHURI
WKHVHQGUHTXHVW

Figure 2-20 Sequence of a send operation

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-37
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

2.6.2 Receiving Data with the ASCII Driver

Selectable End Criteria


For data transmission using the ASCII driver you can choose between three different end
criteria. The end criterion defines when a complete message frame is received. The possible
end criteria are as follows:
• Expiration of the character delay time
The message frame has neither a fixed length nor a defined end-of-text character; the
end of the message is defined by a pause on the line (expiration of character delay time).
• On receipt of end character(s)
The end of the message frame is marked by one or two defined end-of-text characters.
• On receipt of fixed number of characters
The length of the receive message frames is always identical.

Code Transparency
The code transparency of the procedure depends on the choice of configured end criterion
and flow control:
• With one or two end-of-text characters
– not code-transparent
• When end criterion is character delay time or fixed message frame length
– code-transparent
• Code-transparent operation is not possible when the flow control XON/XOFF is used.
Code-transparent means that any character combinations can occur in the user data without
the end criterion being recognized.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-38 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

End Criterion "Expiration of Character Delay Time"


When data is received, the end of the message frame is recognized when the character
delay time expires. The received data is accepted from the CPU.
In this case the character delay time must be set such that it easily expires between two
consecutive message frames. But it should be long enough so that the end of the message
frame is not falsely identified whenever the partner in the link takes a send pause within a
message frame.
The figure below illustrates a receive operation with the end criterion "expiry of character
delay time".

:DLWLQJIRU
FKDUDFWHU
(QGFULWHULRQIRUPHVVDJHIUDPHLGHQWLILHGHUURUHQWU\IROORZV

&KDUDFWHU
DUULYHG
0HVDJHIUDPEXIIHUHG

&KDUDFWHUUHFHLYHG (UURUZKHQUHFHLYLQJ
ZLWKFKDUDFWHUGHOD\ QRWDFKDUDFWHUGHOD\
WLPHPRQLWRULQJ WLPHHUURU

:DLWLQJIRUFKDUDFWHU
GHOD\WLPH5HFHLYHG
0HVVDJHIUDPH FKDUDFWHUVGLVFDUGHG
FRPSOHWH FKDUDFWHU
GHOD\WLPHH[SLUHG

0HVVDJHIUDPH
HQWHUHGLQUHFHLYH
EXIIHU

(QWHUHUURULQ6<67$7
HUURUVLJQDOLQJDUHD

Figure 2-21 Sequence of receive operation with "Expiration of Character Delay Time" end criterion

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-39
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

End Criterion End-of-Text Character


When data is received, the end of the message frame is recognized when the configured
end-of-text character(s) arrive. The received data including the end-of-text character(s) is
accepted from the CPU.
If the character delay time expires while the message frame is being received, the receive
operation is terminated. An error message is issued and the message frame fragment is
discarded.
If you are working with end-of-text characters, transmission is not code-transparent, and you
must make sure that the end code(s) are not in the user data of the user.
Note the following when the last character in the received message frame is not the end-of-
text character.
• End-of-text character elsewhere in the message frame:
All characters including the end-of-text character are entered in the receive DB. The
characters following the end-of-text character
– is discarded if the character delay time (CDT) expires at the end of the message
frame.
– is merged with the next message frame if a new message frame is received before the
character delay time expires.
• End-of-text character not included in message frame:
The message frame
– is discarded if the character delay time (CDT) expires at the end of the message
frame.
– is merged with the next message frame if a new message frame is received before the
character delay time expires.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-40 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

The figure below illustrates a receive operation with the end criterion "end-of-text character".

:DLWLQJIRU
FKDUDFWHU
(QGFULWHULRQIRUPHVVDJHIUDPHLGHQWLILHGHUURUHQWU\IROORZV

&KDUDFWHU
DUULYHG
0HVVDJHIUDPEXIIHUHG

&KDUDFWHUUHFHLYHG
ZLWKHQGFRQWURODQG
FKDUDFWHUGHOD\WLPH

(UURUZKHQUHFHLYLQJ
0HVVDJH
IUDPH
FRPSOHWH :DLWLQJIRU
YDOLGHQGFRGH

0HVVDJHIUDPH
HQWHUHGLQUHFHLYHEXIIHU
&KDUDFWHU
GHOD\WLPH
H[SLUHG

(QWHUHUURULQ
6<67$7
HUURUVLJQDOLQJDUHD

Figure 2-22 Sequence of receive operation with "End-of-Text Character" end criterion

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-41
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

End Criterion Fixed Message Frame Length


When data is received, the end of the message frame is recognized when the configured
number of characters has arrived. The received data is accepted from the CPU.
If the character delay time expires before the configured number of characters has been
reached, the receive operation is terminated. An error message is issued and the message
frame fragment is discarded.
Note the following if the message frame length of the received characters does not match
the configured fixed message frame length:
• Message frame length of received characters greater than configured fixed message
frame length:
All characters received after the parametered fixed message frame length is reached
– is discarded if the character delay time (CDT) expires at the end of the message
frame.
– is merged with the next message frame if a new message frame is received before the
character delay time expires.
• Message frame length of received characters less than parametered fixed message
frame length:
The message frame
– is discarded if the character delay time (CDT) expires at the end of the message
frame.
– is merged with the next message frame if a new message frame is received before the
character delay time expires.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-42 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

The figure below illustrates a receive operation with the end criterion "fixed message frame
length".

:DLWLQJIRU
FKDUDFWHU
(QGFULWHULRQIRUPHVVDJHIUDPHLGHQWLILHGHUURUHQWU\IROORZV

&KDUDFWHU
DUULYHG
0HVVDJHIUDPHEXIIHUHG

&KDUDFWHUUHFHLYHG
ZLWKOHQJWKFRQWURO
DQGFKDUDFWHU
GHOD\WLPH

0HVVDJH (UURUZKHQUHFHLYLQJ
IUDPH
FRPSOHWH :DLWLQJIRU
SDUDPHWHUL]HGQXPEHU
RIFKDUDFWHUV

0HVVDJHIUDPHHQWHUHG
LQUHFHLYHEXIIHU

&KDUDFWHU
GHOD\WLPH
H[SLUHG
(QWHUHUURULQ6<67$7
HUURUVLJQDOLQJDUHD

Figure 2-23 Sequence of receive operation with "Fixed Message Frame Length" end criterion

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-43
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

Receive Buffer on CP 441


The CP 441 receive buffer accommodates 4096 bytes. During the parameter assignment,
you can specify whether overwriting of data in the receive buffer should be prevented. You
can also specify the value range (1 to 250) for the number of buffered receive message
frames.
The receive buffer on the CP 441 is a ring buffer:
• If several message frames are entered in the receive buffer of the CP 441, the following
applies: it is always the oldest one that is sent from the CP 441 to the CPU.
• If you only ever want to send the most recent message frame to the CPU, you must set
the value "1" for the number of buffered message frames and deactivate the overwrite
protection.

Note
If the constant reading of the received data from the user program is interrupted for a
while, you may find that when the received data is requested again, the CPU first
receives old message frames from the CP 441 before it receives the most recent one.
The old message frames were either on the way between the CP 441 and CPU or had
already been received by the SFB.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-44 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

2.6.3 RS 485 Mode

Introduction
When you run the ASCII driver in RS 485 mode (half-duplex, two-wire mode), you must take
steps in the user program to ensure that only one user sends data at any one time. If two
users send data simultaneously, the message frame is corrupted.

RS 232C Secondary Signals


The following RS 232C secondary signals are available on the RS 232C interface
submodule of the CP 441:
• DCD (input) Data carrier detect;
Data carrier detected
• DTR (output) Data terminal ready;
CP 441 ready for operation
• DSR (input)Data set ready;
Communication partner ready
• RTS (output)Request to send;
CP 441 ready to send
• CTS (input) Clear to send;
Communication partner can receive data from CP 441
(Response to RTS = ON of the CP 441)
• RI (input) Ring Indicator;
Ring Indicator
When the CP 441 is switched on, the output signals are in the OFF state (inactive).
You can configure the use of the DTR/DSR and RTS/CTS control signals by means of the
CP 441: Configuration Package for Point to Point Communication parameter assignment
interface or control them using the function blocks (FBs) in the user program.

RS 232C Secondary Signals


The RS 232C secondary signals can be used as follows:
• When the automatic use of all RS 232C secondary signals is configured
• When data flow control (RTS/CTS) is configured
• By means of the V24_STAT and V24_SET functions (FBs)

Note
When automatic use of the RS 232C secondary signals is configured, neither RTS/CTS
data flow control nor RTS and DTR control by means of the V24_SET FB are possible.
|When RTS/CTS data flow control is configured, RTS control by means of the V24_SET
FB is not possible. On the other hand, it is always possible to read all RS 232C
secondary signals by means of the V24_STAT FB.

The sections that follow describe how the control and evaluation of the RS 232C secondary
signals is handled.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-45
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

Automatic Use of the Secondary Signals


The automatic use of the RS 232C secondary signals on the CP 441 is implemented as
follows:
• As soon as the parameter configuration puts the CP 441 into an operating mode with
automatic operation of the RS 232C secondary signals, it sets the RTS line to OFF and
the DTR line to ON (CP 441 ready for operation).
The sending and receiving of message frames is only possible after the DTR line has
been set to ON. As long as DTR remains set to OFF, no data is received via the RS 232C
interface. If a send request is made, it is aborted with an error message.
• When a send request is made, RTS is set to ON and the configured data output waiting
time starts. When the data output time elapses and CTS = ON, the data is sent via the
RS 232C interface.
• If the CTS line is not set to ON within the data output time so that data can be sent, or if
CTS changes to OFF during transmission, the send request is aborted and an error
message generated.
• After the data is sent, the RTS line is set to OFF after the configured time to RTS OFF
has elapsed. The CP does not wait for CTS to change to OFF.
• Data can be received via the RS 232C interface as soon as the DSR line is set to ON. If
the receive buffer of the CP 441 threatens to overflow, the CP 441 does not respond.
• A send request or data receipt is aborted with an error message if DSR changes from ON
to OFF. The message "DSR = OFF (automatic use of V24 signals)" is entered in the
diagnostic buffer of the CP 441 .

Note
Automatic use of the RS 232C secondary signals is only possible in half-duplex mode.
When automatic use of the RS 232C secondary signals is configured, neither RTS/CTS
data flow control nor RTS and DTR control by means of the V24_SET FB are possible.
The "time to RTS OFF" must be set in the parameter assignment interface so that the
communication partner can receive the last characters of the message frame in their
entirety before RTS, and thus the send request, is taken away. The "data output waiting
time" must be set so that the communication partner can be ready to receive before the
time elapses.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-46 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

Time Diagram
The figure illustrates the chronological sequence of a send request.

21
576
2))

21
&76
2))


7;'

7UDQVPLVVLRQ W
6HQGUHTXHVW WHUPLQDWHG
576 21 

3DUWQHU 7LPHWR5762))
&76 21 HODSVHG

'DWDRXWSXWZDLWWLPH 3DUWQHU
H[SLUHGඎ6HQG &76 2))

'DWDRXWSXW 7LPHWR576
ZDLWLQJWLPH 2))

Figure 2-24 Time diagram of automatic use of the RS 232C secondary signals

Software Handshake / Hardware Handshake


Handshaking controls the data flow between two communication partners. Handshaking
ensures that data is not lost in transmissions between devices that work at different speeds.
There are essentially two types of handshaking:
• Software handshaking (e.g. XON/XOFF)
• Hardware handshaking (e.g. RTS/CTS)
Data flow control is implemented as follows on the CP 441:
• As soon as the CP 441 is switched by the parameter configuration to an operating mode
with flow control, it sends the XON character or sets the RTS line to ON.
• When the configured number of message frames is reached, or alternatively 50
characters before the receive buffer overflows (size of the receive buffer: 4096 bytes), the
CP 441 sends the XOFF character or sets the RTS line to OFF. If the communication
partner continues to send data regardless of this, the receive buffer overflows and an
error message is generated. The data received in the last message frame is discarded.
• As soon as a message frame is fetched by the S7 CPU and the receive buffer is ready to
receive, the CP 441 sends the XON character or sets the RTS line to ON.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-47
Basic Principles of Serial Data Transmission
2.6 Data Transmission with the ASCII Driver

• If the CP 441 receives the XOFF character, or the CTS control signal is set to OFF, the
CP 441 interrupts the transmission. If neither an XON character is received nor CTS is
set to ON before a configured time has elapsed, the transmission is aborted and an
appropriate error message (0708H) is entered in the SYSTAT error-signaling area of the
CP 441.

Note
When RTS/CTS data flow control is configured, you must fully wire the interface signals in
the plug connection (see Appendix B). |When RTS/CTS data flow control is configured,
RTS control by means of the V24_SET FB is not possible.

Tasks of the V24_STAT/SET FB


The FB V24_STAT function allows the status of each RS 232C secondary signal to be
determined. The V24_SET FB allows the DTR and RTS output signals to be controlled.

Switch-over Times for RS485 Module in Half-Duplex Mode


The maximum switch-over time between sending and receiving is 1 ms.
This value is applicable to modules as of MLFB number 6ES7 441-XAA03 / -0AE0

See also
Interface Submodule X27 (RS 422/485) (Page B-15)
Using the System Function Blocks with the ASCII Driver (Page 6-35)

Point-to-point connection CP 441 Installation and Parameter Assignment


2-48 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.7 Data Transmission with the Printer Driver

2.7 Data Transmission with the Printer Driver

Introduction
The printer driver allows you to output message texts with the date and time to a printer. This
enables you to monitor simple processes, print error or fault messages or issue instructions
to the operating personnel, for example.
The printer driver contains the physical layer (layer 1).

Message Texts and Parameters for Printer Output


With the CP 441: Configuration Package for Point to Point Communication parameter
assignment interface, you can configure the message texts and set the parameters (page
layout, character set, control characters) for printer output. Message texts and printer output
parameters are transmitted to the CP 441 together with the module parameters when it
starts up.
• Message texts:
You can configure message texts with variables and control statements (e.g. for bold,
condensed, expanded or italic type and underlining). Each message text is assigned a
number during parameter assignment. You print out a specific message text by specifying a
reference (to the memory cell containing the message text number) for send parameters
SD_1 to SD_4 of the PRINT system function block.
• Page layout:
You can configure the margins, possible line breaks and headers and footers.
• Character set:
The ANSI character set is converted to the printer character set by STEP 7 by means of a
character conversion table. You can change a character conversion table suggested for a
printer type in order to include special characters required for a particular language, for
example.
• Control characters:
By means of a control character table you can change the control statements in the message
text for the printer emulation for switching on and off bold, condensed, expanded or italic
type and underlining and to add control characters.

Printer Output
To output n bytes of user data to a printer, the format string and the variables of the
message text must be specified as parameters when the PRINT system function block is
called.
During output the data is edited for printing. The print editing is performed as configured in
the CP 441: Configuration Package for Point to Point Communication parameter assignment
interface (page layout, character set, control characters, etc.).
Characters are not received during printer output. The exception to this are any flow control
characters that have been configured. Any characters received are not adopted.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-49
Basic Principles of Serial Data Transmission
2.7 Data Transmission with the Printer Driver

Message Text Output


The figure below illustrates the sequence of operations at printer output.

:DLWIRUD
SULQWMRE
5HTXHVWSURFHVVHG

3ULQWMREUHFHLYHG

7KHQXPEHURIWKH
3ULQWHGLWLQJDQG PHVVDJHWH[WLVREWDLQHG
RXWSXWRIWKH IURPWKHSDUDPHWHUV
PHVVDJHWH[W )250$7DQG6'BWR
6'BLQWKH35,176)%

Figure 2-25 Flow chart of printer output

See also
Parameters for the Communications Protocols (Page 5-3)

Point-to-point connection CP 441 Installation and Parameter Assignment


2-50 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

2.8 Parameter Assignment Data of the Protocols

Introduction
By selecting different protocols, you can adjust your CP 441 communication processor to suit
the properties of the communication partner.
The sections that follow describe the parameter assignment data of the 3964(R) procedure,
RK 512 computer connection, ASCII driver and printer driver.

2.8.1 Parameter Assignment Data of the 3964(R) Procedure

Parameter Assignment Data of the 3964(R) Procedure


Using the parameter assignment data of the 3964(R) procedure, you can adjust the CP 441
to suit the properties of its communication partner.
With the CP 441: Configuration Package for Point to Point Communication parameter
assignment interface, you can specify the parameters for the physical layer (layer 1) and for
the data connection (layer 2) of the 3964(R) procedure. You will find a detailed description of
the parameters below.

X27 (RS422/485) interface submodule


Please note the following with reference to the X27 (RS 422/485) interface submodule:

Note
When the X27 (RS 422/485) interface submodule is used, the 3964(R) procedure can only
be used in four-wire mode.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-51
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Protocol
The following table describes the protocol.

Table 2-2 3964(R) Protocol

Parameters Description Default Value


3964 with default • The protocol parameters are set to default values. 3964R with standard values
values and no block • If the CP 441 recognizes the string DLE ETX, it stops receiving with block check:
check and sends a DLE to the communication partner if the block was
received undamaged, or an NAK if it was damaged. CDT = 220 ms
3964R with default • The protocol parameters are set to default values. ADT = 2000 ms
values and block • If the CP 441 recognizes the string DLE ETX BCC, it stops
check receiving and compares the received block check character with Setup attempts = 6
the longitudinal parity calculated internally. If the BCC is correct Transmission attempts = 6
and no other receive errors have occurred, the CP 441 sends
the code DLE to the communication partner. If the BCC is
correct and no other receive errors have occurred, the CP 441
sends the code DLE to the communication partner (the NAK
code is sent if an error occurs).
3964 • The protocol parameters are programmable.
programmable • If the CP 441 recognizes the string DLE ETX, it stops receiving
without block check and sends a DLE to the communication partner if the block was
received undamaged, or an NAK if it was damaged.
3964R • The protocol parameters are programmable.
programmable with • If the CP 441 recognizes the string DLE ETX BCC, it stops
block check receiving and compares the received block check character with
the longitudinal parity calculated internally. If the BCC is correct
and no other receive errors have occurred, the CP 441 sends
the code DLE to the communication partner. If the BCC is
correct and no other receive errors have occurred, the CP 441
sends the code DLE to the communication partner (the NAK
code is sent if an error occurs).

Point-to-point connection CP 441 Installation and Parameter Assignment


2-52 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Protocol parameters
You can only set the protocol parameters if you have not set the default values in the
protocol.

Table 2-3 Protocol Parameters (3964(R) Procedure)

Parameters Description Range of values Default


Value
Character delay The character delay time defines the permissible 20 ms to 655350 ms in 10-ms 220 ms
time maximum interval between two incoming increments
characters in a message frame. The shortest character delay time
depends on the baud rate:
• 300 bps 60 ms
• 600 bps 40 ms
• 1200 bps 30 ms
• 2400 to 115200 bps 20 ms
Acknowledgement The acknowledgment delay time defines the 20 ms to 655350 ms in 10-ms 2000 ms
delay time (ADT) maximum amount of time permitted for the increments (550 ms with
partner's acknowledgment to arrive during The shortest acknowledgment 3964 without
connection setup (time between STX and delay time (ADT) depends on the block check)
partner's DLE acknowledgment) or release (time baud rate:
between DLE ETX and partner's DLE
• 300 bps 60 ms
acknowledgment).
• 600 bps 40 ms
• 1200 bps 30 ms
• 2400 to 115200 bps 20 ms
Setup attempts This parameter defines the maximum number of 1 to 255 6
attempts the CP 441 is allowed in order to
establish a connection.
Transmission This parameter defines the maximum number of 1 to 255 6
attempts attempts to transfer a message frame (including
the first one) in the event of an error.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-53
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Baud Rate / Character Frame


The following table describes the baud rate / character frame.

Table 2-4 Baud Rate / Character Frame (3964(R) Procedure)

Parameters Description Range of values Default


Value
Baud rate Speed of data transmission in bits per second (baud) • 300 9600
Note: • 600
The maximum baud rate for the CP 441-1 is 38400 bps, and the • 1200
total baud rate of the CP 441-2 is 115200 bps. This means that • 2400
the combined baud rates of both interface submodules must not • 4800
exceed 115200 bps.
• 9600
A maximum of 19200 baud is possible for the 20mA TTY • 19200
interface submodel.
• 38400
• 57600
• 76800
• 115200
Start bit During transmission, a start bit is prefixed to each character to 1 (fixed value) 1
be sent.
Data bits Number of bits onto which a character is mapped. • 7 8
• 8
Stop bits During transmission, stop bits are appended to every character • 1 1
to be sent, indicating the end of the character. • 2
Parity A sequence of information bits can be extended to include • none even
another bit, the parity bit. The addition of its value (0 or 1) brings • odd
the value of all the bits up to a defined status. thus enhancing • even
parity. A parity of "none" means that no parity bit is transmitted.
Priority A partner has high priority if its send request takes precedence • high high
over the send request of the other partner. A partner has low • high
priority if its send request must wait until the send request of the
other partner has been dealt with. With the 3964(R) procedure,
you must configure both communication partners with different
priorities, i.e. one partner is assigned high priority, the other low.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-54 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Receive Buffer on CP
The following table describes the parameters for the CP receive buffer.

Table 2-5 Receive buffer on CP (3964(R) procedure)

Parameters Description Range of Default


values Value
Delete CP receive The CP receive buffer of the CP 441 is not deleted at CPU start-up yes (fixed) No
buffer at start-up (STOP RUN transition).
Use CPU receive Here you can specify whether a receive mailbox is to be set up on the • Yes No
mailbox CPU. • No
You must set up a receive mailbox if you have not programmed a
BRCV system function block for the CP 441 in the user program of
the CPU.
If you have programmed a BRCV, you must deactivate this
parameter, otherwise data will be stored in the receive mailbox
defined here instead of being processed by the BRCV.
DB number Number of the data block for the receive mailbox on the CPU. 1 to 65535 1
(Only when "use (depending on
receive mailbox on the CPU)
CPU" = "yes".)

X27 (RS 422) Interface


You will find the description of the parameters for the X27 (RS 422) interface in the following
table: RS 485 operation is not possible in conjunction with the 3964(R) procedure.

Table 2-6 X27 (RS 422) Interface (3964(R) procedure)

Parameters Description Range of values Default Value


Initial state of none: This setting only makes sense with bus- none R(A) 5V / R(B) 0V
receive line capable special drivers.
R(A) 5V / R(B) 0V: Break detection is possible R(A) 5V / R(B) 0V
with this initial state.
R(A) 0V / R(B) 5V: Break detection is not R(A) 5V / R(B) 0V
possible with this initial state.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-55
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Initial state of receive line


The figure illustrates the wiring of the recipient at the X27 (RS 422) interface:

5 % 
QRQH
5 $ 

9

5 % 
5 $ 95 % 9
5 $ 

9

9

5 % 
5 $ 95 % 9
5 $ 

9

Figure 2-26 Wiring of the recipient at the X27 (RS 422) interface (3964(R) driver)

See also
Parameters for the Communications Protocols (Page 5-3)

Point-to-point connection CP 441 Installation and Parameter Assignment


2-56 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

2.8.2 Parameter Assignment Data of the RK 512 Computer Connection

Introduction
You can use the parameter assignment data of the RK 512 computer connection to adjust
the CP 441 to suit the properties of the communication partner.

Parameter Assignment Data of the RK 512 Computer Connection


The parameters are identical to those of the 3964(R) procedure because the 3964(R)
procedure is a subset of the RK 512 computer connection in the ISO 7-layer reference
model.

Note
Exception: The number of data bits per character is set permanently to 8 with the RK 512
computer connection.

The parameters of the transport layer (layer 4) must be specified in the system function
blocks (SFB) used.

See also
Parameter Assignment Data of the 3964(R) Procedure (Page 2-51)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-57
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

2.8.3 Parameter Assignment Data of the ASCII Driver

Introduction
Using the parameter assignment data of the ASCII driver, you can adjust the communication
processor to suit the properties of the communication partner.

Parameter Assignment Data of the ASCII Driver


For the CP 441: Configuration Package for Point to Point Communication parameter
assignment interface, specify the parameters for the physical layer (layer 1) of the ASCII
driver. You will find a detailed description of the parameters below.

X27 (RS422/485) interface submodule


Please note the following with reference to the X27 (RS 422/485) interface submodule:

Note
When the X27 (RS 422/485) interface submodule is used, the ASCII driver can be used in
four-wire mode (RS 422) and two-wire mode (RS 485). During parameter assignment, you
specify the type of interface (RS 422 or RS 485).

Point-to-point connection CP 441 Installation and Parameter Assignment


2-58 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Protocol parameters
The table below describes the protocol parameters.

Table 2-7 Protocol Parameters (ASCII Driver)

Parameters Description Range of values Default Value


Indicator for end of Defines which criterion signals the • After expiration of the After expiration of the
receive message frame end of each message frame. character delay time character delay time
• On receipt of end-of-text
character
• After receipt of a fixed
number of characters
Character delay time The character delay time defines the 2 to 65535 ms 4 ms
maximum permitted time between 2 The shortest character delay
consecutively received characters. time depends on the baud rate.
Baud Character
delay time
• 300 • 130
• 600 • 65
• 1200 • 32
• 2400 • 16
• 4800 • 8
• 9600 • 4
• 19200 • 2
• 38400 • 2
• 57600 • 2
• 76800 • 2
• 115200 • 2
end-of-text character 1(1) First end code. • at 7 data bits: 3 (03H = ETX)
0 to 7FH (Hex)(2)
• 8 data bits:
0 to FFH (Hex) (2)
end-of-text character 2(1) Second end code, if specified. • at 7 data bits: 0
0 to 7FH (Hex)(2)
• with 8 data bits:
0 to FFH (hex) (2)
Message frame length When the end criterion is "fixed 1 to 4096 (bytes) 240
when received (3) message frame length", the number
of bytes making up a message frame
is defined.
(1) Can only be set if the end criterion is an end-of-text character.
(2) Depending on whether you set 7 or 8 data bits for the character frame.
(3) Can only be set if the end criterion is fixed message frame length.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-59
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Baud Rate / Character Frame


The table below contains descriptions of and specifies the value ranges of the relevant
parameters.

Table 2-8 Baud Rate / Character Frame (ASCII Driver)

Parameters Description Range of values Default Value


Baud rate Speed of data transmission in bits per second (baud) • 300 9600
Note: • 600
The maximum baud rate of the CP 441-1 is 38400 bps. • 1200
The total baud rate of the CP 441-2 is 115200 bps. This • 2400
means that the combined baud rates of both interface • 4800
submodules must not exceed 115200 bps.
• 9600
The maximum baud rate for the 20 mA TTY interface • 19200
submodule is 19200 bps.
• 38400
• 57600
• 76800
• 115200
Start bit During transmission, a start bit is prefixed to each 1 (fixed value) 1
character to be sent.
Data bits Number of bits onto which a character is mapped. • 7 8
• 8
Stop bits During transmission, stop bits are appended to every • 1 1
character to be sent, indicating the end of the character. • 2
Parity A sequence of information bits can be extended to • none even
include another bit, the parity bit. The addition of its • odd
value ("0" or "1") brings the value of all the bits up to a • even
defined status. Thus enhancing parity.
A parity of "none" means that no parity bit is transmitted.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-60 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Data Flow Control


The table below contains descriptions of the parameters for data flow control.
Data flow control is not possible with the RS 485 interface. Flow control with "RTS/CTS" and
"automatic operation of V24 signals" is only supported at the RS 232C interface.

Table 2-9 Data flow control (ASCII driver)

Parameters Description Range of values Default Value


Data Flow Control Defines which data flow control procedure • none none
is used. • XON/XOFF
• RTS/CTS
• Automat. operation of the
V24 signals
XON character (1) Code for XON character • at 7 data bits(2): 11 (DC1)
0 to 7FH (Hex)
• 8 data bits(2):
0 to FFH (Hex)
XOFF character (1) Code for XOFF character • at 7 data bits(2): 13 (DC3)
0 to 7FH (Hex)
• 8 data bits(2):
0 to FFH (Hex)
Waiting for XON after Period of time for which the 20 ms to 655350 ms 20000 ms
XOFF (wait time for communication processor should wait for in 10-ms increments
CTS=ON) (3) the XON code or for CTS="ON" of the
communication partner when sending.
Time to RTS OFF (4) Time to elapse after the transmission 0 ms to 655350 ms 10 ms
before the communication processor sets in 10-ms increments
the RTS line to OFF.
Data output waiting time (4) Time that the ommunication processor • 0 ms to 655350 ms 10 ms
should wait for the communication partner in 10-ms increments
to set CTS to ON after setting the RTS
line to ON and before starting the
transmission.
(1) Only for data flow control with XON/XOFF.
(2) Depending on whether you set 7 or 8 data bits for the character frame.
(3) Only for data flow control with XON/XOFF or RTS/CTS.
(4) Only for automatic use of the RS 232C secondary signals.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-61
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Receive Buffer on CP
The following table describes the parameters for the CP receive buffer.

Table 2-10 Receive Buffer on CP (ASCII Driver)

Parameters Description Range of values Default


Value
Delete CP receive buffer at The CP receive buffer of the CP 441 is not deleted at yes (fixed) No
start-up CPU start-up (STOP → RUN transition).
Buffered receive message Here you can specify the number of receive message 1 to 250 250
frames frames to be buffered in the CP receive buffer.
If you specify "1" here and deactivate the following
parameter "prevent overwrite" and cyclically read the
received data from the user program, a current message
frame will always be sent to the CPU.
Prevent overwrite You can deactivate this parameter if the parameter • Yes Yes
"buffered receive message frames" is set to "1". This • no (2)
authorizes the buffered receive message frame to be
overwritten.
Use CPU receive mailbox Here you can specify whether a receive mailbox is to be • Yes No
set up on the CPU. • No
You must set up a receive mailbox if you have not
programmed a BRCV system function block for the
CP 441 in the user program of the CPU.
If you have programmed a BRCV, you must deactivate
this parameter, otherwise data will be stored in the
receive mailbox defined here instead of being processed
by the BRCV.
DB number (1) Number of the data block for the receive mailbox on the 1 to 65535 1
CPU. (depending on the
CPU)
(1) Only when "Use CPU Receive Mailbox" = "Yes"
(2) Only when "Buffered receive message frames" = "1"

Point-to-point connection CP 441 Installation and Parameter Assignment


2-62 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

X27 (RS 422/485) interface


The table below contains descriptions of the parameters for the X27 (RS 422/485) interface
submodule. RS485 operation is not possible in conjunction with the printer.

Table 2-11 X27 (RS 422/485) interface submodule (ASCII driver)

Parameters Description Range of values Default Value


Operating mode Specifies whether the X27 • Full-duplex (RS 422) Full-duplex (RS 422) four-
(RS 422/485) interface is to be run in four-wire mode wire mode
full-duplex mode (RS 422) or half- • Half-duplex (RS 485)
duplex mode (RS 485). two-wire mode
Initial state of none: This setting only makes sense none R(A) 5V / R(B) 0V (2)
receive line with bus-capable special drivers.
R(A) 5V / R(B) 0V: break detection is R(A) 5V / R(B) 0V (1)
possible with this initial state in
conjunction with "Full Duplex (RS 422)
Four-Wire Mode".
R(A) 0V / R(B) 5V: this initial state R(A) 0V / R(B) 5V
corresponds to idle (no senders active)
in "Half Duplex (RS 485) Two-Wire
Mode". Break detection is not possible
with this initial state.
(1) Only in the case of "Full-Duplex (RS 422) Four-Wire Mode"
Only in the case of "Full-Duplex (RS 422) Four-Wire Mode"; in the case of "Half-Duplex (RS 485) Two-Wire Mode", the
(2)

default setting is R(A) 0V / R(B) 5V.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-63
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Initial state of receive line


The figure illustrates the wiring of the recipient at the X27 (RS 422/ 485) interface:

5 % 

5 $ 

9

5 % 
5 $ 95 % 9
5 $ 

9

9

5 % 
5 $ 95 % 9
5 $ 

9

Figure 2-27 Wiring of the recipient at the X27 (RS 422/485) interface (ASCII driver)

See also
Parameters for the Communications Protocols (Page 5-3)
Data Transmission with the ASCII Driver (Page 2-35)

Point-to-point connection CP 441 Installation and Parameter Assignment


2-64 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

2.8.4 Parameter Assignment Data of the Printer Driver

2.8.4.1 Parameter assignment data

Introduction
You can use the parameter assignment data of the printer driver to set the transmission-
specific parameters and the message texts for printer output.

Parameter Assignment Data of the Printer Driver


With the CP 441: Configuration Package for Point to Point Communication parameter
assignment interface, specify the following:
• The parameters for the physical layer (layer 1) of the printer driver
• The message texts for printer output
• The page layout, character set and control characters for the message texts
You will find a detailed description of the parameters below.

Note
Please note the following:
• The size of the message text buffer depends on the module:
– 8 KB per interface for the CP 441, 6ES7 441-XAA00-0AE0
– 8 KB per interface for the CP 441, 6ES7 441-XAA01-0AE0
– 55 KB per interface for the CP 441, 6ES7 441-XAA02-0AE0
– 55 KB per interface for the CP 441, 6ES7 441-XAA03-0AE0
– 55 KB per interface for the CP 441, 6ES7 441-XAA04-0AE0
• The message texts are stored in the CPU's load memory together with the parameter
assignment data and loaded automatically onto the CP 441 during the loading operation.
You must therefore reserve the corresponding memory space in the load memory of the
CPU for every interface for which you have created message texts.
• Before you transfer the message texts to the CP 441 you must increase the value of the
parameter for transferring parameters to modules for the relevant CPU. You should plan
in approximately 20 s per interface.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-65
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Baud Rate / Character Frame


The table below contains descriptions of and specifies the value ranges of the relevant
parameters.

Note
Inreasing the max. number of signal numbers from 1000 to 4000
As of the CP 441, 6ES7 441-XAA04-0AE0 or the CP 441: Configuration Package for Point to
Point Communication parameter assignment interface V5.1 incl. SP6, you can configure up
to 4000 message text numbers (0-3999).

Table 2-12 Baud Rate/Character Frame (Printer Driver)

Parameters Description Range of values Default


Value
Baud rate Speed of data transmission in bits per second (baud) • 300 9600
Note: • 600
The maximum baud rate for the CP 441-1 is 38400 bps. The total baud • 1200
rate of the CP 441-2 is 115200 bps, this means that the combined baud • 2400
rates of both interface submodules must not exceed 115200 bps. • 4800
A maximum of 19200 baud is possible for the 20mA TTY interface • 9600
submodule. • 19200
• 38400
• 57600
• 76800
• 115200
Start bit During transmission, a start bit is prefixed to each character to be sent. 1 (fixed value) 1
Data bits Number of bits onto which a character is mapped. • 7 8
• 8
Stop bits During transmission, stop bits are appended to every character to be • 1 1
sent, indicating the end of the character. • 2
Parity A sequence of information bits can be extended to include another bit, • none even
the parity bit. The addition of its value ("0" or "1") brings the value of all • odd
the bits up to a defined status. thus enhancing parity. • even
A parity of "none" means that no parity bit is sent.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-66 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

X27 (RS 422) Interface


The table below contains descriptions of the parameters for the X27 (RS 422) interface
submodule. RS485 operation is not possible in conjunction with the printer.

Table 2-13 X27 (RS 422) interface submodule (printer)

Parameters Description Range of values Default Value


Initial state of none: This setting only makes sense with bus-capable none R(A) 5V / R(B) 0V
receive line special drivers.
R(A) 5V / R(B) 0V: Break detection is possible with this R(A) 5V / R(B) 0V
initial state.
R(A) 0V / R(B) 5V: Break detection is not possible with R(A) 0V / R(B) 5V
this initial state.

Initial state of receive line


The figure illustrates the wiring of the recipient at the X27 (RS 422) interface:

5 % 
QRQH
5 $ 

9

5 % 
5 $ 95 % 9
5 $ 

9

9

5 % 
5 $ 95 % 9
5 $ 

9

Figure 2-28 Wiring of the recipient at the X27 (RS 422) interface

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-67
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Data Flow Control/ Handshaking


Handshaking controls the data flow between two communication partners. Handshaking
ensures that data is not lost in transmissions between devices that work at different speeds.
You can also send message texts with data flow control during printer output. There are
essentially two types of handshaking:
• Software handshaking (e.g. XON/XOFF)
• Hardware handshaking (e.g. RTS/CTS)
Data flow control is implemented as follows on the CP 441 during printer output:
• As soon as the CP 441 is switched by the parameter configuration to the operating mode
with flow control, it sends the XON character or sets the RTS line to ON.
• If the CP 441 receives the XOFF character, or the CTS control signal is set to OFF, the
CP 441 interrupts the output of characters. If neither an XON character is received nor
CTS is set to ON before a configured time has elapsed, the printer output is aborted and
an appropriate error message (0708H) is entered in the SYSTAT error-signaling area of
the CP 441.

Note
RTS/CTS data flow control is only possible when the RS 232C interface submodule is
used. To do this, you must fully wire the interface signals in the plug-in connection.

BUSY Signal
The CP 441 evaluates the printer's "BUSY" control signal. The printer indicates to the
CP 441 that it is ready to receive:
• In the case of the CP 441 with the 20mA TTY interface submodule: current on RxD line
• CP 441 with RS 232C and X27 (RS 422/485) interface submodule:
with signal CTS = "ON"

Note
When you configure with RTS/CTS flow control, you must set the polarity of the BUSY
signal on the printer as follows: BUSY signal: CTS = "OFF". Please note that some
printers use the DTR signal to display the BUSY signal. In such cases you must wire the
cable to the CP 441 appropriately.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-68 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Parameters for Data Flow Control


The table below contains descriptions of the parameters for data flow control.
Data flow control is not possible with the RS 485 interface. RTS/CTS data flow control is only
possible when the RS 232C interface submodule is used.

Table 2-14 Data flow control (printer driver)

Parameters Description Range of values Default Value


Data Flow Control Defines which data flow control procedure • none none
is used. • XON/XOFF
• RTS/CTS
XON character (1) Code for XON character • at 7 data bits: 11 (DC1)
0 to 7FH (Hex)(2)
• 8 data bits:
0 to FFH (Hex) (2)
XOFF character (1) Code for XOFF character • at 7 data bits: 13 (DC3)
0 to 7FH (Hex)(2)
• 8 data bits:
0 to FFH (Hex) (2)
Waiting for XON after Period of time for which the CP 441 should 20 to 655350 ms in 10 ms 2000 ms
XOFF (wait time for wait for the XON code or for CTS="ON" of increments
CTS=ON) (3) the communication partner when sending.
(1) Only for data flow control with XON/XOFF.
(2) Depending on whether you set 7 or 8 data bits for the character frame.
(3) Only for data flow control with XON/XOFF or RTS/CTS.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-69
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Page layout
The table below contains descriptions of the parameters for the page layout.

Table 2-15 Page layout (printer driver)

Parameters Description Range of values Default Value


Left margin (number of Number of spaces to precede each line in • 0 to 255 3
characters) the body of the text, header or footer. You
yourself must ensure that a line is not too
long for the printer.
Lines per page (with Number of lines to be printed on each • 1 to 255 50
header and footer) page. The number of printed lines is • 0 (continuous printing)
determined on the basis of the separators
output, which means that all header and
footer lines must be included in the count.
Separators/line end Characters concluding text, header and • CR CR LF
footer lines. (carriage return) (carriage return and
The output text, header and footer must • LF line feed)
contain the defined separator. If the (line feed)
header does not contain a separator, the • CR LF
text begins right at the top of the page. (carriage return and line
feed)
• LF CR
(line feed and carriage
return)
Header lines / Text for up to max. 2 header and footer • ASCII characters (text) -
Footer lines lines; a header or footer line is output • %P (conversion
when the entry field in the parameter statement for outputting
assignment software contains a text or at page numbers)
least a blank. If a text is specified only for (max. 60 characters)
the 2nd header or footer line, the 1st
header or footer line is automatically
padded with a blank and printed.
A blank line is output before and after the
headers/footers.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-70 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Character set
The table below contains descriptions of the parameters for the character set.

Table 2-16 Character Set (Printer Driver)

Parameters Description Range of values Default Value


Printer character set If you set "IBM", the system character set • IBM IBM
that is set in Windows is used (conversion of • User-defined
the ANSI character set to the printer
character set).
If you set "User-Defined", you can adapt the
character set to include special characters
for a particular language.

Control characters
The table below contains a description of the parameter for control characters.

Table 2-17 Control Characters (Printer Driver)

Parameters Description Range of values Default Value


Printer emulation Sets the printer emulation (printer • HP DeskJet HP DeskJet
commands for the following control • HP LaserJet
characters: bold, condensed, expanded and • IBM Proprinter
italic type and underlining).
• User-defined
If you set "User-defined", you can modify the
printer emulation and include additional
control characters of the printer. The
characters A to Z and a to z are permissible
as control characters.

Message texts
You can configure message texts with variables and control statements (e.g. for bold,
condensed, expanded or italic type and underlining). Each message text is assigned a
number during parameter assignment. You print out a specific message text by specifying a
reference (to the memory cell containing the message text number) for send parameters
SD_1 to SD_4 of the PRINT system function block.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-71
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Performance features
Conditions for configuring message texts:
• Max. size of the text SDB: 55 KB
• Max. length of a message text without variables: 150 characters
• Max. length of a message text with variables displayed: 4000 characters
• Max. number of variables per message text: 4 (3 + message text number)
• Max. number of message text numbers: 4000 (0 to 3999)
The net amount of memory space available for the message texts is dependent on the
smallest and largest message text number actually used. You can calculate the net
memory space available for message texts as follows:
Net memory space for message texts effectively =
56.400 - 2 x (the largest message text number used - the smallest message text number
used + 1)

Variables
Up to 4 variables (3 + a message text number) can be displayed in a message text. The
following can be displayed as variables: values calculated by the user program (e.g. levels),
date and time, strings (string variables) or other message texts. The variables are configured
as the send parameters SD_1 to SD_4 of the PRINT system function block.
A conversion statement must be specified in the configured message text or in the format
string for each variable, and the meaning and output format of the variable value must be
encoded in this statement.

Format string
The format string allows you to define the format and composition of a message text. The
format string can consist of:
• Text (all printable characters, for example: The level ... was reached at ... hours.)
• Conversion statements for variables (e.g. %N = expression of a message text stored on
the CP CP 441; the desired message text number is configured by means of the
reference (ANYPOINTER addressed to the memory cell in which the message text
number is stored) in the send variables SD_1 to SD_4).
For each variable there must be one conversion statement in the format string. The
conversion statements are applied to the variables in the sequence in which they occur in
the format string.
• Control statements with control characters for bold, condensed or italic type and
underlining (e.g. \B = bold type on) or with additional control characters you have defined.
You can use other control characters supported by your printer if you enter them in the
control characters table of the CP 441: Configuration Package for Point to Point
Communication parameter assignment interface and then make new parameter
assignments for the CP 441.
Please note that a line feed is carried out by default after each output.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-72 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Message texts
The following table contains descriptions of the parameters for configuring message texts
(using the CP 441: Configuration Package for Point to Point Communication parameter
assignment interface).

Table 2-18 Message Texts (Printer Driver)

Parameters Description Range of values Default


Value
Name of text SDB/text The message texts for a CP 441 (serial ASCII characters (max. 8 characters) -
file interface) must be stored in a text SDB for
parameter assignment. You can also store
configured message texts in an external text
file.
Version number Version number of the text SDB/text file 0.1 to 99.9 -
Message texts All the message texts stored in the text block ASCII characters (unchangeable) -
are displayed here together with their
message text numbers; you can change a
selected message text line by means of the
"Edit Message" parameter.
Edit message You can transfer message texts edited here Message text number: 0 to 3999 -
to the "Message Texts" list by clicking the Message text (max. 150 characters):
"Enter" button.
• ASCII characters (text)
• Conversion statements (for
variables)
• Control characters (all those
defined in the control character
table)
Font style You can easily assign control characters to • B (bold) -
text selected in the "Edit Message" entry box • C (condensed)
by using buttons B to U. • E (expanded type)
• I (italic type)
• U (underline)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-73
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Examples
Here are some examples of message texts. The variables (SD_1, SD_2) in the examples
must be configured at the PRINT SFB.
• Example 1: The level "200" l was reached at "17.30" hours.
Format string = The level %i l was reached at %Z hours.
Variable (SD_1) = time
Variable (SD_2) = level
• Example 2: The pressure in the chamber "is falling"
Format string = %N %S
Variable (SD_1) = Reference to memory cell containing "17" (text no. 17:The pressure in
the chamber ...)
Variable (SD_2) = Reference to the string (string variable: ... is falling)
The reference to the string is a symbolic address that specifies where the string is stored
(DB).
• Example 3: (Setting the page number to 10)
Format string = %P
Variable (SD_1) = 10 (page number: 10)

See also
Interface Submodule RS 232C (Page B-1)

Point-to-point connection CP 441 Installation and Parameter Assignment


2-74 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

2.8.4.2 Conversion and Control Statements for Printer Output

Introduction
The output of a message text with variables and control statements (e.g. for bold,
condensed, expanded or italic type and underlining) is defined by means of a format string.
In the format string you can also define statements to execute other useful functions for
printer output (e.g. to set a page number or begin a new page).
All the permissible characters and representation modes for the format string are described
below. You can also configure all the control statements for variables (except for \F "begin
new page" and \x "printing without a line break") and the conversion statements for variables
(except for %P "set page number" and) in the message texts using the parameter
assignment interface for the CP 441: Configuration Package for Point to Point
Communication parameter assignment interface.

Format string
The figure illustrates the structure of the format string schematically.
A format string can contain normal text and/or conversion statements for variables and/or
control statements. Normal text, conversion statements and control statements can occur in
any sequence in the format string.
There must be a conversion statement (and only one) for each variable in the format string
or message text. The conversion statements are applied to the variables in the sequence in
which they occur.

1RUPDOWH[W DOOSULQWDEOHFKDUDFWHUV

&RQYHUVLRQVWDWHPHQW

&RQWUROVWDWHPHQW

Figure 2-29 Schematic Structure of the Format String

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-75
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Permissible Characters for Text


The following can be specified as normal text:
• All printable characters
• All characters preceded by $ at the language interface (ICE 1131–3). The language
compilers convert these characters to the corresponding hex code. Exception: The
character $N is not permitted.
Example: Carriage return ODH = $R in the format string

Conversion Statement
The figure illustrates the structure of the format string schematically.

5HSUHVHQWDWLRQ
 )ODJ :LGWK 3UHFLVLRQ
W\SH

Figure 2-30 Schematic Structure of a Conversion Statement

Flag

without = Right-justified output


- = Left-justified output

Width

without = Output in the standard representation


n = Exactly n characters are output
(up to a maximum of 255 characters are possible); blanks may be added
before (right-justified) or after (left-justified output)

Precision
Precision is only relevant to representation types A, D, F and R. It is ignored otherwise.

without = Output in the standard representation


.0 = No output of decimal points and decimals in real (R) and floating point (F)
format.
.n = Output of decimal point and n (1 to 99) significant places after the decimal
point in the Real (R) and Floating point (F) representation types. In the case
of dates (= representation types A and D), precision relates to the number of
digits used for the year. Only 2 and 4 are permitted for dates.
Note that the precision is always preceded by a period. The period serves to identify it and
separate it from the width.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-76 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Representation Type
The table below describes the possible representation types of the values of the variables.
Representation types N and P are exceptions. They are explained below the table. Both
upper- and lower-case characters are permitted for the representation type.
Uppercase and lowercase letters are permissible for the representation.

Table 2-19 Representation types in the conversion statement

Representation Associated Data Type Standard Width of the Standard Description


Type Representation Representation
A DATE, WORD 10.06.1992 (German) 10 German date format
C CHAR, BYTE A 1 Alphanumeric characters
WORD B 1
DWORD AB 2
ARRAY OF CHAR ABCD 4
ARRAY OF BYTE ABCDE ... -
D DATE, WORD 1996-06-10 (American) 10 ICE date format 1131-3
F REAL, DWORD 0.123456 8 Floating point, without
exponent
H All data types incl. In accordance with the In accordance with the Hexadecimal format
ARRAY OF BYTE data type data type
I INT, WORD -32767 Max. 6 Integer range
DINT, DWORD -2147483647 Max. 11
N(1) WORD Message text output - Integer 0 to 999
(text number)
P INT, WORD Page number, setting 5 -
R REAL, DWORD 0.12E-04 8 Floating point, without
exponent
S STRING Text output - Text strings
T(1) TIME, DWORD 2d_3h_10m_5s_250ms Max. 21 Duration
U BYTE 255 Max. 3 Integer range, unsigned
WORD 65535 Max. 5
DWORD 4294967295 Max. 10
X BOOL 1 1 Binary format
BYTE 11101100 8
WORD 11001... (16) 16
DWORD 11001... (32) 32
Y(3) DATE_AND_TIME_ 10.06.1992 - 25 Date and time
OF_DAY, DT 15:42:59.723
Z TIME_OF_DAY 15:42:59.723 12 Time
DWORD
(1)If there is no message text number or system time in these representation types, 6 * characters appear in the printout
instead (the CP 441 does not keep the time).
(2) The P representation type is only permitted in the format string. P is not permitted in the configured message texts.
(3) The
current time and date must be read first by means of the "READ_CLOCK" system function (SFC 1) and stored in the
user memory (flag, data).

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-77
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Output by Means of Message Text Number (%N)


You use the N representation type when you want to start printing message texts stored on
the CP 441.
ANYPOINTER is the only data type permissible for the PRINT SFB send variables (SD_1 to
SD_4). The variable thus points to the memory cell in which the desired message text
number is entered. Please note that the message text number must be specified in the
WORD data format.
The flag, width and precision do not affect the printer output in the case of the N
representation type. The message text configured beforehand with the CP 441:
Configuration Package for Point to Point Communication parameter assignment interface is
always output completely.

Table 2-20 Example: The pressure in the chamber "is falling"

Format string = %N %S
Variable = Reference to memory cell containing "17" (text no. The pressure in
(SD_1) the chamber ...)
Variable = Reference to string (string variable: ... is falling)
(SD_2)
The reference to the string is a symbolic address that specifies where the string is stored
(DB).

Note
Within a message text, all conversion statements except for %N and all control statements
except for "\F" and "\x" are allowed! An explicite width setting of %N limits the printed length
of the referenced message text to the width indicated.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-78 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Setting the Page Number (%P)


You use the P representation type to change the page number in the printout.
The CP 441 always begins a printout at page 1. This conversion statement allows you to set
the page number to a specific value. The conversion statement variable contains the number
to be set.

Table 2-21 Example: (Setting the page number to 10)

Format string = %P
Variable (SD_1) = 10 (page number: 10)

Note
In the case of the P representation type, there must be no further text, conversion or control
statements in the format string. The P representation type is not permitted in configured
message texts.

Notes on the Conversion Statement


Please note the following in relation to conversion statements:
• Whenever a maximum length is specified for the standard representation, the actual
output can also be shorter. Example: The output of the integer 10 consists of only 2
characters.
• The length of the data to be printed depends on the length of the variables. For example,
in the case of the I representation type a maximum of 6 characters can be output for the
INT data type and a maximum of 11 characters for the DINT data type.
• A width of "0" is not permissible in conversion statements. This is printed out as "******"
with the valid conversion statement.
• If the specified width is too small, in the case of text-based output (representation types
A, C, D, S, T, Y and Z), only the number of characters corresponding to the specified
width are output (the output is truncated). In all other cases, * characters are output
corresponding to the width.
• Undefined or invalid conversion statements are not executed. This is printed out as
"******" (e.g. representation type missing: %2.2).
The rest of the conversion statement (e.g. everything after the character identified as
incorrect) is output. This allows the exact cause of the error to be determined. If this is not
possible, you can use the CP 441 STATUS system function block to find out the cause of
the error.
• Conversion statements without associated variables (send variables SD_1 to SD_4 for
the PRINT SFB) are ignored. Variables for which there is no conversion statement are
not output.
• Conversion statements that are not supported in a header or footer are not executed.
Instead, they are forwarded to the printer transparently.
• You have to use control statements to specify formatting (line feed, tabs, etc.) in a
message text or in the printer output of a long conversion statement.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-79
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Examples of faulty conversion statements


Here are several examples of incorrect conversion statements.
Example 1: ******.2R

Format string = %303.2R


Variable (SD_1) = 1.2345E6
Error: Invalid width in the R representation type. The maximum permissible value for all
representation types is 255.

Example 2:****

Format string = %4.1I


Variable (SD_1) = 12345 DEC
Error: The selected width was too small for the variable value to be output. The precision is
not relevant to representation type I.

Example 3: 96-10-3

Format string = %7.2D


Variable (SD_1) = D#1996-10-31
Error: The format string is formally correct, but the selected width was too small to print the
date out fully.

Example 4: **********

Format string = %.3A


Variable (SD_1) = D#1996-10-31
Error: The standard width of representation type A was selected but with invalid precision.
The possible values here are 2 and 4!

Example 5: ******

Format string = %3.3


Variable (SD_1) = 12345 HEX
Error: A representation type was not specified.

Point-to-point connection CP 441 Installation and Parameter Assignment


2-80 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Examples of Correct Conversion Statements


Here are some examples of correct conversion statements:
Example 1: .....31.10.1996

Format string = %15.4A


Variable (SD_1) = D#1996-10-31
A width of 15 with a precision of 4 (width of the year) and right-justified formatting were
selected.

Example 2: 12345.

Format string = %-6I


Variable (SD_1) = 12345 DEC
The selected width was one character greater than the variable value to be output; left-
justified formatting.

Example 3: 12d_0h_0m_23s_348ms

Format string = %T
Variable (SD_1) = T#12D23S348MS
The IEC time is in the standard format; unspecified time units are inserted with zeros.

Example 4: 1.234560E+02

Format string = %12.6R


Variable (SD_1) = 1.23456E+002
A width of 10 is available to display the whole variable, with the precision (number of places
after the decimal point) taking up 6 characters.

Example 5: TEST..

Format string = %-6C


Variable (SD_1) = TEST
Left-aligned formatting of the text variable

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-81
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Control statements
Control statements are used to achieve specific results in the printout (e.g. underlining).
In addition to the standard control statements (for bold, condensed, expanded or italic type
and underlining), you can also use other control characters if you enter them in the control
character table of the CP 441: Configuration Package for Point to Point Communication
parameter assignment interface (e.g., K for "small caps").
The figure illustrates the structure of the control statement schematically.

2XWSXWRIWKHFKDUDFWHU
? 

2XWSXWRIWKHFKDUDFWHU?
?

6ZLWFKRQ %ROGW\SH
%

6ZLWFKRII &RQGHQVHGW\SH
&

([SDQGHGW\SH
(

,WDOLFW\SH
,

6PDOOFDSLWDOV
.

8QGHUOLQLQJ
VWDQGDUGFRQWUROVWDWHPHQW
8

Figure 2-31 Schematic structure of a control statement

Examples
Here are some examples with control statements:
• Example 1:
To print the text "Bold type and underlining are ways of highlighting a text", you have to
enter the following:
\BBold type\-B and \Uunderlining\-U are ways of highlighting a text
• Example 2:
To output the format string with the conversion statement "Message text no. %i of %8.2A"
transparently on the printer, you have to enter the following:
'Message text no. \%i of \%8.2A'

Point-to-point connection CP 441 Installation and Parameter Assignment


2-82 Manual, 10/2005, A5E00405449-01
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Beginning a New Page (\F)


Given the configured page layout, i.e. the configured headers and footers and the number of
lines per page, the \F control statement can be used to begin a new page. This differs from a
pure form feed on the printer.
Example: (Beginning a new page)
Format string = \F

Note
In the case of the \F control statement, there must be no further text, conversion or control
statements in the format string. The variables remain unassigned.

Printing Without a Line Break (\x)


The CP 441 normally appends the configured end-of-line character (CR, LF, CR LF, LF CR)
when when it sends a message text. The \x control statement cancels the line break after a
message text. This means that you can print several messages in a single line in order, for
example, to display more variables in a line. The \x control statement is appended at the end
of the format string.

Example: The level "200" l was reached at "17:30" hours. ...

Format string = The level %i l was reached at %Z hours.\x


Variable SD_1 = Time of day
Variable SD_2 = State

Note
Please note that when you use the \x control statement, the new line always begins without a
left margin.

Notes on Control Statements


Please note the following in relation to control statements:
• If the deactivation of an effect is specified without it previously having been activated, or if
the output device is incapable of producing the effect, the control statement is ignored.
• The % and \ characters required to define the format string can be printed by means of
the control statement.
• Undefined or incorrect control statements are not executed.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 2-83
Basic Principles of Serial Data Transmission
2.8 Parameter Assignment Data of the Protocols

Point-to-point connection CP 441 Installation and Parameter Assignment


2-84 Manual, 10/2005, A5E00405449-01
Commissioning the CP 441 3
Step sequence
Before starting up the CP 441 you will need to perform the following operations in the order
given.
1. Install the communication processor
2. Configure the communication processor
3. Assign the communication processor parameters
4. Connection configuration of the communication processor
5. Create a user program for the CP

Mounting the CP 441


Mounting the CP 441 involves inserting it into the mounting rack of your programmable
controller and plugging in the interface submodules.

Configuring the Communication Processor


The CP configuration includes its entry in the configuration table. Configure your
communication processor using the STEP 7 software.

Assigning the Communication Processor Parameters


Parameter assignment for the communication processor involves creating the specific
parameters of the protocols and configuring message texts for printer output. You set the
parameters of the CP 441 with the CP441: Configuration Package for Point to Point
Communication parameter assignment interface.

Backing up Configuration Data


A backup of CP parameter data includes the storage of parameters, their download to the
CPU and transfer to the CP. Backup your CP configuration using the STEP 7 software.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 3-1
Commissioning the CP 441

Configuring the Connections for the CP 441


Configuring the connections for the CP 441 means connecting the communication end points
within a point-to-point network in the project of your programmable controller. Connections
are configured using the STEP 7 software (connection configuration table).

Creating a User Program for the Communication Processor


CP programming includes the implementation of the CP in the STEP 7 user program of your
CPU. Program your CP using the language editors of the STEP 7 software.

Further Information
Chapter 7 of the manual contains a complete programming example.

See also
Installing and Removing the Interface Submodules of the CP 441 (Page 4-3)
Configuring and Assigning Parameters for the CP 441 (Page 5-1)
Managing the Parameter Data (Page 5-16)
Connection Configuration (Page 5-5)
Communication via System Function Blocks (Page 6-1)

Point-to-point connection CP 441 Installation and Parameter Assignment


3-2 Manual, 10/2005, A5E00405449-01
Mounting the CP 441 4
4.1 CP 441 slots

Introduction
There are no specific slots reserved for communication modules in the rack of the S7-400
automation system.

Positioning the CP in the Rack


The communication processor can be plugged into any slot in the rack, with the following
exception:
In all racks the power supply module occupies slots 1 to 3 depending on the width.

Further Information
Further information about the topic of racks is availabl3e in the installation manual S7-400,
M7-400 Programmable Controllers, Installation

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 4-1
Mounting the CP 441
4.2 Mounting and Dismounting the CP 441

4.2 Mounting and Dismounting the CP 441

Introduction
When mounting and removing the CP 441, you must observe certain rules.

Tool
You will need a 3.5 mm cylindrical screwdriver to mount or dismount the communication
processor.

Note
The CP 441 can be hot-plugged and hot-pulled, in other words with voltage applied. This
means that the CP 441 can be replaced while the programmable logic controller is in
operation. The CP 441 is configured automatically when it is plugged in. It then operates as
before.

4.2.1 Installation steps

Mounting the CP 441


To mount the communication processor in a rack, proceed as follows:
1. Remove the filler panel from the slot you want to use by gripping it where marked and
pulling it toward you. Insert the CP 441 module and tilt it downward.
2. Hang the communication processor in the rack and swing it down.
3. Screw down the module at the top and bottom with a torque of 0.8 to 1.1 Nm.

4.2.2 Removal steps

Removing the CP 441


To remove the communication processor from the rack, proceed as follows:
1. Undo the screws at the top and bottom of the module.
2. Tilt the module upward and remove it.
3. Replace the filler panel over the empty slot.

Point-to-point connection CP 441 Installation and Parameter Assignment


4-2 Manual, 10/2005, A5E00405449-01
Mounting the CP 441
4.3 Installing and Removing the Interface Submodules of the CP 441

4.3 Installing and Removing the Interface Submodules of the CP 441

Introduction
When installing and removing the interface submodules of the CP 441, you must observe
certain rules.

Caution
Before inserting the interface submodule, unplug the power supply module or dismount the
CP 441 from the rack, otherwise the interface submodule could be permanently damaged.

Tool
To install the interface submodule you require a 3.5 mm cylindrical screwdriver.

Note
To prevent interference, it is absolutely essential that the two screws used to attach the
interface submodule are tightened properly and that the shield of the plug cable is connected
to a shield bus. Only then can the relevant EMC (electromagnetic compatibility) standards be
complied with.

4.3.1 Mounting Sequence


To install an interface submodule in the CP 441, proceed as follows:
1. First unplug the power supply module or dismount the CP 441 from the rack.
2. Insert the interface submodule carefully in the CP 441's slot. The printed circuit board of
the interface submodule must be on the left of the slot.
3. Screw down the interface submodule at the top and bottom with a torque of 0.8 to
1.1 Nm.

4.3.2 Dismounting Sequence


To remove an interface submodule from the CP 441, proceed as follows:
1. First unplug the power supply module and then remove the CP 441 from the rack.
2. Undo the screws at the top and bottom of the interface submodule.
3. Carefully remove the interface submodule from the module slot of the CP 441.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 4-3
Mounting the CP 441
4.3 Installing and Removing the Interface Submodules of the CP 441

Point-to-point connection CP 441 Installation and Parameter Assignment


4-4 Manual, 10/2005, A5E00405449-01
5
Configuring and Assigning Parameters for the
CP 441

Introduction
Once you have mounted the communication processor, you must inform the programmable
controller that it is there. This process is known as "configuration".

Parameter Assignment Options


You configure and set the parameters for the module variants of the CP 441 using STEP 7
or the CP 441: Configuration Package for Point to Point Communication parameter
assignment interface.

Table 5-1 Configuration Options for the CP 441

Product Order Number Configurable using the under STEP 7


parameter assignment tool
CP 441-1 6ES7 441-1AA00-0AE0 as of V1.0 as of V2.1
CP 441-2 6ES7 441-2AA00-0AE0
CP 441-1 6ES7 441-1AA01-0AE0 as of V3.0 as of V3.0
CP 441-2 6ES7 441-2AA01-0AE0
CP 441-1 6ES7 441-1AA02-0AE0 As of V4.0 As of V4.0
CP 441-2 6ES7 441-2AA02-0AE0
CP 441-1 6ES7 441-1AA03-0AE0 As of V5.0 As of V4.02
CP 441-2 6ES7 441-2AA03-0AE0
CP 441-1 6ES7 441-1AA04-0AE0 as of version V5.1.6 as of version V5.3
CP 441-2 6ES7 441-2AA04-0AE0

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-1
Configuring and Assigning Parameters for the CP 441
4.3 Installing and Removing the Interface Submodules of the CP 441

Requirements
The CP 441: Configuration Package for Point to Point Communication parameter
assignment interface is installed on the PG/PC under STEP 7.
Before you can enter the communication processor in the configuration table of the STEP 7
software, you must have created a project and a terminal with STEP 7.

Configuration
In the following, "configuration" refers to the entry of the communication processor in the
configuration table of the STEP 7 software. In the configuration table, enter the rack, the slot
and the order number of the communication processor. STEP 7 then automatically assigns
an address to the CP.
The CPU is now able to find the communication processor in its slot in the rack by way of its
address.

Further Information
The procedure for configuring S7-400 modules is described in detail in the STEP 7 manual.
In addition, STEP 7's online help system will provide you with all the assistance you will need
when configuring an S7-400 module.

Installing the Parameter Assignment Interface


The CP 441: Configuration Package for Point to Point Communication parameter
assignment interface together with the programming example can be found on the CD.
To install the engineering tool:
1. Insert the CD into the CD drive of your programming device/PC.
2. To start the dialog for installing software under Windows, double-click the Software icon
in the Control Panel.
3. In the dialog, select the CD drive and the Setup.exe file and start installation.
4. Follow the step-by-step instructions of the Setup program.

Point-to-point connection CP 441 Installation and Parameter Assignment


5-2 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.1 Parameters for the Communications Protocols

5.1 Parameters for the Communications Protocols

Introduction
Once you have entered the CP 340 in the configuration table, you must supply its interface
with parameters. In the case of the printer driver, you can also configure message texts for
printer output. This process is known as "Parameter Assignment".

Parameter Assignment
The expression "Parameter Assignment" is used in the following to describe the setting of
interface-specific parameters and the configuration of message texts. This is done using the
CP 441: Configuration Package for Point to Point Communication parameter assignment
interface.
You start the parameteri assignment interface by double-clicking the order number (CP 441)
in the configuration table or by selecting the CP 441 and then calling the Edit > Object
Properties menu command.
You do not have to specify any settings for the CP 441 on the "General" and "Addresses"
tabs.
Select the "Basic parameters" tab and enter the interface number and the type of interface.
Click on the "Parameters" button to go to protocol selection. Set the protocol and double-
click the icon for the transmission protocol (an envelope). This takes you to the dialog for
setting the protocol-specific parameters.

Response to a CPU Stop


Enter the basic parameters in the "Attributes - CP 441" hardware dialog in STEP 7. Open the
dialog by double-clicking the CP 441 in the STEP 7 configuration table.
The following table contains a description of the basic paramaters.

Table 5-2 Basic Parameter

Parameter Description Value Range Default Value


Interrupt Selection The CP 441 can generate a • yes no
diagnostics alarm for more serious • no
errors.
Response to a CPU This parameter influences CP 441 • Continue Work Continue Work
Stop access to local S7 data areas during • STOP
a CPU stop. The following section
contains more detailed information
about this.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-3
Configuring and Assigning Parameters for the CP 441
5.1 Parameters for the Communications Protocols

The "Response to a CPU Stop" parameter is only available for the CP 441-2 (as of
6ES7 441-2AA04-0AE0). It influences CP 441 acces to local S7 data areas during a CPU
stop when using the RK512 protocol and the uploadable driver MODBUS Slave as follows:
• The changes only affect remote requests.
• Behavior when using the RK512 protocol:
When a "SEND" or "FETCH" request is received remotely (that is, when attempting to
write to or read from local SIMATIC memory areas), the remote requests:
– Continue to be processed using the communication mechanisms PUT/GET in the
case of "Continue Work", also during a CPU stop.
– Are not passed on to the CPU in the case of "STOP", but rather a RK512 response
message frame with the error code "0A" is returned to the remote partner that
submitted the request.

Further Information
The procedures for using the CP441: Configuration Package for Point to Point
Communication parameter assignment interface is the same for all communication
processors and is self-explanatory. For this reason, the parameter assignment interface is
not described in detail here.
Also, the on-line help provides sufficient support for working with the parameter assignment
interface.

Point-to-point connection CP 441 Installation and Parameter Assignment


5-4 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.2 Connection Configuration

5.2 Connection Configuration

Introduction
The CP 441 represents the link between an S7 CPU and a communication partner linked by
means of a point-to-point connection. The S7 connections are converted to the address
mechanisms of the selected transmission protocol on the CP 441.
When you configure a connection, you specify the route the connection takes from the
S7 CPU to the CP 441 via the serial link to the communication partner.
As a result of connection configuration, you obtain the connection ID that you have to specify
as the parameter "ID" in your user program when you call a system function block in order to
exchange data with the corresponding communication partner.

Simplified Connection Configuration


STEP 7, version 4.0 and later, also allows you to carry out simplified connection
configuration. In this case, you do not need to create any PtP subnets or network the
interface. To carry out simplified connection configuration, you need to do two things:
1. Enter the connection in the connection table.
2. Set the object properties of the connection.

Complete Connection Configuration


You configure a point-to-point connection between your CP 441 and the communication
partner using STEP 7. The connection is configured in five steps:
1. Insert a PtP subnet.
2. Attach the CP 441 to the subnet.
3. Select or insert the connection partner, and attach the partner to the subnet.
4. Enter a connection in the connection table
5. Set the object properties of the connection.
There are differences depending on whether the connection partner is a CP 441 or a
CP 340, an S5 CP, a printer or a third-party station or device and on the protocol used for
the connection.

Further Information
You will find general information on how to configure connections with STEP 7 in the STEP 7
manual Configuring Hardware and Communication Connections STEP 7 V5.3.
In addition, STEP 7's online help system will provide you with assistance in configuring a
connection.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-5
Configuring and Assigning Parameters for the CP 441
5.2 Connection Configuration

5.2.1 Simplified Connection Configuration

Enter a connection in the connection table


Proceed as follows:
1. In SIMATIC Manager, display the "<Offline> (Project)" project window, and double-click
the CPU in your SIMATIC 400 station.
Result: The Connections object (connection table) appears on the right.
2. Double-click this icon. The "Configuring Connections" dialog appears. Choose Insert >
Connection to insert your connection in the connection table.
3. In the New Connection dialog, select Unspecified as the communication partner and
enter S7 PtP Connection as the connection type. Then click OK to exit the dialog.
4. In the Object Properties dialog, set the specific properties of the connection:
In the Object Properties dialog, change the name of the communication partner from
Unspecified to an appropriate name (the name is entered automatically in the connection
table) and make selections in the Via PtP CP and "Interface" list boxes.
No other settings are usually necessary. Read the following sections if you want to define
more than one connection per interface (e.g. for multicomputing):
– Under the "Object Properties" dialog, the procedures for the ASCII driver, printer driver
and 3964(R) procedure or
– Under the "Object Properties" dialog, the procedure for the RK 512 computer
connection
5. Click OK to return to the "Configuring Connections" dialog.
Result: The "Configuring Connections" dialog displays the connection that you have added
and the "Local ID (Hexadecimal)". You have to specify this ID as the parameter "ID" at the
system function block in the user program of your CPU.

Note
If your communication partner is a CP 441, please note the following: Whereas a
homogeneous S7 connection ends directly at the two end points (CPUs) of the connection, a
point-to-point connection consists of a "partial connection" from the CPU to the CP 441 in
one station and a "partial connection" from the CPU to the CP 441 in the partner station. You
therefore have to configure a connection on your partner station as well in order to enable a
point-to-point connection between the two CPUs, and the local IDs may be different.

See also
Under the "Object Properties" dialog, the procedures for the RK 512 computer connection
(Page 5-12)
"Object Properties" Dialog, Procedures for the ASCII Driver, Printer Driver and 3964(R)
Procedure (Page 5-9)

Point-to-point connection CP 441 Installation and Parameter Assignment


5-6 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.2 Connection Configuration

5.2.2 Complete Connection Configuration

Introduction
To present the point-to-point connection graphically, proceed as follows:

Select Netpro
1. In SIMATIC Manager, display the "<Offline> (Project)" project window, and double-click
the CPU in your SIMATIC 400 station.
Result: The Connections object (connection table) appears on the right.
2. Double-click this icon. The "Configuring Connections" dialog appears.

Insert a PtP subnet.


Select Insert > Network Object to open a catalog. In the catalog, select Subnets and then
select PtP.
Result: The point-to-point network is displayed.

Select Connection Partner


If your connection partner is another CP 441, the station should already be in the subnet. If
your partner is an S5-CP PtP, a printer, a third-party device or an S7-CP PtP, without
communication-bus connection (CP 340, CP 341) enter Other Station or SIMATIC S5 as a
dummy value. You do so by selecting Insert > Network Object. In the open catalog, select
Stations and then select Other Station orSIMATIC S5. You then have to identify the station
as a PtP station. To do so:
Double-click on the station, select user list and click the New button; select PtP station and
link the station into the network by selecting the point-to-point network with PtP Network.

Attaching the CP 441 and Connection Partner to the PtP Network


Use the mouse to drag the PtP connection of the CP 441 to the PtP network in order to
attach it.

See also
"Object Properties" Dialog, Procedures for the ASCII Driver, Printer Driver and 3964(R)
Procedure (Page 5-9)
Under the "Object Properties" dialog, the procedures for the RK 512 computer connection
(Page 5-12)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-7
Configuring and Assigning Parameters for the CP 441
5.2 Connection Configuration

5.2.3 Enter a connection in the connection table

Entering a Connection
1. Select Insert > Connection to add a new connection to the connection table of the CPU
you selected.
2. In the New Connection dialog, select SIMATIC 400 station(2) or Other Station or
SIMATIC S5 as communication partner and enter S7 PTP Connection as the connection
type. Then click OK to exit the dialog.
3. In the "Object Properties" dialog, set the specific properties of the connection:
– Under the "Object Properties" dialog, the procedures for the ASCII driver, printer driver
and 3964(R) procedure or
– Under the "Object Properties" dialog, the procedures for the RK 512 computer
connection
4. Click OK to return to the "Configuring Connections" dialog.

Result
The "Configuring Connections" dialog displays the "Local ID (Hexadecimal)" of the
connection that you have added. You have to specify this ID as the parameter "ID" at the
system function block in the user program of your CPU in the SIMATIC 400 station(1).

Note
If your connection partner is another SIMATIC 400 station with a CP 441, you have to
configure a connection on your partner station as well in order to enable a point-to-point
connection between the two CPUs, and the local IDs may be different.
Please note that you cannot configure more than 8 connections for each interface of the
CP 441.

See also
Under the "Object Properties" dialog, the procedures for the RK 512 computer connection
(Page 5-12)

Point-to-point connection CP 441 Installation and Parameter Assignment


5-8 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.3 Procedure in the "Object Properties" Dialog

5.3 Procedure in the "Object Properties" Dialog

5.3.1 "Object Properties" Dialog, Procedures for the ASCII Driver, Printer Driver and
3964(R) Procedure

"Object Properties" Dialog


In addition to making the entry in the connection table, you also have to set specific
properties for each point-to-point connection.
If a point-to-point connection consists of two "partial connections", you have to set the object
properties for each partial connection.
Below you will find a description of how to open and set the parameters of the "Object
Properties" dialog for the ASCII driver, the printer driver and the 3964(R) procedure.

Opening the Dialog


The "Object Properties" dialog appears automatically when you insert a new connection in
the connection table. You can also call this dialog for a connection at a later time:
1. Select the connection from the connection table.
2. Choose Edit > Object Properties.
Result: The "Object Properties" dialog appears.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-9
Configuring and Assigning Parameters for the CP 441
5.3 Procedure in the "Object Properties" Dialog

2EMHFW3URSHUWLHV&RQQHFWLRQ [

&RQQHFWLRQ %ORFN3DUDPHWHU,'

&RQILJXUHG'\QDPLF&RQQHFWLRQ /RFDO,' :

 ,'
$FWLYH&RQQHFWLRQ6HWXS

6HQG2SHUDWLQJ0RGH0HVVDJHV 'HIDXOW

&RPPXQLFDWLRQ'LUHFWLRQ

/RFDO!3DUWQHU 3DUWQHU!/RFDO /RFDO!3DUWQHU

1HWZRUN&RQQHFWLRQV
/RFDO 3DUWQHU

6,0$7,&6WDWLRQ  &38  2WKHU6WDWLRQ 

9LD3W3&3 &3 56

,QWHUIDFH7\SH 3W3

,QWHUIDFH ,)B 5

&RQQHFWLRQ6HOHFWHG8VLQJ5.&381R 5.&381R 
2.

2. &DQFHO +HOS

Figure 5-1 Object properties for an S7 point-to-point connections (1)

Settings
You set the properties of a connection in the "Object Properties" dialog:

Table 5-3 Settings in the "Object Properties" dialog for the ASCII driver, printer driver and 3964(R) procedure

Parameters Description
Configured dynamic connection The check box is grayed and not selected: The connection is set up automatically during
startup and is sustained until shutdown.
Active connection setup The check box is grayed and selected: The connection is always set up by the local
station.
Send operating mode The check box is grayed and not selected: Operating status messages cannot be sent.
messages
Local ID Local ID (hexadecimal) which you have to specify as the parameter "ID" at the system
function block in the user program of your CPU. You can change the suggested ID if you
have programmed the SFBs with certain IDs.
Communication direction Specify the direction in which communication is to take place by selecting the appropriate
option (see also the sections entitled "One Connection Configured" and "Several
Connections Configured")

Point-to-point connection CP 441 Installation and Parameter Assignment


5-10 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.3 Procedure in the "Object Properties" Dialog

Parameters Description
Interface Interface
The CP 441-2 has two channels (the interfaces IF1 and IF2) via which the point-to-point
connections can be set up. Select the channel used for the configured connection.
/Protocol
Various protocols can be used to send data via point-to-point connections. You specified
the protocol when you configured the module.
Connection is selected using These fields are relevant only to the RK 512 computer connection. These fields are
RK512 CPU no. grayed out.
• RK512 CPU no.

Note
If your communication partner is a CP 441, you also have to set the object properties for the
partial connection in the partner station.

One connection configured


If you have only configured one connection via an interface, you do not have to specify any
settings in the "Object Properties" dialog.

Several connections configured


Up to eight connections can go via a single interface. You can send data via all eight
connections (active requests: BSEND). You can only receive data (passive requests: BRCV)
via only one connection, however, since the ASCII driver and the 3964(R) procedure do not
send any address information with the data.
In the Communication Direction area of the Object Properties dialog, you have to specify
whether you want to send and/or receive data via the selected connection:
1: Local → Partner
For the connections via which you send data. No other settings are necessary.
2: Partner → Local
For the connection via which you receive data. No other settings are necessary.
Local ↔ Partner
For the connection via which you send and receive data. No other settings are necessary.

Note
Data can only be received via one connection for each interface. If you have set "2: Partner
→ Local" or "3: Local ↔ Partner" as the communication direction for a connection via one
interface, you can select "1: Local → Partner" as the communication direction.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-11
Configuring and Assigning Parameters for the CP 441
5.3 Procedure in the "Object Properties" Dialog

5.3.2 Under the "Object Properties" dialog, the procedures for the RK 512 computer
connection

"Object Properties" Dialog


In addition to making the entry in the connection table, you also have to set specific
properties for each point-to-point connection.
If a point-to-point connection consists of two "partial connections", you have to set the object
properties for each partial connection.
Below you will find a description of how to open and set the parameters in the "Properties"
dialog for the RK 512.

Opening the Dialog


The "Object Properties" dialog appears automatically when you insert a new connection in
the connection table. You can also call this dialog for a connection at a later time:
1. Select the connection from the connection table.
2. Choose Edit > Object Properties.
Result: The "Object Properties" dialog appears.

2EMHFW3URSHUWLHV&RQQHFWLRQ [
&RQQHFWLRQ %ORFN3DUDPHWHU,'
/RFDO,' :
&RQILJXUHG'\QDPLF&RQQHFWLRQ

 ,'
$FWLYH&RQQHFWLRQ6HWXS

6HQG2SHUDWLQJ0RGH0HVVDJHV 'HIDXOW

&RPPXQLFDWLRQ'LUHFWLRQ

/RFDO!3DUWQHU 3DUWQHU!/RFDO /RFDO!3DUWQHU

1HWZRUN&RQQHFWLRQ
/RFDO 3DUWQHU

6,0$7,&6WDWLRQ  &38  2WKHU6WDWLRQ 

9LD3W3&3 &3 56

,QWHUIDFH7\SH 3W3

,QWHUIDFH ,)B5.

&RQQHFWLRQ6HOHFWHG8VLQJ5.&381R  2. 5.&381R 

2. &DQFHO +HOS

Figure 5-2 Object Properties for an S7 Point-to-Point Connection (2)

Point-to-point connection CP 441 Installation and Parameter Assignment


5-12 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.3 Procedure in the "Object Properties" Dialog

Settings
You set the properties of a connection in the "Object Properties" dialog:

Table 5-4 Settings in the "Object Properties" dialog for the RK 512

Parameters Description
Configured dynamic connection The check box is grayed and not selected: The connection is set up automatically during
startup and is sustained until shutdown.
Active connection setup The check box is grayed and selected: The connection is always set up by the local
station.
Send operating mode The check box is grayed and not selected: Operating status messages cannot be sent.
messages
Local ID Local ID (hexadecimal) which you have to specify as the parameter "ID" at the system
function block in the user program of your CPU. You can change the suggested ID if you
have programmed the SFBs with certain IDs.
Communication direction Specify the direction in which communication is to take place by selecting the appropriate
option (see also the sections entitled "One Connection Configured" and "Several
Connections Configured")
Interface Interface
The CP 441-2 has two channels (the interfaces IF1 and IF2) via which the point-to-point
connections can be set up. Select the channel used for the configured connection.
/Protocol
Various protocols can be used to send data via point-to-point connections. You specified
the protocol when you configured the module.
Connection selected using If you have selected Partner → Local or Local ↔ Partner as the communication direction,
RK512 CPU no. enter the CPU number (1 to 4) by means of which your partner can address this
connection.
RK512 CPU no. If you have selected Local → Partner or Local ↔ Partner as the communication direction,
enter the CPU number (1 to 4) to which the connection goes.

Note
If your partner is a CP 441, you also have to set the object properties for the partial
connection in the partner station.

One connection configured


If you need only one connection for your interface, you do not need to specify any settings in
the "Object Properties" dialog.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-13
Configuring and Assigning Parameters for the CP 441
5.3 Procedure in the "Object Properties" Dialog

Several connections configured


In the "Communication Direction" area of the "Object Properties" dialog, you have to specify
whether you want to send (active requests: BSEND, PUT, GET) and/or receive (passive
requests: BRCV) message frames via the selected connection and, for "Partner" and "Local",
you have to specify the CPUs via which the connection will be routed. If you want to send
and receive message frames, you must make an entry for both "Partner" and "Local".
1: Local → Partner
For the connections via which you send message frames (BSEND, PUT, GET).
2: Partner → Local
For the connections via which you receive message frames (BRCV).
3: Local ↔ Partner
For the connections via which you send and receive message frames.
Local, connection selected using RK512 CPU no.
The RK512 protocol allows you to specify a CPU No. in the range 1-4 in the message frame
header in order to address up to four 4 CPUs (connections).
When receiving message frames (BRCV), enter CPU no. 1 to 4 here. The CP 441 compares
the CPU number you have set here with the one specified by byte 10 of the header of the
receiving RK 512 message frame. When there is a match, the CP 441 forwards the received
data over this connection.

Note
The number of connections per interface via which you can send message frames is limited
to eight. The fact that the CPU numbers in the message frame header are limited to 1 to 4
limits the number of connections via which you can receive message frames at a single
interface to a maximum of four. In the "Local" box, a CPU number that has already been
assigned cannot be assigned again for a different connection at the same interface.
If you have set "2: Partner → Local" or "3: Local ↔ Partner" as the communication direction
for a connection via one interface, you must enter another CPU no. in the "Local" field for
another connection for receiving data or, if you only want to send data, you must select "1:
Local → Partner" as the communication direction.

Point-to-point connection CP 441 Installation and Parameter Assignment


5-14 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.3 Procedure in the "Object Properties" Dialog

Partner, RK 512 CPU no.


When sending message frames (BSEND, PUT, GET), enter CPU no. 1 to 4 here. The
CP 441 compares the CPU number you have set here with the one specified by byte 10 of
the header of the sending RK 512 message frame. This makes it possible via this connection
to address one of four different recipients at the partner.

Examples
• Example 1:
Task: You want data to be sent (or fetched) by means of RK 512 from your S7-400
system. The data is to be stored on the partner's CPU 3 (or fetched by CPU 3).
Parameter assignment: You must specify Local → Partner as the communication direction
and enter the CPU number 3 in the "Partner, RK512 CPU No." field.
• Example 2:
Task: You want by means of RK 512 to receive from the partner data identified by the
CPU number 2 in the RK 512 message frame.
Parameter assignment: You must specify Partner → Local as the communication direction
and enter the CPU number 2 in the "Local, Connection Selected Using RK 512 CPU No."
field.
• Example 3:
Task: You want data to be sent from your S7-400 system to the partner (or fetched) by
means of RK 512. The data is to be stored on the partner's CPU 3 (or fetched by CPU 3).
At the same time, you want to use the connection to receive from the partner data
identified by the CPU number 2 in the RK 512 message frame.
Parameter assignment: You must specify Local ↔ Partner as the communication direction
and enter the CPU number 3 in the "Partner, RK512 CPU No." field and the CPU number
2 in the "Local, Connection Selected Using RK 512 CPU No." field.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-15
Configuring and Assigning Parameters for the CP 441
5.4 Managing the Parameter Data

5.4 Managing the Parameter Data

Introduction
The CP 441's configuration and parameter assignment data (including the message texts) is
stored in the current project (on the hard disk of the programming device/PC).

Data management
When you quit the configuration table by selecting Station > Save or Station > Save As, the
system automatically saves the configuration and parameter assignment data (including the
module parameters) to the project/user file you have created.

Loading the Configuration and Parameters


You can now load the configuration and parameters on-line from the programming device
onto the CPU (menu item PLC > Download). The CPU accepts the parameters immediately
after the download.
The module parameters of the CP 441 are transferred to the CP 441 automatically at start-
up of the CPU as soon as the CP 441 is accessible via the S7-400 backplane bus. Default
settings apply if parameters are not changed.

Reading Back Parameters


From STEP 7, V5.0 + Service Pack 2 onwards, you can view the parameters of the CP 441
modules online using HW Config. From this view, you cannot change the parameters and
they are therefore dsiplayed in gray.

Further Information
In Configuring Hardware and Communication Connections STEP 7 V5.3, the manual for
STEP 7, you will find detailed descriptions of how to:
• save the configuration and parameters.
• load the configuration and parameters onto the CPU.
• read, modify, copy and print the configuration and the parameters.

See also
Configuring and Assigning Parameters for the CP 441 (Page 5-1)
Connection Configuration (Page 5-5)

Point-to-point connection CP 441 Installation and Parameter Assignment


5-16 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.5 Multiprocessor communication

5.5 Multiprocessor communication

Maximum number of CPUs


The CP 441 (6ES7 441-XAA02-0AE0 and higher) enables communication with up to 4 CPUs
in an automation system.

Prerequisite
STEP 7, Version 4.02 or higher

Note
Please observe the following rules of multiprocessor communication:
• Data can be sent from any CPU.
• In the case of the ASCII driver and the 3964(R) procedure, data can only be received via
one CPU, since these protocols do not send any address information with the data.
• In the case of the RK 512 computer connection, data can be received on 4 CPUs.
Addressing is by means of the CPU numbers 1 to 4 in the header of the RK 512 message
frame.
The CPU numbers automatically assigned in the configuration table of STEP 7 are
entered by default during connection configuration in the "Connection Selected Using
RK512 CPU No." field of the "Object Properties" dialog.

See also
Under the "Object Properties" dialog, the procedures for the RK 512 computer connection
(Page 5-12)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-17
Configuring and Assigning Parameters for the CP 441
5.6 Subsequent Loading of Drivers (Transmission Protocols)

5.6 Subsequent Loading of Drivers (Transmission Protocols)

Introduction
To extend the functionality of the CP 441 and adapt it to the communication partner, you can
load other transmission protocols on the CP 441-2 (loadable drivers) in addition to the
standard protocols in the module firmware (ASCII, 3964(R), RK 512, printer).
The loadable drivers are not shipped with the CP 441 or the parameter assignment interface
as standard. You have to order them separately (see the chapter entitled "Loadable Drivers"
in the ST 70 catalog).
To find out how to install and assign parameters to a loadable driver and load it onto the
CP 441-2, consult the separate documentation for the loadable driver. Only the requirements
and the fundamentals are described below.

Requirements
The prerequisites for loading the drivers are:
• STEP 7, V4.02 or higher
• CP 441: Configuration Package for Point to Point Communication parameter assignment
interface, as of V5.0
• The CP 441-2 (order number 6ES7 441-2AA02- 0AE0 or higher)
• The dongle provided with the driver must be installed on the CP 441-2.

Introduction to the Parameter Assignment Interface


You select the loadable driver for parameter assignment in the CP 441: Configuration
Package for Point to Point Communication parameter assignment interface.
After you have successfully installed the parameter assignment interface and loadable
drivers, you select the driver you want and set the protocol-specific parameters in the same
way as you do for the standard protocols. Installation of the Parameter Assignment Interface
and Seletion of a Transmission Protocol.
To find out what is meant by parameter assignment and how to dowload the drivers to the
CP 441, consult the separate documentation for the loadable driver.

Point-to-point connection CP 441 Installation and Parameter Assignment


5-18 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.6 Subsequent Loading of Drivers (Transmission Protocols)

Note
Please note the following:
• The loadable driver is stored in the CPU's load memory together with the parameter data
and loaded automatically onto the CP 441-2 during the loading operation. You must
therefore reserve the requisite memory space in the load memory of the CPU for every
interface on which you want to load the driver.
• Loadable drivers are sent only once to the CP 441. The driver download (2 SDBs) is
interrupted if you attempt to assign parameters. This is indicated by the INTF LED on the
CPU and the corresponding entry (error loading SDB) in the CPU's diagnostic buffer. In
this case the entry is of no significance.
• Before you transfer the loadable driver to the CP 441-2, you must increase the value of
the parameter for transferring parameters to modules for the relevant CPU. Allow
approximately 15 seconds for each loadable driver.

See also
Connection Configuration (Page 5-5)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-19
Configuring and Assigning Parameters for the CP 441
5.7 Firmware Updates

5.7 Firmware Updates

5.7.1 Subsequent Loading of Firmware Updates

Introduction
You can enhance functionality and eliminate errors by downloading firmware updates to
system memory of communication processor.
Subsequent loading of firmware updates with the CP 441: Configuration Package for Point to
Point Communication parameter assignment interface.

Basic Firmware
The CP 441 is shipped with basic firmware preinstalled.

Requirements
The prerequisites for loading firmware updates are:
• STEP 7, V4.02 or higher
• CP 441: Configuration Package for Point to Point Communication parameter assignment
interface, as of V5.0
• You must create a valid project under the hardware configuration and upload it to the
CPU before you can update the firmware of the communication procrocessor with the
parameter assignment interface.
• The instructions accompanying the firmware update always detail the destination
directories for the files.
The ..\CP441.nnn path always identifies the firmware version.

Firmware download
You send the firmware update to the CP 441 using the CP 441: Configuration Package for
Point to Point Communication parameter assignment interface.
Proceed as follows:
1. Switch the CPU to STOP mode.
2. Start the parameter assignment interface:
In SIMATIC Manager: File > Open > Project> Hardware Config > double-click on
CP 441 > select the "Parameters" button.

Point-to-point connection CP 441 Installation and Parameter Assignment


5-20 Manual, 10/2005, A5E00405449-01
Configuring and Assigning Parameters for the CP 441
5.7 Firmware Updates

3. Select the menu command Options > Firmware Update.


Result:
If a connection can be established to the CP 441, the current module firmware status is
displayed.
If there is no firmware loaded on the CP 441, the display shows " - - - - ". This can occur,
for example, if a firmware update was canceled. The original firmware is deleted prior to
the cancellation. You have to upload firmware to the module before it can be restarted.
4. Click on the "Find File ..." button to select the firmware to be loaded (*.UPD).
Note:
The basic firmware consists of three files each with a *.UPD extension. Select only the file
called HEADER.UPD for the basic firmware.
Result:
The version of the firmware you select is displayed under "Status of selected firmware:".
5. Click on the "Load Firmware" button to start uploading to the CP 441. You are prompted
for confirmation. The upload procedure is canceled immediately if you click on the
"Cancel" button.
Note:
Before the basic firmware is deleted from the module, the CP 441 checks the MLFB No.
of the firmware to be downloaded in order to ensure that the firmware is suitable for the
CP 441.
Result:
The new firmware is loaded into the operating system memory of the CP 441. "Done"
shows progress in bar-graph form and as a percentage.

LEDs
LEDs during the download of a firmware update:

Table 5-5 LEDs for firmware update


Status INTF/ FAULT TXD RXD Remark To correct or avoid
EXTF errors
Firmware on on on on - -
update in
progress
Firmware on off off off - -
update
completed
CP 441 flashes on off off Module firmware Reloading the firmware
without (2 Hz) deleted, firmware
module update was
firmware canceled, firmware
update still possible
Hardware flashes off flashes flashes Read/write operation Switch power supply to
fault during (2 Hz) (2 Hz) (2 Hz) failed module off and then on
firmware again and reload the
update firmware.
Check whether the
module is defective.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 5-21
Configuring and Assigning Parameters for the CP 441
5.7 Firmware Updates

5.7.2 Viewing the Firmware Version

Viewing the Hardware and Firmware Version


You can view the current hardware and firmware version of the communication processor in
STEP 7 in the "Module Status" dialog. You can open this dialog by:
In SIMATIC Manager: File > Open > Project > HW Config > Station > Open Online > and
double-click on communication processor.

Point-to-point connection CP 441 Installation and Parameter Assignment


5-22 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks 6
Introduction
Communication between the CPU, the CP 441 and a communication partner takes place via
the system function blocks of the CPU and the protocols of the CP 441.

Communication between CPU and CP 441


The system function blocks form the software interface between the CPU and the CP 441.
They are called from the user program.

Communication between CP 441 and a Communication Partner


The transmission protocol conversion takes place on the CP 441. The protocol is used to
adpat the interface of the CP 441 to the interface of the communication partner.
This enables you to link an S7 automation system with any communication partner that can
handle the modern, standard protocols available in SIMATIC S5 (ASCII driver, 3964(R)
procedure or RK 512 computer connection).

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-1
Communication via System Function Blocks
6.1 Overview of the System Function Blocks

6.1 Overview of the System Function Blocks

Introduction
The S7-400 programmable controller provides you with a number of system function blocks
which initiate and control communication between the CPU and the CP 441 communication
processor in the user program. The system function blocks are stored permanently in the
CPU memory.

S7-400 System Function Blocks


The following table shows the system function blocks of the S7-400 programmable controller
which you can use for communication between the CPU and the CP 441.

Table 6-1 System function blocks of the S7-400 programmable controller

SFB Meaning
BSEND The BSEND system function block allows you to send data from an S7 data area to a
(SFB 12) communication partner with fixed destination.
BRCV The BRCV system function block allows you to receive data from a communication
(SFB 13) partner and transfer it to an S7 data area.
GET RK 512 only: The GET system function block enables you to fetch data from a
(SFB 14) communication partner.
PUT RK 512 only: The PUT system function block enables you to send data to a
(SFB 15) communication partner with dynamically changeable destination.
PRINT The PRINT system function block allows you to output a message text containing up to
(SFB 16) 4 variables to a printer.
STATUS The STATUS system function block allows you to query the device status of a
(SFB 22) communication partner.

Further Information
For a detailed description of the system function blocks, see the reference manual System
Software for S7-300 and S7-400, System and Standard Functions.

Point-to-point connection CP 441 Installation and Parameter Assignment


6-2 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.2 Using the System Function Blocks

6.2 Using the System Function Blocks

Introduction
The following sections describe what you must take into account when supplying parameters
for the system function blocks in your own programmable controller (S7-400).
The communication between two CP 441s is described.
For points to note with regard to other communication partners of the CP 441, see the
relevant SIMATIC S5 literature or third-party literature.

Description of the SFB Parameters


The parameters of the SFBs can be subdivided in terms by function into the following five
classes (classification):
• Control parameters (for activating communication)
• Addressing parameters (for addressing the remote communication partner)
• Send parameters (which point to the data areas to be sent to the remote partner)
• Receive parameters (which point to the data areas in which the data received from the
remote partner is entered)
• Status parameters (for monitoring whether the block has completed a task without errors
and for analyzing the errors that occur)

Control Parameters
Data transfer is only activated if the associated control parameters have a defined value
when the SFB is called or if the value has changed in a defined way since the last SFB call.
We therefore refer to them as level- or edge-triggered control parameters.

Table 6-2 SFB Control Parameters

Parameters Meaning Sender/ Recipient Function activated at Description


REQ Request Sender of the Positive edge (compared to last Activates data transfer (provided
request SFB call). In other words, before certain conditions are fulfilled)
you call the SFB with "1", it must
have run through once with "0".
R Reset Sender of the Positive edge (compared to last Activates cancellation of an
request SFB call). In other words, before active data transfer
you call the SFB with "1", it must
have run through once with "0".
EN_R Enabled to Recipient of the Level 1 Indicates readiness to receive
receive request

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-3
Communication via System Function Blocks
6.2 Using the System Function Blocks

Addressing Parameters

Note
The addressing parameters ID and R_ID are only evaluated the first time the block is called
(the actual parameters or the predefined values from the instance). The communication
relationship (connection) to the remote partner is thus defined at the first call and remains so
until the next restart of the CPU.

Table 6-3 SFB Addressing Parameters

Parameters Description Note


ID At the SFBs you specify as the "ID" the "local ID" (a hexadecimal ID must be specified
value between 1000 and 1400) of the connection via which the in the form W#16#wxyz.
system function block is to go. In order to do this, you must first
have configured the connection using STEP 7. You get the value of
the "Local ID" from the "Configuring Connections" dialog in STEP 7.
R_ID The meaning of the R_ID parameter is given in the subsequent R_ID must be specified in the form
descriptions of the transmission protocols. W#16#wxyz.

Status Parameters
The status parameters allow you to monitor whether the block has completed its task
successfully or is still doing it. They also display errors that occur.

Note
The status parameters are only valid for a single cycle - from the first command following the
SFB call to the next SFB call. Consequently, you have to evaluate these parameters after
every block cycle.

Point-to-point connection CP 441 Installation and Parameter Assignment


6-4 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.2 Using the System Function Blocks

Table 6-4 SFB Status Parameters

Parameters Data Sender/ Recipient Description


Type
DONE BOOL Sender 0: The request has not yet been started or is still being executed.
1: The request has been completed without error.
In other words:
• With ASCII driver: Request was sent to the communication
partner. This does not necessarily mean that the data was
received by the communication partner.
• With 3964( R ) procedure: Request was sent to the
communication partner and positive acknowledgement was
returned. This does not necessarily mean that the data was
forwarded to the partner CPU.
With RK 512 computer connection: Request was sent to the
communication partner, which forwarded it without error to the
partner CPU.
NDR BOOL Receiver 0: The request has not yet been started or is still running.
1: The request has been completed successfully.
ERROR BOOL Sender and Error display:
STATUS WORD recipient ERROR STATUS Meaning
0 0 Neither a warning nor an error
0 ≠0 Warning. STATUS provides detailed
information.
1 ≠0 There is an error. STATUS provides detailed
information on the error.
You can obtain point-to-point error information that goes beyond this by
calling the STATUS system function block (SFB 22).
Note: The ERROR bit and STATUS remain there only until the next SFB
call. To display the STATUS, you should therefore copy it to a free data
area.

Note
The receiving CPU determines data consistency (CPU 412/413: 16 bytes, CPU 414/417: 32
bytes). For further information on data consistency, refer to the reference manual to the
system and standard funcitons. To guarantee further data consistency, please observe the
following:
• Sender: Only access the send DB when all data have been completely transferred
(DONE = 1).
• Receiver: Only access the receive DB when all data are received (NDR = 1). Then you
must inhibit the receive DB (EN_R = 0) until you have processed the data.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-5
Communication via System Function Blocks
6.2 Using the System Function Blocks

Send and Receive Parameters


The SD_i send parameters and the RD_i receive parameters are of the ANY data type, but
no bit fields can be used.
See the CP441 ANY demo project for instructions on how to change the send and receive
parameters of the ANY data type at runtime. The demo project is in the "Examples" STEP 7
catalog under CP441.
If you do not use all the send and receive parameters with an SFB, the first unused
parameter must be a NIL pointer, and the used parameters must come one after the other
without any gaps.
At the first call, the connection and the maximum amount of data that can be transferred via
it per job is fixed. The system creates a communication buffer to ensure data consistency.
At subsequent calls you can send/receive any amount of data as long as it does not exceed
that of the first call.
The BSEND and BRCV SFBs represent and exception to this rule. You can transfer up to 64
KB per request using them.
The following applies to the BSEND/BRCV SFBs:
• The number of SD_i and RD_i parameters used at the sending and receiving ends must
match.
• The data types of SD_i and RD_i parameters at the sending and receiving ends that
belong together must match.
• The amount of data to be sent by means of the SD_i parameter must not be greater than
the area made available by the associated RD_i parameter.
If you break these rules, this is indicated to you by means of ERROR = 1 and STATUS = 4.

Examples of Send and Receive Parameters

Access to data blocks, bytes 10-109 P#DB20.DBX10.0 byte 100


Access to memory markers 10-12 P#M10.0 BYTE 3
Access to inputs 20-24 P#E20.0 BYTE 5
Access to outputs 20-24 P#A20.0 BYTE 5
Access to times 1-5 L#1 TIMER 5
Access to counters 1-10 L#1 COUNTER 10

Jobs which can be processed simultaneously


The number of requests (BSEND and GET) which can be processed simultaneously
depends on the data volume transmitted with the individual requests.
The requests are buffered on the CP 441 in data blocks of 450 bytes. Up to 40 data blocks
can be buffered per interface.
If no further data blocks can be buffered, the request is terminated with an error
(STATUS 02). The message 050FH is entered in the error-signaling area.

Point-to-point connection CP 441 Installation and Parameter Assignment


6-6 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.2 Using the System Function Blocks

Example:
If all requests are 2000 bytes long, for example, 8 requests can be buffered.

Number of transmittable data sets


If a PLC has more than one CP. the number of data sets that can be transmitted depends
largely on CPU performance. In this way, a CPU 417 can process, for example, approx.
80-100 240-byte message frames per second (MLFB no. of the CPU:
6ES7 417-1XJ02-0AB0.

Table 6-5 If the communication load is increased please note the following:

Behavior To correct or avoid errors


Transfer between CP and CPU receives negative • Increase the value of the "Cyclic load due to
acknowledgment (0407 or 0408 in the CP's diagnostic communication" parameter in the CPU screen form
buffer). and
• Call BRCV in the time OB or call BRCV more frequently
in the cycle.
Contents of the diagnostic buffer on the CP cannot be read Increase the value of the "Minimum cycle time" parameter in
with a programming device. the CPU screen form "Cycle"
A newly inserted CP is not assigned parameters. Increase the value of the "Transfer parameters to modules"
parameter in the "Startup" CPU screen form.

See also
Diagnostics Messages of the System Function Blocks (Page 8-4)
Diagnostics via the Error Signaling Area SYSTAT (Page 8-8)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-7
Communication via System Function Blocks
6.3 Using the System Function Blocks with the 3964(R) Procedure

6.3 Using the System Function Blocks with the 3964(R) Procedure

6.3.1 Applications

Introduction
If you are using the 3964(R) procedure as your transmission procedure, you can transmit
data from your S7-400 programmable controller to a communication partner.

Data Transmission to a Communication Partner Using 3964(R)


The figure below illustrates how data is sent to a communication partner.

<RXUSURJUDPPDEOHFRQWUROOHU &RPPXQLFDWLRQSDUWQHU
 DFWLYH  6

&38 &3 &3 &38

'DWD 'DWD 'DWD

6)%
%5&9

6)%
%6(1'  5 RU
SURWRFRO

5HFHLYHPDLOER[
'%

Figure 6-1 Sending Data to a Communication Partner with the 3964(R) Procedure

Point-to-point connection CP 441 Installation and Parameter Assignment


6-8 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.3 Using the System Function Blocks with the 3964(R) Procedure

Data Transmission to the Communication Partner with 3964(R). Options:


To transmit data via the 3964(R) procedure, you have the following options:
• You can send the data with the system function block BSEND and receive the data at the
communication partner with the system function block BRCV.
This type of data transmission has the advantage that, using the BRCV, you can interpret
the NDR parameter to establish when the complete data was received, and the EN_R
parameter to prevent unprocessed data from being overwritten at the receiver.
• You can send the data with the BSEND system function block and use the CP 441:
Configuration Package for Point to Point Communication parameter assignment interface
to define a receive mailbox (DB) on the communication partner for the CP 441; the
incoming data are stored in the mailbox on the communication partner's CPU.
If you use this type of data transmission, you do not need to do any programming in the
user program of the communication partner. Note, however, that at the receiver you
cannot tell when a transmission is taking place. Therefore, the receiving CP 441 cannot
prevent unprocessed data from being overwritten at the receiver.

Note
Please note that destination information is not transferred when transmitting data using
the 3964(R) protocol. The data can therefore be sent from more than one source
(BSENDs), but stored on one destination only per serial interface (BSEND or receive
mailbox).

6.3.2 Data Transmission with 3964(R) Using BSEND and BRCV

What To Do
This type of data transmission has the advantage that, using the BRCV, you can interpret the
NDR parameter to establish when the complete data was received, and the EN_R parameter
to prevent unprocessed data from being overwritten at the receiver.

On Your Programmable Controller


For each communication request you must program a BSEND (SFB12) system function
block in the S7 user program of the CPU.
The R_ID parameter takes any value. When programming more than one BSEND you must
use different R_IDs.
For the SD_1 parameter (data type ANY), specify which data (source) is to be passed on.
Example: p#DB10.DBX5.0 WORD 1
The length is not evaluated with data type ANY, since the length of the data to be sent is
defined in the LEN parameter.
Note that the length of the transmittable data is restricted to 4 KB.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-9
Communication via System Function Blocks
6.3 Using the System Function Blocks with the 3964(R) Procedure

At the CP 441 Communication Partner


In the S7 user program of the CPU you must program the BRCV system function block
(SFB 13).

Note
So that no destination information can be transferred to the protocol by this means, the data
of all BSENDs with different R_IDs must be received by means of a BRCV. No more than
one BRCV system function block can therefore be created for a serial interface. The value
"0" must be specified for the R_ID parameter.

For the RD_1 parameter (data type ANY), specify where the data is to be stored
(destination). The length defines the maximum length of the block to be received.
Example: p#DB20.DBX10.0 WORD 2048
To prevent unprocessed data from being overwritten, you must call the BRCV with the value
0 at the control input EN_R.
Note that you might have to use the CP 441: Configuration Package for Point to Point
Communication parameter assignment interface to disable (delete) a receive mailbox on the
CP 441, as otherwise the data will be placed in the data block specified in the receive
mailbox instead of being fowarded to BRCV.

Example

Table 6-6 Example of Calling SFB12 (BSEND) using 3964(R)

STL
L 50
T DB60.DBW806
CALL SFB 12, DB62 Call for SFB 12.
REQ :=DB60.DBX812.0 Following a rising edge at the REQ
R :=DB60.DBX812.1 parameter, the data for a length of 50
bytes starting at data byte 5 in DB10
ID :=W#16#1000
is sent to the communication partner
R_ID :=W#16#5 with the BSEND request.
DONE :=DB60.DBX812.2
ERROR :=DB60.DBX812.3
STATUS :=DB60.DBW802
SD_1 :=p#DB10.DBX5.0 WORD 1
LEN :=DB60.DBW806

Point-to-point connection CP 441 Installation and Parameter Assignment


6-10 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.3 Using the System Function Blocks with the 3964(R) Procedure

Table 6-7 Example of Calling SFB13 (BRCV) using 3964(R)

STL
SET
= DB60.DBX812.4
CALL SFB 13, DB63 Call for SFB 13.
ID :=W#16#1001 The data is received with the BRCV
request and stored in DB20, starting at
R_ID :=W#16#0
data byte 10. The LEN parameter shows
NDR :=DB60.DBX812.5 the length of the received data (50 bytes).
ERROR :=DB60.DBX812.6 Note that this protocol requires 0 as the
STATUS :=DB60.DBW800 R_ID of the BRCV system function block.

RD_1 :=p#DB20.DBX10.0 WORD 2048


LEN :=DB60.DBW804

Request Table
The following table lists the data types which can be transmitted.

Table 6-8 Request table for sending data with the 3964(R) using BSEND and BRCV

Source, To Destination, Parameter assignment at Parameter Assignment Parameter Assignent at


BSEND from S7 Communication SFB BSEND, in BSEND SFB, SFB BRCV,
Partner Parameter LEN Parameter RD_1
Parameter SD_1 (source) (Source) (Destination)
S- S-DBNO S-Offset Length D- D-DBNO D-Offset
TYP (byte) (max. 4096 byte) TYP (byte)
E E
Data block Data block DB 1-* 0-* 1-* DB 1-* 0-*
Flag Data block MB irrelevant 0-* 1-* DB 1-* 0-*
Inputs Data block IB irrelevant 0-* 1-* DB 1-* 0-*
Outputs Data block QB irrelevant 0- * 1- * DB 1- * 0-*
Counters Data block C irrelevant 0-* 1-* DB 1-* 0-*
Times Data block T irrelevant 0-* 1-* DB 1-* 0-*
* This value is dictated by the CPU that you use.
Abbreviations used in the table: S-TYPE= source type, S-DBNO= source data block number, S-Offset=source start
address, length=source length, D-TYPE=destination type, D-DBNO= destination data block number, D-Offset=destination
start address

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-11
Communication via System Function Blocks
6.3 Using the System Function Blocks with the 3964(R) Procedure

6.3.3 Data Transmission with 3964(R) Using BSEND and a Receive Mailbox

What To Do
This type of data transmission has the advantage that no programming is necessary in the
user program of the communication partner.
Note that at the receiver you cannot tell when a transmission is taking place. Therefore, the
receiving CP 441 cannot prevent unprocessed data from being overwritten at the receiver.
The data is transferred even when the receiving S7 CPU is in STOP mode. The receiving
CPU determines data consistency (CPU 412/413: 16 bytes, CPU 414/417: 32 bytes).

Further Information
You will find more information on data consistency in the reference manual on system
functions and standard functions System Software for S7 300/400, System and Standard
Functions..

On Your Programmable Controller


For each communication request you must program a BSEND (SFB12) system function
block in the S7 user program of the CPU.
The R_ID parameter takes any value. When programming more than one BSEND you must
use different R_IDs.
For the SD_1 parameter (data type ANY), specify which data (source) is to be passed on.
Example: p#DB10.DBX5.0 WORD 1
The length is not evaluated with data type ANY, since the length of the data to be sent is
defined in the LEN parameter.

At the CP 441 Communication Partner


You must specify a receive mailbox with its data block (DB) on the CP 441 with the aid of the
CP 441: Configuration Package for Point to Point Communication parameter assignment
interface.
In the data block the data arriving via the CP 441 is stored in the CPU. The data block must
have been created previously on the CPU. The data block must be 2 bytes longer than the
transmittable data, because the receiving CP enters the length of the transmitted data in the
first two bytes.

Point-to-point connection CP 441 Installation and Parameter Assignment


6-12 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.3 Using the System Function Blocks with the 3964(R) Procedure

Request Table
The following table lists the data types which can be transmitted.

Table 6-9 Request Table for Sending Data with 3964(R) Using BSEND and a Receive Mailbox

Source, BSEND To Destination, Parameter Assignment in the Parameter Assignment in Specification of


from S7 Communication BSEND SFB, Parameter SD_1 the BSEND SFB, DB in Mailbox
Partner (Source) Parameter LEN (Source)
S-TYPE S-DBNO S-Offset Length max. 4 KB D-DB
(byte)
Data block Data block DB 1-* 0-* 1-* 1-*
Flag Data block MB irrelevant 0-* 1-* 1-*
Inputs Data block IB irrelevant 0- * 1- * 1-*
Outputs Data block AB irrelevant 0-* 1-* 1-*
Counters Data block Z irrelevant 0-* 1-* 1-*
Times Data block T irrelevant 0- * 1- * 1-*
Abbreviations used in the table: S-TYPE= source type, S-DBNO= source data block number, S-Offset= source start
address, length= source length, D-TYPE= destination type, D-DB= destination data block, D-Offset= destination start
address

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-13
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

6.4 Using the System Function Blocks with the RK 512 Computer
Connection
If you are using the RK 512 computer connection as your transmission procedure, you can:
• Send data from your S7-400 automation system to a communication partner with a fixed
destination.
• Send data from your S7-400 automation system to a communication partner with a
dynamic destination.
• Fetch data from a communication partner.

6.4.1 Send data with a static destination definition with RK 512

Transmission Sequence
The figure below illustrates how data is sent to a communication partner with static
destination definition using RK 512.

<RXUSURJUDPPDEOHFRQWUROOHU &RPPXQLFDWLRQSDUWQHU
 DFWLYH  6

&38 &3 &3 &38

'DWD 'DWD 'DWD

6)%
%5&9

6)%
%6(1' 5. RU
SURWRFRO
1R
SURJUDPPLQJ
QHFHVVDU\

Figure 6-2 Sending Data to a Communication Partner with Static Destination Definition with the
RK 512 Computer Link

Point-to-point connection CP 441 Installation and Parameter Assignment


6-14 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Note
If you are transmitting data via the RK 512 computer connection, you must distinguish
between sending data to another CP 441 or linking up to an S5 module or third-party device.

Sending an Odd Number of Data


Please note the following when sending an odd number of data:

Note
The RK 512 protocol only allows an even number of data to be sent. If you specify an odd
number of data, an additional filler byte with a value of "0" is sent at the end.

Data Transmission with RK 512 to the CP 441 Communication Partner


If your partner in the link is a CP 441, you have the following options:
• To transmit data you can program a BSEND at the sender and a BRCV at the receiver,
indicated by the data type DX in the RK 512 message frame header.
This type of data transmission has the advantage that, using the BRCV, you can interpret
the NDR parameter to establish when the complete data was received, and the EN_R
parameter to prevent unprocessed data from being overwritten at the receiver.
• To transmit data you can program a BSEND at the sender only, with no programming at
the receiver, indicated by the data type DB in the RK 512 message frame header.
If you use this type of data transmission, you do not need to do any programming in the
user program of the communication partner. Note, however, that at the receiver you
cannot tell when a transmission is taking place. Therefore, the receiving CP 441 cannot
prevent unprocessed data from being overwritten at the receiver.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-15
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

6.4.2 Sending Data with RK 512 to the Communication Partner CP 441 with Static
Destination Definition, Use of BSEND and BRCV

What To Do
This type of data transmission has the advantage that, using the BRCV, you can interpret the
NDR parameter to establish when the complete data was received, and the EN_R parameter
to prevent unprocessed data from being overwritten at the receiver.

On Your Programmable Controller


With this programming option, the data source is specified at the sender and the data
destination is specified at the receiver.
In the S7 user program of the CPU you must program the BSEND system function block
(SFB 12).
For the R_ID parameter you can specify a value from 0 to 255 (decimal). The value is
accepted once during CPU startup and cannot subsequently be changed. No other values
may be specified. The CP 441 transmits the R_ID value 0-255 in the RK 512 message frame
header as DX 0-255 (extended data block) to the CP 441 of the communication partner.
R_ID 0-255 (decimal) → DX 0-255 (decimal)
In the CP 441 of the communication partner, this becomes the R_ID value 0-255 again, with
which the corresponding BRCV on the partner CPU can be addressed.
For the SD_1 parameter (data type ANY), specify which data (source) is to be passed on.
Example: p#DB10.DBX5.0 WORD 1
The length is not evaluated with data type ANY, since the length of the data to be sent is
defined in the LEN parameter.
Note that the length of the transmittable data is restricted to 4 KB.

Note
If you send data to a CP 441 by means of an S5 CP or a third-party device, in this mode you
must specify DX as the destination data block with the corresponding number in the request
block (S5 CP). The start address is not evaluated. Interprocessor communication flags are
not evaluated either. The connection via which the data is forwarded from the CP 441 to the
S7 CPU is selected by means of the CPU number. Up to 4 KB of data can be transferred.

Point-to-point connection CP 441 Installation and Parameter Assignment


6-16 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

At the CP 441 Communication Partner


The CP 441 of the communication partner recognizes the type of data transmission you have
selected using the data type DX in the RK 512 message frame header. In this case the
specifications in the RK 512 message frame header are not the destination parameters but
represent the reference to the R_ID of a BRCV (SFB 13) which you must call in the S7 user
program of the CPU.
The following applies:
DX 0-255 (decimal) → R_ID=0-255 (decimal)
The actual destination parameters must be specified in the BRCV system function block with
the RD_1 parameter (data type ANY). The length defines the maximum length of the block to
be received.
Example: p#DB20.DBX10.0 WORD 2048
The IPC flag byte and bit from the RK 512 message header are not interpreted.
To prevent unprocessed data from being overwritten, you must call the BRCV with the value
0 at the control input EN_R.

Example
Table 6-10 Example of Calling SFB12 (BSEND) using RK 512:

STL
L 50
T DB60.DBW806
CALL SFB 12, DB62 Call for SFB 12.
REQ :=DB60.DBX812.0 Following a rising edge at the REQ
R :=DB60.DBX812.1 parameter, the data for a length of 50 bytes
ID :=W#16#1000 starting at data byte 5 in DB10 is sent to the
communication partner with the BSEND
R_ID :=W#16#5
request.
DONE :=DB60.DBX812.2
ERROR :=DB60.DBX812.3
STATUS :=DB60.DBW802
SD_1 :=p#DB10.DBX5.0 WORD 1
LEN :=DB60.DBW806

Table 6-11 Example of Calling SFB13 (BRCV) using RK 512:

STL
SET = DB60.DBX812.4
CALL SFB 13, DB63 Call for SFB 13.
EN_R DB60.DBX812.4 The data is received with the BRCV request and
ID :=W#16#1001 stored in DB20, starting at data byte 10. The
R_ID :=W#16#5 LEN parameter shows the length of the received
data (50 bytes).
NDR :=DB60.DBX812.5
Note that the R_ID of the BRCV must be
ERROR :=DB60.DBX812.6
identical to the R_ID of the BSEND.
STATUS :=DB60.DBW800
RD_1 :=p#DB20.DBX10.0 WORD 2048
LEN :=DB60.DBW804

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-17
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Request Table
The following table lists the data types which can be transmitted.

Table 6-12 Request Table for Sending Data with RK 512 to the CP 441 Communication Partner, Using BSEND and
BRCV"

Source, To Destination, Parameter Assignment in the Parameter Parameter Parameter Assignment in BRCV SFB,
BSEND S7 BSEND SFB, Parameter SD_1 Assignment in Assignment Parameter RD_1 (Destination)
from S7 Communication (Source) BSEND SFB, in BSEND/
Partner (BRCV) Parameter BRCV SFB,
LEN (Source) Parameter
R_ID
S-TYPE S-DBNO S-Offset Length (max. No. D-TYPE D- D-
(byte) 4096 byte) DBNO Offset (byte)
Data block Data block DB 1-* 0-* 1-* 0-255 DB 1-* 0-*
Flag Data block MB irrelevant 0-* 1-* 0-255 DB 1-* 0-*
Inputs Data block IB irrelevant 0-* 1-* 0-255 DB 1-* 0-*
Outputs Data block AB irrelevant 0- * 1- * 0-255 DB 1- * 0-*
Counters Data block Z irrelevant 0-* 1-* 0-255 DB 1-* 0-*
Times Data block T irrelevant 0-* 1-* 0-255 DB 1-* 0-*
* This value is dictated by the CPU that you use.
Abbreviations: S-TYPE= source type, S-DBNO= source data block number, S-Offset= source start address; D-TYPE= destination type,
length= source length, D-DBNO= destination data block number, D-Offset= destination start address

Specifications in the Message Frame Header of the RK 512 Protocol


The following table shows the specifications in the RK 512 message frame header.

Table 6-13 Specifications in Message Frame Header of RK 512 Protocol, "Sending Data to Communication Partner CP
441 with RK 512, Using BSEND and BRCV"

Source, To Destination, Message frame header


BSEND from S7 S7 Communication Partner Bytes 3/4 Bytes 5/6 Bytes 7/8
(BRCV)
Command mode* D-DXNO/D-Offset Number in
Data block Data block OD DX/DW words
Flag Data block OD DX/DW bytes
Inputs Data block OD DX/DW bytes
Outputs Data block OD DX/DW bytes
Counters Data block OD DX/DW words
Times Data block OD DX/DW words
* The source information is not transferred to the CP, so the CP always enters the ID for DB (OD) at this point.
Abbreviations: S-DXNO = extended destination data block number, D-Offset = destination start address, DW = Offset in words

Point-to-point connection CP 441 Installation and Parameter Assignment


6-18 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

6.4.3 Sending Data with RK 512 to the Communication Partner CP 441 with Static
Destination Definition, Using BSEND

What To Do
This type of data transmission has the advantage that no programming is necessary in the
user program of the communication partner.
Note that at the receiver you cannot tell when a transmission is taking place. Therefore, the
receiving CP 441 cannot prevent unprocessed data from being overwritten at the receiver.
Using the "Response to a CPU Stop" parameter, indicate whether data should continue to be
transmitted when the S7 CPU is also in STOP mode. The parameter is only available for the
CP 441-2 (as of 6ES7 441-2AA04-0AE0).
The receiving CPU determines data consistency (CPU 412/413: 16 bytes, CPU 414/417:
32 bytes).

On Your Programmable Controller


With this type of programming, the source data and the destination data are specified at the
sender.
In the S7 user program of the CPU you must program the BSEND system function block
(SFB 12).
For the SD_1 parameter (data type ANY), specify which data (source) is to be passed on.
Example: p#DB10.DBX5.0 WORD 1
The length is not evaluated with data type ANY, since the length of the data to be sent is
defined in the LEN parameter.
For the destination data area you must specify a data block (DB) between 1 and 255
(decimal). Specify the destination data area of the communication partner in the R_ID
parameter. The value is accepted once during CPU startup and cannot subsequently be
changed. The R_ID parameter (DWORD) is structured as follows:
Byte 1 = ID for data type DB: 1 (hexadecimal)
Byte 2 = Not relevant (any value)
Byte 3 = Offset: 0-255 (decimal, in words)
Byte 4 = DB No.: 1.255 (decimal)
The parameters of the destination data area are transmitted to the communication partner in
the RK 512 message frame header.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-19
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Please note that the length of the data that can be transferred is limited to 450 bytes
depending on the CPU of the communication partner.
Note also that the parameter limits of the RK 512 protocol at the partner only allow you to
access data blocks 1 through 255 and to specify as the offset a maximum of 255.

Note
If you send data to a CP 441 by means of an S5 CP or a third-party device, in this mode you
must specify DB as the destination data block with the corresponding number and start
address (offset) in the request block. Interprocessor communication flags are not evaluated.
The connection via which the data is forwarded from the CP 441 to the S7 CPU is selected
by means of the CPU number. The length of the transferable data is 450 bytes.

At the CP 441 Communication Partner


The CP 441 of the communication partner recognizes from the data type DB in the RK 512
message frame header the type of data transmission you have selected.
No programming is necessary in the S7 user program of the CPU.

Example
Table 6-14 Example of Calling SFB12 (BSEND) using RK 512:

STL
L 50 Length = 50 bytes
T DB60.DBW806
L B#16#1 Data type DB
T DB60.DBB820
L 0 Not relevant
T DB60.DBB821
L 20 Starting at data word 20 (offset)
T DB60.DBB822
L 71 DB No. 71
T DB60.DBB823
CALL SFB 12, DB62
REQ :=DB60.DBX812.0 Following a rising edge at the REQ
R :=DB60.DBX812.1 parameter, the data for a length of 50
bytes starting at data byte 5 in DB 10 is
ID :=W#16#1000
sent to the communication partner.
R_ID :=DB60.DBD820
The partner stores the data in DB 71,
DONE :=DB60.DBX812.2 starting at data word 20. The
ERROR :=DB60.DBX812.3 destination information in the R_ID is
accepted once during CPU startup and
STATUS :=DB60.DBW802
cannot subsequently be changed.
SD_1 :=p#DB10.DBX5.0 WORD 1
LEN :=DB60.DBW806

Point-to-point connection CP 441 Installation and Parameter Assignment


6-20 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Request Table
The following table lists the data types which can be transmitted.

Table 6-15 Request table for "Sending data with RK 512 to the communication partner CP 441,
using BSEND"

Source, To Destination, Parameter Assignment in the Parameter Parameter Assignment in the


BSEND from Communication BSEND SFB, Parameter SD_1 Assignment in BSEND SFB, Parameter R_ID
S7 Partner (Source) BSEND SFB, (Destination)
Parameter LEN
(Source)
S- S-DBNO S-Offset Length max. 450 D- D-DBNO D-Offset
TYPE (byte) bytes** TYPE (words)
Data block Data block DB 1-* 0-* 1-* DB 1-255 0-255
Flag Data block MB irrelevant 0- * 1-* DB 1-255 0-255
Inputs Data block IB irrelevant 0- * 1- * DB 1-255 0-255
Outputs Data block QB irrelevant 0-* 1-* DB 1-255 0-255
Counters Data block C irrelevant 0- * 1- * DB 1-255 0-255
Times Data block T irrelevant 0- * 1- * DB 1-255 0-255
* This value is dictated by the CPU that you use.
**Depending on the CPU of the communication partner, 450 bytes
Abbreviations: S-TYPE= source type, S-DBNO= source data block number, S-Offset= source start address, length=
source length, D-TYPE= destination type, D-DBNO= destination data block number, D-Offset= destination start address

Specifications in the Message Frame Header of the RK 512 Protocol


The following table shows the specifications in the RK 512 message frame header.

Table 6-16 Specifications in message frame header of RK 512 protocol, "Sending data to
communication partner CP 441 with RK 512, using BSEND"

Source, to the destination, Message frame header


BSEND from the S7 Communication Partner (BRCV)
S7
Bytes 3/4 Bytes 5/6 Bytes 7/8
Command D-DBNO/D-Offset Number in
mode*
Data block Data block AD DB/DW words
Flag Data block AD DB/DW bytes
Inputs Data block AD DB/DW bytes
Outputs Data block AD DB/DW bytes
Counters Data block AD DB/DW words
Times Data block AD DB/DW words
The source information is not transferred to the CP, so the CP always enters the ID for DB (AD) at this point.
Abbreviations: S-DBNO = destination data block number, D-Offset = destination start address, DW = Offset in words

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-21
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Further Information
You will find more information on data consistency in the reference manual on system
functions and standard functions System Software for S7 300/400, System and Standard
Functions..

See also
Parameters for the Communications Protocols (Page 5-3)

Point-to-point connection CP 441 Installation and Parameter Assignment


6-22 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

6.4.4 Sending Data with RK 512 to the S5 Communication Partner or Third-party Device
with Static Destination Definition

What To Do
If your partner in the link is an S5 CP or a third-party device, proceed as follows:

On Your Programmable Controller


In the S7 user program of the CPU you must program the BSEND system function block
(SFB 12).
For the SD_1 parameter (data type ANY), specify which data (source) is to be passed on.
Example: p#DB10.DBX5.0 WORD 1
The length is not evaluated with data type ANY, since the length of the data to be sent is
defined in the LEN parameter.
Specify the destination data area of the communication partner in the R_ID parameter. The
value is accepted once during CPU startup and cannot subsequently be changed. The R_ID
parameter (DWORD) is structured as follows:

Byte 1, bit 0,1,2,3 = ID for data type


DX: 0 (hexadecimal)
DB: 1 (hexadecimal)
Byte 1, bit 4,5,6,7 = IPC flag bits 0–7 (hexadecimal); if you are not using an IPC flag,
the protocol enters FH in the message frame header.
Byte 2 = Byte for IPC flag 1-233 (decimal), or, if you are not using an IPC
flag, 255 (decimal)
Byte 3 = Offset: 0-255 (decimal, in words)
Byte 4 = DB No.: 3-255 (decimal)

The parameters of the destination data area are transmitted to the communication partner in
the RK 512 message frame header.
Note that the length of the transmittable data is restricted to 4 KB.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-23
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

At the S5 Communication Partner or Third-party Device


For the relevant information you should read the notes in the appropriate S5 manual, or in
the relevant literature if you are using a third-party device.

Example

Table 6-17 Example of Calling SFB12 (BSEND) using RK 512:

STL
L 50 Length = 50 bytes
T DB60.DBW806
L B#16#31 IPC flag bit 3 / data type DB
T DB60.DBB820
L 30 Interprocessor communication flag byte 30
T DB60.DBB821
L 20 Starting at data word 20 (offset)
T DB60.DBB822
L 71 DB No. 71
T DB60.DBB823
CALL SFB 12, DB62
REQ :=DB60.DBX812.0 Following a rising edge at the REQ parameter, the data
R :=DB60.DBX812.1 for a length of 50 bytes starting at data byte 5 in DB 10
is sent to the communication partner.
ID :=W#16#1000
The partner stores the data in DB 71, starting at data
R_ID :=DB60.DBD820
word 20. Interprocessor communication flag byte and
DONE :=DB60.DBX812.2 IPC bit are also transferred. The destination information
ERROR :=DB60.DBX812.3 in the R_ID is accepted once during CPU startup and
cannot subsequently be changed.
STATUS :=DB60.DBW802
SD_1 :=p#DB10.DBX5.0 WORD 1
LEN :=DB60.DBW806

Point-to-point connection CP 441 Installation and Parameter Assignment


6-24 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Request Table
The following table lists the data types which can be transmitted.
Data destination DB:

Table 6-18 Request table for "Sending data to an S5 communication partner or third-party device with RK 512, data
destination DB"

Source, to the destination, Parameter Assignment in Assigning Parameter Assignment in the


BSEND from S5 Communication the BSEND SFB, Parameter parameters to BSEND SFB, Parameter
the S7 Partner or Third-party SD_1 (Source) the BSEND R_ID (Destination)
Device SFB, LEN
parameter
(source)
S-TYPE S-DBNO S- Length (max. D- D-DBNO D-Offset
Offset 4096 byte) TYPE (words)
(byte)
Data block Data block DB 1-* 0-* 1-* DB 3-255 0-255
Flag Data block MB irrelevant 0- * 1- * DB 3-255 0-255
Inputs Data block IB irrelevant 0-* 1-* DB 3-255 0-255
Outputs Data block QB irrelevant 0- * 1- * DB 3-255 0-255
Counters Data block C irrelevant 0- * 1- * DB 3-255 0-255
Times Data block T irrelevant 0-* 1-* DB 3-255 0-255
*This value is dictated by the CPU that you use.
Abbreviations used in the table: S-TYPE= source type, S-DBNO= source data block number, S-Offset= source start
address, length= source length, D-TYPE= destination type, D-DBNO= destination data block number, D-Offset=
destination start address

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-25
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Specifications in the Message Frame Header of the RK 512 Protocol


The following table shows the specifications in the RK 512 message frame header.
Data destination DB:

Table 6-19 Specifications in message frame header of RK 512 protocol, "Sending data to
an S5 communication partner or third-party device with RK 512, data destination DB"

Source, To Destination, S5 Message frame header


BSEND from S7 Communication
Partner or Third-party Device
Bytes 3/4 Bytes 5/6 Bytes 7/8
Command D-DBNO/D-Offset Number in
mode*
Data block Data block AD DB/DW words
Flag Data block AD DB/DW bytes
Inputs Data block AD DB/DW bytes
Outputs Data block AD DB/DW bytes
Counters Data block AD DB/DW words
Times Data block AD DB/DW words
The source information is not transferred to the CP, so the CP always enters the ID for DB (AD) at this point.
Abbreviations used in the table: S-DBNO = destination data block number, D-Offset = destination start address, DW =
Offset in words

Request Table
The following table lists the data types which can be transmitted.
Data destination DX:

Table 6-20 Request table for "Sending data to an S5 communication partner or third-party device
with RK 512, data destination DX"

Source, To Destination, S5 Parameter assignment at Parameter Parameter Assignent at


BSEND from S7 Communication Partner or SFB BSEND, Assignment in BSEND SFB,
Third-party Device Parameter SD_1 (source) BSEND SFB, Parameter R_ID
Parameter LEN (Destination)
(Source)
S- S-DBNO S-Offset Length (max. 4096 D- D- D-Offset
TYP (byte) byte) TYP DBNO (words)
E E
Data block Extended data block DB 1-* 0-* 1-* DX 3-255 0-255
Flag Extended data block MB irrelevant 0-* 1-* DX 3-255 0-255
Inputs Extended data block IB irrelevant 0-* 1-* DX 3-255 0-255
Outputs Extended data block QB irrelevant 0-* 1-* DX 3-255 0-255
Counters Extended data block C irrelevant 0- * 1- * DX 3-255 0-255
Times Extended data block T irrelevant 0-* 1-* DX 3-255 0-255
* This value is dictated by the CPU that you use.
Abbreviations used in the table: S-TYPE= source type, S-DBNO= source data block number, S-Offset= source start
address, length= source length, D-TYPE= destination type, D-DBNO= destination data block number, D-Offset=
destination start address

Point-to-point connection CP 441 Installation and Parameter Assignment


6-26 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Specifications in the Message Frame Header of the RK 512 Protocol


The following table shows the specifications in the RK 512 message frame header.
Data destination DX:

Table 6-21 Specifications in message frame header of RK 512 protocol, "Sending data to an S5 communication partner or
third-party device with RK 512, data destination DX"

Source, To Destination, S5 Message frame header


BSEND from S7 Communication Partner or
Third-party Device
Bytes 3/4 Bytes 5/6 Bytes 7/8
Command D-DXNO/D-Offset Number in
mode*
Data block Extended data block OD DX/DW words
Flag Extended data block OD DX/DW bytes
Inputs Extended data block OD DX/DW bytes
Outputs Extended data block OD DX/DW bytes
Counters Extended data block OD DX/DW words
Times Extended data block OD DX/DW words
* The source information is not transferred to the CP, so the CP always enters the ID for DB (OD) at this point.
Abbreviations used in the table: S-DXNO = extended destination data block number, D-Offset = destination start address,
DW = Offset in words

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-27
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

6.4.5 Sending Data to a Communication Partner with Dynamic Destination Definition


with the RK 512 Computer Link

Transmission Sequence
The figure below illustrates how data is sent to a communication partner with dynamically
modifiable destination definition using RK 512.

<RXUSURJUDPPDEOHFRQWUROOHU &RPPXQLFDWLRQSDUWQHU
 DFWLYH  6

&38 &3 &3 &38

'DWD 'DWD 'DWD

1R
6)% SURJUDPPLQJ
387 5.
SURWRFRO QHFHVVDU\

Figure 6-3 Sending data to a communication partner with dynamic destination definition with the
RK 512 computer link

Point-to-point connection CP 441 Installation and Parameter Assignment


6-28 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Fetching Data from a Communication Partner with RK 512. What To Do


To send data to a communication partner, proceed as follows:

On Your Programmable Controller


In the S7 user program of the CPU you must program the PUT system function block
(SFB 15).
For the SD parameter (ANY data type) you specify the data you want to send to the partner
(destination). Only even numbers (a maximum of 450 bytes) can be specified as the offset
for the data types DB, C and T. In the case of the data types MB, IB and QB, the maximum
offset is 255 bytes.
Example: p#DB10.DBX6.0 WORD 10
For the ADDR parameter (ANY data type) you specify where the data is to be stored on your
partner (destination). The length specified must agree with the value specified for the ADDR
parameter. The parameter limits of the RK 512 protocol mean that only data blocks 1 to 255
of the partner can be reached. For the transfer of times and counters, the "CHAR" data type
must be specified for the data block in which the times are stored.
Note that at the receiver you cannot tell when a transmission is taking place. Therefore, the
receiving CP 441 cannot prevent unprocessed data from being overwritten at the receiver.
Using the "Response to a CPU Stop" parameter, indicate whether data should continue to be
transmitted when the S7 CPU is also in STOP mode. The parameter is only available for the
CP 441-2 (as of 6ES7 441-2AA04-0AE0). Interprocessor communication flags are not
supported when connecting with S5 CPs. The sending and receiving CPUs determine data
consistency (CPU 412/413: 16 bytes, CPU 414/417: 32 bytes). The weaker partner in terms
of consistency determines the resulting consistency length for data transfer.

Note
If you send data to a CP 441 by means of an S5 CP or a third-party device, in this mode you
must specify DB as the destination data block with the corresponding number and start
address (offset) in the request block. Interprocessor communication flags are not evaluated.
The connection via which the data is forwarded from the CP 441 to the S7 CPU is selected
by means of the CPU number.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-29
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

At the CP 441 Communication Partner


At the communication partner no programming is necessary in the S7 user program of the
CPU.

Example

Table 6-22 Example for calling SFB 15 (PUT):

STL
CALL SFB 15, DB52 When this SFB is called, at a positive edge at
REQ := DB400.DBX0.0 bit DBX0.0, data is sent to the
communication partner, where it is placed in
ID :=W#16#1000
DB30. If several data areas are sent at the
DONE := DB400.DBX0.4
same time, additional SD_i and ADDR_i pairs
ERROR := DB400.DBX0.5 can be assigned parameters.
STATUS := DB400.DBW12
ADDR_1 := P#DB30.DBX 0.0 WORD 10
ADDR_2
ADDR_3
ADDR_4
SD_1 := P#DB10.DBX 0.0 WORD 10
SD_2
SD_3
SD_4

See the CP441 ANY demo project for instructions on how to change the send and receive
parameters of the ANY data type at runtime. The demo project is in the "Examples" STEP 7
catalog under CP441.

Request Table
The following table lists the data types which can be transmitted.

Table 6-23 Request table for "Sending data with RK 512 to the communication partner CP 441, using PUT"

Source, PUT To Destination, Parameter Assignment in the PUT SFB, Parameter Assignment in PUT SFB,
from S7 Communication Parameter SD_1 (Source) Parameter ADDR (Destination)
Partner S-TYPE S-DBNO S-Offset (byte) D-TYPE D-DBNO D-Offset (words)
Data block Data block DB 1-* 0-* DB 1-255 0-255
Flag Data block MB irrelevant 0- * DB 1-255 0-255
Inputs Data block IB irrelevant 0-* DB 1-255 0-255
Outputs Data block QB irrelevant 0-* DB 1-255 0-255
Counters Data block C irrelevant 0-* DB 1-255 0-255
Times Data block T irrelevant 0- * DB 1-255 0-255
*This value is dictated by the CPU that you use.
** Dependent on the CPU of the communication partner, max. 450 bytes

Abbreviations used in the table: S-TYPE= source type, S-DBNO= source data block number, S-Offset= source start
address, D-TYPE= destination type, D-DBNO= destination data block number, D-Offset= destination start address

Point-to-point connection CP 441 Installation and Parameter Assignment


6-30 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Specifications in the Message Frame Header of the RK 512 Protocol


The following table shows the specifications in the RK 512 message frame header.

Table 6-24 Specifications in Message Frame Header of RK 512 Protocol, "Sending Data to Communication partner
CP 441 with RK 512, Using PUT"

Source, To Destination, S7 Message frame header


PUT from S7 Communication Partner (PUT)

Bytes 3/4 Bytes 5/6 Bytes 7/8


Command D-DBNO/D-Offset Number in
mode*
Data block Data block AD DB/DW words
Flag Data block AD DB/DW bytes
Inputs Data block AD DB/DW bytes
Outputs Data block AD DB/DW bytes
Counters Data block AD DB/DW words
Times Data block AD DB/DW words
The source information is not transferred to the CP, so the CP always enters the ID for DB (AD) at this point.
Abbreviations: S-DBNO = destination data block number, D-Offset = destination start address, DW = Offset in words

Further Information
You will find more information on data consistency in the reference manual on system
functions and standard functions System Software for S7 300/400, System and Standard
Functions..

See also
Overview of the System Function Blocks (Page 6-2)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-31
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

6.4.6 Fetching data from a communication partner with RK 512

Transmission Sequence
Fetching data from a communication partner with RK 512:
The figure below illustrates how data are fetched from a communication partner.

<RXUSURJUDPPDEOHFRQWUROOHU &RPPXQLFDWLRQSDUWQHU
 DFWLYH   6

&38 &3 &3 &38

'DWD 'DWD 'DWD

6)% 1R
*(7 5. SURJUDPPLQJ
SURWRFRO QHFHVVDU\

Figure 6-4 Fetching data from a communication partner with the RK 512 computer connection

Fetching Data from a Communication Partner with RK 512 What To Do


To fetch data from a communication partner, proceed as follows:

On Your Programmable Controller


In the S7 user program of the CPU you must program the GET system function block
(SFB 14).
For the ADDR parameter (ANY data type) you specify the data you want to fetch from the
partner (source). The parameter limits of the RK 512 protocol mean that only data blocks
1 to 255 of the partner can be reached. Only even numbers (a maximum of 450 bytes) can
be specified as the offset for the data types DB, C and T. In the case of the data types MB,
IB and QB, the maximum offset is 255 bytes.
Example: p#DB10.DBX6.0 WORD 10
For the RD parameter (ANY data type) you specify where the data is stored on your module
(destination). The length specified must agree with the value specified for the ADDR
parameter. For the transfer of times and counters, the "CHAR" data type must be specified
for the data block in which the times are stored.

Point-to-point connection CP 441 Installation and Parameter Assignment


6-32 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Please note that the partner cannot recognize when you fetch data. It is therefore not
possible to prevent as yet unprocessed data being fetched from the partner. Using the
"Response to a CPU Stop" parameter, indicate whether data should continue to be
transmitted when the S7 CPU is also in STOP mode. The parameter is only available for the
CP 441-2 (as of 6ES7 441-2AA04-0AE0). Interprocessor communication flags are not
supported when connecting with S5 CPs. The sending and receiving CPUs determine data
consistency (CPU 412/413: 16 bytes, CPU 414/417: 32 bytes). The weaker partner in terms
of consistency determines the resulting consistency length for data transfer.

Further Information
You will find more information on data consistency in the reference manual on system
functions and standard functions System Software for S7 300/400, System and Standard
Functions..

Note
If you fetch data from a CP 441 by means of an S5 CP or a third-party device, you must
specify the source data type in the request block (S5 CP). In the case of the source data
type DB, you must specify the corresponding number and the start address (offset).
Interprocessor communication flags are not evaluated. The connection via which the data is
fetched from the S7 CPU is selected by means of the CPU number.

At the CP 441 Communication Partner


At the communication partner no programming is necessary in the S7 user program of the
CPU.

Example

Table 6-25 Example of Calling SFB14 (GET)

STL
CALL SFB 14, DB14 When this SFB is called at a positive
REQ := DB10.DBX10.0 edge at bit DBX10.0, data is fetched
from the communication partner. The
ID :=W#16#1000
data source is specified at ADDR_1: DB
NDR := DB10.DBX10.2
10, 10 words starting at byte 6. This
ERROR := DB10.DBX10.3 data is placed in DB 100, starting at
STATUS := DB10.DBW20 byte 0. The same data length must be
ADDR_1 := P#DB10.DBX 6.0 WORD 10 specified! If several data areas are
ADDR_2 fetched at the same time, additional
ADDR_i and RD_i pairs can be
ADDR_3
assigned parameters.
ADDR_4
RD_1 := P#DB100.DBX 0.0 WORD 10
RD_2
RD_3
RD_4

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-33
Communication via System Function Blocks
6.4 Using the System Function Blocks with the RK 512 Computer Connection

Request Table
The following table lists the data types which can be transmitted.

Table 6-26 Request table for "Fetching data with RK 512 from communication partner"
Source, Fetch To Destination, Parameter Assignment in the GET Parameter Assignment in the GET SFB,
(GET) from Your S7 PLC SFB, Parameter ADDR (Source) Parameter RD (Destination)
Communication
Partner
S-TYPE S-DBNO S-Offset Length D-TYPE D-DBNO D-Offset
(byte) max. **450 (byte)
bytes
Data block Data block DB * - 255 0 - 510*** 1-* DB 1-* 0-*
Flag Data block MB irrelevant 0 - 255* 1-* DB 1-* 0-*
Inputs Data block IB irrelevant 0 - 255* 1-* DB 1-* 0-*
Outputs Data block QB irrelevant 0 - 255 * 1-* DB 1- * 0-*
Counters Data block C irrelevant 0 - 510 *** 1-* DB 1- * 0-*
Times Data block T irrelevant 0 - 510 *** 1-* DB 1- * 0-*
* The maximum value is determined by the partner CPU that you use.
** Dependent on your CPU and the CPU of the communication partner, max. 450 bytes.

*** Only even-numbered values are permitted for these data types. The maximum value is determined by the partner CPU.
Abbreviations used in the table: S-TYPE= source type, S-DBNO= source data block number, S-Offset= source start
address, length= source length, D-TYPE= destination type, D-DBNO= destination data block number, D-Offset=
destination start address

Specifications in the Message Frame Header of the RK 512 Protocol


The following table shows the specifications in the RK 512 message frame header.

Table 6-27 Specifications in Message Frame Header of RK 512 Protocol, "Fetching Data from the Communication Partner
with RK 512"
Source, Fetch (GET) from to the destination, Message frame header
Communica. Partner your S7 PLC
Byte 3/4 Byte 5/6 Byte 7/8
Command D-DBNO/D-Offset Number in
mode
Data block Data block ED DB/DW words
Flag Data block EM DB/DW bytes
Inputs Data block EI DB/DW bytes
Outputs Data block EQ DB/DW bytes
Counters Data block EC DB/DW words
Times Data block ET DB/DW words
Abbreviations: S-DBNO = destination data block number, S-Offset = source start address, DW = Offset in words

See also
Under the "Object Properties" dialog, the procedures for the RK 512 computer connection
(Page 5-12)
Overview of the System Function Blocks (Page 6-2)

Point-to-point connection CP 441 Installation and Parameter Assignment


6-34 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.5 Using the System Function Blocks with the ASCII Driver

6.5 Using the System Function Blocks with the ASCII Driver

Introduction
The same functions can be used for data transmission with the ASCII as with the 3964(R)
procedure. In other words, the information on the 3964(R) procedure also applies to the
ASCII driver.
In addition, when the ASCII driver is used with the RS 232C interface submodule, you can
read and control the RS 232C secondary signals. The following describes only what you
have to do to use these additional functions.

RS 232C Secondary Signals


Function blocks are available to you for reading and controlling the RS 232C secondary
signals. The table below contains the function blocks of the CP 441 and describes their
purpose.

Table 6-28 Function blocks / functions of the CP 441

FB Meaning
FB 5 The V24_STAT function allows you to read the signal states at the RS 232C
V24_STAT interface of the CP 441.
FB 6 The V24_SET function allows you to set/reset the outputs at the RS 232C
V24_SET interface of the CP 441.

Scope of Supply and Installation


The function blocks of the CP 441, together with the parameter assignment interface and the
programming example, are supplied on CD which comes with this manual.
The function blocks are installed together with the parameter assignment interface. After
installation, the function blocks are stored in the following library:
CP441
You open the library in STEP 7 SIMATIC Manager by choosing File > Open > Library.
For working with the function blocks, you only need to copy the required function block in
your project.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-35
Communication via System Function Blocks
6.5 Using the System Function Blocks with the ASCII Driver

6.5.1 Reading the RS 232C Secondary Signals

Introduction
The V24_STAT FB reads the RS 232C secondary signals from an interface of the CP 441
and makes them available to the user at the module parameters. The V24_STAT FB is
called statically (without conditions) in the cycle or alternatively in a time-controlled program.
The RS 232C secondary signals are updated each time the function is called (cyclic polling).
You select the interface by specifying at the V24_STAT FB the "local" ID of one of the
connections that uses this interface.
The binary result BR is not affected.

Block call

STL representation LAD representation


CALL V24_STAT

REQ : =
ID: = 9B67$7
NDR : = (1 (12
ERROR : = 5(4 1'5
STATUS : = ,' (5525
DTR_OUT: = 67$786
DSR_IN: = '75B287
'65B,1
RTS_OUT: =
576B287
CTS_IN: =
&76B,1
DCD_IN: =
'&'B,1
RI_IN: =
5,B,1

Note
The parameters EN and ENO are only present in the graphical representation (LAD or FBD).
To process these parameters, the compiler uses the binary result BR. The binary result is set
to signal state "1" if the block was terminated without errors. If there was an error, the BR is
set to "0".

Note
A positive input threshold voltage in the RS232 C input signals DSR, CTS, DCD and RI is
mapped respectively to the signal state "1" of the FB input signals DSR_IN, CTS_IN,
DCD_IN and RI_IN.

Point-to-point connection CP 441 Installation and Parameter Assignment


6-36 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.5 Using the System Function Blocks with the ASCII Driver

FB 5 V24_STAT Parameters
The following table lists the parameters of the 5 V24_STAT FB:

Table 6-29 FB 5 V24_STAT Parameters

Name Type Data Type Description Permitted Values, Comment


REQ VAR_INPUT BOOL Activates a transfer at positive -
edge
ID VAR_INPUT WORD Unique communication -
connection to a communication
partner
NDR VAR_OUTPUT BOOL Positive edge indicates that new -
receive data is available to the
user program
ERROR VAR_OUTPUT BOOL Positive edge indicates error -
STATUS VAR_OUTPUT WORD Contains detailed error message -
or warning
DTR_OUT OUTPUT BOOL Data terminal ready, (CP 441 output)
CP 441 ready
DSR_IN OUTPUT BOOL Data set ready, (CP 441 input)
Communication partner ready
RTS_OUT OUTPUT BOOL Request to send, (CP 441 output)
CP 441 ready to send1
CTS_IN OUTPUT BOOL Clear to send, (CP 441 input)
Communication partner can
receive data from the CP 441
(response to RTS = ON of the
CP 441)
DCD_IN OUTPUT BOOL Data Carrier detect, (CP 441 input)
receive signal level
RI_IN OUTPUT BOOL Ring Indicator, (CP 441 input)
Indication of incoming call

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-37
Communication via System Function Blocks
6.5 Using the System Function Blocks with the ASCII Driver

Example

Table 6-30 Example of Calling the 5 V24_STAT FB

STL
CALL FB 5, DB55
REQ := DB30.DBX10.0
ID :=W#16#1000
NDR := DB30.DBX10.1
ERROR := DB30.DBX10.2
STATUS := DB30.DBW20
DTR_OUT := DB30.DBX30.0
DSR–IN := DB30.DBX30.1
RTS_OUT := DB30.DBX30.2
CTS_IN := DB30.DBX30.3
DCD_IN := DB30.DBX30.4
RI_IN := DB30.DBX30.5

See also
Data Transmission with the ASCII Driver (Page 2-35)

Point-to-point connection CP 441 Installation and Parameter Assignment


6-38 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.5 Using the System Function Blocks with the ASCII Driver

6.5.2 Controlling the RS 232C Secondary Signals

Introduction
The user can use the parameter inputs of the V24_SET FB to set or reset the corresponding
interface outputs of an interface of the CP 441. The V24_SET FB is called statically (without
conditions) in the cycle or alternatively in a time-controlled program.
You select the interface by specifying at the V24_SET FB the "local ID" of one of the
connections that uses this interface.
The binary result BR is not affected.

Block call

STL representation LAD representation

CALL V24_SET

REQ : =

ID: = 9B6(7
DONE : = (1 (12
ERROR : =
5(4 '21(
,' (5525
STATUS : =
576 67$786
RTS: =
'75
DTR: =

Note
The parameters EN and ENO are only present in the graphical representation (LAD or FBD).
To process these parameters, the compiler uses the binary result BR. The binary result is
set to signal state "1" if the block was terminated without errors. If there was an error, the BR
is set to "0".

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-39
Communication via System Function Blocks
6.5 Using the System Function Blocks with the ASCII Driver

6 V24_SET FB Parameters
The following table lists the parameters of 6 V24_SET FB:

Table 6-31 6 V24_SET FB Parameters

Name Type Data Type Description Permitted Values, Comment


REQ VAR_INPUT BOOL Activates a transfer at positive -
edge
ID VAR_INPUT WORD Unique communication -
connection to a communication
partner
DONE VAR_OUTPUT BOOL Indicates at a positive edge the -
error-free completion of a
request
ERROR VAR_OUTPUT BOOL Positive edge indicates error -
STATUS VAR_OUTPUT WORD Contains detailed error message -
or warning
RTS INPUT BOOL Request to send, (Control CP 441 output)
CP 441 ready to send
DTR INPUT BOOL Data terminal ready, (Control CP 441 output)
CP 441 ready

Example

Table 6-32 Example of Calling the 6 V24_SET FB

STL
CALL FB 6, DB56
REQ := DB40.DBX10.0
ID :=W#16#1000
DONE := DB40.DBX10.1
ERROR := DB40.DBX10.2
STATUS := DB40.DBW20
RTS := DB40.DBX30.2
DTR := DB40.DBX30.0

See also
Data Transmission with the ASCII Driver (Page 2-35)

Point-to-point connection CP 441 Installation and Parameter Assignment


6-40 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.6 Using the System Function Blocks with the Printer Driver

6.6 Using the System Function Blocks with the Printer Driver

Introduction
The P_PRINT system function block (SFB) is available to you for outputting message texts to
a printer. PRINT transfers a process message to the CP 441, for example. The CP 441 logs
the process message on the connected printer.

Message texts "outputting"


The PRINT SFB transfers a message text with up to four variables to the CP 441. The
PRINT SFB is called statically (without conditions) for data transfer cyclically or in a time-
controlled program.
The transmission of the message text is initiated by a positive edge at the REQ input. The
frame starts with the format string of the message text, This is followed by tags 1 to 4
(SD_1 to SD_4).
The DONE output shows "request completed without errors". ERROR indicates whether an
error has occurred. In STATUS the error number is displayed in the event of an error. If there
were no errors, STATUS has the value "0".

What To Do
In the S7 user program of the CPU you must program the PRINT system function block
(SFB 16).
You specify as the ID the connection via which PRINT is to be executed.
The PRN_NR parameter (printer number) has no significance for the CP 441, since only one
printer can be addressed via a serial interface.
You specify the format string in the FORMAT parameter. Proceed as follows:
1. You must store the format string in a separate data block. If this block does not exist, you
must define it.
Make an entry in the declaration field of the DB to output a message text as in the
following example:
-- Name: Anna
-- Type: STRING
-- Start value: 'Content of message text: %N'
2. The DB for the format string can only be specified symbolically.
After the DB has been saved, you should therefore set symbolic representation under
"View" in the STL compiler and then enter a symbol for the data block in the symbol table
under "Options" (e.g. print_db). As the address and data type, you enter in the symbol
table the DB in which the format strings are stored.
3. Switch the view of your module in which you call "PRINT" to symbolic representation as
well, and enter "print_db".Anna as the FORMAT parameter at the system function block.
Up to four variables can be specified at SD_1 to SD_4 for printer output (the number of the
message text to be output is to be specified in the example).

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-41
Communication via System Function Blocks
6.6 Using the System Function Blocks with the Printer Driver

Example

Table 6-33 Example of Calling the PRINT SFB in a FB

STL
CALL SFB 16, DB116 PRINT SFB call in an FB
REQ :=DB60.DBX100.0
ID :=W#16#1000
DONE :=DB60.DBX100.1
ERROR :=DB60.DBX100.2
STATUS :=DB60.DBW110
PRN_NR :=DB60.DBB120
FORMAT :=”print_db”.Anna Byte 200 in DB 60 contains the message text
SD_1 :=p#DB60.DBX200.0 Byte 1 number

SD_2 :=
SD_3 :=
SD_4 :=

Important Notes
Note that the volume of data consisting of format string and variables that can be transferred
is limited to 400 bytes.
Note that if changes are made subsequently to the format string, you cannot enter them in
the string under "Initial value"; instead, you have to select the data view under "View" and
enter the changed format string under "Initial value".
Note that no string can be transferred in the case of the C (character) representation type.
Use the S representation type for strings.
Note that you cannot specify the string directly at the SD_i parameter in the case of the S
(string) representation type. As in the case of the format string, you have to store the string in
a data block and address it symbolically at the SD_i parameter.

See also
Connection Configuration (Page 5-5)

Point-to-point connection CP 441 Installation and Parameter Assignment


6-42 Manual, 10/2005, A5E00405449-01
Communication via System Function Blocks
6.7 Summary

6.7 Summary

Overview
The tables below summarize the following information on the protocols:
• The possible communication types
• The system function blocks used
• Whether or not overwrite protection is possible and
• The maximum length of transmittable data

ASCII Driver and 3964(R)

Table 6-34 The following applies for the 3964(R) procedure:

Communication Type CP 441 Sending Data to CP 441 Communication Partner


Programming at Sender and Receiver Programming at Sender Only
System function block at CP 441 BSEND BSEND
System function block at CP 441 BRCV none (receive mailbox)
communication partner
Overwrite protection Yes No
Maximum length of transmittable 4 KB 4 KB, receiving CPU
data

RK 512, Sending Data

Table 6-35 The following applies when sending data via the RK 512 computer connection:

Communication Type CP 441 Sending Data to CP 441 Communication Partner


Programming at Sender and Programming at Sender Programming at Sender
Receiver/ (Type DX) Only (Type DB) Only
System function block at BSEND BSEND PUT
CP 441
System function block at BRCV none none
CP 441 communication partner
Overwrite protection Yes No No
Maximum length of 4 KB 450 bytes*, receiving 450 bytes
transmittable data CPU
Dynamically changeable No No Yes
destination definition
* The receiving CP 441 restricts the maximum length of transmittable data. If you use a different communication partner,
you can transfer up to 4 kilobytes.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 6-43
Communication via System Function Blocks
6.7 Summary

RK 512, Fetching Data

Table 6-36 The following applies when fetching data via the RK 512 computer connection:

Communication Type CP 441 Sending Data to CP 441 Communication Partner


System function block at CP 441 GET
System function block at CP 441 communication partner none
Overwrite protection No
Maximum length of transmittable data 450 bytes
Dynamically changeable source definition Yes

Printer Output

Table 6-37 The following applies to the output of message texts on a printer:

Communication Type CP 441 Sending Data to the Printer


System function block at CP 441 PRINT
Maximum length of transmittable data (format string and variables) 400 bytes

Point-to-point connection CP 441 Installation and Parameter Assignment


6-44 Manual, 10/2005, A5E00405449-01
7
Start-up Characteristics and Operating Mode
Transitions of the CP 441

7.1 Startup Characteristics of the CP 441

Start-up behavior
The CP 441 start-up is divided into two phases:
• Initialization (CP 441 in POWER ON mode)
• Parameter assignment

Initialization
As soon as the CP 441 is connected to the power supply, the firmware on the CP 441 is
prepared for operation after a hardware test program has been executed.

Parameter Assignment
During parameter assignment, the CP 441 receives the module parameters which have been
assigned to the current slot. The CP 441 is now ready for operation.

Note
Please note the following for the start-up behavior of the CP 441:

Note
After power on, the CP 441 requires several seconds for initialization and hardware and
memory testing before it is ready for operation. The parameter assignment attempts made
by the CPU during this phase are aborted and an error is entered in the diagnostic buffer:
"SDB processing error, error class 1", and the SDB is identified, and "Parameter assignment
error on module parameter assignment", and the SDB is identified. As soon as the module
test has been completed, parameter assignment is performed by the CPU without errors.
SFB calls in the user program will result in an error as long as the CP 441 has not been
parametered.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 7-1
Start-up Characteristics and Operating Mode Transitions of the CP 441
7.2 Operating Mode Transitions of the CP 441

7.2 Operating Mode Transitions of the CP 441

Introduction
Once the CP 441 has been started up, all data is exchanged between the CPU and the
CP 441 by means of the system function blocks. The operating mode transition behavior of
the CP 441 depends on the operating mode of the CPU.

CPU-STOP
Communication direction CPU > CP:
Communication between the CPU and CP 441 still takes place even when the CPU is in
STOP mode. When the CPU is in STOP mode, the initiated SFB requests (e.g. BSEND) on
the CPU are fully executed and the data is transferred in its entirety to the CP 441 and
forwarded to the communication partner.
Communication direction CP > CPU:
The message frames are received in the CP 441. Any attempt to send the data on to the
CPU is aborted with an error message

CPU RUN
The CP 441 does not recognize how the CPU switches to RUN mode (cold restart or restart
following CPU STOP). The CP 441 behaves identically in both cases.

Cold restart of the CPU


When the CPU is restarted cold, the SFB requests on the CPU are reset, that is all current
requests between the CPU and the CP are automatically aborted. The requests on the CP
are deleted.

Restart of the CPU


When the CPU is restarted, the SFB requests continue to be processed.

Point-to-point connection CP 441 Installation and Parameter Assignment


7-2 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441 8
Introduction
The diagnostics functions of the CP 441 enable you to quickly localize any errors which
occur. The following diagnostics options are available:
• Diagnostics via the display elements of the CP 441
• Diagnostics via the STATUS output of the system function blocks
• Diagnostics via the error signaling area SYSTAT
• Diagnostics via the error numbers in the response message frame
• Diagnostics via the diagnostic buffer of the CP 441
• Diagnostic interrupt

Display Elements (LEDs)


The display elements show the operating mode or possible error states of the CP 441. The
display elements give you an initial overview of any internal or external errors as well as
interface-specific errors.

STATUS Output of the SFBs


Every system function block has a STATUS output for error diagnostics. Reading the
STATUS output of the system function blocks gives you general information on errors which
have occurred during communication between the CP 441 and the assigned CPU. You can
interpret the STATUS parameter in the user program.

Error Message Area, SYSTAT


The programming of the STATUS system function block in the user program allows you to
obtain the status of an interface. By reading SYSTAT you obtain detailed information on
errors/events that have occurred during communication between the CP 441, the assigned
CPU and the communication partner connected at this interface.

Error Numbers in the Response Message Frame


If you are working with the RK 512 computer connection and an error occurs at the
communication partner in a SEND or GET message frame, the communication partner
sends a response message frame with an error number in the 4th byte.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-1
Diagnostics Functions of the CP 441
7.2 Operating Mode Transitions of the CP 441

Diagnostic Buffer of the CP 441


All the errors/events in the SYSTAT error-signaling area of the CP 441 are also entered in
the diagnostic buffer of the CP 441.
In the same way as with the diagnostic buffer of the CPU, you can also use the STEP 7
information functions on the programming device to display the information in the CP
diagnostic buffer.

Diagnostic Interrupt
The CP 441 can trigger a diagnostic interrupt on the CPU assigned to it. CP 441 provides
4 bytes of diagnostics information at the S7-400 backplane bus. This information is analyzed
via the user program (OB 82) or using a programming device to read from the CPU
diagnostic buffer.
The CP 441 also writes diagnostic events which have triggered a diagnostic interrupt to its
diagnostic buffer.
When a diagnostic interrupt event occurs, the EXTF LED (red) lights up.

See also
Subsequent Loading of Firmware Updates (Page 5-20)
Diagnostics Messages of the System Function Blocks (Page 8-4)
Diagnostics Via the Error Signaling Area SYSTAT (Page 8-8)
Error Numbers in the Response Message Frame (Page 8-21)
Diagnostics via the diagnostic buffer of the CP 441 (Page 8-23)

Point-to-point connection CP 441 Installation and Parameter Assignment


8-2 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.1 Diagnostics via the display elements of the CP 441

8.1 Diagnostics via the display elements of the CP 441

Display Functions
The display elements of the CP 441 provide information on the CP 441. The following
display functions are distinguished:
• Special displays
– TXDSending active; lights up when the CP is sending user data via the interface.
– RXDReceiving active; lights up when the CP is sending user data via the interface.
• Group error displays
– INTF internal error
– EXTF external error
• Interface fault LED
– FAULT interface error

Error Messages of the Display Elements


The table below describes the error messages of the display elements.

Table 8-1 Error Messages of the CP 441 Display Elements

Error display Error Description To correct or avoid errors


INTF comes on CP 441 signals internal fault, e.g. hardware fault Program the STATUS SFB for detailed
or software error. information or read the diagnostic buffer of the
CP 441.
EXTF comes on CP 441 signals external fault, e.g. break on the Program the STATUS SFB for detailed
line. information or read the diagnostic buffer of the
CP 441.
FAULT off Interface ready for operation or interface -
submodule not plugged in.
FAULT flashing Interface initialized and ready for operation but Check configuration and connection
slowly communication via S7-400 backplane bus not configuration for incorrect entries (e.g. slot, ID
possible. no., etc.).
FAULT flashing fast Invalid parameter(s), or wrong or faulty interface Check the parameter settings in the CP441:
submodule inserted (module and interface Configuration Package for Point to Point
parameters not compatible). Communication parameter assignment interface
and/or the interface submodule.
FAULT lit up No interface parameters or serious fault in Assign parameters in the CP441: Configuration
submodule (hardware). Package for Point to Point Communication
parameter assignment interface or check the
interface submodule.

See also
Subsequent Loading of Firmware Updates (Page 5-20)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-3
Diagnostics Functions of the CP 441
8.2 Diagnostics Messages of the System Function Blocks

8.2 Diagnostics Messages of the System Function Blocks

Status Parameter
Every system function block has a STATUS parameter for error diagnostics. The STATUS
message numbers always have the same meaning, irrespective of which system function
block is used.
The tables below are copied from the STEP 7 manual and represent only the current status.
Refer to the original tables if you discover discrepancies.

Displaying and Evaluating the STATUS Output


You can display and evaluate the STATUS output of the system function blocks using the
STEP 7 variable table.

Further Information
For further information on using the variable table, see the STEP 7 manual Configuring
Hardware and Communication Connections with STEP 7 V5.0.

Messages in the STATUS Output of the SFBs


The tables below list the messages of the STATUS parameter.

Error Information for SFB 12


The table contains all the SFB 12 specific error information that can be output in the ERROR
and STATUS parameters.

Table 8-2 Error Information for SFB 12 "BSEND"

ERROR STATUS Description


(decimal)
0 11 Warning: New request ineffective because previous request not yet completed
1 1 Communication problems, for example:
• Connection description not loaded (local or remote)
• Connection interrupted (e.g. cable, CPU off)
1 2 Negative acknowledgment from partner SFB. The function cannot be executed.
1 3 R_ID is not known on the communication link identified by ID, or receive block not yet called.
1 4 Error in send area pointer SD_1 regarding data length or data type, or the LEN parameter
received the value 0 or error in receive area pointer RD_1 of SFB 13 "BRCV"
1 5 The reset request has been completed.
1 6 The status of the partner SFB is DISABLED (value of EN_R is 0)
1 7 Status of partner SFB is not correct (receive block not called since last data transfer).
1 8 Access to remote object in user memory denied.
1 10 Access to local user memory not possible (for example access to deleted DB)

Point-to-point connection CP 441 Installation and Parameter Assignment


8-4 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.2 Diagnostics Messages of the System Function Blocks

ERROR STATUS Description


(decimal)
1 12 The SFB call
• specified an instance DB which does not belong to SFB 12
• specified a global DB instead of an instance DB
• did not have an Instance DB (programming device: load a new instance DB)
1 18 R_ID already exists in the link
1 20 Insufficient main memory

Error Information for SFB 13


The table contains all the SFB 13 specific error information that can be output in the ERROR
and STATUS parameters.

Table 8-3 Error Information for SFB 13 "BRCV"

ERROR STATUS Description


(decimal)
0 11 Warning: New request ineffective because previous request not yet completed
0 17 Warning: block receiving asynchronous data.
1 1 Communication problems, for example:
• Connection description not loaded (local or remote)
• Connection interrupted (e.g. cable, CPU off)
1 2 The function cannot be executed.
1 4 Error in receive area pointer RD_1 regarding data length or data type (data block sent is longer
than receive area).
1 5 Reset request received, incomplete transfer.
1 8 Access to remote object in user memory denied.
1 10 Access to local user memory not possible (for example access to deleted DB)
1 12 The SFB call
• specified an instance DB which does not belong to SFB 13
• specified a global DB instead of an instance DB.
• did not have an Instance DB (programming device: load a new instance DB)
1 18 R_ID already exists in the link
1 20 Insufficient main memory

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-5
Diagnostics Functions of the CP 441
8.2 Diagnostics Messages of the System Function Blocks

Error Information for SFB 14


The table contains all the SFB 14 specific error information that can be output in the ERROR
and STATUS parameters.

Table 8-4 Error Information for SFB 14 "GET"

ERROR STATUS Description


(decimal)
0 11 Warning: New request ineffective because previous request not yet completed
1 1 Communication problems, for example:
• Connection description not loaded (local or remote)
• Connection interrupted (e.g. cable, CPU off)
1 2 Negative acknowledgment from partner device. The function cannot be executed.
1 4 Error in receive area pointers RD_i regarding data length or data type
1 8 Access error at the partner CPU
1 10 Access to local user memory not possible (for example access to deleted DB)
1 12 The SFB call
• specified an instance DB which does not belong to SFB 14
• specified a global DB instead of an instance DB.
• did not have an Instance DB (programming device: load a new instance DB)
1 20 Insufficient main memory

Error Information for SFB 15


The table contains all the SFB 15 specific error information that can be output in the ERROR
and STATUS parameters.

Table 8-5 Error Information for SFB 15 "PUT"

ERROR STATUS Description


(decimal)
0 11 Warning: New request ineffective because previous request not yet completed
1 1 Communication problems, for example:
• Connection description not loaded (local or remote)
• Connection interrupted (e.g. cable, CPU off)
1 2 Negative acknowledgment from partner device. The function cannot be executed.
1 4 Error in send area pointers SD_i regarding data length or data type
1 8 Access error at the partner CPU
1 10 Access to local user memory not possible (for example access to deleted DB)
1 12 The SFB call
• specified an instance DB which does not belong to SFB 15
• specified a global DB instead of an instance DB.
• did not have an Instance DB (programming device: load a new instance DB)
1 20 Insufficient main memory

Point-to-point connection CP 441 Installation and Parameter Assignment


8-6 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.2 Diagnostics Messages of the System Function Blocks

Error Information for SFB 16


The table contains all the SFB 16 specific error information that can be output in the ERROR
and STATUS parameters.

Table 8-6 Error Information for SFB 16 "PRINT"

ERROR STATUS Description


(decimal)
0 11 Warning: New request ineffective because previous request not yet completed
1 1 Communication problems, for example:
• Connection description not loaded (local or remote)
• Connection interrupted (e.g. cable, CPU off)
1 2 Negative acknowledgment from printer. The function cannot be executed.
1 3 PRN_NR is not known on the communication link identified by ID.
1 4 Error in in/put parameter FORMAT or in send area pointers SD_i regarding data length or data
type.
1 10 Access to local user memory not possible (for example access to deleted DB)
1 13 Error in the FORMAT in/out parameter
1 20 Insufficient main memory

Error Information for SFB 22


The table contains all the SFB 22 specific error information that can be output in the ERROR
and STATUS parameters.

Table 8-7 Error Information for SFB 22 "STATUS"

ERROR STATUS Description


(decimal)
0 11 Warning: New request ineffective because previous request not yet completed
1 1 Communication problems, for example:
• Connection description not loaded (local or remote)
• Connection interrupted (e.g. cable, CPU off)
1 2 Negative acknowledgment from partner device. The function cannot be executed.
1 4 Error in PHYS, LOG or LOCAL regarding data length or data type
1 8 Access to remote object denied.
1 10 Access to local user memory not possible (for example access to deleted DB)
1 12 The SFB call
• specified an instance DB which does not belong to SFB 22
• specified a global DB instead of an instance DB.
• did not have an Instance DB (programming device: load a new instance DB)
1 20 Insufficient main memory

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-7
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

8.3 Diagnostics via the Error Signaling Area SYSTAT

The SYSTAT error message area is a data area on the CP 441 by means of which you can
query the device status of an interface using the STATUS system function block.

Error-Signaling Area SYSTAT


The error-signaling area SYSTAT is an error area which is available for every interface
(ID number). The SYSTAT records all errors/events which can occur during data
transmission on an interface.

Note
Because the STATUS request is executed asynchronously to the rest of the requests
running at an interface, an SFB with a specific R_ID cannot be assigned to the error
messages. This means that although SYSTAT can display which errors have occurred at an
interface, it cannot show which SFB call (R_ID number) triggered the error.

Errors/Events
The SYSTAT messages are entered in bytes 2 to 15 of the LOCAL parameter when the
STATUS SFB is called. In addition to the error byte (byte 2), the first six errors/events are
displayed. Error event 1 is the oldest.
If other error events occur, these cannot be reported until the "old" entries are deleted. The
error-signaling area must therefore be deleted in good time. This is done when the STATUS
SFB is called.
The errors/events are stored as follows:
• Byte 0 Operating mode of CP (02H for RUN, 05H for faulty)
• Byte 1 Reserved
• Byte 2
– Bit 0 -F Error entered in SYSTAT
– Bit 1 -U Error overflow
– Bit 2 -B Break
• Byte 3 Reserved
• Byte 4/5 Event 1
• Byte 6/7 Event 2
• Byte 8/9 Event 3
• Byte 10/11 Event 4
• Byte 12/13 Event 5
• Byte 14/15 Event 6

Point-to-point connection CP 441 Installation and Parameter Assignment


8-8 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Example

Table 8-8 Example for calling SFB 22 (STATUS)

STL
CALL SFB 22, DB22 STATUS SFB call in an FB
REQ :=DB450.DBX0.0
ID :=W#16#1000 The errors/events are entered in bytes 20-35 of
NDR :=DB450.DBX0.4 DB450 following a rising edge of the REQ
parameter. SFB22 should not be run unless an
ERROR :=DB450.DBX0.5
error occurs in data transfer. For example, the
STATUS :=DB450.DBW12 error bit of a BSEND (ERROR parameter) can be
PHYS :=p#DB450.DBX16.0 Byte 2 used as the request bit for the STATUS (REQ).
Calling SFB22 automatically clears the error-
LOG :=p#DB450.DBX18.0 Byte 2
signaling area of SYSTAT.
LOCAL :=p#DB450.DBX20.0 Byte 16

Numbering Scheme
The numbering scheme for the events in the error-signaling area SYSTAT has the following
structure:

%LWQR
67$786

(YHQWQXPEHU
5HVHUYH (YHQWFODVV (UURUQXPEHU

(YHQW

Figure 8-1 Numbering scheme for events in error-signaling area SYSTAT

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-9
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Classes
The table below describes the various event classes and numbers. Event classes and event
numbers are listed with hexadecimal notation.

Table 8-9 Event classes and event numbers

Event Class 1 (01H):


"Hardware fault on CP"
Event no. Event Text To correct or avoid errors
(01)01H Fault while testing operating system EPROM of CP CP defective; replace CP.
(01)02H RAM test of CP errored
(01)03H Request interface of CP defective
(01)04H No interface submodule inserted Insert suitable interface submodule for CP.
(01)05H • Parameter memory defective Exchange CP or insert suitable interface submodule
• Interface submodule unplugged after parameter for CP.
assignment
(01)10H Fault in CP firmware Switch module off and on again. If necessary,
replace module.

Event Class 2 (02H):


"Initialization error"
Event no. Event Text To correct or avoid errors
(02)01H No parameters Load interface parameters.
Parameter memory empty or has unknown contents
(02)08H Parameter assignment and interface submodule Check parameters set for interface submodule.
incompatible
(02)0FH Invalid parameter assignment detected at start of Correct invalid parameters and restart.
parameter communication. Interface could not be
parametered.
(02)10H Total baud rate exceeded Reduce the baud rates of the two interfaces so that
the total baud rate is not exceeded.
(02)11H Total baud rate back in range Total baud rate was out of range. It is now back in
range after the excursion.

Point-to-point connection CP 441 Installation and Parameter Assignment


8-10 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 3(03H):


"Error in parameterization of SFB"
Event no. Event Text To correct or avoid errors
(03)01H Invalid or no source/destination data type Check parameters on CPU and CP, and correct if
Invalid area (start address, length) necessary.
Invalid or no DB (e.g. DB 0), or RK 512 only: Partner returns invalid parameters in
Other data type invalid or missing message frame header.
Check parameters on CPU and CP; possibly create
block.
See request tables for valid data types.
RK 512 only: Partner returns incorrect parameters
in message frame header.
(03)02H Area too short Check parameters on CPU and CP; possibly check
block/area.
RK 512 only: Partner returns incorrect parameters
in message frame header.
(03)03H Area cannot be accessed Check parameters on CPU and CP. Obtain the
permissible start addresses and lengths from the
request tables.
RK 512 only: Partner returns incorrect parameters
in message frame header.

Event Class 4 (04H):


"CP detected error in data traffic CP - CPU"
Event no. Event Text To correct or avoid errors
(04)01H CP cannot accept requests (overload) In your user program, reduce number of requests
called concurrently for CP.
(04)02H CP cannot process request type Check if the system function blocks you have called
in user program are valid for CP.
(04)03H Incorrect, unknown or illegal data type Check program, e.g. for incorrect parameters of
SFB.
(04)07H An error has occurred during data transmission Check the destination frame on the CPU. Check the
between the CPU and the CP. Data connot be parameter assignment for "Response to a CPU
received because there is no access to the CPU Stop".
destination frame or the CPU destination frame
does not exist or is too short. Writing data to the
CPU destination frame or reading data from the
CPU source frame during a CPU stop when
assigning parameters is not permitted.
(04)08H • Only for 3964R and ASCII drivers • Reduce the number of communication requests.
• A temporary error has occurred during data Call the receive block more often. Check
transmission between the CPU and the CP whether the receive block has been blocked too
(receive). The request is queued for repetition long.
because the CPU is temporarily overloaded or
the receive block (BRCV) is requested too
infrequently or the receive block has been
temporarily blocked.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-11
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 4 (04H):


"CP detected error in data traffic CP - CPU"
Event no. Event Text To correct or avoid errors
(04)09H • Only for 3964R and ASCII drivers • Check whether the receive block has been
• An error has occurred during data transmission called or has been blocked.
between the CPU and the CP. Data reception is
not possible. After multiple attempts (see
(04)07H), the request has canceled after 10
seconds because the receive block (BRCV)
could not be called or is blocked.
(04)0BH Error during data transmission between CPU and
CP, because
• no connection has been configured • Configure the connection in "NetPro"
• no receipt possible via configured connection • Enter in "NetPro" under "Object Properties
Connection) as communication direction:
– 2: Partner → local or
– 3: Local ↔ partner

Event Class 5 (05H):


"Error while processing CPU request"
Event no. Event Text To correct or avoid errors
(05)01H Current request aborted as a result of CP restart. No remedy is possible at POWER ON. When
changing the parameters of the CP in the
programming device, before writing an interface you
should ensure there are no more requests running
from the CPU.
(05)02H Request not permitted in this operating mode of CP Set the parameters for the device interface.
(e.g. device interface parameters are not set).
(05)03H Wrong time, incorrect format Check the time parameters.
(05)05H Only for printer drivers: Use the parameter assignment software to
System data block with message texts not available configure the message text, and then carry out a
on the CP restart.
(05)06H Only for printer drivers: Use the parameter assignment software to
Message text not available configure the message texts, and then carry out a
restart.
(05)07H Only for printer drivers: Edit the message text to reduce it to a length of less
Message text too long than 150 characters (or no more than 250
characters if it contains variables)
(05)08H Only for printer drivers: You have configured more conversion statements
Too many conversion statements than variables. The conversion statements without
associated variables are ignored.
(05)09H Only for printer drivers: You have configured more variables than
Too many variables conversion statements. Variables for which there is
no conversion statement are not output.
(05)0AH Only for printer drivers: Check the conversion statement. Undefined or
Unknown conversion statement unsupported conversion statements are replaced in
the printout with ******.
(05)0BH Only for printer drivers: Check the control statement. Undefined or incorrect
Unknown control statement control statements are not executed. The control
statement is not output as text either.

Point-to-point connection CP 441 Installation and Parameter Assignment


8-12 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 5 (05H):


"Error while processing CPU request"
Event no. Event Text To correct or avoid errors
(05)0CH Only for printer drivers: Check the conversion statement. Conversion
Conversion statement not executable statements that cannot be executed are output in
the expression in accordance with the defined width
and the valid remainder of the conversion statement
or the standard representation with * characters.
(05)0DH Only for printer drivers: Correct the specified width of the variable in the
Width in conversion statement too small or too great conversion statement on the basis of the variable's
maximum number of characters in text-based
representation types (A, C, D, S, T, Y, Z). Only as
many characters as will fit in the specified width
appear in the printout; the text is truncated to this
width. In all other cases, * characters are output
corresponding to the width.
(05)0EH Only for ASCII drivers: Extend the end-of-text characters in the
An error occured while sending. The defined end-of- transmission buffer at the desired point or select a
text characters did not occur within the maximum shorter message frame length for automatic
allowed length or in the case of automatic appending.
appending, the maximum allowed transmission
length was exceeded.
(05)0FH Number of requests that can be processed Change your STEP 7 program so that fewer
simultaneously too great requests can run simultaneously.
(05)10H Area occupied (resource) Repeat the request.
(05)11H Length not permissible for this request type Divide up the data to be transmitted into several
requests.
(05)12H RK 512 only: Mismatch between SFB's source and Obtain the permissible values from the request
destination parameters. tables.
(05)13H Data type error (DB ...): Obtain the permissible data types and their
Unknown or impermissible data type (e.g. DE) combinations from the request tables.
RK 512 only: Mismatch between SFB's source and
destination data types.
(05)14H Specified start addresses too high for desired data Obtain from the request tables the permissible start
type, or start address or DB/DX number too low. addresses and DB/DX numbers that can be
specified in the program.
(05)15H RK 512 only: Wrong bit number specified for Permissible bit numbers: 0 to 7
coordination flag.
(05)16H RK 512 only: Specified CPU too high. Permissible CPU numbers: none, 1, 2, 3 or 4
(05)17H An error occured while receiving. The receive Reduce the length of your connection partner's
message frame is longer than 4 KB or is longer than message frame or increase the length of your
the defined "fixed receive length" or the receive receive DB.
message frame does not fit into the destination
frame.
(05)18H Transmission length at sending too great ( >4 KB) RK 512 only: Obtain the permissible lengths from
the request tables.
Split the request up into several shorter requests.
(05)19H CP in wrong mode for PLC request Check if the addressed interface is parametered.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-13
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 5 (05H):


"Error while processing CPU request"
Event no. Event Text To correct or avoid errors
(05)1AH RK 512 only: Error sending a command message See the remedy for the previous error number.
frame
An associated procedure number has just been
entered in STATUS.
(05)1BH Only for printer drivers: Correct the specified precision in the conversion
Precision invalid statement. The precision is initialized with a dot
prefix to identify and limit the width (example: ".2" to
output the decimal point and two decimals.)
Precision is only relevant to representation types A,
D, F and R. It is ignored otherwise.
(05)1CH Only for printer drivers: Correct the specified send variable.
Variable invalid
(Variable length incorrect/incorrect type)

Event Class 6 (06H):


"Error processing a partner request" only with RK512
Event no. Event Text To correct or avoid errors
(06)01H Error in 1st command byte (not 00 or FFH) Header layout error at partner. Check for
malfunction at partner device, possibly by using
interface test device switched into the transmission
line.
(06)02H Error in 3rd command byte (not A, 0 or FFH) Header layout error at partner. Check for
malfunction at partner device, possibly by using
interface test device switched into the transmission
line.
(06)03H Error in 3rd command byte in the case of Header layout error at partner. Check for
continuation message frames (command not as for malfunction at partner device, possibly by using
1st message frame) interface test device switched into the transmission
line.
(06)04H Error in 4th command byte (command letter Header layout error at partner or a command
incorrect) combination has been requested that is not
permitted at the CP. Check the permissible
commands. Check for malfunction at partner
device, possibly by using interface test device
switched into the transmission line.
(06)05H Error in 4th command byte in the case of Header layout error at partner. Check for
continuation message frames (command not as for malfunction at partner device, possibly by using
1st message frame) interface test device switched into the transmission
line.
(06)06H Error in 5th command byte (DB number not Obtain from the request tables the permissible DB
permissible) numbers, start addresses or lengths.
(06)07H Error in 5th or 6th command byte (start address too Obtain from the request tables the permissible DB
high) numbers, start addresses or lengths.
(06)08H Error in 7th or 8th command byte (impermissible Obtain from the request tables the permissible
length) DB/DX numbers, start addresses or lengths.

Point-to-point connection CP 441 Installation and Parameter Assignment


8-14 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 6 (06H):


"Error processing a partner request" only with RK512
Event no. Event Text To correct or avoid errors
(06)09H Error in 9th and 10th command byte (coordination Header layout error at partner. Find out from the
flag for this data type impermissible or bit number request tables when a coordination flag is
too high) permitted.
(06)0AH Error in 10th command byte (CPU number not Header layout error at partner.
permitted)
(06)0BH SEND message frame was longer/shorter than Correction required at the partner
expected (more/less data received than announced
in message frame header).
(06)0CH GET command message frame received with user Correction required at the partner
data
(06)0DH The CP received a message frame during an invalid
operating mode.
• Receive connection between CPU and CP not • Check whether the addressed connection has
set up or not yet correctly set up been assigned the correct parameters.
• CP startup is not fully completed.
• This error message can occur only during CP
• Parameters for the interface are currently being startup. Repeat the request.
assigned • This is a temporary error. Repeat the request.
(06)0EH Synchronous fault of partner This error may be reported after your own
• New (continuation) command message frame programming device is restarted in the case of long
received before response message frame sent. message frames or when the partner is restarted.
• 1. 1st command message frame expected and These cases represent normal system start-up
continuation message frame came. behavior.
• Continuation command message frame The error can also occur during operation as a
expected and 1st message frame came consequence of error statuses only recognized by
the partner.
Otherwise, you have to assume an error on the part
of the partner device. The error may not occur in the
case of requests <128 bytes.
(06)0FH DB locked by coordination function In local program: After processing of the last
transmission data, enable the last receive block with
"EN".
In partner program: Repeat the request
(06)10H Message frame received too short (length <4 bytes Check for malfunction at partner device, possibly by
in the case of continuation or response message using interface test device switched into the
frames or <10 bytes in the case of command transmission line.
message frames)
(06)11H Message frame length and length specified in Check for malfunction at partner device, possibly by
message frame header are not the same. using interface test device switched into the
transmission line.
(06)12H Error sending the (continuation) response message See remedy for the error number entered
frame. An associated procedure error number has immediately beforehand in STATUS.
been entered in STATUS immediately beforehand.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-15
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 7 (07H):


"Send error"
Event no. Event Text To correct or avoid errors
(07)01H Sending the first repetition: A repetition is not an error, however, it can be an
• An error was detected during transmission of the indication that there are disturbances on the
message frame, or transmission line or a malfunction of the partner
• The partner requested a repetition by means of device. If the message frame still has not been
a negative acknowledgment code (NAK). transmitted after the maximum number of
repetitions, an error number describing the first
error that occurred is output.
(07)02H Error during connection setup: Check for malfunction at partner device, possibly by
• After STX was sent, NAK or another code using interface test device switched into the
(except DLE or STX) was received, or transmission line.
• The response came too early, or
• An initialization conflict occurred
(07)03H Acknowledgment delay time exceeded: The partner device is too slow or not ready to
After STX was sent, no response came from partner receive, or there is a break in the transmission line,
within acknowledgment delay time. for example. Check for malfunction at partner
device, possibly by using interface test device
switched into the transmission line.
(07)04H Termination by partner: Check if the partner is also showing an error,
One or more codes were received from the partner possibly because not all transmission data has
during sending arrived (e.g. due to a break in the send line) or due
to serious faults or because the partner device has
malfunctioned. If necessary, use an interface test
device switched into the transmission line to check.
(07)05H Negative acknowledgment during sending Check if the partner is also showing an error,
possibly because not all transmission data has
arrived (e.g. due to a break in the send line) or due
to serious faults or because the partner device has
malfunctioned. If necessary, use an interface test
device switched into the transmission line to check.
(07)06H Error at end of connection: Check if the partner is also showing an error,
• Partner rejected message frame at end of possibly because not all transmission data has
connection with NAK or a random string (except arrived (e.g. due to a break in the send line) or due
for DLE), or to serious faults or because the partner device has
• Acknowledgment code (DLE) received too early. malfunctioned. If necessary, use an interface test
device switched into the transmission line to check.
(07)07H Acknowledgment delay time exceeded at end of Partner device too slow or faulty. If necessary, use
connection or response monitoring time exceeded an interface test device switched into the
after send message frame: transmission line to check.
After connection release with DLE ETX, no
response received from partner within
acknowledgment delay time.
(07)08H ASCII Driver and printer driver only: The waiting The communication partner has a fault, is too slow
time for XON or CTS = ON has expired or is switched off-line. Check the communication
partner or, if necessary, change the parameters.
(07)09H Connection setup not possible. Number of permitted Check the interface cable or the transmission
setup attempts exceeded. parameters.
(07)0AH The data could not be transmitted. The permitted Check the interface cable or the transmission
number of transfer attempts was exceeded. parameters.

Point-to-point connection CP 441 Installation and Parameter Assignment


8-16 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 8 (08H):


"Receive error"
Event no. Event Text To correct or avoid errors
(08)01H Expecting the first repetition: A repetition is not an error, however, it can be an
An error was recognized on receiving a telegram indication that there are disturbances on the
and the CP requested repetition from the partner via transmission line or a malfunction of the partner
a negative acknowledgment (NAK). device. If the message frame still has not been
transmitted after the maximum number of
repetitions, an error number describing the first
error that occurred is output.
(08)02H Error during connection setup: Check for malfunction at partner device, possibly by
• In idle mode, one or more random codes (other using interface test device switched into the
than NAK or STX) were received, or transmission line.
• after an STX was received, partner sent more
codes without waiting for response DLE.
After POWER ON of the partner:
• While partner is being activated, CP receives an
undefined code.
(08)05H Logical error during receiving: Check if partner DLE in message frame header and
After DLE was received, a further random code in data string is always in duplicate or the
(other than DLE or ETX) was received. connection is released with DLE ETX. Check for
malfunction at partner device, possibly by using
interface test device switched into the transmission
line.
(08)06H Character delay time exceeded: Partner device too slow or faulty. Use an interface
• Two successive characters were not received test device switched into the transmission line to
within character delay time, or check.
• 1. 1st character after sending of DLE during
connection setup was not received within
character delay time.
(08)08H Block check character (BCC) error (only in the case Check if there is a serious problem with the
of RK 512 with the 3964R procedure and the 3964R connection. In this case, error codes of the event
procedure) class 8/event number 12 sometimes occur. Check
Internally calculated value of BCC does not match for malfunction at partner device, possibly by using
BCC received by partner at end of connection. interface test device switched into the transmission
line.
(08)0AH There is no free receive buffer available: The function block for receiving must be called
After receipt of STX, there was no empty receive more frequently in the user program.
buffer available to the procedure at connection
setup and after an additional waiting time
(08)0CH Transmission error: Faults on the transmission line cause message
Transmission error (parity error, stop bit error, frame repetitions, thus lowering user data
overflow error) detected. throughput. Danger of an undetected error
increases. Change your system setup or the line
If faulty character is received in idle mode, the error
routing.
is reported immediately so that disturbances on the
transmission line can be detected early. Check that the settings for baud rate, parity and
number of stop bits are the same on both devices.
Only in the case of RK 512 and 3964(R):
If this occurs during send or receive operation,
repetitions are initiated.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-17
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 8 (08H):


"Receive error"
Event no. Event Text To correct or avoid errors
(08)0DH BREAK Set up the connection between the devices or
The connection line (receive line) to the partner switch the partner device on. In the case of TTY,
device is interrupted Check if there is a current loop in the idle state.
(08)12H With ASCII driver only: Set the parameters for the communications partner
More characters were received after the CP had again or read data from CP more quickly.
sent XOFF or set CTS to OFF.
(08)15H Discrepancy between settings for transfer attempts Set the same number of transfer attempts at
at CP and communication partner. communications partner as at CP. Check for
malfunction at partner device, possibly by using
interface test device switched into the transmission
line.
(08)16H • The length of a received message frame was • A correction is neccesary at the partner or
longer than the length agrred upon or
• the length of the parametered receive buffer
(with CP 441 only) is too short. • the length of the receive buffer (with CP 441
only) must be enlargened
(08)18H With ASCII driver only: The partner has switched the DSR or CTS signal to
DSR = OFF or CTS = OFF "OFF" before or during a transmission.
Check the partner's control of the RS 232C
secondary signals.

Event Class 9 (09H):


"Response message frame received from interconnection partner with error or error message frame"
Event no. Event Text To correct or avoid errors
(09)02H RK 512 only: Memory access error at partner Check that the partner has the desired data area
(memory does not exist) and that it is big enough, or check the parameters of
When SIMATIC S5 is the partner: the called system function block.
• Incorrect area at status word, or Check the specified length at the system function
block.
• Data area does not exist (except DB/DX), or
• Data area too short (except DB/DX)
(09)03H RK 512 only: DB/DX access error at the partner Check that the partner has the desired data area
(DB/DX does not exist or is too short) and that it is big enough, or check the parameters of
When SIMATIC S5 is the partner: the called system function block.
• DB/DX does not exist, or Check the specified length at the system function
block.
• DB/DX too short, or
• DB/DX number impermissible
Permissible source area for GET request exceeded
(09)04H RK 512 only: Partner returns "Request type not Partner malfunction, because a system command is
permitted". never issued from the CP 441.

Point-to-point connection CP 441 Installation and Parameter Assignment


8-18 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event Class 9 (09H):


"Response message frame received from interconnection partner with error or error message frame"
Event no. Event Text To correct or avoid errors
(09)05H RK 512 only: Error at partner or at SIMATIC S5 as Check if the partner can transmit the desired data
partner: type.
• Source/destination type not permissible, or Check the structure of the hardware at the partner.
• Memory error in partner programmable Set the partner programmable controller to RUN.
controller, or
• Error notifying CP/CPU at the partner, or
• Partner programmable controller is in STOP
state
(09)08H RK 512 only: Partner detecting synchronization This error occurs at restart of your own
error: programmable controller or of the partner. This
Message frame sequence error. represents normal system start-up behavior. You do
not need to correct anything. The error is also
conceivable during operation as a consequence of
previous errors. Otherwise, you can assume an
error on the part of the partner device.
(09)09H RK 512 only: DB/DX disabled at partner by In partner program: After processing of the last
coordination flag transmission data, reset the coordination flag.
In own program: Repeat the request.
(09)0AH RK 512 only: Error detected by partner in message Check if the error is the result of disturbances or of
frame header: 3rd command byte in header is a malfunction at the partner. Use an interface test
incorrect device switched into the transmission line to check.
(09)0BH RK 512 only: Error in message frame header: 1. 1st Check if the error is the result of disturbances or of
or 4th command byte in header is incorrect a malfunction at the partner. Use an interface test
device switched into the transmission line to check.
(09)0CH RK 512 only: Partner detects incorrect message Check if the error is the result of disturbances or of
frame length (total length). a malfunction at the partner. Use an interface test
device switched into the transmission line to check.
(09)0DH RK 512 only: Partner has not yet restarted. Restart the partner programmable controller or set
the mode selector on the CP or CPU to RUN.
(09)0EH RK 512 only: Unknown error number received in Check if the error is the result of disturbances or of
response message frame. a malfunction at the partner. Use an interface test
device switched into the transmission line to check.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-19
Diagnostics Functions of the CP 441
8.3 Diagnostics via the Error Signaling Area SYSTAT

Event class 10 (0AH):


"Errors in response message frame of the partner detected by the CP"
Event no. Event Text To correct or avoid errors
(0A)01H RK 512 only: Synchronization error of partner, This error is reported after your own programming
because: device is restarted in the case of long message
• Response message frame without request frames or when the partner is restarted. This
represents normal system start-up behavior. You do
• Response message frame received before
continuation message frame sent not have to correct anything.
• Continuation response message frame received The error can also occur during operation as a
after an initial message frame was sent consequence of error statuses only recognized by
the partner.
• A first response message frame was received
after a continuation message frame was sent Otherwise, you can assume an error on the part of
the partner device. The error may not occur in the
case of requests <128 bytes.
(0A)02H RK 512 only: Error in the structure of the received Check for malfunction at partner device, possibly by
response message frame (1st byte not 00 or FF) using interface test device switched into the
transmission line.
(0A)03H RK 512 only: Received response message frame Check for malfunction at partner device, possibly by
has too many data or not enough data. using interface test device switched into the
transmission line.
(0A)04H RK 512 only: Response message frame for SEND Check for malfunction at partner device, possibly by
request arrived with data. using interface test device switched into the
transmission line.
(0A)05H RK 512 only: No response message frame from Is the partner a slow device? This error is also often
partner within monitoring time. displayed as a consequence of a previous error. For
example, procedure receive errors (event class 8)
can be displayed after a GET message frame was
sent. Reason: As a result of disturbances, the
response message frame could not be received,
and the monitoring time elapsed. This error can also
occur if a restart was carried out at the partner
before it could respond to the most recently
received GET message frame.
(0A)06H RK 512 only: Received response message frame Check for malfunction at partner device, possibly by
after GET request has not enough data. using interface test device switched into the
transmission line.

Point-to-point connection CP 441 Installation and Parameter Assignment


8-20 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.4 Error Numbers in the Response Message Frame

8.4 Error Numbers in the Response Message Frame

Response message frame


If you are working with the RK 512 computer connection and an error occurs at the
communication partner in a SEND/PUT or GET message frame, the communication partner
sends a response message frame with an error number in the 4th byte.

Error Numbers in the Response Message Frame


The table below shows how the error numbers in the response message frame (REATEL)
are assigned to the event classes/numbers in the STATUS output of the communication
partner. The error numbers in the response message frame are output as hexadecimal
values.

Table 8-10 Error messages in the response message frame with RK 512

REATEL SYSTAT Error Messages


Event Class/Event Number
0AH 0301H
0303H
0407H
0905H
0CH 0301H
0302H
0607H
0609H
060AH
0902H
10H 0601H
0604H
0605H
090BH
12H 0904H
14H 0301H
0302H
0606H
0903H
16H 0602H
0603H
090AH
2AH 060DH
090DH
32H 060FH
0909H

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-21
Diagnostics Functions of the CP 441
8.4 Error Numbers in the Response Message Frame

REATEL SYSTAT Error Messages


Event Class/Event Number
34H 0608H
060BH
060CH
0611H
090CH
36H 060EH
0908H

Point-to-point connection CP 441 Installation and Parameter Assignment


8-22 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.5 Diagnostics via the diagnostic buffer of the CP 441

8.5 Diagnostics via the diagnostic buffer of the CP 441

Diagnostic Buffer of the CP 441


The CP 441 (6ES7 441-_AA02-0AE0 and later) has its own diagnostic buffer in which all the
diagnostic events of the CP 441 are entered in the order in which they occur.
The following are displayed in the diagnostic buffer of the CP 441:
• The operating status of the CP 441
• Hardware/firmware errors on the CP 441
• Initialization and parameter errors
• Errors during execution of a CPU request
• Data transmission errors (send and receive errors)
The diagnostic buffer allows the causes of errors in point-to-point communication to be
evaluated subsequently in order, for example, to determine the causes of a STOP of the
CP 441 or to trace the occurrence of individual diagnostic events.

Note
The diagnostic buffer is a ring buffer for a maximum of 64 diagnostic entries. When the
diagnostic buffer is full, the oldest entry is deleted when a new entry is made in it. The most
recent entry always comes first. When the POWER OF the CP 441 is switched off, the
contents of the diagnostic buffer are lost.

Reading the Diagnostic Buffer at the Programming Device


The contents of the diagnostic buffer of the CP 441 can be read by means of the STEP 7
information functions.

Note
Diagnostic events in the diagnostic buffer of the CP 441 can be read using STEP 7 as of
Version 4.0.

All the user-relevant information in the CP diagnostic buffer is displayed to you on the
"Diagnostic Buffer" in the "Module Information" dialog. You can call the "Module Information"
dialog under STEP 7 from SIMATIC Manager.
Prerequisite: In order to obtain the status of the module, there must be an on-line
connection from the programming device to the programmable controller (on-line view in the
project window).

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-23
Diagnostics Functions of the CP 441
8.5 Diagnostics via the diagnostic buffer of the CP 441

Proceed as follows:
1. Open the relevant SIMATIC 400 station (by double-clicking it or by choosing the Edit >
Open menu command).
2. Open the "Hardware" object contained in it (again by double-clicking it or by choosing the
Edit > Open menu command).
Result: The window containing the configuration table appears.
3. Select the CP 441 in the configuration table.
4. Choose the PLC > Module Information menu command.
Result: The "Module Information" dialog appears for the CP 441. The "General" tab is
displayed by default the first time you call it.
5. Select the "Diagnostic Buffer" tab.
Result: The "Diagnostic Buffer" tab displays the most recent diagnostic events of the
CP 441. Any "result details" on the cause of the problem appears in the lower part of the
tab.
The event's numeric code is displayed in the "Event ID" field. The 16#F1C8 leader for
interface 1 and the 16#F9C8 leader for interface 2 are non-variables. The rest of the ID code
corresponds to event class and event number of the events. By clicking the "Help on Event"
button you can display the help text on the event text.
If you click the "Update" button, the current data is read from the CP 441. By clicking the
"Help on Event" button you can display a help text on the selected diagnostic event with
information on error correction.

See also
Diagnostics via the Error Signaling Area SYSTAT (Page 8-8)

Point-to-point connection CP 441 Installation and Parameter Assignment


8-24 Manual, 10/2005, A5E00405449-01
Diagnostics Functions of the CP 441
8.6 Diagnostic Interrupt

8.6 Diagnostic Interrupt

Introduction
The CP 441 can trigger a diagnostic interrupt on the assigned CPU, thus indicating a
malfunction of the CP 441. You can specify during parameter assignment (as of STEP 7
V5.0, SP2) whether the CP 441 is to trigger a diagnostic interrupt or not in the event of
serious errors.
"Diagnostic interrupt = NO" is the default.

Diagnostic Interrupt
In the event of a fault the CP 441 provides diagnostic information on the S7-400 backplane
bus. In response to a diagnostic interrupt, the CPU reads the system-specific diagnostic data
and enters it in its diagnostic buffer. You can read the contents of the diagnostic buffer on
the CPU using a programming device.
When a diagnostic interrupt event occurs, the INTF LED (red) lights up. In addition, the
OB 82 is called with this diagnostic data as start information.

Organization block OB 82
You have the option of programming error responses in the user program in the OB 82.
If no OB 82 is programmed, the CPU automatically enters STOP mode in the event of a
diagnostic interrupt.

Diagnostic Information (as Bit Pattern) Diagnostic information


The CP 441 provides 4 bytes of diagnostic information. To display the error that has
occurred, these 4 bytes are occupied as follows:
2nd byte:
The 2nd byte of diagnostic data contains the class ID of the CP 441 in bits 0 to 3.

2. bytes
7 6 5 4 3 2 1 0
0 0 0 1 1 1 0 0

1st, 3rd and 4th bytes:


The 1st, 3rd and 4th bytes of the diagnostic data represent the error which has occurred.
Bit 0 in the 1st byte is the group error display (INTF). Bit 0 is always set to "1" if at least one
bit from bits 1 to 7 is set to "1", i.e. if at least one error is entered in the diagnostic data.

Event 1. bytes 3. bytes 4. bytes


7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Wire break 0 0 1 0 1 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Incorrect parameter 1 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 8-25
Diagnostics Functions of the CP 441
8.6 Diagnostic Interrupt

Diagnostic Information (Hexadecimal)


The table below shows the 4th byte in diagnostic data of the CP 441 in hexadecimal
notation.

Event 1. bytes 2. bytes 3. bytes 4. bytes


Wire break 2DH 1CH 02H 00H
Incorrect parameter 8BH 1CH 00H 00H

Diagnostic Information, CP 441 with two Interfaces


DS 1 contains the information as to which interface of your CP 441-2 (6ES7 441-2AA03-
0AE0) had an error. You can read DS 1 by calling SFC 59 "RD_REC".
A bit is set in byte 8 for each interface on which an error occurs.

%\WH
       

(UURURQLQWHUIDFH ,)

(UURURQLQWHUIDFH ,)

The error is defined in byte 9 for interface 1 or byte 10 for interface 2.

%\WH ,QWHUIDFH
       

,QFRUUHFWSDUDPHWHUV

/LQHEUHDN

%\WH ,QWHUIDFH
       

Relationship of the diagnostic interrupt and the CPU operating mode


A diagnostic interrupt is generated via the I/O bus when fault events (rising edge) and back-
to-normal events (falling edge) occur.
When the CPU switches from STOP mode to RUN mode, the following happens:
• Events (both fault and back-to-normal) which occurred when the CPU was in STOP mode
are not stored,
• Events that are still present when the CPU is back to RUN mode are signaled via the
diagnostic interrupt.

Point-to-point connection CP 441 Installation and Parameter Assignment


8-26 Manual, 10/2005, A5E00405449-01
Programming Example for System Function Blocks 9
9.1 General Information

Introduction
The programming example in this chapter describes how to create a project and, by means
of a simple data transfer operation, the basic usage of the system function blocks for
operating the CP 441 communication processor.
The individual steps described for configuring and programming should make it easier for
you to create a project.
Because only the general procedure is presented here and the sequence of the individual
steps may vary over the course of time in the individual STEP 7 packages, you should also
consult the current documentation for these packages.
At the end of the chapter you will find an example of how to program the output of message
texts on a printer.

Objective
The programming example
• aims to show the most important functions,
• is clear and easy to understand,
• can easily be extended for your own purposes.
The example shows how a connection to a communication partner can be configured using
the system function blocks BSEND and BRCV (for sending and receiving data respectively).
The CP 441 modules are parameterized by the CPU at CPU start-up

Prerequisite
The example can be executed with the minimum hardware equipment.

The program example


The examples are on the CD which contains the CP 441: Configuration Package for Point to
Point Communication parameter assignment interface. They are in compiled form.
These programs are installed together with the parameter assignment interface.
Once installation has completed, the examples are in the STEP 7 "Examples" catalog under
CP 441.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 9-1
Programming Example for System Function Blocks
9.2 Device Configuration

9.2 Device Configuration

Application
To try out the program example, you could use the following devices:
• An S7-400 automation system (mounting rack, power supply, CPU 414 or CPU 417)
• A CP 441
• A programming device (e.g. PG 740)
Data transmission is from interface 1 to interface 2 of the CP 441. If you use a CP 441-1 you
can ignore the settings for interface 2; your communication partner receives the data.

Device Configuration

36 &38 &3 IUHH IUHH IUHH IUHH IUHH

'%

'%

Figure 9-1 Data flow: Device configuration with a CP 441-2

Point-to-point connection CP 441 Installation and Parameter Assignment


9-2 Manual, 10/2005, A5E00405449-01
Programming Example for System Function Blocks
9.3 Configuring the Controller Setup

9.3 Configuring the Controller Setup

Configuration
An S7-400 station is configured using "HW Config" in STEP 7. Place the modules in the
configuration table in accordance with your hardware configuration.
In the configuration table you must configure the controller setup as follows:
• Slots 1 and 2: Power supply (e.g. PS 10A) the number of occupied slots depends on the
type of power supply used.
• Slot 4: CPU
• Slot 10: CP 441

9.4 Parameterizing the CP 441

Parameter assignment
Once you have arranged the modules in your mounting rack, you can double-click the CP
441 (in the configuration table) to display the "Properties" dialog:
1. Under "Basic Parameters", specify in the "Interface" entry field (1 or 2) the type of the
interface submodule installed here.
2. Choose the "Parameters" button in the "Properties" dialog.
Result: The CP 441: Configuration Package for Point to Point Communication parameter
assignment interface for assigning CP 441 protocol parameters is opened.
3. Select the desired transmission protocol ("RK 512", "3964(R)", "ASCII" or "Printer").
Result: The parameter assignment interface that is available in accordance with the
protocol is displayed. The gray buttons allow you to open additional parameter
assignment dialogs.
4. Accept the default settings, and return to the configuration table.
5. If necessary, carry out steps 1. to 4. in accordance with your configuration for the second
interface of the CP 441.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 9-3
Programming Example for System Function Blocks
9.5 Configuring the Connection to the Communication Partner

9.5 Configuring the Connection to the Communication Partner

Configuring a Connection
You configure a point-to-point connection between your CP 441 and the communication
partner using "NETPRO". Proceed as follows:
1. Enter the connection in the connection table.
2. Set the object properties of the connection.

Entering the connection for interface 1 in the connection table


Proceed as follows:
1. Return to the <Offline> (Project) project window, and double-click the CPU in the
SIMATIC 400 station.
Result: The "Connections" object (connection table) appears on the right.
1. Double-click this icon. The "Configuring Connections" dialog appears. Choose Insert >
Connection to insert your connection in the connection table.
2. In the New Connection dialog, select Unspecified as the communication partner and
enter PTP Connection as the connection type. Then click OK to exit the dialog.
Set the object properties of the connection.
In the "Object Properties" dialog, set the specific properties of the connection for interface 1:
In the Object Properties dialog, change the name of the communication partner from
Unspecified to an appropriate name and select the PTP- CP Rack/Slot and IF_1 interface.
No other settings are necessary.
5. Click OK to return to the Configure Network dialog.
Result: The Configure Network dialog displays the connection that you have added and the
Local ID (Hexadecimal). You have to specify this ID as the parameter ID at the BSEND
system function block in the user program of your CPU.

Entering the connection for interface 2 in the connection table


Proceed as follows:
1. After returning to the Configuring Network dialog, insert the connection in the connection
table by choosing Insert > Connection.
2. In the New Connection dialog, select Unspecified as the communication partner and
enter S7 PTP Connection as the connection type. Then click OK to exit the dialog.
Set the object properties of the connection.
In the Object Properties dialog, set the specific properties of the connection for interface 2:
In the Object Properties dialog, change the name of the communication partner from
Unspecified to an appropriate name and select the PTP- CP Rack/Slot and IF_2 interface.
No other settings are necessary.
3. Click OK to return to the Configure Network dialog.
Result: The Configure Network dialog displays the connection that you have added and the
Local ID (Hexadecimal). You have to specify this ID as the parameter ID at the BRCV
system function block in the user program of your CPU.

Point-to-point connection CP 441 Installation and Parameter Assignment


9-4 Manual, 10/2005, A5E00405449-01
Programming Example for System Function Blocks
9.6 Programming an RK 512 User Program

9.6 Programming an RK 512 User Program

9.6.1 Program CP441 RK 512 Send/Recv

General
In OB 1, the blocks FC21 and FC 23 are called cyclically, FC21 for sending data
(SFB BSEND) and FC 23 for receiving data (SFB BRCV).
In the example, the system function blocks BSEND and BRCV work with the data blocks
DB 12 and DB 13 as instance DBs, and with DB 42 and DB 43 as send and receive DBs
respectively.
In the example the system function blocks are parameterized partly via constants and partly
via symbolically addressed actual operands.
Connection_ID 1000 (hexadecimal) is entered for the BSEND and the associated STATUS.
Connection_ID 1001 (hexadecimal) is entered for the BRCV and the associated STATUS. If
you are using a CP 441-1, you must enter connection ID 1000 (hexadecimal) for the BRCV
and the associated STATUS. You can then receive data from your communication partner
via interface 1.
For the data transmission the block pair BSEND and BRCV are used. The same R_ID is
used for both blocks.
The values for R_ID are accepted once during startup and cannot subsequently be changed.
This ensures that the SFBs BSEND and STATUS are run through once at the beginning with
REQ = "0" (so the edge rises from "0" to "1" at the REQ input), the REQ parameter in
OB 100 is set to "0" once after a complete restart.

Description of FC 21 (SEND)
The "Generate edge P_SEND_REQ" program section:
BSEND is run through once at the start with P_BSEND_REQ =0. BSEND_REQ is then set to
1. The BSEND request is started when a signal state change from 0 to 1 is detected at the
BSEND_REQ control parameter.
When BSEND_DONE = 1 or BSEND_ERROR = 1, BSEND_REQ is reset to "0".
The "BSEND_DONE = 1" program section
If the transfer is successful, BSEND_DONE at the parameter output of the BSEND is set to
"1".
To distinguish between consecutive transfers, "BSEND_COUNTER_OK" send counter is
included in data word 0 of the source block DB 42.
The "BSEND_ERROR = 1" program section
If BSEND runs through with BSEND_ERROR=1, the BSEND_COUNTER_ERR error counter
in data word 2 increments. The BSEND_STATUS is copied, because it will be overwritten
with 0 in the next run and could not subsequently be read.
In addition, in the event of an error, the STATUS system function block is activated so that
detailed fault messages (LOCAL parameter) can be read.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 9-5
Programming Example for System Function Blocks
9.6 Programming an RK 512 User Program

Description of FC 23 (RECEIVE)
The "Enable Receive Data" program section:
For data to be received, the receive enable (control parameter BRCV_EN_R for the BRCV
block) must have the signal "1".
The "BRCV_NDR=1" program section:
When BRCV_NDR is set, new data has been received and the BRCV_COUNTER_OK
receive counter increments.
The "BRCV_ERROR = 1" program section:
If the startup is unsuccessful, i.e. if the ERROR bit is set at the parameter output of BRCV,
the BRCV_COUNTER_ERR error counter increments. The BSEND_STATUS is copied,
because it will be overwritten with 0 in the next run and could not subsequently be read.
In addition, in the event of an error, the STATUS system function block is activated so that
detailed fault messages (LOCAL parameter) can be read.
All relevant values can be observed for test purposes in the variable table.
Special Features of the CP 441-1:
If you want to receive data from your communication partner, the partner must specify DX 33
(21 hexadecimal) as the destination address. In this way BRCV is referenced with R_ID 21
(hexadecimal) in FC 23.

See also
Diagnostics via the Error Signaling Area SYSTAT (Page 8-8)

Point-to-point connection CP 441 Installation and Parameter Assignment


9-6 Manual, 10/2005, A5E00405449-01
Programming Example for System Function Blocks
9.6 Programming an RK 512 User Program

9.6.2 Blocks Used in the Sample Program

Blocks Used
The table below shows the blocks used for the sample program.
Prerequisite: All symbolic designations have already been declared in the symbol table.

Table 9-1 Blocks Used in the Sample Program

Block Symbol Description


OB 1 CYCLE Cyclic program processing
OB 100 RESTART Start-up OB for restart
FC 21 SEND FC with call and analysis of BSEND SFB
FC 23 RECEIVE FC with call and analysis of BRCV SFB
DB 12 SEND IDB Instance DB for BSEND SFB
DB 13 RCV IDB Instance DB for BRCV SFB
DB 22 STATUS IDB BSEND Instance DB for STATUS SFB
DB 23 STATUS IDB RECEIVE Instance DB for STATUS SFB
DB 42 SEND SRC DB Send data block (source)
DB 43 RCV DST DB Receive data block (destination)
DB 40 SEND WORK DB Work DB for BSEND
DB 41 RCV WORK DB Work DB for BRCV
DB 45 STATUS WORK DB BSEND Work DB for STATUS
DB 46 STATUS WORK DB BRCV Work DB for STATUS

See also
Data Transmission with 3964(R) Using BSEND and BRCV (Page 6-9)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 9-7
Programming Example for System Function Blocks
9.7 Programming an ASCII/3964(R) User Program

9.7 Programming an ASCII/3964(R) User Program

Data Transmission with the ASCII-/3964(R) Procedure


If you intend to transfer data using the ASCII/3964(R) protocol (program example CP441
ASCII Send/Recv), you need only make the following changes:
• When parameterizing, you must use the parameter dialogs for the ASCII/3964(R)
protocol.
• For data transmission, the block pair BSEND and BRCV is also used in the user program.
Any R_ID can be used for BSEND, but only R_ID "0" can be used for BRCV.

9.8 Programming a Printer User Program

Introduction
The following sections describe an example of how to send data to a printer. The example
program indicates the procedure for the editing data and assigning parameters for the
PRINT SFB.

Prerequisite
You have already configured the messages using the CP 441: Configuration Package for
Point to Point Communication parameter assignment inteface (Hardware > Properties of
CP 441 > Parameter > Messages). The messages have been transferred together with the
other parameter data on the CP 441.
Message text examples:
1:\B%C\-B F220340 Share of component no.\B%I\-B reached\B%10.2RKg\-B
2:\B%S\-B H244312 Bypass fitting closed
3:\B%S\-B h620125 Failure of station input hydraulic mechanism
4:\B%S\-B P215055 Tank gauge pressure %12.4R bar

The result on the printer for message text No. 1, for example, is:
"W F220340 proportion component No. 6 attained 1.45E+02 Kg"

Point-to-point connection CP 441 Installation and Parameter Assignment


9-8 Manual, 10/2005, A5E00405449-01
Programming Example for System Function Blocks
9.8 Programming a Printer User Program

9.8.1 Cyclic Program

General
The organization block OB 1 contains the cyclic program.
In the example the PRINT system function block works with the DB 16 data blocks, and the
STATUS system function block works with the DB 22 data block as the instance DB
(clipboard).
The same connection ID is to be entered at the appropriate input parameters for the PRINT
SFB and the associated STATUS SFB in the program, since the STATUS SFB works on a
connection-related basis.
The PRINT request is supplied with data from DB 146, DB 160 and DB 165.
In FB 50, the PRINT SFB and the STATUS SFB are initialized by means of a one-off call
with the signal "0" at the REQ input parameter.

Description of the "Printer Output" Program


The print request is sent to the printer when a signal state change from "0" to "1" is detected
at the REQ control parameter.
In the event of successful completion of the request, the DONE output parameter is set to
the signal "1" at the PRINT SFB. In the event of an error, the ERROR output parameter is
set to the signal "1" instead. In the program, the REQ control input is reset to "0" if one of
these signals is positive.
In the next cycle, the DONE parameter is set to "0". The REQ input thus becomes "1" and
the requested signal state change from "0" to "1" results in data transfer to the printer.
In addition, in the event of an error, the STATUS system function block (SFB 22) is called
with DB 22 as the instance DB in order to obtain detailed information on the cause of the
error. The ERROR output parameter of the PRINT SFB serves as the trigger for the
STATUS SFB.
In the event of a signal state change from "0" to "1", the REQ input of the STATUS SFB is
activated. The 16 bytes addressed at the LOCAL parameter receive the current error status
of the connection until the next STATUS SFB call.
The status of the memory words or data words is monitored in the variable table. Other test
options are available to you if you insert load commands in the program (of any variables)
and then monitor them by means of the "Block Status" function in online operation.
You can select other options with the variable table by means of CONTROL VARIABLES.
The ENABLE_JOB_1, ENABLE_JOB_2 and ENABLE_JOB_3 variables offer you a choice of
three different jobs.
The first job returns a printout of a message text. The second and third jobs return a simple
printout of a single variable or more than one variable, respectively.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 9-9
Programming Example for System Function Blocks
9.9 Installation, Error Messages

9.8.2 Blocks Used in the Sample Program

Blocks Used
The table below shows the blocks used for the sample program.
Prerequisite: All symbolic designations have already been declared in the symbol table.

Table 9-2 Blocks Used in the Sample Program for Printers

Block Symbol Description


OB 1 CYCLE Cyclic program processing
OB 100 RESTART Start-up OB for restart
FB 50 PRINT A "PRINT A"
FB 51 PRINT B "PRINT B"
FB 52 PRINT C "PRINT C"
DB 16 PRINT IDB Instance DB for the PRINT SFB
DB 22 STATUS IDB Instance DB for STATUS SFB
DB 146 DB_with_Convers_ Statem DB with conversion statement for representation type N
DB 160 Process_Values DB transfer of process values
DB 165 ME_WA_AL Message type

9.9 Installation, Error Messages

Installation
The hardware for the example is completely set up and the programming device is
connected.
Once the CPU has been reset (operating mode STOP), transfer the example corresponding
to your hardware configuration fully into the user memory. Then use the operating mode
switch to change from STOP to RUN_P (start-up characteristic CRST).

Malfunction
If an error occurs during start-up, the block calls to be processed cyclically will not be
executed and the error LED INTF or EXTF on the CPU will be set. Detailed information on
the cause of the error can be found in the diagnostic buffer.

Point-to-point connection CP 441 Installation and Parameter Assignment


9-10 Manual, 10/2005, A5E00405449-01
Technical Specifications A
A.1 Technical Specifications of the CP 441 and the Interface Submodules

General Technical Details


The following table contains the general technical details for the CP 441.
You can find further technical details about the SIMATIC S7-400 in S7-400 / M7-400
Programmable Controllers, Module Specifications reference manual and S7-400 / M7-400
Programmable Controllers, Hardware and Installation manual.

Table A-1 Technical Specifications of the CP 441

Technical Specifications
Power supply max. 0.6 A / 5 V
Power loss 3.5 W
Degree of protection IP20
Dimensions W x H x D 25 x 290 x 210 mm
Weight approx. 0.8 kg
Display elements LEDs for transmitting (TXD), receiving (RXD) and
interface fault (FAULT) Group alarm LEDs for internal
fault (INTF) and external fault (EXTF)
Supplied protocol drivers • ASCII driver
CP 441-1 • 3964(R) procedure
• Printer
Supplied protocol drivers • ASCII driver
CP 441-2 • 3964(R) procedure
• RK512 computer connection
• Printer
• Loadable drivers
Interrupts
• Diagnostic Interrupt parameterizable
Diagnostic functions
• Indicators for internal and external yes, 2 red LEDs
faults
Diagnostic information dump Yes

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 A-1
Technical Specifications
A.1 Technical Specifications of the CP 441 and the Interface Submodules

Technical Specifications of the Interface Submodules


The following table contains the technical specifications of the plug-in interface submodules
of the CP 441.

Table A-2 Technical Specifications of the Interface Submodules

Technical RS 232C 20mA TTY X27 (RS 422/485)


Specifications
Power supply max. 0.1 A at 5 V max. 0.1 A at 5 V max. 0.25 A at 5 V
max. 0.045 A at 24 V
Power loss 0.5 W 1.5 W 1.25 W
Degree of protection IP00 IP00 IP00
Isolation No Yes Yes
Dimensions approx. 95 x 70 x approx. 95 x 70 x approx. 95 x 70 x
WxHxD 20 mm 20 mm 20 mm
Weight 0.08 kg 0.08 kg 0.08 kg
Baud rate max. 115.2 Kbps max. 19.2 Kbps max. 115.2 Kbps
min. 300 bps min. 300 bps min. 300 bps
Cable length max. 10 m max. 1000 m at 9600 max. 1200 m at 19200
bps bps
Front connectors 9-pin sub-d male with 9-pin sub-d female with 15-pin sub-d female
screw interlock screw interlock with screw interlock

Point-to-point connection CP 441 Installation and Parameter Assignment


A-2 Manual, 10/2005, A5E00405449-01
Technical Specifications
A.2 Transmission times of the protocols

A.2 Transmission times of the protocols

Transmission Rates
The tables below indicate the transmission times required depending on the transmission
protocol selected.
Two S7-400s, each with a CPU 417 (6ES7/ 417-1XJ00-0AB0) and a CP 441-2, were used to
measure the time. A BSEND system function block was programmed in the user program of
the active CPU, and a BRCV system function block was programmed in the user program of
the passive CPU. The second interface of the CP 441-2 was not parametered. The time that
elapsed between the initiation and completion of the request was measured.
If you are using a CPU 412, 413 or 441, you should add around 20% to the times indicated
here.
You will find the runtimes of the communication blocks in the relevant CPU manual.

ASCII driver

Table A-3 Transmission Times for ASCII Drivers (in seconds)

Baud rate (bd) 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200
User data
1 byte 0.164 0.082 0.041 0.026 0.023 0.023 0.023 0.023 0.023 0.023 0.023
10 bytes 0.466 0.241 0.121 0.062 0.039 0.030 0.023 0.023 0.023 0.023 0.023
20 bytes 0.842 0.421 0.211 0.120 0.061 0.040 0.031 0.023 0.023 0.023 0.023
50 bytes 1.940 0.977 0.497 0.271 0.151 0.091 0.045 0.033 0.030 0.026 0.023
100 bytes 3.776 1.895 0.948 0.497 0.271 0.151 0.091 0.046 0.038 0.034 0.030
200 bytes 7.459 3.730 1.866 0.949 0.497 0.271 0.151 0.090 0.060 0.047 0.038
500 bytes 18.484 9.249 4.656 2.357 1.216 0.641 0.356 0.207 0.138 0.132 0.091
1000 bytes 36.864 18.451 9.267 4.679 2.379 1.237 0.663 0.380 0.274 0.228 0.159
2000 bytes 73.629 36.880 18.514 9.324 4.725 2.428 1.280 0.711 0.511 0.458 0.319
4000 bytes 147.233 73.737 36.989 18.603 9.410 4.819 2.516 1.370 0.994 0.805 0.605

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 A-3
Technical Specifications
A.2 Transmission times of the protocols

3964(R) Procedure

Table A-4 Transmission Times for the 3964(R) Procedure (in Seconds)

Baud rate (bd) 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200
User data
1 byte 0.287 0.151 0.084 0.050 0.036 0.027 0.023 0.019 0.018 0.018 0.018
10 bytes 0.618 0.316 0.166 0.092 0.056 0.038 0.030 0.023 0.023 0.020 0.018
20 bytes 0.986 0.500 0.259 0.138 0.079 0.049 0.036 0.030 0.023 0.023 0.023
50 bytes 2.089 1.052 0.535 0.276 0.150 0.083 0.053 0.038 0.030 0.030 0.025
100 bytes 3.926 1.971 0.995 0.507 0.263 0.143 0.083 0.053 0.042 0.038 0.030
200 bytes 7.604 3.811 1.914 0.967 0.496 0.256 0.140 0.083 0.060 0.053 0.041
500 bytes 18.657 9.350 4.694 2.369 1.205 0.624 0.334 0.188 0.143 0.117 0.091
1000 bytes 37.059 18.563 9.314 4.689 2.377 1.222 0.644 0.354 0.258 0.210 0.165
2000 bytes 73.873 36.992 18.553 9.332 4.723 2.420 1.268 0.692 0.498 0.404 0.308
4000 bytes 147.497 73.852 37.028 18.617 9.410 4.813 2.508 1.355 0.972 0.780 0.590

RK 512 Computer Connection

Table A-5 Transmission Times for the RK 512 Computer Connection (in Seconds)

Baud rate (bd) 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200
User data
1 byte 1.060 0.532 0.287 0.165 0.106 0.075 0.060 0.053 0.050 0.049 0.048
10 bytes 1.354 0.679 0.361 0.203 0.128 0.084 0.065 0.055 0.052 0.051 0.050
20 bytes 1.722 0.863 0.453 0.249 0.150 0.096 0.071 0.058 0.054 0.053 0.051
50 bytes 2.826 1.415 0.729 0.387 0.218 0.131 0.088 0.068 0.061 0.058 0.056
100 bytes 4.663 2.337 1.190 0.619 0.334 0.190 0.119 0.084 0.073 0.069 0.064
200 bytes 9.079 4.556 2.305 1.179 0.618 0.340 0.198 0.129 0.107 0.098 0.090
500 bytes 21.653 10.892 5.514 2.816 1.470 0.810 0.469 0.307 0.249 0.228 0.185
1000 bytes 43.304 21.622 10.896 5.570 2.894 1.570 0.895 0.577 0.462 0.416 0.344
2000 bytes 85.912 43.099 21.795 11.087 5.742 3.105 1.755 1.125 0.890 0.802 0.673
4000 bytes 171.612 86.027 43.500 22.127 11.449 6.161 3.469 2.203 1.737 1.570 1.321

Point-to-point connection CP 441 Installation and Parameter Assignment


A-4 Manual, 10/2005, A5E00405449-01
Cables B
B.1 Interface Submodule RS 232C

Pin Assignment
The table below shows the pin assignment for the 9-pin subminiature D male connector in
the front panel of the RS 232C interface submodule.

Table B-1 Pin assignment for the 9-pin subminiature D male connector of the RS 232C interface submodule

Male Connector on Pin Designation Input/Output Meaning


Module*
1 DCD Received Detector Input Receiver signal level
2 RXD Received Data Input Received data
3 TXD Transmitted Data Output Transmitted data

1
4 DTR Output Communication terminals
6
2
Data Terminal Ready ready
7
8
3 5 GND Ground - Signal ground (GNDint)
4
9
5
6 DSR Data Set Ready Input Ready for operation
7 RTS Request To Send Output Activate transmitter
8 CTS Clear To Send Input Ready for sending
9 RI Ring Indicator Input Receiving call
* View from the front

Cables
If you make your own cables you must remember that unconnected inputs at the
communication partner may have to be connected to open-circuit potential.
Please note that you must only use shielded connector casings. A large surface area of both
sides of the cable shield must be in contact with the connector casing.

Caution
Never connect the cable shield with the GND, as this could destroy the submodules. GND
must always be connected on both sides (pin 5), otherwise the submodules could again be
destroyed.

The following pages contain examples of cables for a point-to-point connection between the
CP 441 and S7 modules or SIMATIC S5.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-1
Cables
B.1 Interface Submodule RS 232C

RS 232C Cables (S7/M7 (CP 441) - S7/M7 CP 441/CP 340)


The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 441/CP 340.
You require the following female connectors for the cables:
• At the CP 441 side: 9-pin subminiature D female with screw interlock
• At communication partner: 9-pin subminiature D female with screw interlock

&3 &RPPXQLFDWLRQSDUWQHU

5HFHLYHU 6HQGHU

5['7['

6HQGHU 5HFHLYHU

7['5['

576&76

&76576

'65'75

'75'65

*1'*1'

&DVLQJVKLHOG &DEOHW\SH &DVLQJVKLHOG


/,<&<[

Figure B-1 RS 232C cable CP 441 - CP 441/CP 340

The cable is available under the order number (6ES7 902-1...).

Point-to-point connection CP 441 Installation and Parameter Assignment


B-2 Manual, 10/2005, A5E00405449-01
Cables
B.1 Interface Submodule RS 232C

RS 232C Cables (S7/M7 (CP 441) - CP 544, CP 524, CPU 928B, CPU 945, CPU 948)
The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 544, CP 524, CPU 928B, CPU 945 or CPU 948.
You require the following female/male connectors for the cables:
• At the CP 441 side: 9-pin subminiature D female with screw interlock
• At communication partner: 25-pin subminiature D male with clip fixing

&3 &RPPXQLFDWLRQSDUWQHU

5HFHLYHU 6HQGHU

5['7['

6HQGHU 5HFHLYHU

7['5['

576&76

&76576

'65'75

'75'65

*1'*1'

&DEOHW\SH
&DVLQJVKLHOG &DVLQJVKLHOG
/,<&<[

Figure B-2 RS 232C cable CP 441 - CP 544, CP 524, CPU 928B, CPU 945, CPU 948

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-3
Cables
B.1 Interface Submodule RS 232C

RS 232C Cables (S7/M7 (CP 441) - CP 521 SI/CP 521 BASIC)


The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 521 SI/CP 521 BASIC.
You require the following female/male connectors for the cables:
• At the CP 441 side: 9-pin subminiature D female with screw interlock
• At communication partner: 25-pin subminiature D male with screw interelock

&3 &RPPXQLFDWLRQSDUWQHU

5HFHLYHU 5['7[' 6HQGHU

6HQGHU 7['5[' 5HFHLYHU

576&76

&76576

'65'75

'75'65

*1'*1'

&DEOHW\SH
&DVLQJVKLHOG /,<&<[ &DVLQJVKLHOG

Figure B-3 RS 232C cable CP 441 - CP 521SI/CP 521BASIC

Point-to-point connection CP 441 Installation and Parameter Assignment


B-4 Manual, 10/2005, A5E00405449-01
Cables
B.1 Interface Submodule RS 232C

RS 232C Cables (S7/M7 (CP 441) - CP 523)


The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 523.
You require the following female/male connectors for the cables:
• At the CP 441 side: 9-pin subminiature D female with screw interlock
• At communication partner: 25-pin subminiature D male with screw interlock

&3 &RPPXQLFDWLRQSDUWQHU

5HFHLYHU 5['7[' 6HQGHU

6HQGHU 7['5[' 5HFHLYHU

576&76

&76576

'65'75

'75'65

*1'*1'

&DEOHW\SH
&DVLQJVKLHOG &DVLQJVKLHOG
/,<&<[

Figure B-4 RS 232C cable CP 441 - CP 523

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-5
Cables
B.1 Interface Submodule RS 232C

RS 232C Cable (S7/M7 (CP 441) - IBM Proprinter (PT 88), DR 230)
The figure below illustrates the cable for a point-to-point connection between a CP 441 and
an IBM Proprinter with a serial interface (PT 88 or IBM-compatible printer).
You require the following female/male connectors for the cable:
• At the CP 441 side: 9-pin sub-D socket
• With IBM Proprinter: 25-pin sub-D male connector

&3 3ULQWHU

5HFHLYHU 6HQGHU
5['7['

6HQGHU 5HFHLYHU
7['5['

&765($'<  IRU'5

 IRU37
'65

'75

'&'

*1'*1'

&DEOHW\SH
&DVLQJVKLHOG /,<&<[ &DVLQJVKLHOG

Figure B-5 RS 232C cable CP 441 - IBM Proprinter

Point-to-point connection CP 441 Installation and Parameter Assignment


B-6 Manual, 10/2005, A5E00405449-01
Cables
B.1 Interface Submodule RS 232C

RS 232C Cable (S7/M7 (CP 441) - Laser Printer)


The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
laser printer with a serial interface (PT 10 or LaserJet Series II).
You require the following female/male connectors for the cable:
• At the CP 441 side: 9-pin subminiature female
• With IBM Proprinter: 25-pin sub-D male connector

&3 3ULQWHU

5HFHLYHU 6HQGHU
5['7['

6HQGHU 5HFHLYHU
7['5['

&76

'65'75

*1'*1'

&DVLQJVKLHOG &DEOHW\SH &DVLQJVKLHOG


/,<&<[

Figure B-6 RS 232C cable CP 441 - laser printer

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-7
Cables
B.2 20mA TTY interface submodule

B.2 20mA TTY interface submodule

Pin Assignment
The table belows shows the pin allocation for the 9-pin sub D female connector in the front
panel of the 20mA TTY interface submodule.

Table B-2 Pin Allocation for the 9-Pole Sub D Female Connector on the 20mA TTY Interface Submodule

Female Connector on Pin Designation Input/Output Meaning


Module*
1 TxD - Output Transmitted data
2 20mA - Input 24 V ground
3 20mA + (I1) Output 20mA current generator 1
4 20mA + (I2) Output 20mA current generator 2
5 5 RxD + Input Received data +
9
6 -
4
8
3
7
2 7 -
6
1 8 RxD - Output Received data -
9 TxD + Input Transmitted data +

* View from the front

Point-to-point connection CP 441 Installation and Parameter Assignment


B-8 Manual, 10/2005, A5E00405449-01
Cables
B.2 20mA TTY interface submodule

Block Diagram
The figure below shows the block diagram for a 20 mA TTY interface IF963-TTY.

7['

YRP
8$57
7['

5['

]XP
8$57
5['

P$ ,

9

P$ ,

P$ 09

Figure B-7 Block Diagram for the 20mA TTY Interface

Cables
If you make your own cables you must remember that unconnected inputs at the
communication partner may have to be connected to open-circuit potential.
Please note that you must only use shielded connector casings. A large surface area of both
sides of the cable shield must be in contact with the connector casing.

Caution
Never connect the cable shield with the GND, as this could destroy the submodules.

The following pages contain examples of cables for a point-to-point connection between the
CP 441 and S7 modules or SIMATIC S5.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-9
Cables
B.2 20mA TTY interface submodule

20mA TTY Connecting Cable (S7/M7 (CP 441) - S7/M7 (CP 441/CP 340)
The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 441/CP 340.
For the cables you require the following male connectors:
• At the CP 441 side: 9-pin sub-d male with screw interlock
• At communication partner: 9-pin subminiature D male with screw fixing

&3 &RPPXQLFDWLRQSDUWQHU

5['7['

5HFHLYHU 6HQGHU
5['7['

P$P$
9

P$P$
9

7['5['

6HQGHU 5HFHLYHU
7['5['

&DEOHW\SH
&DVLQJVKLHOG /,<&<[ &DVLQJVKLHOG

Figure B-8 20mA TTY Connecting Cable CP 441 - CP 441/CP 340

The cable is available under the order number (6ES7 902-2...).

Note
This cable type (LIYCY 4 x 0.14) can be used in the following lengths for the CP 441 as
communication partner:
• max. 1000 m at 9600 bps
• Max. 500 m at 19.2 Kbps

Point-to-point connection CP 441 Installation and Parameter Assignment


B-10 Manual, 10/2005, A5E00405449-01
Cables
B.2 20mA TTY interface submodule

20mA TTY Connecting Cable (S7/M7 (CP 441) - CP 544, CP 524, CPU 928B, CPU 945, CPU 948)
The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 544, CP 524, CPU 928B, CPU 945 or CPU 948.
For the cables you require the following male connectors:
• At the CP 441 side: 9-pin sub-d male with screw interlock
• At communication partner: 25-pin subminiature D male with clip fixing

&3 &RPPXQLFDWLRQSDUWQHU

5['7['

5HFHLYHU 6HQGHU
5['7['

P$P$
9

P$P$
9

7['5['

6HQGHU 5HFHLYHU
7['5['

&DEOHW\SH
&DVLQJVKLHOG /,<&<[ &DVLQJVKLHOG

Figure B-9 20mA TTY Connecting Cable CP 441 - CP 544, CP 524, CPU 928B, CPU 945,
CPU 948

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-11
Cables
B.2 20mA TTY interface submodule

20mA TTY Connecting Cable (S7/M7 (CP 441) - CP 523)


The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 523.
For the cables you require the following male connectors:
• At the CP 441 side: 9-pin sub D male with screw interlock
• At communication partner: 25-pin sub D male with screw fixing

&3 &RPPXQLFDWLRQSDUWQHU

P$7['
9
6HQGHU
5['7['

5HFHLYHU
5['

P$

P$
9

7['

6HQGHU
7['5['

5HFHLYHU
P$5['

6KLHOGFRQWDFW

&DEOHW\SH
&DVLQJVKLHOG /,<&<[ &DVLQJVKLHOG

Figure B-10 20mA TTY Connecting Cable CP 441 - CP 523

Point-to-point connection CP 441 Installation and Parameter Assignment


B-12 Manual, 10/2005, A5E00405449-01
Cables
B.2 20mA TTY interface submodule

20mA TTY Connecting Cable (S7/M7 (CP 441) - CP 521 SI/CP 521 BASIC/ IBM-compatible printer)
The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 521 SI/CP 521 BASIC.
For the cables you require the following male connectors:
• At the CP 441 side: 9-pin sub D male with screw interlock
• At communication partner: 25-pin subminiature D male with screw interlock

&3 &RPPXQLFDWLRQSDUWQHU

P$7['
9
6HQGHU
5['7['

5HFHLYHU
5['

P$

P$
9

7['

6HQGHU
7['5['

5HFHLYHU
P$5['

6KLHOG
&DEOHW\SH
&DVLQJVKLHOG /,<&<[ &DVLQJVKLHOG

Figure B-11 20mA TTY Connecting Cable CP 441 - CP 521SI/CP 521BASIC

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-13
Cables
B.2 20mA TTY interface submodule

20mA TTY Connecting Cable (S7/M7 (CP 441) - CPU 944/AG 95)
The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CPU 944/AG 95.
For the cables you require the following male connectors:
• At the CP 441 side: 9-pin sub D male with screw interlock
• At communication partner: 15-pin sub D male with clip fixing

&3 &RPPXQLFDWLRQSDUWQHU

P$7['
9
6HQGHU
5['7['

5HFHLYHU
5['

P$

P$
9

7['

6HQGHU
7['5['

5HFHLYHU
P$5['

6KLHOGFRQWDFW

&DEOHW\SH
&DVLQJVKLHOG /,<&<[ &DVLQJVKLHOG

Figure B-12 20mA TTY Connecting Cable CP 441 - CPU 944/AG 95

Point-to-point connection CP 441 Installation and Parameter Assignment


B-14 Manual, 10/2005, A5E00405449-01
Cables
B.3 Interface Submodule X27 (RS 422/485)

B.3 Interface Submodule X27 (RS 422/485)

Pin Assignment
The table below shows the pin assignment for the 15-pin subminiature D female connector in
the front panel of the X27 interface submodule.

Table B-3 Pin assignment for the 15-pin subminiature D female connector of the X27 interface submodule

Female Connector on Pin Designation Input/Output Meaning


Module*
1 - - -
2 T (A)- Output Transmitted data (four-wire operation)
3 - - -
4 R (A)/T (A)- Input Received data (four-wire operation)

 
Input/Output Received/transmitted data (two-wire operation)
  5 - - -
 
6 - - -
 
  7 - - -
  8 GND - Functional ground (isolated)
 
9 T (B)+ Output Transmitted data (four-wire operation)
10 - - -
11 R (B)/T (B)+ Input Received data (four-wire operation)
Input/Output Received/transmitted data (two-wire operation)
12 - - -
13 - - -
14 - - -
15 - - -
* View from the front

Cables
If you make your own cables you must remember that unconnected inputs at the
communication partner may have to be connected to open-circuit potential.
Please note that you should only use shielded connector casings. A large surface area of
both sides of the cable shield must be in contact with the connector casing.

Caution
Never connect the cable shield with the GND, as this could destroy the submodules. GND
must always be connected on both sides (pin 8), otherwise the submodules could again be
destroyed.

The following pages contain examples of cables for a point-to-point connection between the
CP 441 and S7 modules or SIMATIC S5.

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-15
Cables
B.3 Interface Submodule X27 (RS 422/485)

X 27 cable (S7/M7 (CP 441) - CP 441/CP 340)


The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 441/CP 340 for RS 422 operation.
For the cables you require the following male connectors:
• At the CP 441 side: pin sub D male with screw fixing
• At communication partner: pin sub D male with screw fixing

&3 &RPPXQLFDWLRQSDUWQHU

7 $ 5 $ 


7 % 5 % 

6HQGHU 5HFHLYHU
5 $ 7 $ 


5 % 7 % 

5HFHLYHU 6HQGHU
*1'*1'

6KLHOG

&DEOHW\SH
&DVLQJVKLHOG /,<&<[[ &DVLQJVKLHOG
7 $ 7 % DQG5 $ 5 %
WZLVWHGSDLUV

 ,QWKHFDVHRIFDEOHVORQJHUWKDQP\RXPXVWVROGHULQ
DWHUPLQDWLQJUHVLVWRURIവRQWKHUHFLSLHQWVLGH

Figure B-13 X27 cable CP 441 - CP 441/CP 340 for RS 422 operation (four-wire mode)

The cable is available under the order number (6ES7 902-3...).

Note
This cable type can be used in the following lengths for the CP 441 as communication
partner:
• max. 1200 m at 19 200 bps
• max. 500 m at 38 400 bps
• max. 250 m at 76 800 bps
• max. 200 m at 115 200 bps

Point-to-point connection CP 441 Installation and Parameter Assignment


B-16 Manual, 10/2005, A5E00405449-01
Cables
B.3 Interface Submodule X27 (RS 422/485)

X 27 cable (S7/M7 (CP 441) - CP 441/CP 340)


The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 441/CP 340 for RS 485 operation.
For the cables you require the following male connectors:
• At the CP 441 side: 15-pin subminiature D male with screw interlock
• At communication partner: 15-pin subminiature D male with screw interlock

&3 &RPPXQLFDWLRQSDUWQHU

7 $ 7 $ 

7 % 7 % 

6HQGHU 6HQGHU
5 $ 5 $ 
 
5 % 5 % 

5HFHLYHU 5HFHLYHU
*1'*1'

6KLHOG

&DEOHW\SH
&DVLQJVKLHOG /,<&<[[ &DVLQJVKLHOG
5 $ 5 %
WZLVWHG

 ,QWKHFDVHRIFDEOHVORQJHUWKHQP\RXPXVWVROGHULQD
WHUPLQDWLQJUHVLVWRURI൉RQWKHUHFLSLHQWVLGH

Figure B-14 X27 cable CP 441 - CP 340/CP 441 for RS 485 operation (two-wire mode)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 B-17
Cables
B.3 Interface Submodule X27 (RS 422/485)

X 27 Cable (S7/M7 (CP 441) - CP 544, CP 524, CPU 928B, CPU 945, CPU 948)
The figure below illustrates the cable for a point-to-point connection between a CP 441 and a
CP 544, CP 524, CPU 928B, CPU 945, CPU 948 for RS 422 operation.
For the cables you require the following male connectors:
• At the CP 441 side: 15-pin subminiature D male with screw interlock
• At communication partner: 15-pin subminiature D male with clip fixing

&3 &RPPXQLFDWLRQSDUWQHU

7 $ 5 $ 



7 % 5 % 

6HQGHU 5HFHLYHU
5 $ 7 $ 

5 % 7 % 

5HFHLYHU 6HQGHU
*1'*1'

6KLHOG
&DEOHW\SH
&DVLQJVKLHOG /,<&<[[ &DVLQJVKLHOG
7 $ 7 % DQG5 $ 5 %
WZLVWHGSDLUV

 ,QWKHFDVHRIFDEOHVORQJHUWKDQP\RXPXVWVROGHULQD
WHUPLQDWLQJUHVLVWRURIവRQWKHUHFLSLHQWVLGH

Figure B-15 X27 cable CP 441 - CP 544, CP 524, CPU 928B, CPU 945, CPU 948 for RS 422
operation (four-wire mode)

Point-to-point connection CP 441 Installation and Parameter Assignment


B-18 Manual, 10/2005, A5E00405449-01
SFB Parameters C
Error Messages
Each system function block has a STATUS parameter for error diagnostics. The STATUS
message numbers always have the same meaning, irrespective of which system function
block is used.

SFB Parameters
The following tables provides a brief description of the parameters of the system function
blocks.

Table C-1 SFB Parameters

BSEND system function block (SFB 12)


Parameters Type Type Meaning
REQ VAR_INPUT BOOL Activates a transfer at positive edge
R VAR_INPUT BOOL Activates resetting of BSEND to initial state with positive edge
ID VAR_INPUT WORD Unique communication connection to a communication partner
R_ID VAR_INPUT DWORD Unique block relationship in a communication connection
SD_1 VAR_IN_OUT ANY Data to be sent
LEN VAR_IN_OUT WORD Length of data block to be transmitted
DONE VAR_OUTPUT BOOL Signals successful completion of BSEND request with positive edge
ERROR VAR_OUTPUT BOOL Positive edge indicates error
STATUS VAR_OUTPUT WORD Contains detailed error message or warning

Table C-2 SFB Parameters

BRCV System Function Block (SFB 13)


Parameters Type Type Meaning
EN_R VAR_INPUT BOOL Positive edge signals that remote communication partner is ready to
receive
ID VAR_INPUT WORD Unique communication connection to a communication partner
R_ID VAR_INPUT DWORD Unique block relationship in a communication connection
RD_1 VAR_IN_OUT ANY Data to be received
LEN VAR_IN_OUT WORD Length of data block to be transmitted
NDR VAR_OUTPUT BOOL Positive edge indicates that new receive data is available to the user
program
ERROR VAR_OUTPUT BOOL Positive edge indicates error
STATUS VAR_OUTPUT WORD Contains detailed error message or warning

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 C-1
SFB Parameters
B.3 Interface Submodule X27 (RS 422/485)

GET System Function Block (SFB 14)


Parameters Type Type Meaning
REQ VAR_INPUT BOOL Activates a transfer at positive edge
ID VAR_INPUT WORD Unique communication connection to a communication partner
ADDR_1 VAR_IN_OUT ANY Pointer to the data areas in the partner CPU to be fetched
...
ADDR_4
RD_1 VAR_IN_OUT ANY Pointer to the data areas of the local CPU in which the fetched data is
... placed.
RD_4
NDR VAR_OUTPUT BOOL Positive edge indicates that new receive data is available to the user
program
ERROR VAR_OUTPUT BOOL Positive edge indicates error
STATUS VAR_OUTPUT WORD Contains detailed error message or warning

PUT System Function Block (SFB 15)


Parameters Type Type Meaning
REQ VAR_INPUT BOOL Activates a transfer at positive edge
ID VAR_INPUT WORD Unique communication connection to a communication partner
ADDR_1 VAR_IN_OUT ANY Pointer to the data areas in the partner CPU into which data will be
... written.
ADDR_4
SD_1 VAR_IN_OUT ANY Pointer to the data areas of the local CPU which contain the data to
... be sent.
SD_4
DONE VAR_OUTPUT BOOL Signals successful completion of PUT request with positive edge
ERROR VAR_OUTPUT BOOL Positive edge indicates error
STATUS VAR_OUTPUT WORD Contains detailed error message or warning

PRINT System Function Block (SFB 16)


Parameters Type Type Meaning
REQ VAR_INPUT BOOL Activates a transfer at positive edge
ID VAR_INPUT WORD Unique communication connection to a communication partner
PRN_NR VAR_IN_OUT BYTE Selects a specific printer when several are connected
FORMAT VAR_IN_OUT STRING Format string for the message text, including the conversion and
control statements for variables SD_1 to SD_4
SD_1 VAR_IN_OUT ANY Variables in the message text in order, for example, to display
... computed values of the user program or dates and times
SD_4
DONE VAR_OUTPUT BOOL Indicates at a rising edge the error-free completion of the PRINT
request
ERROR VAR_OUTPUT BOOL Positive edge indicates error
STATUS VAR_OUTPUT WORD Contains detailed error message or warning

Point-to-point connection CP 441 Installation and Parameter Assignment


C-2 Manual, 10/2005, A5E00405449-01
SFB Parameters
B.3 Interface Submodule X27 (RS 422/485)

STATUS System Function Block (SFB 22)


Parameters Type Type Meaning
REQ VAR_INPUT BOOL Activates a transfer at positive edge
ID VAR_INPUT WORD Unique communication connection to a communication partner
PHYS VAR_IN_OUT ANY Logical device status
NDR VAR_OUTPUT BOOL Positive edge indicates that new receive data is available to the user
program
ERROR VAR_OUTPUT BOOL Positive edge indicates error
STATUS VAR_OUTPUT WORD Contains detailed error message or warning

Further Information
For a detailed description of the system function blocks, see the reference manual System
Software for S7-300 and S7-400, System and Standard Functions.

See also
Diagnostics Messages of the System Function Blocks (Page 8-4)

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 C-3
Accessories and Order Numbers D
Order Numbers

Table D-1 The following is an overview of the accessories for the CP 441:

Product Order Number


CP 441-1 6ES7 441-1AA04-0AE0
CP 441-2 6ES7 441-2AA04-0AE0
Interface submodule:
• RS 232C module • 6ES7 963-1AA00-0AA0
• 20mA TTY module • 6ES7 963-2AA00-0AA0
• X27 (RS 422/485) module • 6ES7 963-3AA00-0AA0
Cable (CP 441 - CP 441/CP 340),
RS 232C:
• RS 232C, 5 m • 6ES7 902-1AB00-0AA0
• RS 232C, 10 m • 6ES7 902-1AC00-0AA0

20mA TTY:
• 20mA TTY, 5 m • 6ES7 902-2AB00-0AA0
• 20mA TTY, 10 m • 6ES7 902-2AC00-0AA0
• 20mA TTY, 50 m • 6ES7 902-2AG00-0AA0

X27 (RS 422):


• X27 (RS 422), 5 m • 6ES7 902-3AB00-0AA0
• X27 (RS 422), 10 m • 6ES7 902-3AC00-0AA0
• X27 (RS 422), 50 m • 6ES7 902-3AG00-0AA0

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 D-1
Accessories and Order Numbers
B.3 Interface Submodule X27 (RS 422/485)

Point-to-point connection CP 441 Installation and Parameter Assignment


D-2 Manual, 10/2005, A5E00405449-01
Literature on SIMATIC S7 E
Introduction
On the following pages, you will find a comprehensive overview of:
• Manuals that you require for configuring and programming the S7-400,
• Manuals which describe the components of a PROFIBUS DP network,
• Technical overviews which provide you with an overview of the SIMATIC S7 or STEP 7
and
• Technical overviews with which you can find out about the S7-400.

Manuals for Configuring and Commissioning


An extensive user documentation is available to assist you in configuring and programming
the S7–400. You can select and use this documentation as required. The table also provides
you with an overview of the documentation to STEP 7.

Table E-1 Manuals for Configuring and Programming the S7–400

Title Contents
Manual The programming manual offers basic information on the design of the
Programming with STEP 7 V5.1 operating system and a user program of an S7 CPU. For novice users of an
S7–300/400 it provides an overview of the programming principles on which
the design of user programs is based.
Manual The STEP 7 user manual explains the principles for using the STEP 7
Configuring Hardware and Communication automation software and its functions. Novice users of STEP 7 as well as
Connections STEP 7V5.1 experienced users of STEP 5 are provided with an overview of the
configuring, programming and start-up procedures for an S7-300/400. When
working with the software, an on-line help assists you if you require detailed
information on the software.
Reference Manual The manuals for the STL, LAD, FDB and SCL packages each comprise the
Statemant List (STL) for S7-300/400 user manual and the language description. For programming an S7–300/400
Programming you need only one of the languages, but, if required, you can switch between
the language to be used in a project. If it is the first time that you use one of
Reference Manual the languages, the manuals will help you in getting familiar with the
Ladder Logic (LAD) for S7-300/400 programming principles.
Programming When working with the software, you can use the on-line help, which
Reference Manual provides you with detailed information on editors and compilers.
Function Block Diagram (FBD) for S7-
300/400 Programming
Reference Manual
Structured Control Language (SCL) for S7-
300 and S7-400

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 E-1
Literature on SIMATIC S7
B.3 Interface Submodule X27 (RS 422/485)

Title Contents
Manual With the S7-GRAPH, S7-HiGraph, CFC languages, you can implement
S7-GRAPH1 for S7-300 and S7-400 sequential function charts, state diagrams or graphic interconnections of
Programming Sequential Control Systems blocks. Each of the manuals comprises a user manual and a language
description. If it is the first time that you use one of these languages, the
Manual manual will help you in getting familiar with the programming principles.
S7-HiGraph1 for S7-300 and S7-400 When working with the software, you can also use the on-line help (not for
Programming State Graphs HiGraph), which provides you with detailed information on editors and
Manual compilers.
Continuous Function Charts1 for S7 and
M7
Reference Manual The S7 CPU's offer systems and standard functions which are integrated in
System Software for S7-300 and S7-400 the operating system. You can use these functions when writing programs in
Systems and Standard Functions one of the languages, that is STL, LAD and SCL. The manual provides an
overview of the functions available with S7 and, for reference purposes,
detailed interface descriptions which you require in your user program.
1 Add-on packages for S7-300/400 system software

Manuals for PROFIBUS-DP


For the configuration and startup of a PROFIBUS-DP network, you will need the descriptions
of the other nodes and network components integrated in the network. For this purpose, you
can order the manuals listed in the following table.

Table E-2 Manuals for PROFIBUS-DP

Manual
ET 200M Distributed I/O Station
SINEC L2-DP Interface of the S5-95U Programmable Controller
ET 200B Distributed I/O Station
ET 200C Distributed I/O Station
ET 200U Distributed I/O Station
ET 200 Handheld Unit
SINEC L2/L2FO-Network Components

Point-to-point connection CP 441 Installation and Parameter Assignment


E-2 Manual, 10/2005, A5E00405449-01
Index
Data Transmission with 3964(R) Using BSEND
and a Receive Mailbox, 6-12
3 data transmission with 3964(R) using BSEND
and BRCV, 6-9
3964(R) procedure, 2-10
fetching data from a communication partner with
Block check character, 2-12
RK 512, 6-32
Control characters, 2-11
Sending data to an S5 communication partner or
handling erroneous data, 2-20
third-party device with RK 512, 6-23
initialization conflict, 2-21
sending data with RK 512, use of BSEND, 6-19
Priority, 2-11
sending data with RK 512, use of BSEND and
Procedure errors, 2-22
BRCV, 6-16
receiving data, 2-17
Connection Configuration, 5-5
Sending Data, 2-13
Simplified, 5-5
Continuation GET message frame, 2-31
Continuation message frame, 2-23
A Continuation SEND/PUT message frame, 2-23,
Acknowledgment delay time (ADT), 2-53 2-24, 2-27, 2-28, 8-21
ASCII driver, 2-35 Control and display elements, 1-5
Parameters, 2-58 Control characters, 2-11
Receive buffer, 2-44 in message texts, 2-49, 2-71, 2-82
receiving data, 2-38 Control statements
RS 232C Secondary Signals, 2-45 in message texts, 2-82
Sending data, 2-36 Conversion statements
ASCII drivers in message texts, 2-76
RS 232C, secondary signals, 2-49 Representation types, 2-77
CPU RUN, 7-2
CPU stop, 5-3
B CPU-STOP, 7-2
Base Connector for S7 Backplane Bus, 1-6
baud rate, 2-60
Total baud rate, 2-60
D
Baud rate, 2-54, 2-66 Data bits, 2-54, 2-60, 2-66
Block check character, 2-12 Data Flow Control, 2-61, 2-68
BUSY Signal, 2-68 data traffic, uni/bidirectional, 2-45
Diagnostic functions
Diagnostic buffer, 8-8
C Error-signaling area SYSTAT, 8-8
Diagnostic interrupt, 8-25
Character delay time, 2-4, 2-53, 2-59
Diagnostic messages, 8-4
Character frame, 2-3, 2-54, 2-60, 2-66
Diagnostics
Character set
Diagnostic buffer, 8-23
in message texts, 2-49, 2-71
Error Numbers in the Response Message
Cold restart of the CPU, 7-2
Frame, 8-21
Command message frame, 2-23
Diagnostics functions, 8-1
Communication, 6-3
Display elements, 8-3

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 Index-1
Index

Messages in the STATUS Output of the 20mA TTY, 1-8


SFBs, 8-4 Applications, 1-2
Display elements (LED), 1-5 RS 232C, B-1
Display elements (LEDs), 8-1 X27 (RS 422/485), B-15
drivers, loadable, 5-20 ISO 7-Layer Reference Model, 2-6

E L
End criterion, 2-39 LEDs, 1-6
End-of-text character, 2-40 Loadable drivers, 5-18
Expiration of the character delay time, 2-39
Fixed message frame length, 2-42
End-of-text character, 2-59 M
Error message area, SYSTAT, 8-1
Message frame header
Structure of the RK 512 command message
frame, 2-24
F Message frame length when received, 2-59
Fetching data Message texts, 2-49
RK 512, 2-29 Character conversion table, 2-49
Firmware updates Control characters, 2-49
Subsequent downloading, 5-20 Control characters table, 2-49
Format string, 2-72, 2-75 Control statements, 2-82
Full-duplex operation, 2-2 Conversion statements for variables, 2-76
Function blocks Format string, 2-72
Diagnostic messages, 8-4 Page layout, 2-49, 2-70
Functions variables, 2-75
FC 5 V24_STAT, 6-37 Message texts "outputting", 6-41
FC 6 V24_SET, 6-40 Mounting the CP 441, 4-2
Multiprocessor communication, 5-17

G
O
GET message frame, 2-23
Operating mode transitions, 7-2

H
P
Half-duplex operation, 2-2
Handshaking, 2-68 Page layout
in message texts, 2-49, 2-70
Page number, setting, 2-79
I Parameter Assignment, 5-3
Parameter assignment data
Indicator for end of receive message frame, 2-59
ASCII driver, 2-58
Initial state of receive line, 2-55, 2-63, 2-67
Printer Driver, 2-65
Initialization, 7-1
RK 512, 2-57
initialization conflict, 2-21
Parameter assignment interface, 1-4
Installation guidelines, 1-10
parameters, assigning, 5-18
Installing the interface submodules, 4-3
Parity, 2-54, 2-60, 2-66
Interface
Printer Driver
RS 232C, 1-7
BUSY Signal, 2-68
X27 (RS 422/485), 1-9
Data Flow Control, 2-68
Interface submodules, 1-3
Message Text Output, 2-49
20 mA TTY, B-8
Message texts, 2-49, 2-75

Point-to-point connection CP 441 Installation and Parameter Assignment


Index-2 Manual, 10/2005, A5E00405449-01
Index

Parameters, 2-65 S
Priority, 2-54
Scope of the manual, iii
Procedure, 2-5
SEND message frame, 2-23
Programming device (PG), 1-3
Sending Data
Programming device cable, 1-3
3964(R) procedure, 2-13
Protocol, 2-52
ASCII driver, 2-36, 2-49
integrated in module, 1-2, 1-4, 2-3
RK 512, 2-26
Protocol parameters, 2-53, 2-59
Setup attempts, 2-53
PUT message frame, 2-23
SFB Parameters, C-1
Slot for Interface Modules, 1-6
Slots, 4-1
R Standard cable, 1-3
Receive buffer, 2-44, 2-55, 2-62 Start bit, 2-54, 2-60, 2-66
receiving data Start-up behavior, 7-1
3964(R) procedure, 2-17 STATUS Output of the SFBs, 8-1
ASCII driver, 2-38 Steps, 3-1
Removing the CP 441, 4-2 Stop bits, 2-54, 2-60, 2-66
Removing the interface submodules, 4-3 System function block, 6-2
response message frame, 2-23 3964(R) procedure, 6-8
Response message frame Application, 6-3
error numbers, 8-1, 8-2, 8-21 for printer driver, 6-41
Structure and contents, 2-25 Parameters, C-1
Restart of the CPU, 7-2 with ASCII driver, 6-35
RK 512 computer connection, 2-23 system function blocks
Command message frame, 2-23, 2-24 3964(R) procedure, in the case of, 6-10
Fetching data, 2-29
Parameters, 2-57
Response message frame, 2-23 T
Sending Data, 2-26
Total baud rate, 2-60
RS 232C secondary signals
Transmission attempts, 2-53
Controlling, 6-39
Transmission integrity, 2-7
Reading, 6-36
for printer driver, 2-8
RS 232C Secondary Signals, 2-45
with 3964R, 2-8
Automatic use, 2-46
with ASCII driver, 2-8
RS 232C, secondary signals
with the RK 512, 2-9
controlling,, 6-36

U
Unidirectional/bidirectional data traffic, 2-1

Point-to-point connection CP 441 Installation and Parameter Assignment


Manual, 10/2005, A5E00405449-01 Index-3
Index

Point-to-point connection CP 441 Installation and Parameter Assignment


Index-4 Manual, 10/2005, A5E00405449-01

You might also like