Siemens CP 243-2 User Manual

0 (0)
Siemens CP 243-2 User Manual

SIMATIC NET

CP 243-2

AS-Interface Master

Manual

AS-Interface

Industrial Ethernet

PROFIBUS

AS-Interface

Preface Contents

Technical Description and

Installation Instructions

Interface to the User Program in the S7-200 CPU

Access to the Data of the AS-i

Slaves

Signaling Errors and Diagnostics in the User Program

Command Interface

Eliminating Problems /

Error Displays

Appendix

AS-Interface Protocol Implementation Conformance Statements

References

Note on the CE Mark

Support and Training

Glossary, Index

1

2

3

4

5

6

A B C D

07/2000 C79000-G8976-C142 Release 02

Safety Guidelines

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 qualifiedpersonnel 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 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.

Copyright E Siemens AG 1999 All rights reserved

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 createdby patent grant or registration of a utility model or design, are reserved.

A&D

Industrial Automation Systems Postfach 4848, D-90327Nürnberg

Disclaimer of Liability

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 improvementare welcomed.

Technical data subject to change.

E Siemens AG 1999

SiemensAktiengesellschaft

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.

SIMATIC NET CP 243-2 AS-i Master

i

C79000-G8976-C142/02

Preface

-

ii

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Contents

1

Technical Description and Installation Instructions . . . . . . . . . . . . . . . . . . . . . . .

1-1

 

1.1

General Notes on Operation ± Safety Warnings . . . . . . . . . . . . . . . . . . . . .

1-2

 

1.2

Uses of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-3

 

1.3

Technical Specifications of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-5

 

1.4

Installing the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-6

 

1.5

Front Panel ± Access to all Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-7

 

1.6

Terminal Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-8

 

1.7

Modes of the CP 243-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-10

 

1.8

Displays and Operator Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-11

 

1.8.1

Status Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-12

 

1.8.2

Slave Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-14

 

1.9

Configuring the AS-Interface with the SET Button . . . . . . . . . . . . . . . . . . . .

1-16

2

Interface to the User Program in the S7-200 CPU . . . . . . . . . . . . . . . . . . . . . . . . . .

2-1

 

2.1

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-2

 

2.2

Addressing the CP 243-2 in the S7-200 CPU . . . . . . . . . . . . . . . . . . . . . . .

2-4

 

2.3

Meaning of the Data in the Digital Module . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-7

 

2.3.1

Identification Register in the Digital Module . . . . . . . . . . . . . . . . . . . . . . . . .

2-8

 

2.3.2

Error Register in the Digital Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-9

 

2.3.3

