This manual contains notices which you should observe to ensure your own personal safety, as well as to
protect the product and connected equipment. These notices are highlighted in the manual by a warning
triangle and are marked as follows according to the level of danger:
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 or property damage can result if proper precautions are not taken.
Note
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
!
Trademarks
The reproduction, transmission or use of this document or its
contents is not permitted without express written authority.
Offenders will be liable for damages. All rights, including rights
created by patent grant or registration of a utility model or design, are
reserved.
Siemens AG
A&D
Industrial Automation Systems
Postfach 4848,D-90327 Nürnberg
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.
SIMATICR, SIMATIC HMIR and SIMATIC NETR are registered trademarks of the SIEMENS AG.
Third parties using for their own purpose any other names in this document which refer to trademarks
might infringe upon the rights of the trademark owners.
Disclaimer of LiabilityCopyright ESiemens AG 1999 All rights reserved
We have checked the contents of this manual for agreement with the
hardware and software described. Since deviations cannot be
precluded entirely, we cannot guarantee full agreement. However,
the data in this manual are reviewed regularly and any necessary
corrections included in subsequent editions. Suggestions for
improvement are welcomed.
Technical data subject to change.
E Siemens AG 1999
Siemens Aktiengesellschaft C79000-G8976-C142
Preface
Purpose of the Manual
This manual supports you when using the CP 243-2 module. It explains how to
access AS-Interface actuators and AS-Interface sensors from an S7-22x CPU via
this module.
We recommend the following procedure when...
...You want an overall picture of the AS-Interface.
– First read the ‘AS-Interface Introduction and Basic Information’ manual (not
part of this documentation package). This contains general information
about the AS-Interface, abbreviated to AS-i in the following chapters.
...You want to set up an AS-i system and include the CP 243-2 module in it:
– You will find the relevant information about connecting and operating the
CP 243-2 in Chapter 3.
Requirements
To understand this document, you should be familiar with the manual ‘AS-Interface
Introduction and Basic Information’ (part of this documentation package).
Diskette with Sample Programs
The diskette supplied with this manual (S7-200 PROGR) contains sample
programs that will help you when programming the CP 243-2. These sample
programs were written with STEP 7-Micro/WIN32 and can be run on an S7-22x
CPU.
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
v
Contents
vi
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Technical Description and Installation
Instructions
This chapter outlines the basic functions of the CP 243-2 and explains how the
module is installed and started up.
You will get to know the following properties of the CP 243-2:
The applications
The technical specifications
Display and control elements
Configuration
1
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-1
Technical Description and Installation Instructions
1.1General Notes on Operation – Safety Warnings
Caution
!
!
When handling and installing the CP 243-2, make sure that you keep to the ESD
guidelines.
The CP 243-2 must only be connected when the AS-i power supply unit is turned
off.
Caution
Noise immunity/grounding
To ensure the noise immunity of the CP 243-2, the CP 243-2 and the AS-i power
supply unit must be correctly grounded.
Caution
!
The AS-i power supply unit used must provide a low voltage, safely isolated from
the network. This safe isolation can be implemented according to the following
requirements:
VDE 0100 Part 410 = HD 384-4-4 = IEC 364-4-41
(as functional extra-low voltage with safe isolation) or
VDE 0805 = EN60950 = IEC 950
(as safety extra-low voltage SELV) or
VDE 0106 Part 101
1-2
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1.2Uses of the Module
DP Slave and AS-i Master
The CP 243-2 module can be operated in the S7-200 programmable controller. It
allows the attachment of an S7-200 to the AS-Interface (as AS-i master). Both
interfaces can be used independent of each other.
Technical Description and Installation Instructions
AS-i power supply
Actuator/sensor
with slave ASIC
S7-22x CPU
Passive module
(without slave ASIC)
AS-i cable
CP 243-2
AS-i
master
Active module
(with slave ASIC)
AS-i branch
Figure 1-1 Example of a System Configuration with the CP 243-2
System Integration and Structure
The accompanying product information lists the CPUs with which the CP 243-2
can be operated.
From the point of view of the S7-22x CPU, the CP 243-2 represents two expansion
modules (an 8DI/8DO digital module and an 8AI/8AO analog module).
The design of the CP 243-2 corresponds to that of a standard expansion module
for an S7-200.
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-3
Technical Description and Installation Instructions
Components Supplied
The CP 243-2 product includes the following components:
CP 243-2
Product information bulletin on the CP 243-2
1-4
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Technical Description and Installation Instructions
1.3Technical Specifications of the Module
The technical specifications of the CP 243-2 module are as follows:
Table 1-1
Feature
AS-i cycle time5 ms with 31 slaves
10 ms with 62 AS-i slaves using the extended
addressing mode
Configuration of the AS-InterfaceBy a button on the front panel or using the total
configuration command (refer to the description of
the AS-i commands)
AS-i master profiles supportedM1e
Attachment to the AS-i cableVia an S7-200 terminal block
Permitted current loading from terminal 1 to 3 or
from terminal 2 to 4 maximum 3 A
Address rangeOne digital module with 8DI/8DO and one analog
module with 8AI/8AO
Power supply SIMA TIC backplane bus
Current consumption from 5 V DC
Power supply from the AS-i cable
Current consumption from the AS-i cable
Power consumption3.7 W
Ambient conditions
5 V DC
max. 220 mA
According to the AS-i specification
max. 100 mA
Transport and storage temperature–40°C to +70°C
Relative humiditymax. 95% at +25°C
Construction
Type of protectionIP 20
Module formatS7-200 expansion module
Dimensions (W x H x D) in mm71 x 80 x 62
Weightapprox. 250 g
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-5
Technical Description and Installation Instructions
1.4Installing the Module
Slots in the S7-200
The CP 243-2 can be inserted in all slots for expansion modules in the S7-200
programmable controller (CPUs 22x).
Possible Restrictions
There may, however, be restrictions depending on the CPU or power supply unit
being used in terms of the following:
Expandability with several expansion modules,
For further information, refer to /4/;
Electrical restrictions
The maximum current consumption from the S7 backplane bus must not be
exceeded. Please use the calculation table in /4/.
1-6
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Technical Description and Installation Instructions
1.5Front Panel – Access to all Functions
Connection, Display and Control Elements
On the front panel, you have access to all the connection, display and control
elements of the CP 243-2.
During operation, the connection and control elements are protected by a front
cover.
Unused terminal block
B slave display
Status display
Group display
Slave display
Figure 1-2
SET
button
Display
button
AS-i cable connection
Connections, Operator Controls and Interpreting the Displays
For more detailed information, refer to the following sections.
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-7
Technical Description and Installation Instructions
1.6Terminal Block
Connections
The CP 243-2 has the following connections:
Two connections to the AS-i cable (bridged internally)
One connection for functional ground
The terminals are located under the cover of the front panel of the CP 243-2.
AS-i cables
Figure 1-3Connecting the AS-i Cable
Connections to the AS-i Cable
The CP 243-2 has two connections for AS-i cables that are jumpered internally on
the CP 243-2.
This allows the CP 243-2 to be “looped” into the AS-i cable.
Caution
!
The load capacity of the AS-i contacts is a maximum of 3 A. If this value is exceed
on the AS-i cable, the CP 243-2 must not be “looped into” the AS-i cable but must
be connected by a separate cable (in this case only one pair of terminals of the
CP 243-2 is used). The CP 243-2 must be connected to the grounding conductor
via the ground terminal.
Functional ground
1-8
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Note
Technical Description and Installation Instructions
Functional ground
(terminal )
The CP 243-2 has a connection for functional ground. This connector should be
connected to the PE conductor with as little resistance as possible.
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-9
Technical Description and Installation Instructions
1.7Modes of the CP 243-2
Standard Operation
In this type of operation, the user program accesses the user data of the AS-i
slaves and the diagnostic data of the CP 243-2. Programming is simple and this
type of operation is adequate for the majority of automation tasks.
In standard operation, no commands or special parameters are transferred to the
slaves. This type of operation corresponds to the profile M0 of the AS-i master
specification.
Extended Operation
In extended operation, the user program uses the command interface of the
CP 243-2.
This means that the entire range of functions in the AS-i system is available to the
PLC programmer. In particular, the AS-i master calls (for example to assign
parameters to slaves) are available. This type of operation corresponds to the
profile M1e of the AS-i master specification.
1-10
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Technical Description and Installation Instructions
1.8Displays and Operator Controls
Changing the Display Status – DISPLAY Button
You can change between the status display (basic status), slave display and
PROFIBUS display with the DISPLAY button. Each time you press the button, you
change to the next display status finally returning to the initial status.
In the slave display, the slaves on the AS-Interface are displayed in groups of 5
slaves. You can move on the display to the next group with the DISPLAY button.
First the standard or A slaves are displayed and then the B slaves (“B” LED is lit).
You return to the status display as follows:
After you have displayed the last group (slave 30B, 31B) by pressing the
DISPLAY button or
If you do not press the DISPLAY button for a longer period of time
(approximately 8 minutes).
Meaning of the LEDs
The front panel of the CP 243-2 has two rows of LEDs.
The LEDs CM, AUP, CER, APF, PWR and SF in the upper row represent the
status display.
The B LED indicates B slaves. It is lit when the slave display is active if B
slaves are displayed.
The first five LEDs of the lower row indicate the connected slaves (slave
display).
The other three LEDs indicate the slave group.
The meaning of the LEDs depends on the status of the group displays.
If all the LEDs of the group display are off, the status display is active; in other
words, the LEDs CM, AUP, CER, APF, PWR and SF indicate the status of the CP
243-2.
If at least one of the LEDs of the group display is lit, the status display goes off
(exception: “PWR” LED remains lit) and the slave display is active.
SET Button
The SET button is required to configure the CP 243-2.
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-11
Technical Description and Installation Instructions
1.8.1Status Display
Interpreting the Status Display
The status display is active when no group LEDs are lit.
The status display is the default display in the basic status of the CP 243-2.
The configuration mode is only required when putting the CP 243-2
into operation. In the configuration mode, the CP 243-2 activates all
connected AS-i slaves and exchanges data with them. For more
information about the configuration mode, refer to Section 1.9.
AUP (green)Autoprog
available
CER (yellow)Configuration
Error
In the protected mode of the CP 243-2, this indicates that automatic
address programming of an AS-i slave is possible. The automatic
address programming makes it much easier to exchange a defective
AS-i slave on the AS-i cable (for more detailed information refer to
Section 6.1).
This LED indicates whether the slave configuration detected on the
AS-i cable matches the expected configuration (LPS). If they do not
match, the CER LED is lit.
The CER LED is lit in the following situations:
When a configured AS-i slave does not exist on the AS-i cable (for
example failure of the slave).
When an AS-i slave exists on the AS-i cable but it was not
previously configured.
When a connected AS-i slave has different configuration data (I/O
configuration, ID code, extended ID1 code, extended ID2 code)
from the AS-i slave configured on the CP 243-2.
When the CP 243-2 is in the offline phase.
APF (red)AS-i Power FailThis indicates that the voltage supplied by the AS-i power supply unit
on the AS-i cable is too low or has failed.
PWR (green)PowerThe PWR LED (power) indicates that the CP 243-2 is supplied with
power.
1-12
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Technical Description and Installation Instructions
Table 1-2, continued
LED (color)MeaningStatus
SF (red)System errorThis LED is lit in the following situations:
The CP 243-2 has detected an internal problem (for example a
defective EEPROM).
The CP 243-2 is unable to make the currently required mode
change (for example an AS-i slave with address 0 exists) when a
button is pressed.
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-13
Technical Description and Installation Instructions
1.8.2Slave Display
Interpreting the Slave Display Status
You can switch over to the slave display mode used by pressing the DISPLAY
button. You switch from group to group by pressing the DISPLAY button again: The
slave display is active when at least one group LED is lit.
Characteristics of the Slave Display
If the CP 243-2 is in the configuration mode, all detected AS-i slaves are
displayed.
If the CP 243-2 is in the protected mode, all active AS-i slaves are displayed.
In the protected mode, failed or existing but unconfigured AS-i slaves are
indicated by the corresponding LED flashing.
Display Statuses in Detail
The AS-i slaves are displayed in groups of five. The three group LEDs indicate
which group of 5 is being displayed in binary code. The 5 LEDs of the slave display
then indicate the detected or active AS-i slaves within the group.
To find out which slaves are active, select the group of 5 (line) corresponding to the
lit group LEDs. The currently lit LEDs of the slave display then indicate which
slaves within this group are currently active.
If a group of B slaves is displayed, the “B” LED is also lit.
1-14
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Example of a Slave Display
From the display shown below, you can obtain the following information:
The 2nd group LED is lit, i.e. the 2nd line from the top (corresponds to 21 =
2
; 2. group of 5; slaves 5–9).
DEC
If the 2nd and 4th LEDs are also lit within the slave display, this means that
slaves 6 and 8 are active.
If the “B” LED is also lit, then in this example, this would mean that slaves 6B
and 8B are active.
Technical Description and Installation Instructions
The intersecting
points mark slave 6
and slave 8.
LED/column 2 + 4
Figure 1-4Example of a Slave Display
2nd
group
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
1-15
Technical Description and Installation Instructions
1.9Configuring the AS-Interface with the SET Button
Interpreting the Display Status
The CP 243-2 distinguishes between two operating modes on the AS-Interface:
Configuration mode
Protected mode
Pressing the SET button changes the operating mode.
Note
The SET button is only effective when the bit PLC_RUN = 0 is set in the control
byte of the CP 243-2. This is always the case when the S7-22x CPU is in the
STOP mode.
Configuration Mode
The configuration mode is used to install and start up an AS-i installation.
If the CP 243-2 is in the configuration mode (CM LED lit), it can exchange data
with every AS-i slave connected to the AS-i cable (except for an AS-i slave with
address ’0’). Newly added AS-i slaves are detected immediately by the master,
activated, and included in cyclic data exchange.
When installation and startup is completed, the CP 243-2 can be switched to the
protected mode using the SET button. At the same time, active AS-i slaves are
configured. The following data are then stored permanently on the CP 243-2:
The addresses of the AS-i slaves
The ID codes (ID code, extended ID1 code, extended ID2 code)
The I/O configuration
The current slave parameters
Protected Mode
In the protected mode, the CP 243-2 exchanges data only with the configured AS-i
slaves. In this sense, “configured” means that the slave addresses and the
configuration data stored on the CP 243-2 match the values of existing AS-i slaves.
1-16
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Note
Changing from the configuration mode to the protected mode is only possible
when there is no slave with address “0” connected to the AS-Interface. If a slave
“0” is connected, the “SF” LED lights up when the SET button is pressed.
Preparing to Configure
Make sure that the following situation applies:
The S7-22x CPU must be set to STOP (PLC_RUN=0).
The CP 243-2 and all AS-i slaves must be connected to the AS-Interface and
supplied with power by the AS-i power supply.
Configuring
Technical Description and Installation Instructions
1. Press the DISPLAY button to set the CP 243-2 display to the “status display”
mode (initial status).
2. Check whether the CP 243-2 is in the “configuration mode”. (”CM” LED lit ). If
not, change the CP 243-2 to the configuration mode using the SET button.
3. By changing to the slave display with the DISPLAY button, you can check
whether all the slaves connected to the AS-Interface exist.
4. Press the SET button. The CP 243-2 is configured.
At the same time, the CP 243-2 is changed to the protected mode; the “CM”
LED goes off.
The “CER” LED also goes off since following configuration, the “expected
configuration” stored on the CP 243-2 matches the “actual configuration” on the
AS-Interface.
Note
Configuring the CP 243-2 during an AS-Interface Power Fail (for example when
the AS-i power supply unit is turned off or when the CP 243-2 is not connected to
the AS-Interface) resets the configuration of the CP 243-2. This has the following
results:
No AS-i slaves are configured;
All AS-i slave parameters are set;
Automatic address programming is activated
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
(bit AUTO_ADDRESS_ENABLE = 1).
1-17
Technical Description and Installation Instructions
1-18
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Interface to the User Program in the
S7-200 CPU
This chapter explains how the CP 243-2 is addressed. You will learn the
significance of the data in the digital and in the analog module and you will learn
how to access the analog inputs and outputs.
2
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
2-1
Interface to the User Program in the S7-200 CPU
2.1Overview
CP 243-2 as Expansion Module in the S7-200
The CP 243-2 occupies 2 consecutive expansion module slots in the S7-200:
Digital module 8DI/8DO
Analog module 8AI/8AO
S7-200 CPU
User program
AS-i cable
Figure 2-1
CP 243-2
Digital module (8DI/8DO)
Status/error information
Control of the CP
Bank selection
Analog module (8AI/8AO)
Binary input/output data of the AS-i slaves
Analog input/output data of the
AS-i slaves
AS-i diagnostic information (delta list)
AS-i commands and response data
AS-i master
Digital Module
The digital module occupies 8 input and 8 output bits in the address area of the
digital inputs and outputs. The S7-200 CPU and the CP 243-2 are coordinated via
the digital module.
The data to be addressed in the analog module by the user program is selected
using bank select bits.
2-2
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Analog Module
The analog module occupies 16 input and 16 output bytes in the address area of
the analog inputs and outputs. Data exchange with the AS-i slaves is handled via
the analog module (see Figure 2-1).
The bank select mechanism means that a larger data area in total can be
addressed in the analog module than the addressable data area in the S7-200
CPU for the expansion module.
Interface to the User Program in the S7-200 CPU
SIMA TIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
2-3
Interface to the User Program in the S7-200 CPU
2.2Addressing the CP 243-2 in the S7-200 CPU
Address Areas
The start addresses of the address areas are determined by the following:
The type of S7-200 CPU being used
The slot of the CP 243-2 in the S7-200.
Examples
The following table contains examples of the addresses of the digital and analog
input/output areas with the possible configurations with a CPU 212 and CPU 214.