1 2 3 4 5 6 7 8 9 10 11 12 A B C D CP 444 Communication Processor Installation and Parameter Assignment Simatic
1 2 3 4 5 6 7 8 9 10 11 12 A B C D CP 444 Communication Processor Installation and Parameter Assignment Simatic
1 2 3 4 5 6 7 8 9 10 11 12 A B C D CP 444 Communication Processor Installation and Parameter Assignment Simatic
1
Product Overview
Fundamentals of the MAP 3.0 2
Protocol Profile
SIMATIC
3
Setting up the CP 444
CP 444 4
Mounting and Wiring the CP 444
Communication Processor
Association Management
(Services)
5
Installation and Parameter
6
Assignment VMD Services
7
Variable Services
Manual
Configuring and Parameterizing 8
the CP 444
Programming the Function Blocks 9
for MMS Services
Start-Up and Operating
Characteristics of the CP 444
10
Danger
! indicates that death, severe personal injury or substantial property damage will result if proper precautions
are not taken.
Warning
! indicates that death, severe personal injury or substantial property damage can result if proper
precautions are not taken.
Caution
! indicates that minor personal injury can result if proper precautions are not taken.
Caution
indicates that property damage can result if proper precautions are not taken.
Notice
draws your attention to particularly important information on the product, handling the product, or to a
particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and
systems in accordance with established safety practices and standards.
Correct Usage
Note the following:
Warning
! This device and its components 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.
This product can only function correctly and safely if it is transported, stored, set up, and installed
correctly, and operated and maintained as recommended.
Trademarks
SIMATIC, SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG.
Third parties using for their own purposes any other names in this document which refer to trademarks
might infringe upon the rights of the trademark owners.
Purpose of the The information provided in this manual tells you how to connect the S7-400
Manual programmable controller to the SIMATIC Industrial Ethernet cellular and
area network.
Contents of the This manual describes the hardware and software of the CP 444
Manual communication processor and how it is integrated in an S7-400
programmable controller. It is divided into a main section and a reference
section (appendices).
The following subjects are covered:
The fundamentals of the MAP 3.0 protocol profile
Starting up the CP 444
Mounting and wiring the CP 444
Parameterizing the CP 444
Programming the communication
Troubleshooting
Attributes and technical specifications
This manual builds on the information in the installation manual
S7-400/M7-400 Programmable Controllers, Hardware and Installation. You
must read and comply with the information in the installation manual in
order to run the CP 444 communication processor in an S7-400
programmable controller.
Scope of the This manual is relevant to the following module and software:
Manual
This manual describes the CP 444 communication processor valid at the time
of its publication. We reserve the right to describe changes to the module’s
functionality in a product information sheet.
Target Group This manual is aimed at readers who want to plan, set up or put into
operation a connection between an S7-400 programmable controller and
SIMATIC Industrial Ethernet. We assume that you already have experience
with and know how to use SIMATIC Industrial Ethernet and the MAP 3.0
protocol profile.
To parameterize the CP 444 and program the functional blocks, you must
know how to use STEP 7.
Easy Access to To help you find the information you require quickly and easily, the manual
Information offers the following:
S A comprehensive table of contents followed by lists of all figures and
tables which appear in the manual.
S In the main body of the text, the information in the left-hand column of
each page summarizes the contents of each section.
S Finally, a comprehensive index allows quick access to information on
specific subjects.
Other Manuals Appendix D contains a list of other manuals and brochures on the subject of
Required S7-400 and programmable controllers.
Standards, The CP 444 fulfills the requirements and criteria of IEC 1131, Part 2, and the
Certificates and requirements for the CE marking. It has both CSA and UL certification.
Approvals
You will find information on the relevant certificates, approvals and
standards in Appendix A.2.
Recycling and The CP 444 is an environment-friendly product. Its features include the
Disposal following:
Housing plastic that has halogen-free flame protection and is highly
resistant to fire
Laser inscriptions (i.e. no labels)
Plastics identification in accordance with DIN 54840
Fewer materials used due to size reduction; fewer parts due to integration
in ASICs
The low-contaminant materials used mean that the CP 444 can be recycled.
To recycle and dispose your old equipment in a manner that is not damaging
to the environment, contact:
Siemens Aktiengesellschaft
Anlagenbau und Technische Dienstleistungen
ATD ERC Essen Recycling/Remarketing
Fronhauser Str. 69
D-45 127 Essen
Phone: +49 201/816 1540 (Hotline)
Fax: +49 201/816 1504
The people there will adapt their advice to suit your situation and provide a
comprehensive and flexible recycling and disposal system at a fixed price.
After disposal you will receive information giving you a breakdown of the
relevant material fractions and the associated documents as evidence of the
materials involved.
Additional Support Please contact your local Siemens representative if you have any queries
about the products described in this manual. A list of Siemens representatives
worldwide is contained, for example, in the ”Siemens Worldwide” Appendix
of the installation manual S7-400/M7-400 Programmable Controllers,
Hardware and Installation.
If you have any questions or suggestions concerning this manual, please fill
out the form at the back and return it to the specified address. Please feel free
to enter your personal assessment of the manual in the form provided.
We offer a range of courses to help get you started with the SIMATIC S7
programmable controller. Please contact your local training center or the
central training center in Nuremberg, D-90027 Germany,
Tel. +49 911 895 3154.
Functionality of The CP 444 communication processor offers you the following functionality:
the CP 444
An interface for connecting to SIMATIC Industrial Ethernet in accordance
with the IEEE 802.3 Ethernet standard
Communication via the interface for open interconnection by means of
MMS services for device monitoring purposes (VMD services) and
language-neutral data transfer (variable services)
Transmission rate via the interface: 10 Mbps in accordance with IEEE 802.3
Power supply and communication with the S7-400 programmable controller
via the S7-400 backplane bus
Module configuration with the STEP 7 base software of SIMATIC S7
Configuration of the communication link (associations, variables) with
the Configuration for CP 444 parameterization interface
Uses of the CP 444 The MAP 3.0 protocol profile, which is often used in production, is
implemented in the CP 444. MAP 3.0 allows ”open communication” between
programmable controllers of different types (e.g. from different vendors).
This makes it possible, for example, to integrate Siemens subnets in networks
with the Manufacturing Automation Protocol (MAP) architecture.
/1/ ISO/IEC 9506-4, Industrial automation systems - Manufacturing Message Specification - Part 4
/2/ MAP 3.0 1988; Manufacturing Automation Protocol, Version 3.0
Hardware The following table lists the hardware components required for a MAP
Components communication connection with the CP 444.
Software The following table lists the software components required for a MAP
Components communication connection with the CP 444.
Arrangement of Figure 1-1 shows the arrangement of the control and display elements on the
the Control and front panel of the CP 444 communication processor.
Display Elements
The elements labeled in gray in Figure 1-1 are not used for the Ethernet
connection of the CP 444.
CP 444
Mode selector
Interface module
Figure 1-1 Arrangement of the Control and Display Elements for the CP 444 processor
Mode Selector With the CP 444 mode selector you can create a hardware reset via MRES.
How to perfrom a CP 444 hardware reset is described in section 10.3. In
normal mode the mode selector must be in the RUN-P position.
LED Displays The following LED displays are on the front panel of the CP 444:
INTF (red) Indication of an internal fault
EXTF (red) Indication of an external fault
SD (green) (unused)
HD (green) The hard disk in the CP 444 is being accessed
MRDY (yellow) The CP 444 is currently providing an MMS service
MERR (yellow) The CP 444 is requesting an MMS service, or an
error has occurred during execution of an MMS
service
RUN (green) The CP 444 is running
STOP (yellow) Access to the CP 444 is blocked
The operating modes and errors indicated by these LEDs are described in
detail in Section 11.2.
Note
The 15-pin subminiature D female connector of the CP 444 does not provide
power ()15 V) for a transceiver.
Floppy Disk Drive You use the floppy disk drive (with a 3.5” floppy disk inserted) to record an
MMS trace log. This log data provides a step-by-step record of the
connection setup process, for example, and enables connection problems to
be localized. Error/fault analysis using the MMS trace is described in Chapter
11.4.
Module Slots, The module slot for a memory card, the module slot for an interface module
LPT1 Interface and the LPT1 interface are not required for when the CP 444 is used to
provide MAP communication access to a S7-400 and therefore remain
unused (labeled in gray in Figure 1-1). The module slot for an interface
module can be used for a VGA module.
Base Connector On the back of the CP 444 there is a base connector for connection to the
for the S7 S7-400 backplane bus. The S7-400 backplane bus supplies the CP 444 with
Backplane Bus the necessary voltage and is the serial data bus via which the CP 444
communicates with the modules of the programmable controller.
MAP 3.0 The CP 444 communication processor is an interface module that provides an
S7-400 programmable controller with access to the SIMATIC Industrial
Ethernet communication network by means of the MAP 3.0 protocol profile.
Introduction Standardized procedures and protocols are indispensable if the devices and
systems of different vendors are to be networked at a reasonable price in
manufacturing environments. The MAP 3.0 (Manufacturing Automation
Protocol) protocol profile has been developed for open industrial
communication.
MAP 3.0 The MAP 3.0 protocol profile is based on the ISO/OSI (International
Standard Organisation/Open System Interconnection) reference model of
open communication. MAP 3.0 describes the communication protocols of all
7 layers of the ISO/OSI reference model.
ISO/OSI Reference The seven layers of the ISO/OSI reference model are subdivided into
Model transport protocols (layers 1 to 4) and application protocols (layers 5 to 7).
MAP 3.0 Protocols Open communication between devices of different types is only possible
when the protocol profile implements all 7 layers of the ISO/OSI reference
model.
The MAP 3.0 protocol profile on the CP 444 therefore comprises the
functionality of all 7 layers. MAP 3.0 uses the Ethernet bus with the
CSMA/CD access method based on IEEE 802.3 on layers 1 and 2 and the
MMS communication standard on the application layer (layer 7).
Layer Protocol/Standard
7b MMS ISO 9506
7a Application protocol based on ISO 8650/2 ACSE
6 Presentation protocol based on ISO 8823 kernel and ASN.1 ISO 8824/25
5 Session protocol based on ISO 8327 kernel (full duplex)
4 Transport protocol based on ISO 8073 class 4
3 Internet protocol based on ISO 8473 and ES/IS ISO 9542
2 LLC protocol based on ISO 8802-2 (IEE 802.2)
1 Ethernet bus with CSMA/CD based on ISO 8802-3 (IEEE 802.3)
MMS Model MMS provides you with standardized mechanisms that allow programmable
controllers to be addressed by means of abstract models.
MMS provides objects (MMS objects) that represent the various automation
components required to model a programmable controller. These objects are,
in turn, defined by attributes. The objects are assigned specific services
(MMS services) by means of which they can be manipulated.
The standardization of services, objects, attributes, parameters and statuses
ensures open communication.
MMS services allow MMS MMS objects are abstract Real device
objects to be manipulated models of real devices
Figure 2-1 MMS Model of a Communication Example: Production Control Computer ´ SIMATIC S7-400
An Example A measured value is, for example, an MMS object that belongs to the
variable class. This MMS object can be addressed by means of the MMS
“Read” and ”Write” variable services. These MMS services ensure that the
MMS object is transmitted in a coherent form, regardless of the type of
representation and interpretation of the end device.
Client/Server The MMS services always assume two communication partners that
Relationship communicate with each other. The communication involves one partner
making available MMS objects that the other communication partner
accesses by means of MMS services. The communication partner that
provides the MMS objects is the server (object manager). The
communication partner that accesses the MMS objects is the client (object
user).
The client requests an MMS service from the server to access MMS objects.
The server provides the requested MMS service and gives the result to the
client.
However, the server can in certain cases also send an MMS service to the
client in order to provide notification of the state change of an MMS object,
for example. The server still remains the server in spite of the fact that it is
sending an MMS service to the client. The server acts on its own initiative in
this case; an MMS service like this does not affect an MMS object in the
client.
An Example A control computer (client) uses the MMS ”Read” variable service to request
the transmission of a process value in a programmable controller. To do this,
it uses the association to the application process in an S7-400. The
application process in the S7-400 is the server that makes the ”Read” variable
service available to the control computer (see Figure 2-1).
Alternating Role A communication partner can be both a client and a server. In other words,
Play the communication partner can both request MMS services (as a client) and
provide MMS services (as a server).
Virtual
Associations programmable
controller with MMS
objects
Real device
Varia- VMD
bles
SIMATIC S7-400
CP 444 and VMD What the CP 444 communication processor essentially does is to map an
S7-400 to a VMD.
In the SIMATIC, every CP 444 is considered, together with its assigned
programmable controller (in which the CP 444 is located), to be a single
VMD.
A VMD always consists of a CP 444 and (in the case of multiprocessor
operation) up to four CPUs. It is possible to use several CP 444s in a
programmable controller. Since the communication processors all work
independently of each other, every CP 444 can be seen as a VMD.
MMS Objects The following MMS objects are defined for communication with the CP 444
(see also Figure 2-2):
Object Meaning
Association This is the communication channel between two application
processes.
VMD This is the SIMATIC S7-400 itself.
The device state and device properties of the S7-400 can be
obtained in a standardized form by means of MMS services.
Variable This is a readable and writable data area in the
SIMATIC S7-400.
MMS services allow variables to be read or written.
Variables Variables are MMS objects by means of which user data can be represented.
Variables are identified by names and assigned a data type description. The
data type description allows a standardized view of the data to be obtained
throughout the system. The data type can be simple or complex.
Variables can have two different areas of validity:
VMD-specific variables
These variables apply throughout the whole virtual programmable
controller (VMD). VMD-specific variables can be accessed by means of
any association.
Association-specific variables
These variables are assigned to a single association. Association-specific
variables can only be accessed by means of this association.
MMS Services The following services implemented on the CP 444 can be addressed for
communication with the CP 444:
An Example A measured value is, for example, an MMS object that belongs to the
variable class. Services defined in this class are ”Read”, ”Write” and
”InformationReport”.
Mounting and Mounting the CP 444 involves installing the CP 444 in your programmable
Wiring controller ’s mounting rack.
Installing the Before you can configure and parameterize the CP 444 under STEP 7, you
Configuration must install on the programming device/PC the software supplied with the
Software CP 444 configuration package (3.5” disks).
Configuring the Configuring the CP 444 involves entering it in the STEP 7 configuration
CP 444 table. You cannot enter a CP 444 in the configuration table until you have
successfully installed the software supplied.
Configuring the To set up associations between the CP 444 and the remote communication
Associations partner, you must store address information and connection-specific
parameters on the CP 444.
These parameters are specified in a text file using the Configuration CP 444
parameterization interface and then compiled in a specific format.
Configuring the In order to enable the exchange of user data between the CP 444 and the
Variables remote communication partner, you must configure variables and their data
type descriptions.
The data type descriptions of the variables are specified in another text file
using the Configuration for CP 444 parameterization interface and then
compiled in a specific format.
Defining the CP ID The connection between the CPU and the connected CP 444 is defined with
the CP ID. You reference the CP ID at the input of the function blocks for the
request of MMS services.
Loading the Once configuration is complete, the configuration and parameterization data
Configurations is loaded on the CPU and the CP 444 while they are in the STOP state using
STEP 7.
Programming the You program the request of an MMS service in the user program of the CPU.
Execution of the Various function blocks are available for the MMS services. You merely have
MMS Services to call them in the user program in order to execute a service. You reference
the destination or source of the data requested/for transfer at the
inputs/outputs of the function blocks.
The user program is programmed using the language editors of the STEP 7
software.
Application On the disk containing the configuration software for the CP 444 you will
Example also find a complete application example illustrating how to use the variable
services. More information on this application example is given in
Chapter 12.
Installation The CP 444 is one of the modules of the S7-400 programmable controller.
Guidelines The following applies to using the CP 444:
Note
The general guidelines for installing and setting up the S7-400 must be
complied with (see the S7-400/M7-400 Programmable Controllers,
Hardware and Installation manual).
Introduction The following section describes the rules you must observe when installing
the CP 444 communication processor in a rack.
Possible Racks The CP 444 can be installed in the following S7-400 racks:
UR1, UR2
CR2
Possible Slots Communication processors do not occupy any specific slots in the S7-400
programmable controller’s rack.
The CP 444 requires two slots and can be connected to any of the slots in the
racks with the following exception: The power supply module occupies slots
1 to 3 in all racks, depending on the width.
The number of plug-in CP 444 communication processors is limited:
By the number of possible slots in the racks
By the power consumption of the CP 444 from the S7-400 backplane bus
(max. 3.1 A)
For further information on slots, see /4/.
Introduction When installing and removing the CP 444, you must adhere to the rules set
out below.
Caution
! The CP 444 is a compact module; you should not dismantle it into its
component parts!
Tool To install and remove the CP 444, you require a 3.5 mm cylindrical
screwdriver.
4. Screw the module on at the top and bottom with a torque of 0.8 to 1.1 Nm
(see Figure 4-2).
Torque
0.8 to 1.1 Nm
5. Insert the key in the CP 444’s mode selector, and set the mode selector to
the RUN-P position (see Figure 4-3).
5. Replace the covers of the slots on the rack to which the CP 444 was
connected.
Interface for The 15-pin subminiature D female connector on the front of the CP 444
Connection to module (see Figure 1-1 in Section 1.3) is a communication interface
Ethernet conforming to the IEEE 802.3 Ethernet standard.
You connect the transceiver connecting cable for a SIMATIC Industrial
Ethernet connection to this interface (transceiver).
No Transceiver The 15-pin subminiature D female connector of the CP 444 does not provide
Power Supply power ()15 V) for a transceiver.
Note
When the CP 444 is connected to a transceiver, the transceiver must also be
connected via a separate power supply.
Standard Siemens provides standard connecting cables for the connection to SIMATIC
Connecting Cables Industrial Ethernet.
You can connect the following cable types to the 15-pin subminiature D
female connector of the CP 444:
727-1 connecting cable for systems with AUI (3.2 to 50 m)
Industrial twisted-pair installation cable (2 to 100 m)
The order numbers and possible lengths of the standard cables are given in
Appendix B.
Making Your Own If you want to make your own connecting cables to the transceiver, you will
Connecting Cables find the assignment of the 15-pin subminiature D female connector in
Appendix A.1.
Please note that you must use only shielded connector casings. To ensure
EMC (electromagnetic compatibility), the cable shielding must be connected
to each connector casing over a large area.
Other Interfaces None of the other interfaces visible on the front of the CP 444 module are
required when the CP 444 is used to provide an S7-400 with MAP
communication access.
These interfaces (interface submodule, memory card slot and LPT1 interface)
therefore remain unused (they are labeled in gray in Figure 1-1).
Introduction If applications are to communicate with each other, they must set up,
maintain and clear a logical connection (association).
The CP 444 provides association management services that are required for
communication on the application layer (layer 7 of the ISO/OSI reference
model).
The CP 444 executes these services autonomously.
Services The CP 444 provides the following services for association management:
Initiative The association management services are executed by the CP 444 without
being activated by the user program (CPU).
The parameters required to execute the services are entered using the
Configuration for CP 444 parameterization interface when the associations
are defined (see Section 8.3) and are stored in the CP 444 (see Section 8.6).
The associations are set up when the CP 444 starts up. The initiation of an
association depends on:
The initiation type configured
The address information configured
Note
The association is initiated when the destination address information (remote
entry) of the active application process and the source address information
(local entry) of the passive application process match.
Initiation Type There are two association initiation types for the CP 444:
Active initiation
The association is initiated immediately after the power is switched on or
the CP 444 is started. If the connection is interrupted, the CP 444 initiates
automatic reinitiation.
Passive initiation
The initiation of the association is started by the remote communication
partner (e.g. by a production control computer). In other words, the
CP 444 expects the connection to be set up.
Client/Server The VMD services for virtual manufacturing devices (VMDs) enable a client
Functionality to obtain information on the status or attributes of the VMD in the server. If
required, the server can also report the status to a client spontaneously
(without being requested).
The information can then be further processed on the client, so that, in the
case of a control computer, for example, an overview of the overall status of
the system can be obtained.
VMD Services The CP 444 can make available the following VMD services for virtual
manufacturing devices (VMDs) as a client and/or server:
Initiative When the CP 444 provides VMD services as a server, it executes them
independently.
VMD services it provides as a client must be programmed by means of an FB
call in the user program of the CPU. Chapter 9 of this manual describes all
the required function blocks (FBs) and how they are programmed in the user
program.
Introduction The server functionality of the CP 444 allows it to provide services that
enable the communication partner (client) to obtain information on the status
of the VMD (CP 444 and CPU).
Services The following VMD services are supported for a remote communication
partner (client) accessing the CP 444 (server):
Status
UnsolicitedStatus Local
VMD-specific User
variables/ K program
Identify bus
local
GetNameList application-s
pecific Data
GetCapabilityList variables area
Client Server
Status The ”Status” service allows the remote communication partner (client) to
request information on the physical and logical status of the VMD managed
in the CP 444 (server). The CP 444 sends back the requested information
(e.g. whether the CPU is in RUN or STOP mode).
Initiative: The initiative is taken by the remote communication partner
(client). No programming is necessary in the user program of the CPU at the
server end.
UnsolicitedStatus The ”UnsolicitedStatus” service allows the CP 444 (server) to report to the
communication partner (client) the physical and logical status of its own
VMD on its own initiative (spontaneously) (see Table 6-2 for the possible
messages).
Initiative In the event of a status change (STOP, RUN), the CP 444 is
notified by the CPU. The CP 444 then sends the new status to the
communication partner. No programming is necessary in the user program of
the CPU at the server end.
Identify The remote communication partner (client) uses the ”Identify” service to
request information on the attributes of the VMD managed in the CP 444
(server). These attributes might be, for example, the name of the vendor of
the programmable controller, the module designation of the CP 444 and the
revision identifier (firmware status) of the CP 444.
Initiative: The initiative is taken by the remote communication partner
(client). No programming is necessary in the user program of the CPU at the
server end.
GetNameList This service is available only with the server functionality of the CP 444. The
information requested by means of this service is sent by the CP 444
independently to the requester of the service. The response information sent
by the CP 444 might contain, for example, the list of all the variables defined
in and managed by the CP 444.
Initiative The initiative is taken by the remote communication partner
(client). No programming is necessary in the user program of the CPU at the
server end.
GetCapabilityList This service is only available with the server functionality of the CP 444. The
information requested by means of this service is sent by the CP 444
independently to the requester of the service. The CP 444 sends an empty list.
Initiative The initiative is taken by the remote communication partner
(client). No programming is necessary in the user program of the CPU at the
server end.
Introduction The client functionality of the CP 444 allows it to provide services that
enable it to obtain information on the status of the VMD of the
communication partner.
Services The following VMD services are supported for the CP 444 (client) accessing
a remote communication partner (server):
Communication
S7-400 CPU CP 444 partner (remote)
VMD
STATUS FB Status
IDENTIFY FB Remote variables:
VMD-specific/
User application-specific
K bus /domain-specific
program
Identify
Data
area
Client Server
Status The CP 444 (client) uses the ”Status” service to request information on the
physical and logical status of the VMD of the communication partner
(server). The communication partner must send the requested information.
Initiative: The initiative is taken by the CP 444. The call of the STATUS
function block (FB) must be programmed in the user program of the CPU
(see Section 9.6).
Identify The CP 444 (client) uses the ”Identify” service to request information on the
attributes of the VMD of the communication partner (server). These
attributes might be, for example, the name of the vendor, the module
designation and the release status of the communication partner.
Initiative The initiative is taken by the CP 444. The call of the IDENTIFY
function block (FB) must be programmed in the user program of the CPU
(see Section 9.3).
Introduction Variable services are services for reading and writing the values of variables.
This data may be simple (e.g. integers) or complex (e.g. structures).
A standard syntax has been defined for data type description; this overcomes
language barriers at data type description and enables data exchange
regardless of the end system involved (an S7 data block can be read in a
control computer, for example). The variables are ”converted” to the format
of the respective end system both at the client and the server end.
Client/Server As far as the variable services are concerned, this affects the client/server
Functionality functionality as follows:
Client
The S7-400 with the connected CP 444 functions as a client when you want
to access variables defined in another (remote) communication partner. The
name and data type description of the variables are required to access these
variables. This structural information is stored on the CP 444.
Server
The S7-400 with the connected CP 444 functions as a server when you want
to provide services for read and write access to variables. The variables are
managed by the CP 444 in accordance with the configured structural
information (name, data type description).
Variable Services The CP 444 can make available the following variable services for virtual
manufacturing devices (VMDs) as a client and/or server:
Initiative Some variable services are executed independently by the CP 444. Other
variable services must be programmed by means of an FB call in the user
program of the CPU. Chapter 9 of this manual describes all the required
function blocks (FBs) and how they are programmed in the user program.
The structural information of the variables for executing the variable services
is configured using the Configuration for CP 444 parameterization interface
(see Section 8.4) and stored in the CP 444 (see Section 8.6). Depending on
the configured scope of validity of the variable (VMD-specific,
association-specific), a variable is assigned to the whole VMD or to a
specific association.
Introduction The server functionality of the CP 444 allows it to provide variable services
that enable the communication partner (client) to access data areas in the
CPU (server).
Data Type The data type description of the variables is configured using the
Description Configuration for CP 444 parameterization interface and stored on the
CP 444.
We refer to local variables in configuration because the source of the
variables to be read or the destination of the variables to be written is in the
local VMD. You configure these variables in the following parameter blocks,
depending on the area of validity (see Section 8.4):
%Begin_LocalVmdSpecificVariables
%Begin_LocalAssociationSpecificVariables
Data Management The real variables themselves or the buffer for the variables must be made
available in the data area of the CPU.
Services The following variable services are supported for a remote communication
partner (client) accessing data areas in the CPU (server):
GetVariableAccess- REPORT FB
Attributes
Local
Read VMD-specific User
variables/ K
bus program
Write local
application-
InformationReport specific Data
variables area
Client Server
Read The remote communication partner (client) uses the “Read” service to obtain
the value of a variable in the CPU (server). The variables that are read must
be configured as local variables on the CP 444 (server). The scope of validity
is defined as well.
Initiative: The initiative is taken by the remote communication partner
(client). No programming is necessary in the user program of the CPU at the
server end.
Write The communication partner (client) uses the “Write” service to transfer data
to the CP 444 (server). The CP 444 causes the specified variable to be
overwritten in the CPU with the value transferred. The variables that are
written must be configured as local variables on the CP 444 (server). The
scope of validity is defined as well.
Initiative: The initiative is taken by the remote communication partner
(client). No programming is necessary in the user program of the CPU at the
server end.
InformationReport The CP 444 (server) uses the “InformationReport” service to send data type
descriptions and variable values to the remote communication partner (client)
without being explicitly requested by the latter to do so. The relevant
variables must be configured as local variables (with scope of validity) on the
CP 444 (server).
Initiative: The initiative is taken by the CP 444. The call of the REPORT
function block (FB) must be programmed in the user program of the CPU
(see Section 9.5).
Introduction The client functionality of the CP 444 allows it to provide variable services
that enable it to access data areas of the communication partner (server).
Data Type The data type description of the variables is configured using the
Description Configuration for CP 444 parameterization interface and stored on the
CP 444.
We refer to remote variables in configuration because the source of the
variables to be read or the destination of the variables to be written is the
communication partner (VMD). You configure these variables in the
following parameter blocks, depending on the area of validity (see Section
8.4):
%Begin_RemoteVariables
Data Management A buffer for the data read or written must be made available in the data area
of the CPU.
Services The following variable services are supported for the CP 444 (client)
accessing data areas on the remote communication partner (server):
Communication
S7-400 CPU CP 444 partner (remote)
VMD
READ FB Read
WRITE FB Remote variables:
VMD-specific/ Write
User K application-specific
program bus /domain-specific
Information-
Report
Data
area
Client Server
Read The CP 444 (client) uses the “Read” service to obtain the value of a variable
in the remote communication partner (server). The data of the variables is
transferred from the communication partner to the CP 444 and entered in the
data area of the CPU. The variables to be read must be configured as remote
variables (with scope of validity) on the CP 444 (client).
Initiative: The initiative is taken by the CP 444. The call of the READ
function block (FB) must be programmed in the user program of the CPU
(see Section 9.4).
Write The CP 444 (client) uses the “Write” service to transfer data to the remote
communication partner (server). The data is transferred from the CP 444 to
the communication partner and entered, overwriting the corresponding local
variable of the communication partner. The variables to be written must be
configured as remote variables (with scope of validity) on the CP 444
(client).
Initiative: The initiative is taken by the CP 444. The call of the WRITE
function block (FB) must be programmed in the user program of the CPU
(see Section 9.7).
Introduction You can control write and read access to variables at the server end. You
program access coordination in the user program of the CPU with the
ACCESS FB function block.
Access Protection Depending on the programming of the ACCESS FB call in the user program
Options of the CPU, the following action is possible:
Consistent transfer
You can use the ACCESS FB to ensure that the user program always
accesses fully updated variables (”Write” service) or that the user
program does not change the variables as long as reading of the variable
is still active (”Read” service).
This prevents incompletely transferred data areas from being accessed as
a result of the cyclical processing of the user program in the CPU
(server).
Coordinated access
In addition to ensuring consistent transfer, you control variable access by
temporarily blocking or enabling read or write access.
This means that the server can, for example, protect a data record from
being read again until a specific control sequence has been processed in
the user program.
With FB ACCESS controllable services.
FB ACCESS makes the coordinated access of server variables possible
with the services “Read” and “Write.” The service “Information Report”
is not affected by FB ACCESS. Write access of server variables with FB
Report is possible at all times.
Programming the The description of FB ACCESS in Section 9.2 of the user program provides
ACCESS FB information on the structure of the user program.
Principle
You control access to variables by setting and resetting control bits and
querying control bits in an ACCESS-DB data block. You reference the data
block number of the ACCESS-DB at the input of the ACCESS FB.
The ACCESS FB must be called at least once in each cycle of the user
program.
Introduction This section provides you with an overview of the addressing of local and
remote variables, depending on the variable service and the client/server
functionality.
Overview The table below indicates where the location of the variable values must be
made known and at which end (server/client) a function block (FB) has to be
programmed in the user program.
Configuration In the text file for variables you must configure for the CP 444 the complete
data type descriptions and S7 addresses of both the local and the remote
remote variables (see Section 8.4.3).
Note, however, that, in the case of the ”InfomationReport (send)”, ”Read
(send)” and ”Write (send)” variable services, the S7 address (data block/data
word number) referenced at the input of the function block becomes effective
(see Table 7-2).
Chapter Overview The various steps of the procedure are described in the following sections.
Where Am I?
Install the configuration software
Introduction Before you can configure and parameterize the CP 444 under STEP 7, you
must install on the programming device/PC under STEP 7 the software
supplied with the CP 444 configuration package (3.5” disks).
Note
You cannot enter a CP 444 in the STEP 7 configuration table until you have
successfully installed the software supplied.
Prerequisite A standard version of STEP 7 Version 4.0 (or higher) must be installed on
your programming device/PC.
Current For current information and installation notes for the software, please refer to
Information the Liesmich.wri file (German) or readme.wri file (English) in your
installation directory.
Where Am I?
Install the configuration software
Introduction Once you have installed the configuration software under STEP 7 on the
programming device/PC, you can begin configuring the CP 444 by entering
the module in the STEP 7 configuration table.
Prerequisite Before you enter the CP 444 in the configuration table, you must use STEP 7
to create a project and the SIMATIC 400 station to be assigned to the CP 444.
Reference Material How to configure S7-400 modules is described in detail in the STEP 7 /5/
User Manual.
In addition, the on-line help system of STEP 7 provides you all the help you
will need to configure an S7-400 module.
Where Am I?
Install the configuration software
Introduction Once you have entered the CP 444 in the configuration table, configure the
associations and variables.
Principle All the parameters of the associations of the CP 444 must be stored in a text
file. You generate the text file by means of the Configuration for CP 444
parameterization interface.
The parameterization interface provides a text editor. You can use the text
editor (see Figure 8-3) either to create a new text file containing parameters
or to open and edit an existing text file (sample file).
Once you have finished editing the text file, you compile the text file into a
specific format. This format is required to store the parameters in a module
SDB of the CP 444 (see Section 8.6).
Starting the You start the parameterization interface by double-clicking the CP 444 in the
Parameterization configuration table or by selecting the CP 444 and choosing the Edit >
Interface Object Properties menu command.
Result: The ”Properties – CP 444” dialog box appears.
Editing a Text File To edit the text file for the associations, proceed as follows:
1. Change to the “Parameters” tab. To do this, simply click the ”Parameters”
tab label near the top of the dialog box.
Result: The ”Parameters” tab appears in the foreground (see Figure 8-2).
2. In the ”Connection Partner” list box, select the CPU to which you want to
create a K bus connection (see also Section 8.5).
3. Click the “Parameters” button.
Result: The window of a text editor appears. You use this text editor to
create the text file (Extension .con) containing the settings of the
associations.
Incorrect Entries If you make incorrect entries in the text file, error messages are generated
and displayed in the lower part of the text editor window (see Figure 8-3). If
you double-click an error message, the relevant line in the text file is
displayed and selected.
Not until all the errors have been eliminated is the text file converted to the
SDB-specific format.
Structure of the The parameters are assigned to different parameter blocks. The structure of
Text File the parameter blocks in the text file is as follows:
#
%Begin_Local
... AR names (address Section 8.3.3
%End_Local information of the
# CP 444 (local) and
# the communication
%Begin_Remote partner (remote))
...
%End_Remote
#
#
%Begin_Asso
Associaten = 1
...
%End_Asso Association-depend Section 8.3.2
# ent parameters (an
%Begin_Asso ”Asso” block for
Associaten = 2
each association)
...
%End_Asso
#
# Subnet number 0
#
#
%Begin_Subnet
NSAP =49 00 01 60 8C 2C 94 04
Parameters
ES_CT =120
of the
ES_HT =60
parameter
Error_Bit_On =N
block in any
Internet_Type=2
sequence
Checksum =Y
%End_Subnet
Figure 8-5 Structure of the Parameter Blocks in the Text File (Associations)
Help Select the first line of a parameter block in the text file (e.g.
”%Begin_Subnet”), and then press the F1 key. Information appears on the
parameters that can be edited in this parameter block.
Association-Indep This section describes the parameters that must be configured globally for
endent associations.
The following parameter blocks must be edited in accordance with the OSI
layers (layers 3 to 7) of the reference model (see Section 2.1):
Layer 3 - Network layer: ”Subnet” parameter block
Layer 4 - Transport layer: ”Transport” parameter block
Layer 7 - Application layer: ”MMS” parameter block
“Subnet” The table below describes all the parameters in the “Subnet” parameter
Parameter Block block.
“Transport” The table below describes all the parameters in the “Transport” parameter
Parameter Block block.
“MMS” Parameter The table below describes all the parameters in the “MMS” parameter block.
Block
Table 8-3 “MMS” Parameter Block
Association-Depen This section describes the parameters that must be configured specifically for
dent each association of the CP 444.
Status Bit A status bit (data type: BOOL) allows you to evaluate the status of the
association in the user program of the CPU.
You use the ”Asso_Flag” parameter in the ”Asso” parameter block to specify
the address of the status bit.
Value Meaning
Status bit = FALSE Association interrupted
Status bit = TRUE Association created
“Asso” Parameter The table below describes all the parameters in the “Asso” parameter block.
Block
Table 8-5 “Asso” Parameter Block
1 This number is the first part of the ID at the input of the function blocks (see Chapter 9).
AR Names The AR names comprise the full address information (address book) in
accordance with the OSI layers (layers 3 to 7) of the reference model (see
Section 2.1) that are required for the initiation of the associations.
Initiation of the The initiation of an association is dependent on the initiation type selected
Associations (see Section 8.3.2) and the address information configured.
An association is initiated when the destination address information (remote
entry) of the active application and the source address information (local
entry) of the passive application match.
The ”active side” specifies in the initiation request its local address
information (source) and the address information of the partner application
(destination). The destination address information must be fully specified. In
other words, it must have the full address information of layers 3 to 7 so that
the initiation request can be delivered to and accepted by the partner
application.
You specify the local address information in the ”Local” parameter block and
the address information of the partner application in the ”Remote” parameter
block.
“Local” Parameter The table below describes all the parameters in the “Local” parameter block.
Block
Table 8-6 “Local” Parameter Block
“Remote” The table below describes all the parameters in the “Remote” parameter
Parameter Block block.
Where Am I?
Install the configuration software
Principle Like the parameters for the associations, the configuration data of the
variables must be stored in a text file. You generate the text file by means of
the Configuration for CP 444 parameterization interface.
The parameterization interface provides a text editor. You can use the text
editor (see Figure 8-7) either to create a new text file containing data type
descriptions or to open and edit an existing text file (sample file). The sample
file contains a number of variable configuration examples, indicating the
entries that have to be made.
Once you have finished editing the text file, you compile the text file into a
specific format. This format is required to store the configuration data in a
module SDB of the CP 444 (see Section 8.6).
Starting the You start the parameterization interface by double-clicking the CP 444 in the
Parameterization configuration table or by selecting the CP 444 and choosing the Edit >
Interface Object Properties menu command.
Result: The ”Properties – CP 444” dialog box appears.
Cancel Help
Editing a Text File To edit the text file for the variable configuration, proceed as follows:
1. Change to the “Parameters” tab. To do this, simply click the ”Parameters”
tab label near the top of the dialog box.
Result: The ”Parameters” tab appears in the foreground (see Figure 8-6).
2. Click the “Variables” button.
Result: The window of a text editor appears. You use this text editor to
create the text file (Extension .var) containing the configuration data for
the variables.
lIncorrect Entries If you make incorrect entries in the text file, error messages are generated
and displayed in the lower part of the text editor window (see Figure 8-7). If
you double-click an error message, the relevant line in the text file is
displayed and selected. Not until all the errors have been eliminated is the
text file converted to the SDB-specific format.
Structure of the The variable parameters are assigned to different parameter blocks. The
Text File structure of the parameter blocks in the text file is as follows:
#
%Begin_RemoteVariables
Association = 11
Variable parameters:
var varbByte = BYTE ... Remote variables (a
var @varByte = BYTE ... ”RemoteVariables” block for
var *domainame\varbByte = BYTE ... each association)
... var varByte:
%End_RemoteVariables
VMD-specific
#
%Begin_RemoteVariables var @varByte:
Association = 12 Association-specific
var varbByte = BYTE ...
...
var
%End_RemoteVariables *domainame\varbByte:
# Domain-specific
Introduction In the %Begin_InstanceDBs block you tell the CP 444 the data block
numbers of the instance DBs of the function blocks for the MMS services.
These block numbers must match what is specified for the FB call in the user
program of the CPU (see Chapter 9).
You can edit this block at any point in the text file. The numbers of the
instance DBs are at the beginning of the sample text file.
Structure Figure 8-9 shows you the structure of the “InstanceDBs” block in the text
file:
#instance DBs
#
#
%Begin_InstanceDBs
Parameters InstanceDB_MMS = 6
of the InstanceDB_MMS = 3
parameter InstanceDB_MMS = 5
block in any InstanceDB_MMS = 4
sequence InstanceDB_MMS = 2
%End_InstanceDBs
#
Introduction Before you enter a variable block with data type descriptions, all the data
types used in the variable block must be declared in the text file before the
variable block.
There is no variable block for the data type declarations. The declarations
can be anywhere in the text file except in a variable block. The declarations
are valid for all the subsequent variable blocks (local or remote).
Structure Figure 8-10 shows the structure of the data type declarations in the text file:
Parameters Table 8-9 describes the configuration data. Note that only the complex data
types (see Table 8-13) have to be declared in the text file. The standard data
types (see Table 8-12) can be used in the variable blocks without being
declared.
Introduction You enter the variable parameters in variable blocks. The following variable
blocks can be edited:
%Begin_LocalVmdSpecificVariables
Configuration of all local VMD-specific variables
%Begin_LocalAssociationSpecificVariables
Configuration of all local association-specific variables
%Begin_RemoteVariables
Configuration of all remote variables (VMD-specific, association-specific
and domain-specific)
Note
Only the complex data types (see Table 8-13) have to be declared in the text
file. The standard data types (see Table 8-12) can be used in the variable
blocks without being declared.
The block containing the declared data types is followed by the variable
blocks containing the actual variable parameters.
Every variable block has a fixed keyword at the beginning (%Begin_)
and end (%End_).
The keywords must be followed by the name of the variable block (see
above).
Names are reserved for the parameters in a variable block, by means of
which they are identified. The parameter value is referenced by the equals
sign (=) after the parameter name.
A line is reserved for each variable. The parameters of a variable are
separated from each other by the ”|” character.
Lines that begin with the number sign (#) are for entering comments.
Variable The table below describes the configuration data for local variables.
Parameters (Local)
Variable The table below describes the configuration data for remote variables.
Parameters VMD-specific, association-specific and domain-specific are distinguished
(Remote) from each other by means of the prefixes ”@” and *domainame” before the
actual variable names.
Table 8-11 Variable Parameters (Remote)
Name Meaning Value Range Examples
Association Number of the association: 0 to 255 11
var <name> For <name> you enter the name of a Name of the data type typeString10
VMD-specific variable (32 characters). you declared (see
var @<name>1 For <name> you enter the name of an Figure 8-10)
association-specific variable (32 characters). or or
var For <name> you enter the name of a Name for standard data BYTE
*domainame\<n domain-specific variable (32 characters). type (see Table 8-12)
ame>
S7Addr Destination or source address of the variable value DBx,By DB105,B1
(data block number DBx and byte address By). (CPU-specific)
See also Section 7.5, ”Addressing Local and
Remote Variables”
1 deutsch: Um Applikationsbeziehungs-spezifische Variablen im Variablen–DB zudeklarieren, muß das Zeichen “@”
in den DB-Editor mit Copy und Paste aus einem beliebigen Text eingefügt werden. Die direkte Eingabe über die
Tastatur ist hier nicht möglich.
Data Types The table below describes standard data types supported by the CP 444.
(Standard Types) These do not have to be declared in the text file beforehand.
Data Types The table below describes complex data types supported by the CP 444.
(Structures) These have to be declared in the text file before the variable blocks.
Where Am I?
Install the configuration software
Where Am I?
Install the configuration software
Introduction The configuration and parameterization data of the CP 444 is stored in the
current project (on the hard disk of the programming device/PC).
Data Management When you exit the configuration table (see Section 8.2) and the connection
table (see Section 8.5), all the configuration and parameterization data is
stored automatically in the STEP 7 project you have created.
Loading the You can now use STEP 7 to load the configuration and parameterization data
Configuration Data on-line from the programming device to the CPU and the CP 444 (PLC >
Download) menu command). The CPU and the CP 444 accept the parameters
immediately they are loaded.
The LEDs on the front of the CP 444 indicate that a load operation is in
progress (see Section 11.2).
Note
If the CPU is to remain in RUN mode when the configuration data is loaded,
the insert/remove OB (OB 83) must be loaded on the CPU.
Reading the You can display on the programming device/PC the current parameterization
Configuration Data data on the CP 444. To do this, choose the File > Load Parameters menu
command in the Configuration for CP 444 parameterization interface. The
CP 444 loads the current parameters immediately and displays them in the
form of the familiar text file (see Section 8.3 and 8.4).
Additional In the STEP 7 user manual /5/ you will find a detailed description of how to
Information do the following for modules connected to a programmable controller:
Save the configuration and parameters.
Load the configuration and parameters.
Read, modify and copy the configuration and parameters.
FB Name Purpose
FB 1 ACCESS Sets access rights of local variables
FB 2 IDENTIFY Identifies the remote communication partner
FB 3 READ Reads remote variables
FB 4 REPORT Reports local variables to the remote communication
partner without acknowledgment
FB 5 STATUS Reads status information on the remote communication
partner
FB 6 WRITE Writes remote variables
FB 7 ABORT Aborts an association
Memory Allocation To give you optimal utilization of the user memory of your CPU, the READ,
REPORT and WRITE function blocks have different memory allocations.
Please always use the function block that only allocates as much memory as
you require to transfer the user data.
The function blocks are in different folders in the CP444 library in
accordance with the memory allocation. The table below gives the names of
the folders and the maximum volume of user data of the function blocks that
can be transferred.
Table 9-2 Volume of User Data of the Function Blocks that Can Be Transferred
Working with the You open the CP444 library in STEP 7 SIMATIC Manager by choosing the
Library File > Open > Library menu command. When working with the function
blocks, you need only copy the required function block to your project’s CPU
program.
Abbreviations for The following abbreviations are used for the memory areas for the function
Memory Areas blocks described in this chapter:
Abbreviation Type
I Input
O Output
M Memory marker
L Local data
D Data block area
T Timer
C Counter
Connection ID The connection ID must be specified for the ”ID” parameter for the function
blocks described in this chapter. The connection ID references the local and
remote communication partner. The connection ID consists of two parts,
which you specify when you parameterize the CP 444. Figure 9-1 shows how
the connection ID is made up.
Please note that the CP ID cannot be changed dynamically since it is
evaluated once only, at CPU startup (see also the chapter entitled
”Communication SFBs for Configured Connections” in /6/).
”2H” ”1H”
Connection ID
DW #16# 0 0 0 2 0 0 0 1
Note
Only the CP_ID is required for the FB ACCESS function block.
Status and Error The structure of the status and error messages for the function blocks
Messages described in this chapter is identical. You will find explanations of the output
parameters and an overview of the error messages in Section 9.9.
If the status message “W#16#1204” (“Asso Queue Overflow” see section 9.9)
occurs for data types which are sent very quickly to the CP444 e.g. data type
“Bool”, the call up frequency for the function block used should be lowered.
/6/ Reference Manual: System Software for S7-300 and S7-400, System and Standard Functions
Introduction The ACCESS function block allows you from the user program to block and
release the access rights to variables. You can also determine whether the
communication partner has edited the variable or is currently editing it.
By assigning the access rights selectively you can coordinate the access to
variables and achieve consistent data interchange. You define the access
rights in a DB (ACCESS-DB).
Consistent In order to ensure consistent data transfer, the user program cannot
Transfer update/edit variables until the control bit DONE (in ACCESS-DB) is set.
This makes it impossible, for example, for the partner to write or read
incompletedata areas.
Important to Note The ACCESS function block must be called at least once in each cycle of the
user program.
Block Diagram of The block diagram shows the call interface of the FB ACCESS.
the ACCESS FB
ACCESS FB
EN_R DONE
ID ERROR
ACC_DB STATUS
ACCESS FB You will find the parameters of the ACCESS FB in the table below.
Parameters
Table 9-3 ACCESS FB Parameters
Specifying Access You can specify the access right for each variable. All you need to do is
Rights in the define the read and write rights (READ/WRITE) and define two control bits
ACCESS-DB (IN_USE/DONE) in the so-called ACCESS-DB. You reference the block
number of the ACCESS-DB at the “ACC_DB” input parameter of the
ACCESS FB.
Behavior at Restart If the data transfer is interrupted by a restart of the CPU (RUN ³ STOP ³
of the CPU RUN), the IN_USE control bit or bits in the ACCESS-DB is/are not
automatically reset. In case there is a restart of the CPU, you should therefore
always set the IN_USE control bit(s) to FALSE in the user program.
Block Call, The following program sequence shows a block call with appropriate
Example in STL parameterization. Please note that the ACCESS FB must be called at least
once in each cycle of the user program.
AWL Erläuterung
call FB 1, DB 22 ACCESS block call with instance DB
(
EN_R := M 1.0 Release signal for variable accesses
ID := W#16#1 Connection ID matched with configuration
ACC_DB := W#16#5 Addresses the ACCESS DB = DB 5
DONE := M 1.1 Confirmation of execution
ERROR := M 1.2 Indicates error during execution
STATUS := MW 20); Detailed error decoding
ACCESS-DB, The following example shows the definition of the access right in the
Example ACCESS-DB for the variables MOTOR1 and MOTOR2.
Introduction The IDENTIFY function block allows you to get the following information
from the partner device:
The name of the vendor
The name of the model
The revision of the device
Depending on this information you can, for example:
Set the local program function for the performance and behavior of the
communication partner
Arrange/organize the required parameters in the user program
IDENTIFY The block diagram shows the call interface of the IDENTIFY FB.
FB Block Diagram
FB IDENTIFY
REQ NDR
ID ERROR
VENDOR STATUS
MODEL
REVISION
IDENTIFY The table below lists the parameters of the IDENTIFY FB.
FB Parameters
Table 9-6 Parameters of the IDENTIFY FB
Block Call; The following program sequence shows a block call with corresponding
Example in STL parameterization.
STL Explanation
call FB 2, DB 22 IDENTIFY block call with instance DB
(
REQ := M 1.0 Edge signal for the execution of the FB
ID := DW#16#10001 Connection ID compared with configuration
NDR := M 1.1 Indicates when new data has been received
ERROR := M 1.2 Indicates errored execution
STATUS := MW 20 Detailed error decoding
VENDOR := “SLAVE2”.VENDOR_ABBILD Data area for the name of the vendor
MODEL := “SLAVE2”.MODEL_ABBILD Data area for the model
REVISION := “SLAVE2”.REV_ABBILD Data area for the revision
);
Additional information
“SLAVE2”
is the symbolic name of a data block. This name is defined in the associated symbol
table.
VENDOR_ABBILD, MODEL_ABBILD and REVISION_ABBILD
are variables of the STRING data type. These are defined in the “SLAVE2” data block.
Introduction The READ function block reads the data of a variable from a specified data
area of the communication partner. The data read is stored locally in a data
block, an area in the process image of the inputs/outputs or in a bit memory
address area.
READ FB Block The block diagram shows the call interface of the READ FB.
Diagram
READ FB
REQ NDR
ID ERROR
VAR_1 STATUS
RD_1
READ The table below lists the parameters of the READ FB.
FB Parameters
Table 9-7 Parameters of the READ FB
Block Call; The following program sequence shows a block call with corresponding
Example in STL parameterization.
STL Explanation
call FB 3, DB 29 READ block call with instance DB
(
REQ := M 1.0 Edge signal for the execution of the FB
ID := DW#16#10001 Connection ID compared with configuration
VAR_1 := “SLAVE2”.INDEX Addresses communication variable to be read
RD_1 := “PROZESS”.ABBILD Addresses data area to receive transferred data
NDR := M 1.1 Execution confirmation
ERROR := M 1.2 Indicates errored execution
STATUS := MW 20 Detailed error decoding
);
Additional information
“SLAVE2”.INDEX
is the symbolic name of a structural element of a data area defined and stored as a
communication variable on the communication partner.
”PROZESS”.ABBILD
is a locally declared variable in the “PROZESS” DB that contains the value read as the
destination data area.
REPORT FB Block The block diagram shows the call interface of the REPORT FB.
Diagram
REPORT FB
REQ DONE
ID ERROR
VAR_1 STATUS
SD_1
REPORT The table below lists the parameters of the REPORT FB.
FB Parameters
Table 9-8 Parameters of the REPORT FB
Block Call; The following program sequence shows a block call with corresponding
Example in STL parameterization.
STL Explanation
call FB 4, DB 28 REPORT block call with instance DB
(
REQ := M 1.0 Edge signal for the execution of the FB
ID := DW#16#10001 Connection ID compared with configuration
VAR_1 := “SLAVE2”.INDEX Addresses communication variable to be read
SD_1 := “SLAVE2”.VAR_54 Addresses data area to send transferred data
DONE := M 1.1 Execution confirmation
ERROR := M 1.2 Indicates errored execution
STATUS := MW 20); Detailed error decoding
Additional information
“SLAVE2”.INDEX
is the symbolic name of a structural element of a data area defined and stored as a
communication variable on the communication partner.
“SLAVE2”
is the symbolic name of a data block. This name is defined in the associated symbol
table.
VAR_54
is a variable defined in the “SLAVE2” DB that is also defined as a communication
variable in the symbol table. VAR_54 is the variable to be reported.
Introduction The STATUS function block allows information on the status of the
communication partner to be requested.
Distinctions are drawn between the following:
The logical status of the communication partner
The physical status of the communication partner
Device-specific detailed information
STATUS FB Block The block diagram shows the call interface of the STATUS FB.
Diagram
FB STATUS
REQ NDR
ID ERROR
PHYS STATUS
LOG
LOCAL
STATUS The table below lists the parameters of the STATUS FB.
FB Parameters
Table 9-9 Parameters of the STATUS FB
PHYS Parameter Table 9-10 shows the possible codes for the PHYS output parameter.
for the Physical
Status
Table 9-10 Codes of the PHYS Parameter for the Physical Status of the
Communication Partner
LOG Parameter for Table 9-11 shows the possible codes for the LOG output parameter.
the Logical Status
Table 9-11 Codes of the LOG Parameter for the Logical Status of the
Communication Partner
Block Call; The following program sequence shows a block call with corresponding
Example in STL parameterization.
STL Explanation
call FB 5, DB 21 STATUS block call with instance DB
(
REQ := M 1.0 Edge signal for the execution of the FB
ID := DW#16#10001 Connection ID compensated with configuration
NDR := M 1.1 Indicates when new data has been received
ERROR := M 1.2 Indicates errored execution
STATUS := MW 20 Detailed error decoding
PHYS := MB 22 Data area for the physical status
LOG := MB 23 Data area for the logical status
LOCAL := P#DB18.DBX0.0 WORD8); Data area for ”local detail”
Introduction The WRITE function block transfers the data of a variable from a specified
local data area to a data area of the communication partner. The local data
area can be a data block, an area in the process image of the inputs/outputs or
a bit memory address area.
WRITE FB Block The block diagram shows the call interface of the WRITE FB.
Diagram
WRITE FB
REQ DONE
ID ERROR
VAR_1 STATUS
SD_1
WRITE The table below lists the parameters of the WRITE FB.
FB Parameters
Table 9-12 Parameters of the WRITE FB
Block Call; The following program sequence shows a block call with corresponding
Example in STL parameterization.
STL Description
call FB 6, DB 28 WRITE block call with instance DB
(
REQ := M 1.0 Edge signal for the execution of the FB
ID := DW#16#10001 Connection ID compared with configuration
VAR_1 := “SLAVE2”.INDEX Addresses communication variable to be read
SD_1 := “PROZESS”.ABBILD Addresses data area to send transferred data
DONE := M 1.1 Execution confirmation
ERROR := M 1.2 Indicates errored execution
STATUS := MW 20 Detailed error decoding
);
Additional information
“SLAVE2”.INDEX
is the symbolic name of a structural element of a data block defined and stored as a
communication variable on the communication partner.
”PROZESS”.ABBILD
is a locally declared variable in the “PROZESS” DB that contains the value to be
written as the source data area.
Introduction The ABORT function block allows the defined abortion of an association
from the user program. This can be useful, for example, in order to
synchronize a number of applications after an error situation.
ABORT FB Block The block diagram below shows the call interface of the ABORT FB.
Diagram
ABORT FB
REQ DONE
ID ERROR
STATUS
ABORT FB The following table contains the parameters of the ABORT FB.
Parameters
Table 9-13 Parameters of the ABORT FB
Block Call, The following program sequence shows a block call with corresponding
Example in STL parameterization.
STL Description
call FB 7, DB 28 ABORT block call with instance DB
(
REQ := M 1.0 Edge signal for the execution of the FB
ID := DW#16#50001 Connection ID, abortion of asociation no. 5
DONE := M 1.1 Execution confirmation
ERROR := M 1.2 Indicates errored execution
STATUS := MW 20); Detailed error decoding
Introduction This chapter describes the output parameters that are valid for all function
blocks and access MMS services of the CP 444.
These are the output parameters DONE and NDR, ERROR and STATUS.
DONE and NDR The DONE and NDR output parameters are:
1, when job processing is error-free
0, when the job is currently running or has been completed with errors
Introduction Errors that occur when an MMS job is created or during processing of a
received MMS acknowledgment on the local CP 444 are referred to as local
errors. The error code of a local error is output in the STATUS output
parameter and is located in the area from W#16#0001 to W#16#7FFF.
Error Codes for Table 9-14 shows the error codes for local errors that the CPU can display in
Local Errors the STATUS output parameter.
Introduction Errors that occur on a remote communication partner and are received by the
CP 444 with an MMS error acknowledgment are referred to as ServiceErrors.
The error code of a ServiceError is output in the STATUS output parameter.
It can range from W#16#8000 to W#16#823F and from W#16#824A to
W#16#8DFF.
For a detailed description of the cause of the error, please refer to the
documentation of the remote communication partner.
Decoding the Error The MMS codes for ErrorClass and ErrorCode are encoded in the error code
Code of the ServiceError.
You obtain these codes by subtracting W#16#8000 from the error code
displayed; the first byte contains the value for ErrorClass and the second the
value for ErrorCode.
Example Table 9-15 shows how to obtain the MMS code for ErrorClass and ErrorCode
from the error code.
Error Code in the Error Code Minus MMS Code for MMS Code for
STATUS Output W#16#8000 ErrorClass ErrorCode
Parameter
8001 0001 0 1
8B03 0B03 B 3
Error Codes for Table 9-16 shows an overview of the error codes for ServiceErrors that are
ServiceErrors reported by the CP 444 and can be displayed in the STATUS output
parameter.
Table 9-16 Error Codes for ServiceErrors and Their Meaning, continued
Table 9-16 Error Codes for ServiceErrors and Their Meaning, continued
Introduction Errors that occur when a variable is accessed and that are received with an
MMS read acknowledgment or an MMS write acknowledgment are referred
to as DataAccessErrors. The error code of a DataAccessError can range from
W#16#8240 to W#16#8249.
For a detailed description of the cause of the error, please refer to the
documentation of the remote communication partner.
Decoding the Error The MMS code for the DataAccessError is encoded in the error code. You
Code obtain the MMS code of a DataAccessError by subtracting W#16#8240 from
the error code displayed.
Example Table 9-17 shows how to obtain the MMS code of the DataAccessError from
the error code displayed.
Error Codes for Table 9-18 shows an overview of the error codes for DataAccessErrors that
DataAccessErrors are reported by the CP 444 and can be displayed in the STATUS output
parameter.
Storage Space The table below indicates the storage space requirements of the function
Requirements blocks of the CP 444.
Prerequisite So that the CP 444 can start up, its mode selector must be in the RUN-P
position. The position of the CPU’s mode selector is irrelevant to the start-up
of the CP 444.
Start-Up The start-up includes complex self-tests of the hardware and software
configuration, initialization and connection setup to the CPU. The entire
start-up takes approximately 80 to 120 seconds.
Meaning of the The MRDY and MERR LEDs allow you to follow the progress of the
LEDs at Start-Up CP 444’s start-up.
Important Please note the following in relation to the behavior of the CP 444:
Note
After the power is switched on, the CP 444 requires approximately 80 to
120 seconds for its start-up (initialization, hardware and memory tests).
During this time, the function blocks called in the user program of the CPU
are not processed by the CP 444. You can read a corresponding error
message at the STATUS output parameter of the FB called (error code
W#16#0001).
Introduction In the following, it is assumed that the CP 444 has completed start-up
processing and is in RUN.
Data interchange depends on the operating status of the CPU. The description
below indicates the communication that is possible when the CPU is in RUN
and STOP.
CPU and CP 444 If both the CPU and CP 444 are in RUN, the CPU and the remote
in RUN communication partner can request all the variable services and VMD
services supported by the CP 444.
CPU and CP 444 Communication direction: CPU > CP 444 and CP 444 > CPU
in STOP
If the CPU is in STOP, the CP 444 processes all services that do not require a
function block.
Communication direction: CP 444 > remote communication partner
Jobs received by the CP 444 before the CPU is switched to STOP continue to
be processed by the CP 444 and transferred to the remote communication
partner.
Communication direction: remote communication partner > CP 444
If the CP 444 receives the data for a VMD service from a remote
communication partner, the CP 444 processes this job (since the CPU is not
involved in VMD services).
If the CP 444 receives the data for a variable service from a remote
communication partner, this service is aborted with the error message
W#16#8242 (see Table 9-18) to the remote communication partner.
Introduction If the CP 444 cannot be switched to RUN as described in Section 10.1, this
generally means that there is a correctable error in the internal memory. To
correct this error, you have to reset the CP 444.
You reset the CP 444 using the mode selector. You must adhere to a particular
sequence when doing this.
Resetting the To reset the CP 444 using the mode selector, proceed as follows:
CP444 (Hardware
1. Turn the mode selector to STOP.
Reset)
Result: The STOP LED comes on.
2. Turn the mode selector to MRES, and keep it in this position.
Result: The STOP LED goes off and comes on again after about 3
seconds.
3. Within 3 seconds of the STOP LED coming on again, turn the mode
selector back to STOP, then to MRES and back to STOP again.
Result: The STOP LED flashes for about 3 seconds at 2.5 Hz (rapid
flashing) and then remains on. The hardware reset is carried out.
If the STOP LED does not flash, of if other LEDs come on or flash,
repeat steps 2 and 3.
Note
If you want the CPU to remain in RUN mode when the CP 444 is reset, the
insert/remove OB (OB 83) must be loaded.
Status Output at The interpretation of the error numbers at the STATUS output of the function
the FB blocks is described in Section 9.9.
Introduction The diagnostic functions of the CP 444 enable you to localize quickly any
errors that occur. The following diagnostic options are available:
Diagnostics using the display elements of the CP 444
Diagnostics using the STATUS output of the function blocks
Diagnostics using the MMS error messages of the CP 444 to remote
communication partners
Diagnostics using the MMS trace function
Display Elements The display elements indicate the operating status and any error statuses of
(LEDs) the CP 444. The display elements give you an initial overview of any internal
or external errors as well as interface-specific errors (see Section 11.2).
STATUS Output of Every function block has the STATUS output parameter for diagnostics and
the FBs responding to errors in the user program. An error code is output to it, by
means of which you get detailed information on errors and events.
By reading the STATUS output of the function blocks you get detailed
information on errors/events that have occurred during communication
between the CP 444, the assigned CPU and the communication partner
connected on this connection.
Note
The interpretation of the error numbers at the STATUS output of the function
blocks is described in Section 9.9.
MMS Error If a remote communication partner requests MMS services that the CP 444
Messages cannot execute, the CP 444 sends an error code to the remote communication
partner. To enable you to carry out detailed error analysis in the remote
communication partner, the MMS error messages of the CP 444 are listed in
Section 11.3.
MMS Trace Using the MMS trace you can record an MMS trace log. The log provides a
step-by-step record of the connection setup process, for example, and enables
connection problems to be localized.
Introduction The LEDs of the CP 444 indicate to you the error and operating status of the
CP 444 at a glance.
Meaning of the Table 11-1 explains the status and error displays of the CP 444.
Status and Error
Displays
Table 11-1 Meaning of the Status and Error Displays of the CP 444
MRDY and MERR After the CP 444 is switched on in RUN, the CP 444 tests the hardware and
at Start-Up prepares itself for operation. The MRDY and MERR LEDs allow you to
follow the progress of the CP 444’s start-up.
MRDY and MERR When the CP 444 is in RUN, the CP 444 can send and receive data. The
in RUN MRDY and MERR LEDs allow you to follow the progress of the
transmission and receipt.
MRDY and MERR When the CP 444 is in STOP, you can load the configuration data. The
When Loading the MRDY and MERR LEDs allow you to follow the progress of the load
Configuration Data operation.
Introduction If a remote communication partner requests MMS services that the CP 444
cannot execute, the CP 444 sends an error code to the communication
partner. The error codes are subdivided into ServiceErrors and
DataAccessErrors.
ServiceError The ServiceError is the error code of an MMS error acknowledgment and
specifies the error that has occurred in the CP 444. MMS subdivides the
ServiceError into ErrorClass and ErrorCode.
You need the error code for ErrorClass and ErrorCode in order to respond to
the situation in the remote communication partner.
Error Codes for ServiceError consists of two components, the ErrorClass and the ErrorCode.
ServiceError Table 11-5 contains a list of the possible error codes for ErrorClass and
ErrorCode that the CP 444 can send to the remote communication partner.
Table 11-5 Error Codes for ServiceError and Their Meaning, continued
Error Codes for DataAccessError describes the error that can occur when a variable is
DataAccessError accessed. Table 11-6 contains a list of the possible error codes that the
CP 444 can send to the remote communication partner.
Introduction You can use the MMS trace to record an MMS trace log. The log provides a
step-by-step record of the connection setup process, for example, and enables
connection problems to be localized.
Principle You start the trace using the Configuration for CP 444 parameterization
interface. The recorded log is saved on the inserted 3.5” floppy disk in the
CP 444. You can then load the log data on the programming device/PC and
display it in plain text.
Starting the You start the parameterization interface by double-clicking the CP 444 in the
Parameterization configuration table or by selecting the CP 444 and choosing Edit > Object
Interface Properties.
Result: The ”Properties – CP 444” dialog box appears.
Cancel Help
3. Set the trace options. To get more information on this, click the ”Help”
button.
4. Start the trace by clicking the ”Trigger Trace” button.
Result: The data of the MMS trace log is saved in a file on the hard disk.
5. To stop the recording, clear the check box in the ”Trace Options” group,
and click the ”Trigger Trace” button again.
6. To retrieve the trace data, proceed as follows:
– Insert a floppy disk in the CP 444’s drive.
Note: All the data on the floppy disk will be deleted.
– Click the ”Retrieve Trace Data” button.
Result: The trace data is compressed and saved on the floppy disk. The
access LED on the floppy disk drive indicates when the data transfer is
completed.
7. To evaluate the trace data, insert the floppy disk containing the recorded
trace data in the drive of your programming device/PC, and click the
”Decode Trace” button.
Result: The trace data is decompressed and displayed in the Wordpad text
editor.
Trace data
mms_op_error returns : 0x6702
Error mv_write_variables: MMS VMI : Type Name
+++ CFB WRITE MMS REQUEST FAILED–DATA DEFINITION. ON PLC MAY NOT BE O.K!
+++ Local Error = 0x1203
Trace data
*******************
Logging started DD\MM\YY 5\1\1994 Time 22:46:58:700
****************
Description The programming example is not described in this edition of the manual. You
will find a detailed description of how to configure the CP 444 using the
Configuration for CP 444 parameterization interface and how to program the
user program using STEP 7 in the beispiel.doc file.
You will find beispiel.doc in the directory of the Ag1 project (access
via SIEMENS\STEP7\EXAMPLE\CP444AG1 in Windows95 Explorer).
CP 444 Technical The table below contains the technical specifications of the CP 444.
Specifications
Table A-1 Technical Specifications of the CP 444
Technical Specifications
Dimensions W H D (mm) 50 290 210
Weight Approx. 2.08 kg
Current input from backplane bus Max. 3.1 A
Power loss Typically 15.6 W
Interface
Front connector (IF 2) Screw-type 15-pin subminiature D female
connector in compliance with the IEEE 802.3
Ethernet standard
Transmission rate 10 Mbps in accordance with IEEE 802.3
Line length (to transceiver) Max. 50 m with connecting cable 727-1
Max. 100 m with industrial twisted-pair
installation cable
Pin Assignment: The table below contains the assignment of the 15-pin subminiature D female
15-Pin connector (IF 2) on the front panel of the CP 444.
Subminiature D
The pins are assigned in accordance with the IEEE 802.3 Ethernet standard.
Female Connector
Transceiver If you want to make your own connecting cables for the transceiver, please
Connecting Cables note that you must only use shielded connector casings. To ensure EMC
(electromagnetic compatibility), the cable shielding must be connected to
each connector casing over a large area.
Note
The 15-pin subminiature D female connector of the CP 444 does not provide
power ()15 V) for a transceiver. When the CP 444 is connected to a
transceiver, the transceiver must also be connected via a separate power
supply.
Introduction This chapter gives the certificates and approvals of the CP 444 and the most
important standards it complies with.
IEC 1131 The CP 444 communication processor fulfills the requirements and criteria of
IEC 1131, Part 2.
CE Marking Our products fulfill the requirements and safety objectives of the following
EC Directives and comply with the harmonized European standards (EN)
published for stored-program controllers in the official journals of the
European Communities:
89/336/EEC Electromagnetic Compatibility Directive (EMC Directive)
73/23/EEC Low Voltage Directive (for electrical equipment)
The EC Declarations of Conformity are available to the relevant authorities
at the following address:
Siemens Aktiengesellschaft
Bereich Automatisierungstechnik
A&D AS E 14
Postfach 1963
D-92209 Amberg
Area of In accordance with this CE marking, the CP 444 has the following area of
Application application:
FM Approval The following approval has been obtained for the S7-300:
Factory Mutual Approval Standard Class Number 3611, Class I, Division 2,
Group A, B, C, D.
Warning
! Personal injury or property damage can result.
In hazardous areas, personal injury or property damage can result if you
create or break an electrical circuit during operation of an S7-300 (for
example, by means of plug-in connections, fuses, switches).
Do not create or break live electric circuits unless you are certain there is no
danger of explosion.
Warning
! WARNING - DO NOT DISCONNECT WHILE CIRCUIT IS LIVE
UNLESS LOCATION IS KNOWN TO BE NON-HAZARDOUS.
Implementation Table C-1 shows you the device information of the CP 444.
Information
Table C-1 Device Information of the CP 444
Introduction The tables below contain the service conformance blocks of the CP 444.
The last column in each table indicates whether the service is supported as a
client, a server or both. A dash (–) means the service is not supported by the
CP 444.
Environment Table C-2 provides you with an overview of the environment management
Management services (for association management).
VMD Support Table C-3 provides you with an overview of the VMD support services
Services (general VMD services).
Variable Access Table C-4 provides you with an overview of the variable access services.
Services
Table C-4 Variable Access Services
Domain Table C-5 provides you with an overview of the domain management
Management services.
Services
Table C-5 Domain Management Services
Program Table C-6 provides you with an overview of the program invocation services.
Invocation
Services
Table C-6 Program Invocation Services
Event Management Table C-7 provides you with an overview of the event management services.
Services
Table C-7 Event Management Services
Semaphore Table C-8 provides you an overview of the semaphore management services.
Management
Services
Table C-8 Semaphore Management Services
Journal Table C-9 provides you an overview of the journal management services.
Management
Services
Table C-9 Journal Management Services
File Access Table C-10 provides you with an overview of the file access services.
Services
Table C-10 File Access Services
Literature on On the following pages, you will find a comprehensive review of:
SIMATIC S7
Manuals that you require for configuring and programming the S7-400
Technical overviews that give you the fundamentals on SIMATIC S7 and
STEP 7
Reference books whose scope goes beyond S7-400
Table D-1 Manuals You Require for Configuring and Programming the S7-400
Title Contents
Programming with STEP 7 The programming manual gives you the fundamentals on the design of
Manual the operating system and of an S7 CPU user program. 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.
Configuring Hardware and The STEP 7 manual explains the principles for using the STEP 7
Communication Connections STEP 7 automation software and its functions. Novice users of STEP 7 and
Manual experienced users of STEP 5 are provided with an overview of the
configuration, programming and setup of an S7-300/400. When working
with the software, you can use the on-line help system, which provides
detailed information on how to use the software.
Statement List (STL) for S7-300 and The manuals for the STL, LAD and SCL packages each comprise the
S7-400 user manual and the language description. To program an S7-300/400,
Programming Manual you need only one of the languages, but, if required, you can switch
Ladder Logic (LAD) for S7-300 and between languages within a project. If you are using the language for the
S7-400 first time, it is advisable to use the manual to familiarize yourself with the
Programming Manual programming principles.
When working with the software, you can use the on-line help system,
Structure Control Language (SCL)1 for
which provides detailed information on how to use the associated
S7-300 and S7-400
editors/compilers.
Programming Manual
GRAPH1 for S7-300 and S7-400 The GRAPH, HiGraph and CFC languages provide additional ways of
Programming Sequential implementing sequential function charts, state diagrams or graphical
Manual interconnections of blocks. Each manual comprises instructions for the
user and a language description. If you are using the language for the first
HiGraph1 for S7-300 and S7-400 time, it is advisable to consult the manual to familiarize yourself with the
Programming State Graphs programming principles. When working with the software, you can also
Manual use the on-line help system (except with HiGraph), which provides
detailed information on how to use the editors/compilers.
Continuous Function Charts1 for S7 and
M7
Programming Continuous Function
Charts
Manual
System Software for S7-300 and S7-400 The S7 CPUs have system and standard functions integrated in the
Systems and Standard Functions operating system that you can use when programming in any of the
Reference Manual available languages (STL, LAD and SCL). The manual provides you
with an overview of the functions available with S7 and, for reference
purposes, detailed interface descriptions for use in your user program.
1 Optional packages for S7-300/400 system software
Technical Table D-2 contains technical overviews that provide you with an overview of
Overviews the S7-400 and STEP 7.
Technical Overviews
S7-400 Programmable Controller
Configuration and Application
S7-300/400 Programmable Controllers
Programming
Reference Books Table D-3 contains a selection of reference books you can order either
directly from Siemens or from a bookstore.
C
CE, marking, A-4
N
H
Numbers of the instance DBs, 8-21
Hardware components, 1-3
Hardware reset, 10-4
O
I Operating characteristics, 10-3
Order numbers, B-1
Identify, 6-5, 6-6
IDENTIFY FB, 6-6
IEC 1131, A-4
InformationReport, 7-5, 7-7 P
Initiation type, active, passive initiation, 5-2, Parameter block
8-11 ”Asso”, 8-12
Installation guidelines, 4-1 ”Data type” declarations, 8-22
Installing the configuration software, 8-2 ”Instance DBs”, 8-21
Installing the CP 444, 4-3 ”Local”, 8-13
Interface, 4-6 ”MMS”, 8-10
ISO/OS reference model, 2-2 ”Remote”, 8-14
”Subnet”, 8-9
”Transport”, 8-10
L structure, 8-8
LED displays, 1-6
LEDs, 11-3
Library, 9-3
Literature on SIMATIC S7, D-1