Status Byte (Input Register 8DI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-10

 

2.3.4

Control Byte (Output Register 8DO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-11

 

2.4

Meaning of the Data in the Analog Module . . . . . . . . . . . . . . . . . . . . . . . . . .

2-12

 

2.4.1

Identification Register in the Analog Module . . . . . . . . . . . . . . . . . . . . . . . . .

2-13

 

2.4.2

Error Register in the Analog Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-14

 

2.5

Access to the Analog Input and Output Words . . . . . . . . . . . . . . . . . . . . . . .

2-16

 

2.5.1

Analog Input Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-18

 

2.5.2

Analog Output Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-21

3

Access to the Data of the AS-i Slaves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-1

 

3.1

Access to the Binary Data of the AS-i Slaves . . . . . . . . . . . . . . . . . . . . . . . .

3-2

 

3.1.1

Addressing the AS-i Slaves in the User Program . . . . . . . . . . . . . . . . . . . .

3-2

 

3.1.2

Access to the AS-i User Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-7

3.2Access to the Analog Data of the AS-i Slaves

 

(Slaves complying with Profile 7.3 or 7.4) . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-8

3.2.1

Addressing the Analog AS-i Slaves in the User Program . . . . . . . . . . . . . .

3-8

3.2.2

Access to the AS-i Analog Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-15

SIMATIC NET CP 243-2 AS-i Master

iii

C79000-G8976-C142/02

Contents

4

Signaling Errors and Diagnostics in the User Program . . . . . . . . . . . . . . . . . . . .

4-1

 

4.1

Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-2

 

4.2

Example: Reading the Delta List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-3

5

Command Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-1

 

5.1

Command interface of the CP 243-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-2

 

5.2

Description of the AS-i Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-7

 

5.2.1

Set_Permanent_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-13

 

5.2.2

Get_Permanent_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-14

 

5.2.3

Write_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-15

 

5.2.4

Read_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-16

 

5.2.5

Store_Actual_Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-17

 

5.2.6

Set_Extended_Permanent_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-18

 

5.2.7

Get_Extended_Permanent_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-19

 

5.2.8

Store_Actual_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-20

 

5.2.9

Get_Extended_Actual_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-21

 

5.2.10

Set_LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-22

 

5.2.11

Set_Offline_Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-23

 

5.2.12

Select_Autoprogramming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-24

 

5.2.13

Set_Operation_Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-25

 

5.2.14

Change_AS-i_Slave_Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-26

 

5.2.15

Get_AS-i_Slave_Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-27

 

5.2.16

Get_LPS, Get_LAS, Get_LDS, Get_Flags . . . . . . . . . . . . . . . . . . . . . . . . . .

5-29

 

5.2.17

Get_Extended_Total_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-32

 

5.2.18

Store_Extended_Total_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-37

 

5.2.19

Write_Extended_Parameter_List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-43

 

5.2.20

Read_Extended_Parameter_Echo_List . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-45

 

5.2.21

Read_Version_ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-47

 

5.2.22

Read_AS-i_Slave_ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-48

 

5.2.23

Read_AS-i_Slave_ID1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-49

 

5.2.24

Write_AS-i_Slave_Extended_ID1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-50

 

5.2.25

Read_AS-i_Slave_ID2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-51

 

5.2.26

Read_AS-i_Slave_I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-52

 

5.2.27

Get_LPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-53

 

5.2.28

Write_AS-i_Slave_Parameter_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-54

 

5.2.29

Read_AS-i_Slave_Parameter_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-55

 

5.2.30

Read_AS-i_Slave_ID_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-56

 

5.2.31

Read_AS-i_Slave_Diagnostic_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-57

 

5.2.32

Read_Data_and_Delta_List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-58

6

Dealing with Problems / Error Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-1

 

6.1

Replacing a Defective AS-Interface Slave/Automatic Address Programming

. . .

 

 

6-2

 

 

6.2

Error Displays of the CP 243-2 / Remedying Errors . . . . . . . . . . . . . . . . . .

6-3

iv

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Contents

A

AS-Interface Protocol Implementation Conformance Statement (PICS) . . . . .

A-1

B

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B-1

C

Notes on the CE Mark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

C-1

D

SIMATIC NET ± Support and Training . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

D-1

 

Glossary

 

 

Index

 

SIMATIC NET CP 243-2 AS-i Master

v

C79000-G8976-C142/02

Contents

vi

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Technical Description and Installation

1

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:

SThe applications

SThe technical specifications

SDisplay and control elements

SConfiguration

SIMATIC NET CP 243-2 AS-i Master

1-1

C79000-G8976-C142/02

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:

SVDE 0100 Part 410 = HD 384-4-4 = IEC 364-4-41 (as functional extra-low voltage with safe isolation) or

SVDE 0805 = EN60950 = IEC 950 (as safety extra-low voltage SELV) or

SVDE 0106 Part 101

1-2

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Technical Description and Installation Instructions

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.

S7-22x CPU

CP 243-2

 

 

AS-i

 

master

Passive module

Active module

(without slave ASIC)

(with slave ASIC)

AS-i power supply

 

Actuator/sensor

 

with slave ASIC

 

AS-i cable

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.

SIMATIC NET CP 243-2 AS-i Master

1-3

C79000-G8976-C142/02

Technical Description and Installation Instructions

Components Supplied

The CP 243-2 product includes the following components:

SCP 243-2

SProduct information bulletin on the CP 243-2

1-4

SIMATIC 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

Explanation/Values

 

 

AS-i cycle time

5 ms with 31 slaves

 

10 ms with 62 AS-i slaves using the extended

 

addressing mode

 

 

Configuration of the AS-Interface

AS-i master profiles supported

Attachment to the AS-i cable

Address range

By a button on the front panel or using the total configuration command (refer to the description of the AS-i commands)

M1e

Via an S7-200 terminal block

Permitted current loading from terminal 1 to 3 or from terminal 2 to 4 maximum 3 A

One digital module with 8DI/8DO and one analog module with 8AI/8AO

Power supply SIMATIC backplane bus Current consumption from 5 V DC Power supply from the AS-i cable Current consumption from the AS-i cable Power consumption

Ambient conditions

SOperating temperature

STransport and storage temperature

SRelative humidity

Construction

SType of protection

SModule format

SDimensions (W x H x D) in mm

SWeight

5 V DC

max. 220 mA

According to the AS-i specification

max. 100 mA

3.7 W

Horizontal installation: 0 to°C Vertical installation: 0 to 45°C ±40°C to +70°C

max. 95% at +25°C

IP 20

S7-200 expansion module

71 x 80 x 62 approx. 250 g

SIMATIC NET CP 243-2 AS-i Master

1-5

C79000-G8976-C142/02

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:

SExpandability with several expansion modules, For further information, refer to /4/;

SElectrical restrictions

The maximum current consumption from the S7 backplane bus must not be exceeded. Please use the calculation table in /4/.

1-6

SIMATIC 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.

B slave display

Status display

Group display

Slave display

Unused terminal block

SET

button

Display

button

AS-i cable connection

Figure 1-2

Connections, Operator Controls and Interpreting the Displays

For more detailed information, refer to the following sections.

SIMATIC NET CP 243-2 AS-i Master

1-7

C79000-G8976-C142/02

Technical Description and Installation Instructions

1.6Terminal Block

Connections

The CP 243-2 has the following connections:

STwo connections to the AS-i cable (bridged internally)

SOne connection for functional ground

The terminals are located under the cover of the front panel of the CP 243-2.

AS-i cables

Functional ground

Figure 1-3 Connecting 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.

1-8

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Technical Description and Installation Instructions

Note

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.

SIMATIC NET CP 243-2 AS-i Master

1-9

C79000-G8976-C142/02

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

SIMATIC 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:

SAfter you have displayed the last group (slave 30B, 31B) by pressing the DISPLAY button or

SIf 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.

SThe 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.

SThe 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.

SIMATIC NET CP 243-2 AS-i Master

1-11

C79000-G8976-C142/02

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.

Meaning of the LEDs

The LEDs have the following meaning:

Table 1-2

 

 

 

 

 

 

 

 

 

LED (color)

Status

 

 

Meaning

 

 

 

CM (yellow)

Configuration

This displays the operating mode of the CP 243-2.

 

Mode

S

LED lit:

Configuration mode

 

 

 

 

S

LED unlit:

Protected mode

 

 

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

In the protected mode of the CP 243-2, this indicates that automatic

 

available

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).

 

 

 

 

CER (yellow)

Configuration

This LED indicates whether the slave configuration detected on the

 

Error

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:

 

 

S When a configured AS-i slave does not exist on the AS-i cable (for

 

 

 

example failure of the slave).

 

 

S When an AS-i slave exists on the AS-i cable but it was not

 

 

 

previously configured.

 

 

S 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.

 

 

S When the CP 243-2 is in the offline phase.

 

 

 

APF (red)

AS-i Power Fail

This 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)

Power

The PWR LED (power) indicates that the CP 243-2 is supplied with

 

 

power.

 

 

 

 

 

 

1-12

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Technical Description and Installation Instructions

Table 1-2 , continued

 

 

 

 

LED (color)

Status

Meaning

 

 

 

SF (red)

System error

This LED is lit in the following situations:

 

 

S The CP 243-2 has detected an internal problem (for example a

 

 

defective EEPROM).

 

 

S 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.

 

 

 

SIMATIC NET CP 243-2 AS-i Master

1-13

C79000-G8976-C142/02

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

SIf the CP 243-2 is in the configuration mode, all detected AS-i slaves are displayed.

SIf 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

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Technical Description and Installation Instructions

Example of a Slave Display

From the display shown below, you can obtain the following information:

SThe 2nd group LED is lit, i.e. the 2nd line from the top (corresponds to 21 = 2DEC; 2. group of 5; slaves 5±9).

SIf the 2nd and 4th LEDs are also lit within the slave display, this means that slaves 6 and 8 are active.

SIf the ªBº LED is also lit, then in this example, this would mean that slaves 6B and 8B are active.

The intersecting points mark slave 6 and slave 8.

LED/column 2 + 4 2nd group

Figure 1-4 Example of a Slave Display

SIMATIC NET CP 243-2 AS-i Master

1-15

C79000-G8976-C142/02

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:

SConfiguration mode

SProtected 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:

SThe addresses of the AS-i slaves

SThe ID codes (ID code, extended ID1 code, extended ID2 code)

SThe I/O configuration

SThe 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

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Technical Description and Installation Instructions

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:

SThe S7-22x CPU must be set to STOP (PLC_RUN=0).

SThe 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

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:

SNo AS-i slaves are configured;

SAll AS-i slave parameters are set;

SAutomatic address programming is activated (bit AUTO_ADDRESS_ENABLE = 1).

SIMATIC NET CP 243-2 AS-i Master

1-17

C79000-G8976-C142/02

Technical Description and Installation Instructions

-

1-18

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Interface to the User Program in the

2

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.

SIMATIC NET CP 243-2 AS-i Master

2-1

C79000-G8976-C142/02

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:

SDigital module 8DI/8DO

SAnalog module 8AI/8AO

S7-200 CPU

User program

AS-i cable

CP 243-2

Digital module (8DI/8DO)

SStatus/error information

SControl of the CP

SBank selection

Analog module (8AI/8AO)

SBinary input/output data of the AS-i slaves

SAnalog input/output data of the AS-i slaves

SAS-i diagnostic information (delta list)

SAS-i commands and response data

AS-i master ÍÍÎÎ

ÍÍÎÎ ÍÍÎÎ ÍÍÎÎ

Figure 2-1

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

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Interface to the User Program in the S7-200 CPU

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.

SIMATIC NET CP 243-2 AS-i Master

2-3

C79000-G8976-C142/02

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:

SThe type of S7-200 CPU being used

SThe 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.

SExample of a CPU 222 and a CP 243-2

CPU 222

 

 

 

CP 243-2

 

 

 

 

 

 

 

 

 

8DI

 

8 DO

8DI

8 DO

 

8AI

8AO

 

 

 

 

 

 

 

 

I0.0

 

Q0.0

I1.0

Q1.0

 

AIW0

AQW0

 

 

 

 

 

 

 

 

I0.1

 

Q0.1

I1.1

Q1.1

 

AIW2

AQW2

 

 

 

 

 

 

 

 

I0.2

 

Q0.2

I1.2

Q1.2

 

AIW4

AQW4

 

 

 

 

 

 

 

 

I0.3

 

Q0.3

I1.3

Q1.3

 

AIW6

AQW6

 

 

 

 

 

 

 

 

I0.4

 

Q0.4

I1.4

Q1.4

 

AIW8

AQW8

 

 

 

 

 

 

 

 

I0.5

 

Q0.5

I1.5

Q1.5

 

AIW10

AQW10

 

 

 

 

 

 

 

 

I0.6

 

Q0.6

I1.6

Q1.6

 

AIW12

AQW12

 

 

 

 

 

 

 

 

I0.7

 

Q0.7

I1.7

Q1.7

 

AIW14

AQW14

 

 

 

 

 

 

 

 

2-4

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Loading...
+ 120 hidden pages