cpx terminal

166
Manual Electronics CPX field bus node Type CPX−FB13 Field bus protocol PROFIBUS−DP according to ENɘ50170 CPX terminal Manual 526 428 en 0811c [740 270]

Upload: duongnga

Post on 07-Jan-2017

300 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CPX terminal

Manual Electronics

CPX field bus node

Type CPX−FB13

Field bus protocolPROFIBUS−DPaccording toEN�50170

CPX terminal

Manual526 428en 0811c [740 270]

Page 2: CPX terminal
Page 3: CPX terminal

Contents and general instructions

IFesto P.BE−CPX−FB13−EN en 0811c

Original de. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Edition en 0811c. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Designation P.BE−CPX−FB13−EN. . . . . . . . . . . . . . . . . . . . . . .

Order no. 526 428. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

© (Festo AG�&�Co. KG, D�73726 Esslingen, Germany, 2008)Internet: http://www.festo.comE−Mail: [email protected]

The reproduction, distribution and utilization of this docu−ment as well as the comunication of its contents to otherswithout express authorization is prohibited. Offenders willbe held liable for the payment of damages. All rights re−served in the event of the grant of a patent, utility moduleor design.

Page 4: CPX terminal

Contents and general instructions

II Festo P.BE−CPX−FB13−EN en 0811c

PROFIBUS, PROFIBUS−DP�® are registered trade marks of PROFIBUS International (P.I.)

SIMATIC�® is a registered trade mark of Siemens AG

TORX�® is a registered trade mark of Acument Intellectual Properties, LLC (Manufacturer: Acument Global TechnologiesNorth�America, Sterling Heights, Michigan, USA)

Page 5: CPX terminal

Contents and general instructions

IIIFesto P.BE−CPX−FB13−EN en 0811c

Contents

Intended use VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Target group� VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Service VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Notes on this manual VIII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Important user instructions IX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1. Installation 1−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.1 General instructions on installation 1−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.2 Settings of the DIL switches on the field bus node 1−7 . . . . . . . . . . . . . . . . . . . .

1.2.1 Removing and fitting the cover over the DIL switches 1−7 . . . . . . . . . . .

1.2.2 Settingthe DIL switches 1−8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3 Connecting the field bus 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.1 Field bus cable 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.2 Field bus baud rate and field bus length 1−18 . . . . . . . . . . . . . . . . . . . . .

1.3.3 Field bus interface 1−19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.4 Connection options 1−20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.4 Bus connection with terminating resistors 1−24 . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.5 Pin assignment of power supply 1−25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 6: CPX terminal

Contents and general instructions

IV Festo P.BE−CPX−FB13−EN en 0811c

2. Commissioning 2−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.1 Configuration 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.1.1 General information 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.1.2 Preparing the CPX terminal for the configuration 2−4 . . . . . . . . . . . . . .

2.1.3 Device master file (GSD) and icon files 2−20 . . . . . . . . . . . . . . . . . . . . . .

2.1.4 Configuration with a Siemens master 2−22 . . . . . . . . . . . . . . . . . . . . . . .

2.1.5 Configuration in the Remote Controller operating mode 2−37 . . . . . . . .

2.1.6 Identification and Maintainance 2−39 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2 Parameterisation 2−43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2.1 Parameterisation when switching on 2−43 . . . . . . . . . . . . . . . . . . . . . . . .

2.2.2 Parameterising the CPX terminal with STEP 7 2−46 . . . . . . . . . . . . . . . . .

2.2.3 Parameterisation with the handheld 2−51 . . . . . . . . . . . . . . . . . . . . . . . .

2.2.4 Field bus node CPX−FB13 2−52 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2.5 Application example for parameterisation 2−54 . . . . . . . . . . . . . . . . . . . .

2.3 Checklist for commissioning the CPX terminal with FB13 2−55 . . . . . . . . . . . . . . .

3. Diagnosis 3−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.1 Overview of diagnostic possibilities 3−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.2 Diagnostics via LEDs 3−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.2.1 Fault displays of the bus fault/status LED BF 3−5 . . . . . . . . . . . . . . . . .

3.2.2 Fault displays of the LEDs for system diagnosis PS, PL, SF, M 3−6 . . . .

3.3 Diagnostics via status bits 3−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.4 Diagnostics via the I/O diagnostic interface (STI) 3−9 . . . . . . . . . . . . . . . . . . . . .

3.5 Diagnosis via PROFIBUS−DP 3−10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.5.1 Diagnosis steps 3−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.5.2 Overview of the diagnostic bytes� 3−12 . . . . . . . . . . . . . . . . . . . . . . . . . .

3.5.3 Details on standard diagnostic information 3−15 . . . . . . . . . . . . . . . . . . .

3.5.4 Details of the module−related diagnosis 3−17 . . . . . . . . . . . . . . . . . . . . .

3.5.5 Details of the canal−related diagnosis 3−18 . . . . . . . . . . . . . . . . . . . . . . .

3.6 Fault treatment (�Fail safe") 3−21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.6.1 Siemens SIMATIC S5/S7 3−22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.7 Online diagnosis with STEP 7 3−24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.7.1 Read out diagnostic buffer with STEP 7 (up to V 5.2) 3−24 . . . . . . . . . . .

3.7.2 Device−related diagnosis with STEP 7 (up to V�5.3) 3−26 . . . . . . . . . . . .

Page 7: CPX terminal

Contents and general instructions

VFesto P.BE−CPX−FB13−EN en 0811c

A. Technical appendix A−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.1 Technical specifications of field bus node CPX−FB13 A−3 . . . . . . . . . . . . . . . . . . .

A.2 Start parameters A−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3 Access to the CPX terminal via DPV1 A−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3.1 Reading and writing data records A−9 . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3.2 Data records A−14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3.3 Examples for DPV1 access A−18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B. General DP master B−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1 Operation with the general DP master B−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.1 Bus start B−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.2 Send parameterisation data B−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.3 Check the configuration data� B−7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.4 Transferring input and output data B−10 . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.5 Read diagnostic information B−14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.6 Implemented functions and service access points (SAP) B−15 . . . . . . . .

B.1.7 Bus parameters/reaction times B−16 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.8 Transmission times on the PROFIBUS−DP B−16 . . . . . . . . . . . . . . . . . . . .

C. Index C−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 8: CPX terminal

Contents and general instructions

VI Festo P.BE−CPX−FB13−EN en 0811c

Page 9: CPX terminal

Contents and general instructions

VIIFesto P.BE−CPX−FB13−EN en 0811c

Intended use

The field bus node type CPX−FB13 described in this manualhas been designed exclusively for use as a slave on thePROFIBUS−DP.

The CPX terminal must only be used as follows:

� as designated in industrial applications

� without any modifications by the user. Only the conver�sions or modifications described in the documentationsupplied with the product are permitted.

� in faultless technical condition.

The maximum values specified for pressures, temperatures,electrical data, torques etc. must be observed.

If additional commercially available components such assensors and actuators are connected, the specified limits forpressures, temperatures, electrical data, torques, etc. mustnot be exceeded.

Please comply with the safety regulations of the workers’compensation insurers, technical supervision authorities(TÜV), electrical association (VDE) or corresponding nationalregulations.

Target group�

This manual is intended exclusively for technicians trained incontrol and automation technology who have experience ininstalling, commissioning, programming and diagnosingslaves on PROFIBUS−DP.

Service

Please consult your local Festo Service agent if you have anytechnical problems.

Page 10: CPX terminal

Contents and general instructions

VIII Festo P.BE−CPX−FB13−EN en 0811c

Notes on this manual

This manual contains specific information on installing,configuring, parameterising, commissioning, programmingand diagnosing with the CPX field bus node for PROFIBUS−DPas per EN 50170.

You will find an overview of the structure of userdocumentation on the CPX terminal in the CPX systemdescription.

Further information on the PROFIBUS−DP can be found in:

� set−up guidelines for the PROFIBUS−DP

� manuals of the master manufacturer.

General basic information about the method of operation,fitting, installing and commissioning CPX terminals can befound in the CPX system manual.

Information about further CPX modules can be found in themanual for the relevant module.

Page 11: CPX terminal

Contents and general instructions

IXFesto P.BE−CPX−FB13−EN en 0811c

Important user instructions

Danger categories

This manual contains instructions on the possible dangerswhich may occur if the product is not used correctly. Theseinstructions are marked (Warning, Caution, etc.), printed on ashaded background and marked additionally with a picto�gram. A distinction is made between the following dangerwarnings:

WarningThis means that failure to observe this instruction mayresult in serious personal injury or damage to property.

CautionThis means that failure to observe this instruction mayresult in personal injury or damage to property.

NoteThis means that failure to observe this instruction mayresult in damage to property.

The following pictogram marks passages in the text whichdescribe activities with electrostatically sensitive compo�nents.

Electrostatically sensitive components may be damaged ifthey are not handled correctly.

Page 12: CPX terminal

Contents and general instructions

X Festo P.BE−CPX−FB13−EN en 0811c

Marking special information

The following pictograms mark passages in the textcontaining special information.

Pictograms

Information:Recommendations, tips and references to other sources ofinformation.

Accessories:Information on necessary or sensible accessories for theFesto product.

Environment:Information on environment−friendly use of Festo products.

Text markings

· The bullet indicates activities which may be carried out inany order.

1. Figures denote activities which must be carried out in thenumerical order specified.

� Hyphens indicate general activities.

Page 13: CPX terminal

Contents and general instructions

XIFesto P.BE−CPX−FB13−EN en 0811c

The following product−specific terms and abbreviations areused in this manual:

Term/abbreviation Meaning

AO, AI Analogue output, analogue input

CPX modules Collective term for the various modules which can be integrated in aCPX�terminal

CPX terminal Complete system consisting of CPX modules with or without pneumatics

DIL switches Dual in−line switches consist of several switch elements with which settingscan be made.

DPV1 PROFIBUS extension for acyclic access to system data during running time

F0h Hexadecimal numbers are marked by a low−set �h"

FEC Front end controller

Field bus node Provides the connection to specific field buses. Transmits control signals tothe connected modules and monitors their ability to function

Handheld Handheld programmer for commissioning and service purposes (CPX−MMI)

I/Os Digital inputs and outputs

I/O diagnosticinterface

The I/O diagnostic interface is a bus−independent diagnostic interface at I/Olevel, permitting access to internal data of the CPX terminal

I/O modules Collective term for the CPX modules which provide digital inputs and outputs

O, I Digital output, digital input

Octet Number of address words assigned by the CPX terminal

PLC/IPC Programmable logic controller/industrial PC

SCS, SCO, SCV Short circuit/overload sensor supply, outuputs, valves

Status bits Internal inputs which supply coded common diagnostic messages

Tab.�0/1: CPX−specific terms and abbreviations

Page 14: CPX terminal

Contents and general instructions

XII Festo P.BE−CPX−FB13−EN en 0811c

Page 15: CPX terminal

Installation

1−1Festo P.BE−CPX−FB13−EN en 0811c

Chapter 1

Page 16: CPX terminal

1. Installation

1−2 Festo P.BE−CPX−FB13−EN en 0811c

Contents

1. Installation 1−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.1 General instructions on installation 1−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.2 Settings of the DIL switches on the field bus node 1−7 . . . . . . . . . . . . . . . . . . . .

1.2.1 Removing and fitting the cover over the DIL switches 1−7 . . . . . . . . . . .

1.2.2 Settingthe DIL switches 1−8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3 Connecting the field bus 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.1 Field bus cable 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.2 Field bus baud rate and field bus length 1−18 . . . . . . . . . . . . . . . . . . . . .

1.3.3 Field bus interface 1−19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.4 Connection options 1−20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.4 Bus connection with terminating resistors 1−24 . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.5 Pin assignment of power supply 1−25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 17: CPX terminal

1. Installation

1−3Festo P.BE−CPX−FB13−EN en 0811c

1.1 General instructions on installation

WarningBefore carrying out installation and maintenance work,switch off the following:

� the compressed air supply

� the operating voltage supply for the electronics/sensors

� the load voltage supply for the outputs/valves.

You can thereby avoid:

� uncontrolled movements of loose tubing

� unexpected movements of the connected actuators

� non−defined switching states of the electroniccomponents.

CautionThe CPX field bus node contains electrostatically sensitivecomponents.

· Therefore, do not touch any contacts.

· Observe the handling specifications for electrostaticallysensitive components.

You will then prevent the electronics from being damaged.

Information about fitting the CPX terminal can be found in theCPX system manual (P.BE−CPX−SYS−...).

Page 18: CPX terminal

1. Installation

1−4 Festo P.BE−CPX−FB13−EN en 0811c

Electrical connection and display elements

You will find the following electrical connection and displayelements on the CPX field bus node for PROFIBUS−DP:

BF PS

PL

SF

M

1

2

3

4

1 Bus−status−specific and CPX−specific LEDs

2 Field bus connection (9−pin sub−D socket)

3 Transparent cover for the DIL switches

4 Service interface for handheld (V24)und USB adapter (for CPX−FMT)

Fig.�1/1: Connecting and display elements on the CPX field bus node

Page 19: CPX terminal

1. Installation

1−5Festo P.BE−CPX−FB13−EN en 0811c

NoteUse protective caps or blanking plugs to seal unusedconnections. You will then comply with protection classIP65/IP67 (see section 1.3.4).

Dismantling and fitting

The field bus node is fitted in a manifold base of theCPX�terminal (see Fig.�1/2).

Dismantling Dismantle the field bus node as follows:

1. Loosen the 4 screws in the field bus node with a TORXscrewdriver size T10.

2. Pull the field bus node carefully and without tilting awayfrom the contact rails of the manifold base.

1 Field bus nodeCPX−FB13

2 Manifold base

3 Contact rails

4 TORX T10 screws

3

4

1

2

Fig.�1/2: Dismantling/fitting the field bus node

Page 20: CPX terminal

1. Installation

1−6 Festo P.BE−CPX−FB13−EN en 0811c

NoteAlways use the correct screws for the manifold base, whichdepend on whether the base is made of metal or plastic:

� for plastic manifold bases: thread−cutting screws

� for metal manifold bases: screws with metric thread.

Fitting Fit the field bus node as follows:

1. Place the field bus node in the manifold base. Make surethat the grooves with the power contact terminals on thebottom of the field bus node lie above the contact rails.

2. Push the field bus node carefully and without tilting as faras possible into the manifold base.

3. Tighten the screws at first only by hand. Place the screwsso that the self−cutting threads can be used.

4. Tighten the screws with a TORX screwdriver size T10 withtorque 0.9 � 1.1 Nm.

Page 21: CPX terminal

1. Installation

1−7Festo P.BE−CPX−FB13−EN en 0811c

1.2 Settings of the DIL switches on the field bus node

In order to set the CPX field bus node you must first removethe cover over the DIL switches.

CautionThe CPX field bus node contains electrostatically sensitivecomponents.

· Do not touch any contacts.

· Observe the handling specifications for electrostaticallysensitive components.

You will then prevent the electronics in the node from beingdamaged.

1.2.1 Removing and fitting the cover over the DIL switches

In order to set the CPX field bus node you must first removethe cover over the DIL switches.

Removing 1. Switch off the power supply.

2. Unscrew the two fastening screws in the switch cover.

3. Lift up the cover.

Fitting 1. Place the cover carefully on the node.

Note· Make sure that the seal is seated correctly.

2. Tighten the two fastening screws at first by hand and thenwith a torque of 0.4 Nm.

Page 22: CPX terminal

1. Installation

1−8 Festo P.BE−CPX−FB13−EN en 0811c

1.2.2 Settingthe DIL switches

When you have removed the DIL−switch cover, you will seethree DIL switches in the field bus node (see Fig.�1/3).

You can set the following parameters with the DIL switches:

� Operating mode

� PROFIBUS address

� Diagnostic mode

Proceed as follows:

1. Switch off the power supply.

2. Remove the cover over the DIL switches (section 1.2.1).

3. Set the desired operating mode (DIL switch 1,factory�setting: Remote I/O).

4. Assign an unused station number to the CPX terminal. Set the desired station number (8−position DIL switch 3,switch elements 1 � 7).

5. Set the diagnostic mode (8−position DIL switch 3, switch element 8).

6. Fit the cover again (section 1.2.1).

Page 23: CPX terminal

1. Installation

1−9Festo P.BE−CPX−FB13−EN en 0811c

1 DIL switch 1: Operating mode

2 DIL switch 2: Reserved (mustbe set to OFF)

3 DIL switch 3: Diagnostic mode

4 DIL switch 4: Station number

12

34

56

78

ON

1 2 1 2

ON ON

1 2

3

4

Fig.�1/3: DIL switch in the field bus node

Setting the operating mode with DIL switch 1

You can set the operating mode of the field bus node withswitch element 1 of DIL switch 1:

Operating mode Setting DIL switch 1

Remote I/O operating modeAll the functions of the CPX terminal arecontrolled directly by the PROFIBUS master. An FEC integrated in the CPX terminal works as apassive function module without controller.

DIL 1.1: OFFDIL 1.2: OFF(factory setting)

Operating mode Remote ControllerAn FEC integrated in the CPX terminal takescontrol of the I/Os. This operating mode is onlyuseful if an FEC is integrated in the CPX terminal.

DIL 1.1: ONDIL 1.2: OFF

Tab.�1/1: Setting the operating mode with DIL switch 1

Page 24: CPX terminal

1. Installation

1−10 Festo P.BE−CPX−FB13−EN en 0811c

Reserved DIL switch 2

Leave the switch elements of DIL switch 2 at OFF.

Setting the diagnostic mode with DIL switch 3

With switch element 8 of DIL switch 3 you can deactivate thedevice−related diagnosis of the PROFIBUS−DP. If the device−related diagnosis is deactivated, no device−related diagnostic information about the CPX terminal will besent to the master system, e.g. short circuit of the outputs orundervoltage of the valves (see section 3.5).

Device−related diagnosisactive

Device−related diagnosisinactive

12

34

56

78

12

34

56

78

DIL 3.8: ON DIL 3.8: OFF

Tab.�1/2: Setting the diagnostic mode with DIL switch 3

Page 25: CPX terminal

1. Installation

1−11Festo P.BE−CPX−FB13−EN en 0811c

Setting the station number with DIL switch 4

NoteStation numbers may only be assigned once per field busmaster.

You can set the PROFIBUS address of the CPX terminal inbinary coded form with the 8−element DIL switch 3:

1 Setting thestation number(switch elements1 � 7)

12

34

56

78

1

Fig.�1/4: Setting the station number (8−element DIL switch 3)

The following station numbers are permitted:

Protocol Address designation Permitted stationnumbers

PROFIBUS−DP PROFIBUS address 1; ...; 125

Recommendation:Assign the station numbers in ascending order. Assign thestation numbers to suit the machine structure of your system.

Page 26: CPX terminal

1. Installation

1−12 Festo P.BE−CPX−FB13−EN en 0811c

Example: set station number: 5

Example: set station number: 38

12

34

56

78

20 + 22 =1 + 4 =5 1

23

45

67

8

21 + 22 + 25 =2 + 4 + 32 =38

Fig.�1/5: Examples of set station numbers (binary coded)

The following pages contain a summary of the settings for thestation numbers.

Page 27: CPX terminal

1. Installation

1−13Festo P.BE−CPX−FB13−EN en 0811c

Station

no.1 2 3 4 5 6 7 8 Station

no.1 2 3 4 5 6 7 8

0 Reserved 16OFF OFF OFF OFF

ON

OFF OFF

1 ON

OFF OFF OFF OFF OFF OFF17 ON

OFF OFF OFF

ON

OFF OFF

2OFF

ON

OFF OFF OFF OFF OFF18

OFF

ON

OFF OFF

ON

OFF OFF

3 ON ON

OFF OFF OFF OFF OFF19 ON ON

OFF OFF

ON

OFF OFF

4OFF OFF

ON

OFF OFF OFF OFF20

OFF OFF

ON

OFF

ON

OFF OFF

5 ON

OFF

ON

OFF OFF OFF OFF21 ON

OFF

ON

OFF

ON

OFF OFF

6OFF

ON ON

OFF OFF OFF OFF22

OFF

ON ON

OFF

ON

OFF OFF

7 ON ON ON

OFF OFF OFF OFF23 ON ON ON

OFF

ON

OFF OFF

8OFF OFF OFF

ON

OFF OFF OFF24

OFF OFF OFF

ON ON

OFF OFF

9 ON

OFF OFF

ON

OFF OFF OFF25 ON

OFF OFF

ON ON

OFF OFF

10OFF

ON

OFF

ON

OFF OFF OFF26

OFF

ON

OFF

ON ON

OFF OFF

11 ON ON

OFF

ON

OFF OFF OFF27 ON ON

OFF

ON ON

OFF OFF

12OFF OFF

ON ON

OFF OFF OFF28

OFF OFF

ON ON ON

OFF OFF

13 ON

OFF

ON ON

OFF OFF OFF29 ON

OFF

ON ON ON

OFF OFF

14OFF

ON ON ON

OFF OFF OFF30

OFF

ON ON ON ON

OFF OFF

15 ON ON ON ON

OFF OFF OFF31 ON ON ON ON ON

OFF OFF

Tab.�1/3: Setting station numbers 1 � 31: Position of the DIL switch elements

Page 28: CPX terminal

1. Installation

1−14 Festo P.BE−CPX−FB13−EN en 0811c

Station

no.1 2 3 4 5 6 7 8 Station

no.1 2 3 4 5 6 7 8

32OFF OFF OFF OFF OFF

ON

OFF48

OFF OFF OFF OFF

ON ON

OFF

33 ON

OFF OFF OFF OFF

ON

OFF49 ON

OFF OFF OFF

ON ON

OFF

34OFF

ON

OFF OFF OFF

ON

OFF50

OFF

ON

OFF OFF

ON ON

OFF

35 ON ON

OFF OFF OFF

ON

OFF51 ON ON

OFF OFF

ON ON

OFF

36OFF OFF

ON

OFF OFF

ON

OFF52

OFF OFF

ON

OFF

ON ON

OFF

37 ON

OFF

ON

OFF OFF

ON

OFF53 ON

OFF

ON

OFF

ON ON

OFF

38OFF

ON ON

OFF OFF

ON

OFF54

OFF

ON ON

OFF

ON ON

OFF

39 ON ON ON

OFF OFF

ON

OFF55 ON ON ON

OFF

ON ON

OFF

40OFF OFF OFF

ON

OFF

ON

OFF56

OFF OFF OFF

ON ON ON

OFF

41 ON

OFF OFF

ON

OFF

ON

OFF57 ON

OFF OFF

ON ON ON

OFF

42OFF

ON

OFF

ON

OFF

ON

OFF58

OFF

ON

OFF

ON ON ON

OFF

43 ON ON

OFF

ON

OFF

ON

OFF59 ON ON

OFF

ON ON ON

OFF

44OFF OFF

ON ON

OFF

ON

OFF60

OFF OFF

ON ON ON ON

OFF

45 ON

OFF

ON ON

OFF

ON

OFF61 ON

OFF

ON ON ON ON

OFF

46OFF

ON ON ON

OFF

ON

OFF62

OFF

ON ON ON ON ON

OFF

47 ON ON ON ON

OFF

ON

OFF63 ON ON ON ON ON ON

OFF

Tab.�1/4: Setting station numbers 32 � 63: Position of the DIL switch elements

Page 29: CPX terminal

1. Installation

1−15Festo P.BE−CPX−FB13−EN en 0811c

Station

no.1 2 3 4 5 6 7 8 Station

no.1 2 3 4 5 6 7 8

64OFF OFF OFF OFF OFF OFF

ON 80OFF OFF OFF OFF

ON

OFF

ON

65 ON

OFF OFF OFF OFF OFF

ON 81 ON

OFF OFF OFF

ON

OFF

ON

66OFF

ON

OFF OFF OFF OFF

ON 82OFF

ON

OFF OFF

ON

OFF

ON

67 ON ON

OFF OFF OFF OFF

ON 83 ON ON

OFF OFF

ON

OFF

ON

68OFF OFF

ON

OFF OFF OFF

ON 84OFF OFF

ON

OFF

ON

OFF

ON

69 ON

OFF

ON

OFF OFF OFF

ON 85 ON

OFF

ON

OFF

ON

OFF

ON

70OFF

ON ON

OFF OFF OFF

ON 86OFF

ON ON

OFF

ON

OFF

ON

71 ON ON ON

OFF OFF OFF

ON 87 ON ON ON

OFF

ON

OFF

ON

72OFF OFF OFF

ON

OFF OFF

ON 88OFF OFF OFF

ON ON

OFF

ON

73 ON

OFF OFF

ON

OFF OFF

ON 89 ON

OFF OFF

ON ON

OFF

ON

74OFF

ON

OFF

ON

OFF OFF

ON 90OFF

ON

OFF

ON ON

OFF

ON

75 ON ON

OFF

ON

OFF OFF

ON 91 ON ON

OFF

ON ON

OFF

ON

76OFF OFF

ON ON

OFF OFF

ON 92OFF OFF

ON ON ON

OFF

ON

77 ON

OFF

ON ON

OFF OFF

ON 93 ON

OFF

ON ON ON

OFF

ON

78OFF

ON ON ON

OFF OFF

ON 94OFF

ON ON ON ON

OFF

ON

79 ON ON ON ON

OFF OFF

ON 95 ON ON ON ON ON

OFF

ON

Tab.�1/5: Setting station numbers 64 � 95: Position of the DIL switch elements

Page 30: CPX terminal

1. Installation

1−16 Festo P.BE−CPX−FB13−EN en 0811c

Station

no.1 2 3 4 5 6 7 8 Station

no.1 2 3 4 5 6 7 8

96OFF OFF OFF OFF OFF

ON ON 111 ON ON ON ON

OFF

ON ON

97 ON

OFF OFF OFF OFF

ON ON 112OFF OFF OFF OFF

ON ON ON

98OFF

ON

OFF OFF OFF

ON ON 113 ON

OFF OFF OFF

ON ON ON

99 ON ON

OFF OFF OFF

ON ON 114OFF

ON

OFF OFF

ON ON ON

100OFF OFF

ON

OFF OFF

ON ON 115 ON ON

OFF OFF

ON ON ON

101 ON

OFF

ON

OFF OFF

ON ON 116OFF OFF

ON

OFF

ON ON ON

102OFF

ON ON

OFF OFF

ON ON 117 ON

OFF

ON

OFF

ON ON ON

103 ON ON ON

OFF OFF

ON ON 118OFF

ON ON

OFF

ON ON ON

104OFF OFF OFF

ON

OFF

ON ON 119 ON ON ON

OFF

ON ON ON

105 ON

OFF OFF

ON

OFF

ON ON 120OFF OFF OFF

ON ON ON ON

106OFF

ON

OFF

ON

OFF

ON ON 121 ON

OFF OFF

ON ON ON ON

107 ON ON

OFF

ON

OFF

ON ON 122OFF

ON

OFF

ON ON ON ON

108OFF OFF

ON ON

OFF

ON ON 123 ON ON

OFF

ON ON ON ON

109 ON

OFF

ON ON

OFF

ON ON 124OFF OFF

ON ON ON ON ON

110OFF

ON ON ON

OFF

ON ON 125 ON

OFF

ON ON ON ON ON

Tab.�1/6: Setting station numbers 96 � 125: Position of the DIL switch elements

Page 31: CPX terminal

1. Installation

1−17Festo P.BE−CPX−FB13−EN en 0811c

1.3 Connecting the field bus

1.3.1 Field bus cable

NoteIf installation has not been carried out correctly and if highbaud rates are used, data transmission errors may occuras a result of signal reflections and attenuation. Causes of the transmission faults can be:

� missing or incorrect terminating resistor

� incorrect screening/shield connection

� branches

� transmission over long distances

� unsuitable cables.

Observe the cable specifications. Refer to your controllermanual for information on the type of cable to be used.

NoteIf the CPX terminal is fitted onto the moving part of amachine, the field bus cable on the moving part must beprovided with strain relief. Please also observe the relevantregulations in EN�60204 part 1.

Use a twisted screened 2−core cable for the field bus inaccordance with PROFIBUS specifications (EN 50170,cable�type A):

surge impedance: 135 � 165 (3 � 20 MHz)capacitance per unit length: < 30 nF/kmloop resistance: < 110 /kmcore diameter: > 0.64 mmcore cross−sectional area: � 0.34 mm2

Bus length Exact specifications on the bus length can be found in thenext section and in the manuals for your control system.

Page 32: CPX terminal

1. Installation

1−18 Festo P.BE−CPX−FB13−EN en 0811c

1.3.2 Field bus baud rate and field bus length

NoteThe maximum permitted field bus segment lengths dependon the baud rate used.

· Note the maximum permitted segment length (cablelength without repeater), if you connect the CPX terminalto a field bus segment.

· Avoid branch lines.

The CPX terminal sets itself automatically to one of thefollowing baud rates:

Baud rate Maximum segment length

9.6; 19.2; 93.75 kBaud 1200 m

187.5 kBaud 1000 m

500 kBaud 400 m

1500 kBaud 200 m

3000 � 12000 kBaud 100 m

Tab.�1/7: Maximum field bus segment lengthsforPROFIBUS−DP depending on the baud rate

Page 33: CPX terminal

1. Installation

1−19Festo P.BE−CPX−FB13−EN en 0811c

1.3.3 Field bus interface

There is a 9−pin sub−D socket on the CPX terminal forconnecting it to the field bus.This connection serves for the incoming and continuing fieldbus cable. You can connect the CPX terminal with the fieldbus plug from Festo type FBS−SUB−9−GS−DP−B.

NoteOnly the Festo field bus plug complies with IP65. Before connecting sub−D plugs from other manufacturers:

· Replace the two flat screws with bolts (type UNC 4−40/M3x5).

Socket onCPXterminal

Pin Field busplug IP65from Festo 1)

PROFIBUS−DP Description

123456789Housing

��B����A�Clamp strap

Screenn.c.RxD/TxD−PCNTR−P 2)

DGNDVPn.c.RxD/TxD−Nn.c.Screen

Connection to (FE) functional earthnot connectedReceived/transmitted data PRepeater control signal 2)

Data reference potential (M5V)Power supply positive (P5V)not connectedReceived/transmitted data Nnot connectedConnection to functional earth

1) Type FBS−SUB−9−GS−DP−B (part no. 532�216)2) The repeater control signal CNTR−P is in the form of a TTL signal.

Tab.�1/8: Pin assignment of the field bus interface of the CPX field bus node

Page 34: CPX terminal

1. Installation

1−20 Festo P.BE−CPX−FB13−EN en 0811c

1.3.4 Connection options

NoteUse protective caps or blanking plugs to seal unusedconnections. You will then comply with protection classIP65.

Connection with field bus plugs from Festo

· Observe the fitting instructions for the field bus plug.Tighten the two fastening screws at first by hand and thenwith max. 0.4 Nm.

You can connect the CPX terminal easily to the field bus withthe field bus plug from Festo (type FBS−SUB−9−GS−DP−B,part�no.�532216). You can disconnect the plug from the nodewithout interrupting the bus cable (T−TAP function).

NoteThe clamp strap in the field bus plug from Festo isconnected internally only capacitively with the metallichousing of the Sub−D plug. This is to prevent equalisingcurrents flowing through the screening of the field buscable.

Page 35: CPX terminal

1. Installation

1−21Festo P.BE−CPX−FB13−EN en 0811c

1 Hinged cover withdisplay window

2 Blanking plug ifconnection is notused

3 Clamp strap forscreening/shieldconnection

4 Field busincoming (IN)

5 Switch for bustermination andcontinuing fieldbus

6 Field buscontinuing (OUT)

7 Only connectedcapacitively

ONAB AB

21 3

4567

Bus in

Bus out

Fig.�1/6: Field bus plug from Festo, type FBS−SUB−9−GS−DP−B

DIL switches With the switch in the field bus plug you can switch thefollowing:

Switch position Bus terminal Continuing fieldbus cable

OFF not switched switched on

ON switched switched off

NoteNote the type designation of your field bus plug. The newplug type FBS−SUB−9−GS−DP−B switches the continuing fieldbus cable off when the bus termination is switched on.

Page 36: CPX terminal

1. Installation

1−22 Festo P.BE−CPX−FB13−EN en 0811c

Connection with M12 adapters (reverse key coded)

Two different adapters are available for connecting theCPX−FB13 to the field bus via M12 plug connectors. You candisconnect the M12 adapters from the CPX terminal withoutinterrupting the bus cable (T−TAP function).

� Type: FBA−2−M12−5POL−RK (part no. 533118)

� Type: CPX−AB−2−M12−RK−DP (part no.�541519)

Connection to the field bus is made with a 5−pin M12 plugwith PG9 screw connector. Use the second connection socketfor the continuation of the field bus.

M12 adapter Reverse key coded

Pin no. Bus IN Pin no. Bus OUT

5

2

3

4

15

1

4

3

2 1. n.c.2. RxD/TxD−N3. n.c.4. RxD/TxD−P5. PEM12 thread: Functional earth,

shield

1. VP (P5V)2. RxD/TxD−N3. DGND (M5V)4. RxD/TxD−P5. PEM12 thread: Functional earth,

shield

Protective cap or plug with bustermination resistor if connection isnot used.

Bus IN

Bus OUT

Bus IN

Bus OUT

FBA−2−M12−5POL−RK CPX−AB−2−M12−RK−DP

Tab.�1/9: Pin assignment of the M12 adapters for the field bus interface

Page 37: CPX terminal

1. Installation

1−23Festo P.BE−CPX−FB13−EN en 0811c

Connection with optical−fibre waveguide

The PROFIBUS−DP interface of the node complies withspecification EN 50170−2 and supports the control ofnetwork�components for optical fibre waveguides.

Use optical−fibre waveguides when transmission is affectedby heavy interference, as well as for extending the trans�mission range when high baud rates are used.

Example of optical−fibre waveguide network components:

� Siemens Optical Link Module (OLM) for PROFIBUS plus

� Siemens Optical Link Plug (OLP) for PROFIBUS (IP20)

� Harting Han−InduNet® media converter IP65 (optical datatransmission in the DESINA installation concept).

Page 38: CPX terminal

1. Installation

1−24 Festo P.BE−CPX−FB13−EN en 0811c

1.4 Bus connection with terminating resistors

NoteIf the CPX terminal is at the beginning or end of the fieldbus segment, a bus termination will be required.

· Fit a bus termination to both ends of a bus segment.

Recommendation:Use the ready−to−use field bus plugs from Festo for the bustermination. A suitable resistor network is incorporated in thehousing of this plug (see Fig.�1/7).

Receive/send data P(data cable B)

Receive/send data N(data cable A)

390

390

220

Pin 6: Supply voltage

Pin 5: Data reference potential

Pin 3

Pin 8

120 nH

120 nH

Fig.�1/7: Circuit diagram for bus termination network forcable type A as per EN 50170 (switch in Festo fieldbus plug set to ON)

Page 39: CPX terminal

1. Installation

1−25Festo P.BE−CPX−FB13−EN en 0811c

1.5 Pin assignment of power supply

Warning· Use only PELV circuits as per IEC/DIN EN 60204−1(Protective Extra−Low Voltage, PELV) for the powersupply. Take into account also the general requirementsfor PELV circuits as per IEC/DIN EN�60204−1.

· Use only power sources which guarantee reliableelectrical isolation of the operating voltage as perIEC/DIN EN 60204−1.

Use of PELV power circuts grarantees protection againstelectric shock (protection against direct and indirect contact)in accordance with IEC/DIN EN 60204−1 (electrical equipmentof machines, general requirements).

The current consumption of a CPX terminal depends on thenumber and type of integrated modules and components.

Read the information on power supply as well as on theearthing measures to be carried out in the CPX systemmanual.

Page 40: CPX terminal

1. Installation

1−26 Festo P.BE−CPX−FB13−EN en 0811c

System supply, additional supply andvalve supply

The CPX terminal is supplied with operating and load powervia the manifold base with system, additional and valvesupply. Further manifold bases are in preparation.

Plugs Pin assignment of manifold base with

system power supplytype CPX−GE−EV−S...type CPX−M−GE−EV−S...

additional power supplytype CPX−GE−EV−Z...type CPX−M−GE−EV−Z...

valve power supplytype CPX−GE−EV−V...

7/8"−5PIN

1

2

3

4

5

1: 0 VVAL / 0 VOUT2: 0 VEL/SEN3: Earth terminal

(incoming)4: 24 VEL/SEN5: 24 VVAL / 24 VOUT

1: 0 VOUT2: free (not connected)3: Earth terminal

(incoming)4: free (not connected)5: 24 VOUT

DC

B A

7/8"−4PIN 1)

A: 24 VEL/SENB: 24 VVAL / 24 VOUTC: Earth connectionD:0 VEL/SEN /

0 VVAL / 0 VOUT (incoming)

A: not connectedB: 24 VOUTC: Earth connectionD:0 VOUT (incoming)

A: free (not connected)B: 24 VVALC: Earth connectionD:0 VVAL (incoming)

2

3

4

1

M18

1: 24 VEL/SEN2: 24 VVAL / 24 VOUT3: 0 VEL/SEN /

0 VVAL / 0 VOUT4: Earth terminal

1: free (not connected)2: 24 VOUT3: 0 VOUT4: Earth terminal

1: free (not connected)2: 24 VVAL3: 0 VVAL4: Earth terminal

1) Note the specifications on the plugVEL/SEN: Operating voltage for electronics/sensorsVOUT: Load voltage for outputsVVAL: Load voltage for valves

Tab.�1/10: Pin assignment for system supply, additional supply and valve supply

Page 41: CPX terminal

Commissioning

2−1Festo P.BE−CPX−FB13−EN en 0811c

Chapter 2

Page 42: CPX terminal

2. Commissioning

2−2 Festo P.BE−CPX−FB13−EN en 0811c

Contents

2. Commissioning 2−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.1 Configuration 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.1.1 General information 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.1.2 Preparing the CPX terminal for the configuration 2−4 . . . . . . . . . . . . . .

2.1.3 Device master file (GSD) and icon files 2−20 . . . . . . . . . . . . . . . . . . . . . .

2.1.4 Configuration with a Siemens master 2−22 . . . . . . . . . . . . . . . . . . . . . . .

2.1.5 Configuration in the Remote Controller operating mode 2−37 . . . . . . . .

2.1.6 Identification and Maintainance 2−39 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2 Parameterisation 2−43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2.1 Parameterisation when switching on 2−43 . . . . . . . . . . . . . . . . . . . . . . . .

2.2.2 Parameterising the CPX terminal with STEP 7 2−46 . . . . . . . . . . . . . . . . .

2.2.3 Parameterisation with the handheld 2−51 . . . . . . . . . . . . . . . . . . . . . . . .

2.2.4 Field bus node CPX−FB13 2−52 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2.5 Application example for parameterisation 2−54 . . . . . . . . . . . . . . . . . . . .

2.3 Checklist for commissioning the CPX terminal with FB13 2−55 . . . . . . . . . . . . . . .

Page 43: CPX terminal

2. Commissioning

2−3Festo P.BE−CPX−FB13−EN en 0811c

2.1 Configuration

2.1.1 General information

Control commands

The operating modes FREEZE, SYNC and CLEAR_DATA aresupported by the CPX terminal in accordance with EN 50170.

The method of accessing these commands depends on thecontroller used. Please refer here to the documentation foryour field bus module.Information on DPV1 commands can be found in section A.3in appendix A.

CautionThe operating mode FREEZE or SYNC will be reset auto�matically:

� the CPX terminal is switched on or off

� when the field bus module stops.

Only the operating mode FREEZE will be reset auto−matically:

� The bus connection to the CPX terminal is interrupted(response monitoring active).

FREEZE command�

All the inputs of the CPX terminal will be �frozen". The CP terminal now sends a constant image of all the inputsto the master. With each further FREEZE command, the inputimage is updated and sent again to the master.Return to normal operation: UNFREEZE command

Page 44: CPX terminal

2. Commissioning

2−4 Festo P.BE−CPX−FB13−EN en 0811c

SYNC command�

All the outputs of the CP terminal will be �frozen". The CP terminal now no longer reacts to modifications to theoutput image in the master. With each further SYNCcommand, the updated output image will be transmitted. Return to normal operation: UNFREEZE command

Command CLEAR_DATA

All the outputs of the CP terminal will be reset.

2.1.2 Preparing the CPX terminal for the configuration

Addressing the CPX terminal

The CPX terminal has an address range of up to 64 bytesinputs and 64 bytes outputs: Max_Data_Len = 128 (80h).

Inputs

� Counting is module−orientated, irrespective of theposition of the field bus node.

� Counting from left to right.

� Depending on the configuration, the field bus node canoccupy status information as logical inputs.

Outputs

� Counting is module−oriented, irrespective of the positionof the field bus node.

� Counting from left to right.

Page 45: CPX terminal

2. Commissioning

2−5Festo P.BE−CPX−FB13−EN en 0811c

Electric modules

Configuration in theRemote I/O operatingmode

In the Remote I/O operating mode, the identifiers of the fieldbus node (including diagnosis mode), the CPX modules and,if present, the pneumatics are configured (see the followingtables and sections 2.1.4 or B.1):

Enter the identifiers corresponding to the physical sequenceof the modules from left to right in your configuration pro�gram.

Electric modules Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

Description Inputs Outputs

Field bus node CPX−FB13In Remote I/O operating mode:without diagnostics access

FB13−RIO... 0 / 00h � �

Field bus node CPX−FB13In Remote I/O operating mode:with status bits [Status]

FB13−RIO... 64 / 40h, 00h 2 byte/8 I

Field bus node CPX−FB13In Remote I/O operating mode:with I/O diagnostic interface[System Table Interface, STI]

FB13−RIO... 192 / C0h, 81h, 81h 2 byte/16 I

2 byte/16 O

1) Module identifier in the handheld unit or in the hardware configuration of the programming software

Tab.�2/1: Module overview and address assignment part 1: field bus nodes anddiagnosis mode

Page 46: CPX terminal

2. Commissioning

2−6 Festo P.BE−CPX−FB13−EN en 0811c

Electric modules Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

Description Inputs Outputs

Digital 4−input module:CPX−4DE

4DI 8DI / 10h 1 byte/8 I

0 / 00h 2) 4 bit I 2)

Digital 8−input module:CPX−8DE

8DI 8DI / 10h 1 byte/8 I

Digital 8−input module with channel diagnostics:CPX−8DE−D

8DI−D 8DI / 10h 1 byte/8 I

Digital 8−input module,n−switching: CPX−8NDE

8NDI 8DI / 10h 1 byte/8 I

Digital 16−input module:CPX−16DE

16DI 8DI / 11h 2 byte/16 I

Digital 16−input module withchannel diagnostics:CPX−M−16DE−D

16DI−D 8DI / 11h 2 byte/16 I

Digital 4−way output module:CPX−4DA

4DO 8DO / 20h � 1 byte/8 O

0 / 00h 2) � 4 bit O 2)

Digital 8−output module:CPX−8DA

8DO 8DO / 20h � 1 byte/8 O

Digital 8−output high currentoutput module: CPX−8DA−H

8DO−H 8DO / 20h � 1 byte/8 O

Digital multi I/O module:CPX−8DE−8DA

8DI/8DO 8DX / 30h 1 byte/8 I

1 byte/8 O

1) Module identifier in the handheld unit or in the hardware configuration of the programming software2) Identifiers can be grouped together

Tab.�2/2: Module overview and address assignment part 2: Digital input and outputmodules

Page 47: CPX terminal

2. Commissioning

2−7Festo P.BE−CPX−FB13−EN en 0811c

Electric modules Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

Description Inputs Outputs

Analogue 2−input module:CPX−2AE−U−I

2AI 2AI / 51h 2 words/32 I

Analogue 4−way input module:CPX−4AE−I

4AI−I 4AI / 53h 4 words/64 I

Analogue 4−way input module(temperature module for RTDsensors): CPX−4AE−T

4AI−T 2AI / 51h4AI / 53h

2 wordsor4 words/32/64 I�2)

Analogue 4−way input module(temperature module for TCsensors): CPX−4AE−TC

4AI−TC 4AI / 53h 4 words/64 I

Analogue 2−way outputmodule: CPX−2AA−U−I

2AO 2AO / 61h � 2 words/32 O

1) Module identifier in the handheld unit or in the hardware configuration of the programming software2) Number of inputs which can be switched between 2 and 4

Tab.�2/3: Module overview and address assignment part 3: Digital input and outputmodules

Page 48: CPX terminal

2. Commissioning

2−8 Festo P.BE−CPX−FB13−EN en 0811c

Electric modules Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

Description Inputs Outputs

CPX−CP interface:CPX−CP−4−FB

CPI 192 / C0h, 0Fh, 0Fh 2) max. 4bytes perstring/128 I

max. 4bytes perstring/128 O

Soft−stop end−positioncontroller: CPX−CMPX

CMPX−C−1−H1 53 / 35h 3 words/48 I

3 words/48 O

Multi−axis interface:CPX−CMXX

CPX−CMXX 192 / C0h, 0Fh, 0Fh 16 byte/128 I

16 byte/128 O

1) Module identifier in the handheld unit or in the hardware configuration of the programming software2) Dependent on the last CP string used, example for maximum assignment

Tab.�2/4: Module overview and address assignment part 4: Technology modules

Operating modeRemote�Controller

In the Remote Controller operating mode, only the identifierof the field bus node will be configured (see section 2.1.5):

Electric modules Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

Description Inputs Outputs

Field bus node (Remote controller)(FB13: CPX−8 bytes I/8 bytes O)

FB13−RC 192 / C0h, 07h, 07h 8 byte/64 I

8 byte/64 O

1) Module identifier in the handheld unit or in the hardware configuration of the programming software

Tab.�2/5: Configuration of the field bus node for the operating mode Remote Controller

Page 49: CPX terminal

2. Commissioning

2−9Festo P.BE−CPX−FB13−EN en 0811c

Pneumatic interfaces and pneumatic modules

The Tab.�2/6 to Tab.�2/9 give an overview of the assignedaddress spaces of different pneumatic interfaces andmodules.

The valves are configured according to the pneumaticinterface used:

� Valves of type 44 (VTSA, ISO), type 03 (Midi/Maxi) ortype�12 (CPA):When extensions are added to the valve side, only oneidentifier is used for the pneumatic interface. In the pneu�matic interface the number of valve coils is set with a DILswitch (grid pattern 1 byte).

� Valves of type 32 and 33 (MPA, MPA−F and MPA−P orVPPM pneumatic modules):From the technical point of view, the individual MPApneumatic modules each represent an electric module forcontrolling the attached valves.

A configuration is required for each pneumatic module oftype MPA:

� Pneumatic modules of type MPA1 each occupy 1 byte of address space or 8 outputs (an identifier), regardless of how many valves are attached to the pneumatic module.

� Pneumatic modules of type MPA2 each occupy 1 byte of address space or 8 outputs, but only 4 bits are used.The identifiers can be grouped together with modules of the same type (see Fig.�2/1).

� Pneumatic modules of type MPA−P each occupy 1 byteof address space or 16 inputs.

� Pneumatic modules of type VPPM each occupy 1 byte of address space (inputs/outputs) or 16 inputs and 16 outputs.

Page 50: CPX terminal

2. Commissioning

2−10 Festo P.BE−CPX−FB13−EN en 0811c

Additional information on the pneumatics can be found in thecorresponding Pneumatics descriptions (see document over�view �Descriptions of the CPX terminal" in the CPX manualP.BE−CPX−SYS−...).

The manuals for the pneumatic valve cluster (Midi/Maxi, CPA,MPA and VTSA/VTSA−F or ISO) contain the address assign�ment within the pneumatic modules.

For further information on MPA pneumatic modules and thepneumatic interfaces: see manual for the CPX I/O modules(P.BE−CPX−EA−...).

CPX pneumatic interfacesfor MPA and MPA�pneuma�tics modules

Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

tics�modulesInputs Outputs

Pneumatic interface for MPA orMPA−F valves (type 32/33):VMPA−FB−EPL−...

� � � �

MPA1 pneumatic modulewithout separate circuits:VMPA1−FB−EMS−8 �2)

MPA1S 8DO / 20h � 1 byte/8 O

MPA1 pneumatic modulewith�separate circuits:VMPA1−FB−EMG−8 �2)

MPA1G 8DO / 20h � 1 byte/8 O

MPA2 pneumatic modulewithout separate circuits:

MPA2S 8DO / 20h � 1 byte/8 Owithout separate circuits:VMPA2−FB−EMS−4 �2) 0 / 00h � 4 bit O 3)

MPA2 pneumatic modulewith separate circuits:

MPA2G 8DO / 20h � 1 byte/8 Owith�separate circuits:VMPA2−FB−EMG−4 �2) 0 / 00h � 4 bit O 3)

1) Module identifier in the handheld unit or in the hardware configuration of the programming software2) Type of MPA electronic module used3) Identifiers can be grouped together

Tab.�2/6: Identifiers and address assignment part 1: MPA pneumatics

Page 51: CPX terminal

2. Commissioning

2−11Festo P.BE−CPX−FB13−EN en 0811c

MPA pneumatic modulewith diagnosis function D2

Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

Inputs Outputs

MPA1 pneumatic modulewithout separate circuits, with diagnostic function D2VMPA1−FB−EMS−D2−8 �2)

MPA1S−D 8DO / 20h � 1 byte/8 O

MPA1 pneumatic module with separate circuits, with diagnostic function D2VMPA1−FB−EMG−D2−8 �2)

MPA1G−D 8DO / 20h � 1 byte/8 O

MPA2 pneumatic modulewithout separate circuits,

MPA2S−D 8DO / 20h � 1 byte/8 Owithout separate circuits,with diagnostic function D2VMPA2−FB−EMS−D2−4 �2)

0 / 00h � 4 bit O 3)

MPA2 pneumatic module with separate circuits,

MPA2G−D 8DO / 20h � 1 byte/8 Owith separate circuits, with diagnostic function D2VMPA2−FB−EMG−D2−4 �2)

0 / 00h � 4 bit O 3)

1) Module identifier in the handheld unit or in the hardware configuration of the programming software2) Type of MPA electronic module used3) Identifiers can be grouped together

Tab.�2/7: Identifiers and address assignment part 2: MPA pneumatic module withdiagnosis function D2

Page 52: CPX terminal

2. Commissioning

2−12 Festo P.BE−CPX−FB13−EN en 0811c

CPX pneumatic interfacesfor VTSA (ISO), Midi/Maxi,CPA

Moduleidentifier 1)

IdentifierSiemens/EN 50170

Assigned addressspace

CPAInputs Outputs

Pneumatic interface for VTSA or VTSA−F pneumatic (ISO, type 44/45): 2)

� 1 � 8 valve coils� 1 � 16 valve coils� 1 � 24 valve coils� 1 � 32 valve coils

ISO PlugIn ortype�44 ortype�45 3)

8DO / 20h16DO / 21h24DO / 22h32DO / 23h

� 1 byte/8 O2 bytes/16 O3 bytes/24 O4 bytes/32 O

Pneumatic interface for Midi/Maxi valves (type 03): �2)

� 1 � 8 valve coils� 1 � 16 valve coils� 1 � 24 valve coils� 1 � 32 valve coils

(26 can be used)

TYP3

8DO / 20h16DO / 21h24DO / 22h32DO / 23h

� 1 byte/8 O2 bytes/16 O3 bytes/24 O4 bytes/32 O

Pneumatic interface for CPA valves(type 12): 2)

� 1 � 8 valve coils� 1 � 16 valve coils� 1 � 24 valve coils

(22 can be used)

CPA10/14

8DO / 20h16DO / 21h24DO / 22h

� 1 byte/8 O2 bytes/16 O3 bytes/24 O

1) Module identifier in the handheld unit or in the hardware configuration of the programming software2) Setting with DIL switch in the pneumatic interface3) Display text (module identifier) dependent on the version of the handheld unit

Tab.�2/8: Identifiers and address assignment of the pneumatic interface part 3:

MPA pressure sensor andVPPM/MPA

Moduleidentifier

IdentifierSiemens/EN 50170

Assigned addressspace

Inputs Outputs

MPAP pressure sensor moduleVMPA−FB−PS−...

MPA−P 1AI / 50h 1 word/16 I

VPPM proportional pressure−regulating valve (type 32)VPPM−6TA−...

VPPM 112 / 70h 1 word/16 I

1 word/16 O

Tab.�2/9: Identifiers and address assignment of the pneumatics part 4

Page 53: CPX terminal

2. Commissioning

2−13Festo P.BE−CPX−FB13−EN en 0811c

Special identifier format and groupable identifiers

Configuration is made PROFIBUS−specific byte−by−byte. By means of a special identifier format, you can group somemodules together within a byte. The data volume will then bereduced.

01234567

2. module 1. module

(e.g. 2 x 4DA)

Fig.�2/1: 2 modules grouped together in an identifier byte

You can only group together modules of the same type:

� input modules with input modules

� output modules with output modules

� pneumatic modules of type MPA2 with modules of typeMPA2

Between the grouped electric modules there may be anyother electric module types. Further information can befound in the following configuration examples:

NoteMake sure that the modules are correctly groupedtogether. The project planning software does not make acheck.

Page 54: CPX terminal

2. Commissioning

2−14 Festo P.BE−CPX−FB13−EN en 0811c

Configuration examples

Example 1: CPX valve terminal with MPA pneumatics

8DI 4DO

8 O

0 1 2 3 4

1 2 3 4 5 6

5Module no.: 6

8 O4 O 4 O

1 Field bus node CPX−FB13

2 8−input module

3 4−output module

4 Pneumatic interface for MPA pneumatics

5 Valves/MPA1 pneumatic modules

6 Valves/MPA2 pneumatic modules

Fig.�2/2: Example terminal 1 (with MPA1 and MPA2 pneumatics)

Configure the CPX terminal module−by−module from left toright. The following table shows the configuration of theabove terminal example:

Page 55: CPX terminal

2. Commissioning

2−15Festo P.BE−CPX−FB13−EN en 0811c

Mod.no.

ModuleSiemens order number

DP identifierSiemens

DP identifierEN 50170

Explanation

0 Field bus nodeCPX−FB13:�DP slave[status]

64d 40h, 00h Configured with status bits

1 Digital 8−input moduleCPX−8DE [8DI]

8DI 10h Identifier byte usedcompletely

2 Digital 4−output moduleCPX−4DA [4DO]�x�2

8DO 20h Only the first 4 bits of theidentifier byte are used 1)

� MPA pneumatic interfaceVMPA−FB−EPL−...

� � Passive module

3 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8 [8DO]

8DO 20h MPA1 pneumatic moduleswithout separate powersupply circuits. Identifier bytes are used

4 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8 [8DO]

8DO 20hIdentifier bytes are usedcompletely.

5 MPA2 pneumatic moduleMPA2S: VMPA2−FB−EMS−4 [4DO]�x�2

8DO 20h MPA2 pneumatic module(without separate circuits)Only the first 4 bits are used.

6 MPA2 pneumatic module*MPA2S: VMPA2−FB−EMS−4 [4DO]�x�0

0 00h MPA2 pneumatic module(without separate circuits).The remaining 4 bits ofmodule no. 5 are used.

1) As no output module with groupable identifier is used in the subsequent locations, 8 bits are assigned here, but only 4 are used.

Tab.�2/10: Configuration for example terminal 1

The identifier bytes of locations 5 and 6 are grouped together.The identifier with the star symbol is used in location 6.

Page 56: CPX terminal

2. Commissioning

2−16 Festo P.BE−CPX−FB13−EN en 0811c

Example 2: CPX terminal with VTSA pneumatics

0 1 2 3 4

1 2 3 4 5 6 7 8

5 6

8DI 8DI 4DO 8DI 2AI

Module no.:

8DO

OPEN

12345678

8 O

7

2AO

1 Field bus node CPX−FB13

2 Digital 8−input module

3 Digital 8−input module

4 Digital 4−output module

5 Digital multi I/O module

6 Analogue 2−input module

7 Analogue 2−output module

8 Pneumatic interface for CPApneumatics (with DIL switch set to1���8 valve coils)

Fig.�2/3: Example terminal 2 (with VTSA pneumatics)

Configure the CPX terminal module−by−module from left toright. The following table shows the configuration of theabove terminal example:

Page 57: CPX terminal

2. Commissioning

2−17Festo P.BE−CPX−FB13−EN en 0811c

Mod.no.

ModuleSiemens order number

DP identifierSiemens

DP identifierEN 50170

Explanation

0 Field bus nodeCPX−FB13: DP slave[status]

64d 40h, 00h Configured with status bits

1 Digital 8−input moduleCPX−8DE [8DI]

8DI 10h Identifier byte usedcompletely

2 Digital 8−input moduleCPX−8DE [8DI]

8DI 10h Identifier byte usedcompletely

3 Digital 4−output moduleCPX−4DA [4DO]�x�2

8DO 20h Only the first 4 bits of theidentifier byte are used 1)

4 Digital multi I/O moduleCPX−8DE−8DA [8DI/8DO]

8DX 30h Identifier byte usedcompletely

5 Analogue 2−input moduleCPX−2AE−U/I [2AI]

2AI 51h �

6 Analogue 2−output moduleCPX−2AA−U/I [2AO]

2AO 61h �

7 VTSA pneumatic interface(DIL switch set to 1 � 8valve coils)ISO PlugIn DIL1 [8DO]

8DO 20h The pneumatic interfacemust be configuredaccording to the DIL−switchsetting.

1) As no output module with groupable identifier is used in the subsequent locations, 8 bits are assigned here, but only 4 are used.

Tab.�2/11: Configuration for example terminal 2

Page 58: CPX terminal

2. Commissioning

2−18 Festo P.BE−CPX−FB13−EN en 0811c

Example 3: CPX terminal with CP interface

1 2 3 4 5 6Module no.: 0

8 O 8 O

1

2 3 4

5

6

8DI 4DO 8DI 8DO

String 4

String 1

String 1

1 CPX terminal with CP interface (module no. 3)

2 CP−CL output module on CP string 4

3 MPA−CPI valve terminal on CP string 1

4 Cylinder

5 Sensor

6 CP−EL input module

Fig.�2/4: Example terminal 3 (with CP interface)

Page 59: CPX terminal

2. Commissioning

2−19Festo P.BE−CPX−FB13−EN en 0811c

In the example, the CP interface occupies 4 input bytes and16 output bytes (see manual for CPX−CP interface, chapter�System overview of CP system").

Mod.no.

ModuleSiemens order number

DP identifierSiemens

DP identifierEN 50170

Explanation

0 Field bus nodeCPX−FB13: DP slave[status]

64d 40h, 00h Configured with status bits

1 Digital 8−input moduleCPX−8DE [8DI]

8DI 10h Identifier byte usedcompletely

2 Digital 4−output moduleCPX−4DA [4DO]�x�2

8DO 20h Only the first 4 bits of theidentifier byte are used 1)

3 CP interfaceCPI:�4 bytes I/16 bytes O

192 C0h, 0Fh, 03h CP interface with assignmentof 4 input bytes and16�output bytes

4 Digital multi I/O moduleCPX−8DE−8DA [8DI/8DO]

8DX 30h Identifier byte usedcompletely

5 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8[8DO]

8DO 20h MPA1 pneumatic moduleswithout separate powersupply circuits.Identifier bytes are used

6 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8[8DO]

8DO 20hIdentifier bytes are usedcompletely.

1) As no output module with groupable identifier is used in the subsequent locations, 8 bits are assigned here, but only 4 are used.

Tab.�2/12: Configuration for example terminal 3

Page 60: CPX terminal

2. Commissioning

2−20 Festo P.BE−CPX−FB13−EN en 0811c

2.1.3 Device master file (GSD) and icon files

A Device Master File (GSD) is needed for the configurationand programming of the CPX terminal with a programmingdevice or PC. The GSD contains all the required informationfor the configuration and adjustment of the CPC terminalusing configuration and programming software, e.g. SiemensSTEP 7.

Reference sources Current GSD files can be found on the Festo Internet pagesunder: www.festo.com/fieldbus

GSD files You will require one of the following files for the CPX terminal:

� CPX_059E.GSD (German version)

� CPX_059E.GSE (international version)

For some older controllers, the GSD can be too large for theavailable storage. In this case, you will receive supportthrough the Festo technical hotline. You can reach them bye−mail at: [email protected].

Symbol files To represent the CPX terminal in your configuration software,you will find symbol files for Festo CPX terminals atwww.festo.com/fieldbus: Integration of these symbol files isexplained on the following pages:

Normal operatingstatus

Diagnostic case Special operatingstatus

File: Pb_cpx_n.dib File: Pb_cpx_d.dib File: Pb_cpx_s.dib

Tab.�2/13: Icon files for configuration software

Page 61: CPX terminal

2. Commissioning

2−21Festo P.BE−CPX−FB13−EN en 0811c

Publicationdate

Support from

December2008

Identification and maintenance (see section 2.1.6)

July 2008 � Soft−stop end−position controller CPX−CMPX−...� Multi−axis interface CPX−CMXX

May 2008 Pressure sensor VMPA−FB−PS−... and parameters ofanalogue process value presentation (see section 2.2.4)

April 2007 Analogue input module CPX−4AE−TC

March 2007 Proportional pressure regulator valve VPPM−6TA−...

December2006

� Digital output module CPX−8DA−H� Digital input module CPX−M−16DE−D

July 2006 � MPA1 and MPA2 electronic modules withdiagnosis function�D2

� Digital input module CPX−16DE and CPX−8DE−N

Tab.�2/14: History of the GSDs

NoteGSDs are downward compatible. Always use the latestGSD to ensure support of all functions of the CPX−FB13.For some functions, the latest update of the CPX−FB13 isrequired. You can find information on this in the correspon�ding sections of this manual.

Page 62: CPX terminal

2. Commissioning

2−22 Festo P.BE−CPX−FB13−EN en 0811c

2.1.4 Configuration with a Siemens master

The following sections describe the basic configuration stepswith the Siemens STEP�7 configuration and programmingsoftware.

Other controller systems may require other settings or adifferent procedure. Information on operation with generalDP�masters can be found in appendix B.1.

The configuration examples shown in this chapter are basedon the use of a Siemens SPS SIMATIC S7−300 and theSiemens STEP�7 Version 5.3 configuration and programmingsoftware. Operation of the STEP�7 software is assumed to beknown in the following.

NoteVarious configuration programs are available for use inconjunction with a Siemens master. Observe thecorresponding procedure for your configuration program.

CautionDanger of malfunctions, damage or injuries to people

A valve terminal with defective configuration will also beput into operation. However, only the modules which havebeen correctly configured for type and position will beactivated.

Before commissioning, ensure that the connectedelements (e.g. actuators) do not perform any undesired oruncontrollable movements.

If necessary, disconnect the load power supply andcompressed air supply.

See also section 2.3, checklist for commissioning

Page 63: CPX terminal

2. Commissioning

2−23Festo P.BE−CPX−FB13−EN en 0811c

Preparations

Creating automation project

1. Start the Siemens SIMATIC controller: Start > Programs >SIMATIC > SIMATIC Manager.(The program path of your SIMATIC controller can bedifferent from the example shown here).

NoteThese instructions refer to the English language version ofthe Siemens SIMATIC controller and the STEP�7 configur�ation and programming software.

Other language versions usually use other designations forthe program and function calls and menu items mentionedhere.

2. Create a new project in the SIMATIC Manager: [File] � [New] � [New...]

3. Enter a project name (e.g. CPX_FB13) and confirm theinput with OK.

4. Select the controller used (PLC/Master): [Insert] � [Station] ... (e.g. SIMATIC 300 Station).

5. Open the project by clicking on the plus symbol (on theleft next to the project symbol and the project name).

Page 64: CPX terminal

2. Commissioning

2−24 Festo P.BE−CPX−FB13−EN en 0811c

Setting up the controller system (PLC/Master)

1. Click once on the station symbol (on the left next to thestation name) and afterwards double click on the hard�ware symbol in the �Object name" column.The hardware configuration window HW Config (StationConfiguration) is displayed.

1

2. Open the Hardware catalogue (Catalogue View, 1 in the adjacent screenshot).

3. Select your controller system (PLC/Master) in theHardware Catalogue (e.g. SIMATIC 300, 1 in Fig.�2/5):Click on the plus symbol in order to expand the selection.

4. Open the rack directory (e.g. RACK−300, 2 in Fig.�2/5).

5. Double click on the rack rail symbol (e.g.�RAIL, 2 inFig.�2/5).A child window (with rack rail symbol in the header)opens in the left−hand area of the HW Config window ( 3 or 4 in Fig.�2/5).

The child window symbolises the rack rail (profile rail) ofyour controller system. You compile the individualelements of your controller in this child window and thusform the basis for your PROFIBUS automation system.

Page 65: CPX terminal

2. Commissioning

2−25Festo P.BE−CPX−FB13−EN en 0811c

1

3

24

1 Select controller system

2 Insert rack rail

3 Set up controller system in the rack rail window

Fig.�2/5: Setting up the controller system (PLC/Master) −inserting rack rail (Rail)

6. Add your CPU and a PROFIBUS system to the hardwareconfiguration:

� Drag the corresponding catalogue element (symbol)into the Rack Rail window ( 3 or 4 in Fig.�2/5). Row 1/slot 1 is reserved and cannot be used for theconfiguration.

Page 66: CPX terminal

2. Commissioning

2−26 Festo P.BE−CPX−FB13−EN en 0811c

� The dialogue window �Properties � PROFIBUSinterface" opens: With �New...", create a PROFIBUSsystem and, if necessary, edit the �Transmission rate"and �Profile" entries (transmission rate/baud rate andprofile) in the �Network Settings" tab.

Fig.�2/6: Edit the PROFIBUS properties dialogue window

Page 67: CPX terminal

2. Commissioning

2−27Festo P.BE−CPX−FB13−EN en 0811c

Install GSD and symbol files

Install the GSD and symbol files in the following steps:

� CPX_059E.GS*

Source and remarks for the selection:see section 2.1.3.

1. Start the installation function from the STEP 7 menu: [Options] � [Install GSD File ...]

2. Update the hardware catalogue from the STEP 7 menu:[Options] � [Update Catalog].

All available CPX modules in the hardware catalogue aredisplayed under PROFIBUS−DP > Additional Field Devices >Valves > Festo CPX Terminal. You can start the selection andconfiguration of your modules.

Station selection with STEP 7

1. If the hardware catalogue is not open: Click on the catalogue icon (see Fig.�2/7 1 ).The hardware catalogue will be displayed.

2. In the hardware catalogue, open the folder:�PROFIBUS DP > Additional Field Devices > Valves". The Valves folder is displayed when you have installed theGSD (see above).Pull the station type �Festo CPX terminal" onto the line ofthe DP master system 2.The �Properties � PROFIBUS interface" dialogue windowis displayed 3.

3. Select the PROFIBUS address identical to the selectedsetting on the DIL switch in the switch module (see section 1.2.2) and close with OK.The icon of the valve terminal will be displayed on the lineof the DP master system.

Page 68: CPX terminal

2. Commissioning

2−28 Festo P.BE−CPX−FB13−EN en 0811c

1 2

3

Fig.�2/7: Station selection with STEP 7 � HW Config

Page 69: CPX terminal

2. Commissioning

2−29Festo P.BE−CPX−FB13−EN en 0811c

Configuration with STEP 7

Assign the configuration table with the modules of yourCPX�system (see Fig.�2/8):

1. Click on the icon of the valve terminal to be configured inthe HW Config 1. The configuration table will bedisplayed under the rack 2.

2. In the hardware catalogue, open the module �Festo CPX terminal" (folder in the English version: �PROFIBUS−DP > Additional Field Devices > Valves >...") 3.

3. Pull the first (left−hand) module of your CPX terminal ontoline 0 in the configuration table. Repeat this step withfurther modules of your CPX terminal. Drag each nextmodule onto the next free line in the configuration table.Assign the starting address in the window �Properties �DP�slave"�4.

NoteDrag the modules into the configuration table according to the physical sequence (from left to right) of your CPXterminal.

Modifying the address 1. Double−click on the appropriate line in the configurationtable.

2. Modify the starting address of the inputs/outputs in the�Properties � DP slave" window.

NoteWith S7−400 controllers, up to 4 bytes of addresses arereserved for each DP identifier, depending on the versionstatus.

Page 70: CPX terminal

2. Commissioning

2−30 Festo P.BE−CPX−FB13−EN en 0811c

1 2 3

4

Fig.�2/8: Configuration with STEP7 � Hardware catalogue

This concludes the station selection and configuration.

Page 71: CPX terminal

2. Commissioning

2−31Festo P.BE−CPX−FB13−EN en 0811c

Examples of addressing

Addressing example 1: CPX valve terminal withMPA�pneumatics

Addresses used as from input/output word 42:

Module no.: 0

1 2

8DI 4DO 8DI

8 O

I43.0 � I4

3.7

3

O43.0 � O43.7

O45.0 � O45.3

O45.4 � O45.7

Status bits:

I42.0 � I4

2.7

8DO

8 O

O42.0 � O42.3

1 2 3 4 5 6

O44.0 � O44.7

4 O 4 O

1 Field bus node CPX−FB13

2 MPA1 pneumatic modules

3 MPA2 pneumatic modules

Fig.�2/9: Addressing the example terminal 1 (see also Fig.�2/2)

Page 72: CPX terminal

2. Commissioning

2−32 Festo P.BE−CPX−FB13−EN en 0811c

Loca�tion

Module DP identifierSiemens

Inputaddress

Outputaddress

0 Field bus nodeCPX−FB13: DP slave [status]

64 42 �

1 Digital 8−input moduleCPX−8DE [8DI]

8DI 43 �

2 Digital 4−output moduleCPX−4DA [4DO�]x�2

8DO � 42

� MPA pneumatic interface 1) VMPA−FB−EPL−...

� � �

3 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8 [8DO]

8DO � 43

4 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8 [8DO]

8DO � 44

5 MPA2 pneumatic moduleMPA2S: VMPA2−FB−EMS−4 [4DO]�x�2

8DO � 45

6 MPA2 pneumatic module*MPA2S: VMPA2−FB−EMS−4 [4DO]�x�0

0 � (45) 2)

1) Passive module2) Occupies bits 4���7 of output byte 45 automatically

Tab.�2/15: Input and output addresses for example terminal 1 (see Fig.�2/9)

Page 73: CPX terminal

2. Commissioning

2−33Festo P.BE−CPX−FB13−EN en 0811c

Addressing example 2: CPX terminal with VTSA pneumatics

Addresses used as from input/output word 42:

1 2

8DI 8DI 4DO 8DI 2AO

I43.0 ... I43.7

I44.0 ... I44.7

3

O42.0 ... O

42.3

O48.0 ... O

48.7

I46.0 ... I49.7

O44.0 ... O

47.7

Status bits:

I42.0 ... I42.7

8DO

Module no.: 0 1 2 3 4 5 6

2AI

8 O7

I45.0 ... I45.7

O43.0 ... O

43.7

1 Field bus node CPX−FB13

2 Pneumatic interface

3 VTSA pneumatics

Fig.�2/10: Addressing the example terminal 2 (see also Fig.�2/3)

Page 74: CPX terminal

2. Commissioning

2−34 Festo P.BE−CPX−FB13−EN en 0811c

Loca�tion

Module DP identifierSiemens

Inputaddress

Outputaddress

0 Field bus nodeCPX−FB13: DP slave [status]

64 42 �

1 Digital 8−input moduleCPX−8DE [8DI]

8DI 43 �

2 Digital 8−input moduleCPX−8DE [8DI]

8DI 44 �

3 Digital 4−output moduleCPX−4DA [4DO]�x�2

8DO � 42 1)

4 Digital multi I/O moduleCPX−8DE−8DA [8DI/8DO]

8DX 45 43

5 Analogue 2−input moduleCPX−2AE−U/I [2AI]

2AI 46���49 �

6 Analogue 2−output moduleCPX−2AA−U/I [2AO]

2AO � 44���47

7 VTSA pneumatic interfaceISO PlugIn DIL1 [8DO]

16DO � 48

1) Bit 4 � 7 occupied, but not used

Tab.�2/16: Input and output addresses for example terminal 2 (see Fig.�2/10)

Page 75: CPX terminal

2. Commissioning

2−35Festo P.BE−CPX−FB13−EN en 0811c

Addressing example 3: CPX terminal with CP interface

Addresses used as from input/output word 42:

1 2 3 4 5 6Module no.: 0

8 O 8 O

1

2 3

4

8DI 4DO 8DI 8DO

String 4

String 1

String 1

Status bits:

I42.0 ... I42.7

42.0 ... O

42.3

I43.0 ... I43.7

I44.0 ... I47.7

O43.0 ... O

58.7

I48.0 ... I48.7

O59.0 ... O

59.7

O60.0 ... O

60.9

O61.0 ... O

61.9

1 CPX terminal with CP interface (module no. 3) and MPA pneumatics

2 CP−CL output module at CP string 4(last string used for outputs; therefore 16 byte outputs)

3 MPA−CPI valve terminal on CP string 1

4 CP−CL input module at CP string 1 (last string used for inputs; therefore 4 byte inputs)

Fig.�2/11: Addressing the example terminal 3 (see also Fig.�2/4)

Page 76: CPX terminal

2. Commissioning

2−36 Festo P.BE−CPX−FB13−EN en 0811c

Loca�tion

Module DP identifierSiemens

Inputaddress

Outputaddress

0 Field bus nodeCPX−FB13: DP slave [status]

64 42 �

1 Digital 8−input moduleCPX−8DE [8DI]

8DI 43 �

2 Digital 4−output moduleCPX−4DA [4DO]�x�2

8DO � 42

3 CP interfaceCPI:�4 bytes I/16 bytes O

192 44 � 47 43 � 58

4 Digital multi I/O moduleCPX−8DE−8DA [8DI/8DO]

8DO 48 59

� MPA pneumatic interface 1) VMPA−FB−EPL−...

8DO � �

5 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8 [8DO]

8DO � 60

6 MPA1 pneumatic moduleMPA1S: VMPA1−FB−EMS−8 [8DO]

8DO � 61

1) Passive module

Tab.�2/17: Input and output addresses for example terminal 3 (see Fig.�2/11)

Page 77: CPX terminal

2. Commissioning

2−37Festo P.BE−CPX−FB13−EN en 0811c

2.1.5 Configuration in the Remote Controller operating mode

If there is an FEC in your CPX terminal, you can operate thefield bus node in the �Remote Controller" operating mode.The field bus node occupies 8 bytes of inputs and 8 bytes ofoutputs. These are available for the control program in theFEC.

Configuration in theRemote Controller busnode operating mode

1. Make sure that DIL switch DIL�1.1 of the bus node is inthe remote controller position (DIL�1.1 = ON, DIL�1.2 = OFF; see Tab.�1/1).

2. Carry out the station selection (see section 2.1.4).

3. Drag module �CPX−FB13: Remote Controller Mode" ontoline 0 of the configuration table (see diagram below).

The field bus node is thus configured as RemoteController.

Use of Festo Software Tools Version 4 (FST�4) is required(see step 4.) to configure the CPX−FEC and CPX terminal.

4. Configure the CPX terminal with the Festo Software ToolsFST�4 via the CPX−FEC.

Page 78: CPX terminal

2. Commissioning

2−38 Festo P.BE−CPX−FB13−EN en 0811c

Fig.�2/12: �Remote Controller" operating mode: Configuration with STEP 7 � Hardwarecatalogue

Page 79: CPX terminal

2. Commissioning

2−39Festo P.BE−CPX−FB13−EN en 0811c

2.1.6 Identification and Maintainance

The I&M function (Identification and Maintenance) serves asan electronic nameplate of the CPX−FB13 and offers uniform,manufacturer−independent access to device−specific onlineinformation via the internet.

NoteAt least a CPX−FB13 with �Rev�24" update is necessary touse the Identification and Maintenance function. If a fieldbus node with an earlier version is used, the following faultmessage is displayed.

Fig.�2/13: Fault message with field bus nodes with versionsearlier than Rev 24

Load identification properties in the field bus nodes

1. Click on [Download Module Identification...] in the [PLC]menu (Target system � Load module identification)The window �Download Module Identification" isdisplayed.

2. Enter your identification properties in the fields under�Offline" (examples, see Fig.�2/14).

3. Activate the checks under �Include" (Consider) onlywhere you wish to load data into the field bus node.Deactivate checks where the �ONLINE" filed already con�tains correct data; otherwise, they will be overwritten!

4. Confirm with OK.

Page 80: CPX terminal

2. Commissioning

2−40 Festo P.BE−CPX−FB13−EN en 0811c

1

1 Deactivate checks so that ONLINE fields that have already been filled out arenot overwritten

Fig.�2/14: Load identification data in the field bus nodes

Look at identification properties

1. Click on [Module Information...] in the [PLC] menu (Target system � Module status).The window �Module Information" (component status) isdisplayed.

2. In the �General" tab, you will find the hardware versionand the software/firmware status of the field bus node(see Fig.�2/15).

3. You will find further information, such as manufacturer’sspecification, in the �Identification" tab (see Fig.�2/16).

Page 81: CPX terminal

2. Commissioning

2−41Festo P.BE−CPX−FB13−EN en 0811c

Fig.�2/15: Look at identification data ansehen, �General" tab

Page 82: CPX terminal

2. Commissioning

2−42 Festo P.BE−CPX−FB13−EN en 0811c

Fig.�2/16: Look at identification data, �Identification" tab

Page 83: CPX terminal

2. Commissioning

2−43Festo P.BE−CPX−FB13−EN en 0811c

2.2 Parameterisation

You can set the reaction of the CPX terminal individually byparameterisation. A distinction is made between the followingparameterisations:

� System parameterisation, e.g.: switching off faultmessages, etc.

� Parameterisation of the diagnostics memory

� Module parameterisation (module and channel−specific),e.g.: monitoring, settings in the event of faults, settingsfor the debounce times of the inputs.

A detailed description of the individual parameters as well asbasic information about application can be found in the CPXsystem manual (P.BE−CPX−SYS−...).Parameter lists for CPX I/O modules and CPX pneumatic in�terfaces can be found in the manual for the CPX I/O modules(P.BE−CPX−EA−...).

2.2.1 Parameterisation when switching on

1 Master loadsparameter setinto the node

2 Node distributesparameter set tothe modules

PLC/IPC PROFIBUS−DPMaster

1

2

Fig.�2/17: Sequence of the start parameterisation

Page 84: CPX terminal

2. Commissioning

2−44 Festo P.BE−CPX−FB13−EN en 0811c

When the field bus system is switched on, the CPX terminal isparameterised as �Start parameterisation" by parameter set1 saved in the PROFIBUS master. The field bus node thendistributes the parameters by module to the CPX modules 2.

NoteThe number of start parameters is limited, depending onthe software version of the CPX−FB13. Pay attention to the behaviour of the CPX−FB13:

� Up to and including software version 15:A maximum of 172 start parameters are possible. If themaximum number is exceeded, no fault message will beissued. The CPX terminal does not start and the BF LEDflashes. Therefore, check the Start parameterisationbefore commissioning.

� Starting with software version 22:A maximum of 224 start parameters are possible. If themaximum number is exceeded, the configuration cannotbe loaded into the field bus node. A fault message isoutput (see Fig.�2/18).

A list of the possible Start parameters can be found inappendix A.2.

Page 85: CPX terminal

2. Commissioning

2−45Festo P.BE−CPX−FB13−EN en 0811c

Fig.�2/18: Fault message when the maximum number of Start parameters is exceeded(CPX−FB13 from version 22), note the appendix A.2 �Start parameters"

NoteAfter each interruption of the field bus system (e.g. afterinterruption of the power supply to the field bus node), theparameter set will be sent again by the PROFIBUS masterto the field bus node.

An exchange of individual CPX modules is therefore possible,without the need for new manual parameterisation.

Page 86: CPX terminal

2. Commissioning

2−46 Festo P.BE−CPX−FB13−EN en 0811c

2.2.2 Parameterising the CPX terminal with STEP 7

System parameters

1. Double click on the icon of the CPX terminal on the line ofthe DP master system (see Fig.�2/19 1 ). The dialoguewindow �Properties � DP slave" is displayed 2.

2. Select the �Parameter Assignment" tab 3. The list withthe parameters and the currently active values is shown.

3. Click on the parameter value which you wish to modify. A list with the possible values is opened 4.

4. Modify the value by clicking it and confirm this with OK.

Page 87: CPX terminal

2. Commissioning

2−47Festo P.BE−CPX−FB13−EN en 0811c

1 2 3 4

Fig.�2/19: Setting system parameters with STEP 7

Page 88: CPX terminal

2. Commissioning

2−48 Festo P.BE−CPX−FB13−EN en 0811c

Parameterising the diagnostic memory

A maximum of 40 diagnostic messages can be saved in thediagnostic memory. With the HW Config, DPV1 or thehandheld, you can parameterise the way in which themessages are to be saved.

1. Click on the value of the parameter �Diag.Buffer � Mode"or �Diag.Buffer � Error End"A list with the possible values will be opened.

2. Modify the value as follows and confirm this with OK.

Fig.�2/20: Parameterising the diagnostic memory with STEP 7

Page 89: CPX terminal

2. Commissioning

2−49Festo P.BE−CPX−FB13−EN en 0811c

Possibilities for parameterising the diagnostic memorymode

� �Stop after 40 records...": The first 40 diagnostic messages are saved, but after thatno further messages are saved.

� �Record continually...": Continuous saving of the diagnostic messages. After the40th message, the oldest message will be overwritten.

There are two ways in which the diagnostic messages can besaved:

� �... remanent": The diagnostic messages remain saved when the oper�ating voltage is switched off or after a power failure.

� without �remanent": The diagnostic messages will be lost when the operatingvoltage is switched off or after a power failure.

Possibilities for parameterising the fault end filter of thediagnostic memory

You can parameterise whether a rectified fault (�Outgoingfault") is to be recorded in the diagnostic memory.

� �Record Coming/going": When a fault occurs and is eliminated, the fault numberand the time of the event are recorded.

� �Record coming only": Only when a fault occurs, the fault number and the time ofthe event are recorded. If the fault is eliminated, the timeof the event will not be recorded.

Page 90: CPX terminal

2. Commissioning

2−50 Festo P.BE−CPX−FB13−EN en 0811c

Module parameters

1. Double click in the configuration table on the line of themodule which you wish to parameterise 1. The dialoguewindow �Properties � DP slave" is displayed.

2. Proceed further as described above under �Systemparameters" in steps 3 and 4.

1

Fig.�2/21: Module parameterisation with STEP 7

Page 91: CPX terminal

2. Commissioning

2−51Festo P.BE−CPX−FB13−EN en 0811c

NoteModule parameters can refer to:

� properties of the complete module

� properties of an individual channel of a module.

2.2.3 Parameterisation with the handheld

The handheld provides menu−guided access to theparameterisation of the CPX terminal without configurationsoftware.

If the handheld has write access to the parameters, you canno longer parameterise via the bus:

� System parameters

� Module parameters

Diagnostic memory parameters can still be parameterised viathe bus.

The value �Use CPX system settings" with the system para�meters for Fail Safe or Force Mode (see Fig.�2/19) means:The value of these parameters will not be modified when thefield bus system is switched on. Values already set with thehandheld or via DPV1 are retained.

Information about operating the handheld can be found in themanual for the handheld P.BE−CPX−MMI−1−...

Page 92: CPX terminal

2. Commissioning

2−52 Festo P.BE−CPX−FB13−EN en 0811c

2.2.4 Field bus node CPX−FB13

Device−specific parameters Description/setting possibilities

� Monitor SCS� Monitor SCO� Monitor VOUT� Monitor VVAL� Monitor SCV� Fail Safe� Force Mode� Diag.Buffer � Mode� Diag.Buffer � Error End� System start with external

default parameters or savedparameters

Standard CPX parameter; for further information, see CPX system manual

Filter diagnosis message VOUT/VVAL Special parameter for the CPX−FB13 Setting options:

� inactive:Undervoltage is reported over the field bus

� active:Undervoltage is filtered and not reported over the field bus;the undervoltage is merely displayed through flasing of theSF LED on the CPX−FB13.

Analogue process valuepresentation

Special parameter for the CPX−FB13 for setting thepresentation of process values of the analogue modules.Setting options:

� Byte sequence INTEL (LSB−MSB, factory setting):Process values are presented in the Intel format (lowest value bit to the left, highest value bit to the right)

� Byte sequence MOTOROLA (MSB−LSB):Process values are presented in the Motorola format(highest value bit to the left, lowest value bit to the right) If your control system has to use this byte sequence, youmust take this into account accordingly, e.g. in your userprograms.�

This parameter can also be set via the I/O diagnostic interfacewith the function number 4402 bit 7.

Tab.�2/18: Device−specific parameters of the CPX−FB13

Page 93: CPX terminal

2. Commissioning

2−53Festo P.BE−CPX−FB13−EN en 0811c

NoteWhen using the �Filter diagnosis message VOUT/VVAL" and�Analogue process value presentation" parameters, payattention to the required modification of the CPX−FB13 inthe following table.

If you use a field bus node with a version earlier thanrequired together with a current GSD, the parameters aredisplayed in STEP 7, but they have no effect.

Parameters Required versionCPX−FB13

Filter diagnosis message VOUT/VVAL Rev 24

Analogue process value presentation Rev 23

Tab.�2/19: Required version of the CPX−FB13 for use ofparameters

Page 94: CPX terminal

2. Commissioning

2−54 Festo P.BE−CPX−FB13−EN en 0811c

2.2.5 Application example for parameterisation

1 Input for 1stsensor (withdefault para−meterisation)

2 Parameterisedinput for 2ndsensor (see text)

Î Î

ÓÓÓÓ

21

1. sensor

2. sensor

Fig.�2/22: Application example for parameterisation of input debounce time and signalextension time on the 2nd sensor

In the above application, packages are transported on afast−moving conveyor belt.

For improvement of signal recording and processing, theinput for the 2nd sensor is parameterised as follows:

� Reduction of the input debounce time from 3�ms (factorysetting) to 0.1�ms: Recording shorter signals is possible.This parameter is set for the complete module.

� Signal extension time set to 50�ms: Reliable recording ofthe signals by the controller.The value of this parameter is set for the completemodule, but must be activated/deactivated separately foreach input channel.

Page 95: CPX terminal

2. Commissioning

2−55Festo P.BE−CPX−FB13−EN en 0811c

2.3 Checklist for commissioning the CPX terminal with FB13

Recommendation:If the safety concept of your machine/system permits,commission the CPX terminal with all operating voltages � but without compressed air. You can then test the CPXterminal without triggering undesired reactions.

CautionThe CPX terminal with field bus node for PROFIBUS−DPalso starts with incomplete configuration.

· Check the configuration and address assignment of theI/Os on the CPX terminal. In order to do this, you can, ifnecessary, force the I/Os (see CPX system manualP.BE−CPX−SYS−...).

· An incomplete configuration will be displayed with thediagnostics LED of the controller and in the onlinediagnostics of your configuration software.

· Please observe the general commissioning instructions inthe CPX system manual.

· Make sure that the desired parameterisation of the CPXterminal in the initialization phase or after field bus inter�ruptions is carried out by the module. This is to ensurethat if the CPX terminal is replaced, the new terminal willalso be operated with the desired parameter settings.

· Use spot checks if necessary to check the parameterisa�tion, e.g. with the configuration program or with the handheld.

· Check the DIL switch settings and the field busconfiguration before using and replacing CPX terminals.

Please also observe the switching−on instructions in themanual for your controller.

Page 96: CPX terminal

2. Commissioning

2−56 Festo P.BE−CPX−FB13−EN en 0811c

Faultless commissioning, normal operating status

After faultless commissioning, the LEDs PS (Power System)and PL (Power Load) light up green.nformation on the other LEDs for diagnosis and faulttreatment can be found in chapter 3 of this manual and in theCPX system manual (P.BE−CPX−SYS−...).

LED Colour Operating status Fault treatment

PS green lights up normal none

PL green lights up normal none

BF LED is off normal none

Tab.�2/20: Normal operating status of the CPX terminal

Page 97: CPX terminal

Diagnosis

3−1Festo P.BE−CPX−FB13−EN en 0811c

Chapter 3

Page 98: CPX terminal

3. Diagnosis

3−2 Festo P.BE−CPX−FB13−EN en 0811c

Contents

3. Diagnosis 3−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.1 Overview of diagnostic possibilities 3−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.2 Diagnostics via LEDs 3−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.2.1 Fault displays of the bus fault/status LED BF 3−5 . . . . . . . . . . . . . . . . .

3.2.2 Fault displays of the LEDs for system diagnosis PS, PL, SF, M 3−6 . . . .

3.3 Diagnostics via status bits 3−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.4 Diagnostics via the I/O diagnostic interface (STI) 3−9 . . . . . . . . . . . . . . . . . . . . .

3.5 Diagnosis via PROFIBUS−DP 3−10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.5.1 Diagnosis steps 3−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.5.2 Overview of the diagnostic bytes� 3−12 . . . . . . . . . . . . . . . . . . . . . . . . . .

3.5.3 Details on standard diagnostic information 3−15 . . . . . . . . . . . . . . . . . . .

3.5.4 Details of the module−related diagnosis 3−17 . . . . . . . . . . . . . . . . . . . . .

3.5.5 Details of the canal−related diagnosis 3−18 . . . . . . . . . . . . . . . . . . . . . . .

3.6 Fault treatment (�Fail safe") 3−21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.6.1 Siemens SIMATIC S5/S7 3−22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.7 Online diagnosis with STEP 7 3−24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.7.1 Read out diagnostic buffer with STEP 7 (up to V 5.2) 3−24 . . . . . . . . . . .

3.7.2 Device−related diagnosis with STEP 7 (up to V�5.3) 3−26 . . . . . . . . . . . .

Page 99: CPX terminal

3. Diagnosis

3−3Festo P.BE−CPX−FB13−E N en 0811c

3.1 Overview of diagnostic possibilities

The following possibilities for diagnosis and error handlingare available, depending on the configuration:

Diagnosticoption

Brief description Advantages Detaileddescription

LED display The LEDs directly showconfiguration faults, hard−ware faults, bus faults, etc.

Fast �on−the−spot"recognition of faults

Section 3.2

Status bits Internal inputs which supplycoded common diagnosticmessages.The 8 status bits are trans�mitted to the module as �inputs" cyclically with thenormal inputs.

Fast access to faultmessages in the PLC userprogram, irrespective ofthe module and master

Section 3.3

I/O diagnosticinterface

Bus−independent diagnosticinterface at I/O level whichenables access to the internaldata of the CPX terminal(16�inputs and 16 outputs)

Read access to internalparameters and data atI/O�level

CPX systemdescription

Diagnostics viathe handheldunit

Diagnostic information can beshown on the handheld unitin a user−friendly manner bymeans of menus.

Fast �on−the−spot"recognition of faultswithout programming inclear text

Manual for thehandheld unit(P.BE−CPX−MMI−1−...)

Diagnosis viaPROFIBUS−DP

Diagnosis as per PROFIBUSstandard

Detailed module−relatedand channel−related faultrecognition in the onlinemode of the programming/configuration software andin the PLC user program

Section 3.5

Diagnosis viaPROFIBUS DPV1

Access to all system data ofthe CPX terminal via the fieldbus

Extended access todiagnostic data in thePLC�user program (e.g. diagnostic memory)

Appendix A.3

Tab.�3/1: Overview of the diagnostic options of the CPX terminal

Page 100: CPX terminal

3. Diagnosis

3−4 Festo P.BE−CPX−FB13−E N en 0811c

NoteNote that the diagnostic information shown can depend onthe settings (see section 1.2.2) as well as on the para�meterisation (see section 2.2) of the CPX terminal.

3.2 Diagnostics via LEDs

The LEDs on the cover indicate the operating status of theCPX field bus node.

1 LED BF: Bus fault/status(red)

2 LEDs for systemdiagnosis:PS: Power system

(green)PL: Power load

(green)SF: System fault

(red)M: Modify

(yellow)

BF PS

PL

SF

M

1

2

Fig.�3/1: LEDs of the CPX node

Page 101: CPX terminal

3. Diagnosis

3−5Festo P.BE−CPX−FB13−E N en 0811c

3.2.1 Fault displays of the bus fault/status LED BF

If the device−related diagnosis is activated, faults will also besent to the master PLC via the field bus.

The LEDs are shown in their various states as follows:

� lights up; flashes; out

BF (Bus fault)

LED (red) Process Status Fault treatment

LED is off

ON

OFF

No fault (if the green PS�LED lights up)

LED flashes

ON

OFFField bus connection not OK. Possible causes:� Station number not correct

(e.g. address assigned twice)� Defective field bus module� Interrupted, short−circuited or

faulty field bus connection� Faulty configuration

Check the ...

· address setting of the DILswitches in the field bus node

· field bus module/master· field bus connection

· configuration of the masterwith regard to the modules ofthe CPX terminal

Tab.�3/2: Fault diagnosis with the red LED �BF"�

Page 102: CPX terminal

3. Diagnosis

3−6 Festo P.BE−CPX−FB13−E N en 0811c

3.2.2 Fault displays of the LEDs for system diagnosis PS, PL, SF, M

PS (power system) � power sensor/logic supply

LED (green) Process Status Fault treatment

LED lights up

ON

OFF

No error. Operating volt�age/sensor supply applied

LED flashes

ON

OFFOperating voltage/sensorsupply outside thetolerance range

1. Eliminate short circuit/overload2. Dependent on the parameterisation:

· The sensor supply voltage will beswitched on again automaticallyafter the short circuit has beeneliminated (default)

· Power Off/On is necessary

LED is off

ON

OFF

The operating voltage/sensor supply is notapplied

Check the operating voltageconnection of the electronics

PL (Power Load) � power load supply (outputs/valves)

LED (green) Process Status Fault treatment

LED lights up

ON

OFF

No error. Load voltageapplied

None

LED flashes

ON

OFFLoad voltage outside thetolerance range.

1. Eliminate undervoltage2. Dependent on the parameterisation:

· The load voltage supply will beswitched on again automaticallyafter the undervoltage has beeneliminated (default)

· Power Off/On is necessary

Tab.�3/3: Fault diagnostics using the LEDs PS and PL

Page 103: CPX terminal

3. Diagnosis

3−7Festo P.BE−CPX−FB13−E N en 0811c

SF (System Fail) � system fault

LED (red) Process Status Meaning / error handling

LED is off

ON

OFFNo error �

LED flashesonce

ON

OFFSimple fault/information(error class 1)

See description of fault numbers inthe CPX system manual

LED flashestwice

ON

OFF

Error (error class 2)

LED flashesthree times

ON

OFF

Serious fault (error class 3)

The system error LED flashes depending on the class of error which has occurred.Error class 1 (minor error): 1 * flash, pauseError class 2 (error): 2 * flash, pauseError class 3 (serious error): 3 * flash, pause

Tab.�3/4: Fault diagnostics using the SF LED

Page 104: CPX terminal

3. Diagnosis

3−8 Festo P.BE−CPX−FB13−E N en 0811c

M (modify) � parameterisation modified or Force active

LED (yellow) Process Status Meaning / error handling

LED is off

ON

OFF

System start with defaultparametrizing (factorysetting) and current CPXequipment status is set;external parameterisationis possible (pre−setting).

None

LED lights up

ON

OFF

System start with savedparameterisation andsaved CPX expansion hasbeen set;parameters and CPXequipment status aresaved remanently; external parameterisationis blocked 1)

Be careful when replacing CPX valveterminals with saved parameterisation.With these CPX valve terminals,parameterisation is not carried outautomatically by the higher−orderPLC/IPC when the terminal isreplaced. In these cases, check beforereplacing to see which settings arerequired and, if necessary, carry outthese settings.

LED flashes

ON

OFFForce is active 1) The Force function is enabled

(see system parameter Force mode;function no. 4402, Tab.�A/8 in theappendix).

1) The display of the Force function (LED flashes) has priority over the display of the setting for thesystem start (LED lights).

Tab.�3/5: Messages of the LED M

Page 105: CPX terminal

3. Diagnosis

3−9Festo P.BE−CPX−FB13−E N en 0811c

3.3 Diagnostics via status bits

The CPX terminal provides 8 status bits if you have confi�gured it with the option �FB13: DP slave system status". The status bits are used for displaying common diagnosticsmessages (global error messages). The status bits are confi�gured like inputs; you can select the address freely duringthe configuration. If all status bits supply a 0−signal, no fault will be registered.

Bit Diagnostic informationwith 1−signal

Description

0 Fault at valve Module type in which a faulthas occurred

1 Fault at outputhas occurred.

2 Fault at input

3 Fault on analogue module/technology module

4 Undervoltage Type of error

5 Short circuit/overload

6 Wire fracture

7 Other error

Tab.�3/6: Status bits of the CPX FB13 (optional)

3.4 Diagnostics via the I/O diagnostic interface (STI)

The CPX terminal provides a 16−bit I/O diagnostic interface ifyou have configured it with the option �FB13: DP slavesystem diagnosis". Further information can be found here:

� in the appendix A.3 �Access to the CPX terminal via DPV1"

� in the CPX system manual P.BE−CPX−SYS−... in the chapter�Diagnosis and eliminating faults".

Page 106: CPX terminal

3. Diagnosis

3−10 Festo P.BE−CPX−FB13−E N en 0811c

3.5 Diagnosis via PROFIBUS−DP

The CPX terminal supports the following diagnosticpossibilities via PROFIBUS as per EN 50170:

� Device−related diagnosis: Status message (see section 3.7.2)

� Module−related diagnosis (see section 3.5.4): One bit is reserved per module for displaying a diagnosis.

� Channel−related diagnosis (see section 3.5.5): � module number� channel number and type� type of diagnosis (fault number).

1

2 3

1 Device−related diagnosis

2 Module−related diagnosis

3 Channel−related diagnosis

Fig.�3/2: Diagnosis possibilities

Page 107: CPX terminal

3. Diagnosis

3−11Festo P.BE−CPX−FB13−E N en 0811c

3.5.1 Diagnosis steps

The following diagram shows the necessary steps which areuseful for diagnosing the CPX terminal.

23

123 04567

1

Bit

Station status 1

1. Step (evaluation of bits 0 and 2):CPX terminal without voltage,bus plug is not inserted,�...

1

Projected configuration of theCPX terminal is not the sameas the actual configuration.

Step 2:Evaluation of

the diagnosticbytes

1

Device−related diagnosis (see Tab.�3/8)

Module−related diagnosis(see Tab.�3/9)

Channel−related diagnosis (max. 11 messages)(see Tab.�3/10)7 bytes

variab

le16 bytes7

30

Fig.�3/3: Diagnosis steps

NoteThe diagnostic information is sent to the master systemonly if the device−related diagnosis has been activated withthe DIL switch. In order to do this, set switch element 8 of the 8−elementDIL switch to �ON".

Page 108: CPX terminal

3. Diagnosis

3−12 Festo P.BE−CPX−FB13−E N en 0811c

In order to commission your system, it may be useful in somecases to switch off the device−related diagnosis. If yourcontroller does not start, try with the setting �Device−relateddiagnosis inactive" on the 8−element DIL switch (see section1.2.2).

3.5.2 Overview of the diagnostic bytes�

In the following the diagnostic bytes are represented in fourtables.

Standard diagnostic information

Byte Contents Explanation

1 Station status 1 see Tab.�3/11

2 Station status 2 see Tab.�3/12

3 Station status 3 see Tab.�3/13

4 Diag.Master_add Master address: The address of the master thatparameterised the CPX terminal is entered in this byte

5 Ident_number high byte Manufacturer identifier high byte (05h)

6 Ident_number low byte Manufacturer identifier low byte (9Eh)

Tab.�3/7: Diagnostic bytes 1���6: Standard diagnostic information

Page 109: CPX terminal

3. Diagnosis

3−13Festo P.BE−CPX−FB13−E N en 0811c

Device−related diagnosis (16 bytes), (module status DPV1)

Byte Contents Explanation

7 Header With CPX terminal fixed 10h

8 Type With CPX terminal fixed 82h

9 Slot With CPX terminal fixed 0h

10 Slot With CPX terminal fixed 0h

11 Module 0 (bits 1 and 2)...Module 3 (bits 6 and 7)

2 bits per module:00 = no fault (valid useful data)01 = module fault (invalid useful data)10 = incorrect module (invalid useful data)11 = module failed or does not exist (invalid useful data)

12 Module 4 � 7 Like byte 11

13 Module 8 � 10(bits 6 and 7 are reserved)

Like byte 11

14 � 22 Reserved �

Tab.�3/8: Diagnostic bytes 7 � 22: Device−related diagnosis (fixed at length of 16 bytes)

Module−related diagnosis (7 bytes)

Byte Contents Explanation

23 Header With CPX terminal fixed 47h

24 Module−related diagnosis module 0 � 7 Relative module has diagnostic message

25 Module−related diagnosis module 8 � 10 Relative module has diagnostic message

26 � 29 Reserved �

Tab.�3/9: Diagnostic bytes 23 � 29: Module−related diagnosis (details in section 3.5.4)

Page 110: CPX terminal

3. Diagnosis

3−14 Festo P.BE−CPX−FB13−E N en 0811c

Channel−related diagnosis (variable length)

Byte Contents Explanation

30 Channel−related diagnostic module x byte 1 Contains module number

31 Channel−related diagnostic module x byte 2 Channel number and input/output

32 Channel−related diagnostic module x byte 3 Fault type and channel type

33 Channel−related diagnostic module x byte 1 Contains module number

34 Channel−related diagnostic module x byte 2 Channel number and input/output

35 Channel−related diagnostic module x byte 3 Fault type and channel type

... ... ...

60 Channel−related diagnostic module x byte 1 Contains module number

61 Channel−related diagnostic module x byte 2 Channel number and input/output

62 Channel−related diagnostic module x byte 3 Fault type and channel type

x, y, z: See explanation in the following text.

Tab.�3/10: Diagnostic bytes 30 � 62: Channel−related diagnosis (details in section 3.5.5)

The following applies to entries in the diagnostic bytes30���62 (channel−related diagnosis):

� Entries must be in ascending order by module numberwithout gaps: The entries must always be in the samesequence as the module numbers, irrespective of the timesequence of the diagnostic messages (if necessary, theentries with large module numbers will be shifted).

� In the case of module−oriented and channel−orientedfaults on a module, only the module−oriented diagnosticmessage will be entered.

� If there are several channel−oriented faults on a module,only the diagnostic message of the channel with thelowest channel number will be entered.

� A maximum of 11 diagnostic messages can be processed.

Page 111: CPX terminal

3. Diagnosis

3−15Festo P.BE−CPX−FB13−E N en 0811c

3.5.3 Details on standard diagnostic information

The following diagnostic information can be requested by theDP master from the CPX terminal with the functionSlave_Diag. The procedure for reading out this diagnosticinformation with a SIMATIC S5/S7 system is described insection 3.6.1.

Station status_1

Bit Meaning Explanation

0 Diag.Station_Non_Existent CPX terminal no longer/not yet addressable. Possible causes:� Operating voltage not applied� Data cable interrupted� Fault in data cable

1 Diag.Station_Not_Ready CPX terminal not yet ready for data transmission.

2 Diag.Cfg_Fault The configuration data received from the master are notthe same as that ascertained by the CPX terminal.

3 Diag.Ext_Diag There is a diagnosis. Possible causes:� Cable fracture on input/output module� Short circuit/overload at electrical outputs, ...

4 Diag.Not_Supported 1 = CPX terminal does not support the function requested

5 Diag.Invalid_Slave_Response Always 0 (set by the CPX terminal)

6 Diag.Prm_Fault Last parameterisation telegram faulty

7 Diag.Master_Lock Always 0 (set by the CPX terminal)

bold = CPX terminal related bits

Tab.�3/11: Diagnostic bits station status_1

Page 112: CPX terminal

3. Diagnosis

3−16 Festo P.BE−CPX−FB13−E N en 0811c

Station status_2

Bit Meaning Explanation

0 Diag.Prm_Req 1 = The master must configure the CPX terminal again

1 Diag.Stat_Diag 1 = The master must request diagnostic data until this bit is set to 0

2 � Always 1 (set by the CPX terminal)

3 Diag.WD_On 1 = Response monitoring/watchdog activated

4 Diag.Freeze_Mode 1 = Freeze activated

5 Diag.Sync_Mode 1 = Sync activated

6 � Reserved

7 Diag.Deactivated Always 0 (set by the CPX terminal)

bold = CPX terminal related bits

Tab.�3/12: Diagnostic bits station status_2

Station status_3

Bit Meaning Explanation

0 � 6 � Reserved

7 Diag.Ext_Diag_Overflow 1 = The CPX terminal has more diagnostic messages than canbe buffered or the master receives more diagnostic messages than it canbuffer.

Tab.�3/13: Diagnostic bits station status_3

Page 113: CPX terminal

3. Diagnosis

3−17Festo P.BE−CPX−FB13−E N en 0811c

3.5.4 Details of the module−related diagnosis

One bit is reserved for every module (identifier byte)assigned during configuration. A set bit means that there is adiagnostic message in this I/O range.

5 123 0467 Bit Header byte of the module−related diagnosis

Length of the module−related diagnosticblock in bytes including the header byte.

1

Bit 7, 6 fixed at 01

0 1110 0 0

Fig.�3/4: Header byte of the module−related diagnosis

5 123 0467 BitModule−related diagnosis

Module 0 has diagnosis

Module 1 has diagnosis

Module 7 has diagnosis

...

...

Fig.�3/5: Module−related diagnosis

Page 114: CPX terminal

3. Diagnosis

3−18 Festo P.BE−CPX−FB13−E N en 0811c

3.5.5 Details of the canal−related diagnosis

3 bytes of diagnostic data are available for each channel:

� Byte 1: Module number

� Byte 2: Channel number

� Byte 3: Type of diagnosis

Bit 7, 6 fixed at 10

5 123 0467 BitByte 1:Module number of the channel−relateddiagnosis

Module number 0 � 63

01

5 123 0467 Bit Byte 2:Channel number

Channel number 0 � 63

Input/output00 = reserved 10 = output01 = input 11 = input/output

5 123 0467 Bit Byte 3:Type of diagnosis

Fault type (see Tab.�3/14)

Channel type000 = reserved 100 = 1 byte001 = 1 bit 101 = 1 word010 = 2 bits 110 = 2 words011 = 4 bits 111 = reserved

Fig.�3/6: Channel−related diagnostic byte 1 � 3

Page 115: CPX terminal

3. Diagnosis

3−19Festo P.BE−CPX−FB13−E N en 0811c

5 123 0467 Bit Channel number

Channel number 0 � 63

Input/output00 = reserved 10 = output01 = input 11 = input/output

Fig.�3/7: Channel−related diagnostic byte 2

5 123 0467 Bit Type of diagnosis

Fault type (see Tab.�3/14)

Channel type000 = reserved 100 = 1 byte001 = 1 bit 101 = 1 word010 = 2 bits 110 = 2 words011 = 4 bits 111 = reserved

Fig.�3/8: Channel−related diagnostic byte 1 � 3

Page 116: CPX terminal

3. Diagnosis

3−20 Festo P.BE−CPX−FB13−E N en 0811c

Value Fault type (standard) Value Fault type (Festo)

0 Reserved 16 Incorrect valve setting

1 Short circuit 17 Valve: Switching counter, limit value exceeded

2 Undervoltage 18 Reserved

3 Overvoltage 19 Reserved

4 Overload 20 Parameterisation fault (configurable)

5 Overheating 21 Parameterisation fault (data format)

6 Cable break 22 Parameterisation fault (linear scaling)

7 Upper limit value exceeded 23 Parameterisation error (digital filter)

8 Lower limit value exceeded 24 Parameterisation error (lower limit value)

9 Reserved 25 Parameterisation error (upper limit value)

10 Reserved 26 Defective actuator supply

11 Reserved 27 CP module failure

12 Reserved 28 Defective CP configuration

13 Reserved 29 Short circuit in the CP string (CP line)

14 Reserved 30 Slave has no bus connection

15 Reserved 31 Channel failed

bold = relevant for CPX−FB13

Tab.�3/14: Fault types (byte 3 of the channel−related diagnosis)

Page 117: CPX terminal

3. Diagnosis

3−21Festo P.BE−CPX−FB13−E N en 0811c

3.6 Fault treatment (�Fail safe")

Parameterisation The reaction of the CPX terminal to the following faultsdepends on the configured reaction of the master moduleand the parameterised fail−safe setting:

� Telegram failure

� The master has stopped

� Interruption in the bus cable

Depending on parameterisation, the outputs (valves andelectric outputs) will be switched off (factory setting),switched on or retain their status.

Further information about the fail−safe setting can be found inthe CPX system manual P.BE−CPX−SYS−...

Warning· Ensure that valves and outputs are put into a safe stateif the faults named occur.

An incorrect status of the valves and outputs can lead todangerous situations!

NotePlease note the following if the outputs are reset after PLCstop, field bus interruption or fault:

� Single−solenoid valves move to the basic position.

� Double−solenoid valves remain in the current position.

� Mid−position valves move to the mid−position (depending on valve type: vented, purged or blocked).

Page 118: CPX terminal

3. Diagnosis

3−22 Festo P.BE−CPX−FB13−E N en 0811c

3.6.1 Siemens SIMATIC S5/S7

With these faults you have the possibility of specifying thereaction of the CPX terminal to the faults named (details see controller manual).

Almost all configuration programs contain the function�Response monitoring". For the operating modes named, thespecified time corresponds to the drop−out time of the valvesand electric outputs.

Further details on response monitoring can be found in therelevant controller manuals.

You can set two types of fault reactions of the control system:

� Hard fault reaction: The controller switches to the oper�ating mode �STOP" when a fault occurs.

� Soft fault reaction: The controller remains in the operatingmode �RUN" when a fault occurs.

Control system Module Meaning STOP RUN

SIMATIC S5 withIM�308C

OM23 Reaction to AKD with direct access toperipherals

default OM isprogrammed

OM24 Reaction to AKD with access toperipherals via process image

default OM isprogrammed

OM35 Reaction to PEU(periphery unclear)

default OM isprogrammed

SIMATIC S7/M7 OM82 Reaction to a device−related diagnosis default OM isprogrammed

OM86 Reaction to failure of a DP slave default OM isprogrammed

AKD: acknowledgement delay OM: organisation module PEU: periphery unclear

Tab.�3/15: Fault reactions STOP and RUN with S5/S7

Page 119: CPX terminal

3. Diagnosis

3−23Festo P.BE−CPX−FB13−E N en 0811c

Possibilities for downloading the diagnosis for S5/S7

The diagnosis for PROFIBUS−DP is supported in the differentcontrol systems by means of function modules. These down�load the slave diagnosis and write it into a data range of theuser program.

Control system Functional module See ... Manufacturer

SIMATIC S5 withIM 308C

FB192 �IM 308C" �ET 200 Decentral PeripherySystem" manual

Siemens

SIMATIC S5 withS5−95U/DP master

FB230 �S_DIAG" �ET 200 Decentral PeripherySystem" manual

Siemens

SIMATIC S5 withSF 50/DP master

FB230 �S_DIAG" �Programmable valve terminalwith SB/SF 50" manual

Festo

SIMATIC S7/M7 SFC13 �DP NRM_DG" �System and Standard Functions"reference manual

Siemens

SIMATIC S7/M7 FB125 Siemens download in Internet Siemens

Tab.�3/16: Possibilities for downloading the diagnosis for S5/S7

Example for a STEP 7 user program

STL ExplanationCALL SFC 13REQ:=TRUE Read requestLADDR:=W#16#03FE Pointer at diagnostic address, e.g. 1022d = 03FEh

(see mask �Properties � DP slave" in HW Config)RET_VAL:=MW100 When faults occur, output fault codeRECORD:=P#M110.0 BYTE 64 Pointer at start of data range for diagnosis

and maximum length of the diagnostic dataBUSY:=M10.0 Read procedure finished

Fig.�3/9: Programming example in STL

Page 120: CPX terminal

3. Diagnosis

3−24 Festo P.BE−CPX−FB13−E N en 0811c

3.7 Online diagnosis with STEP 7

Direct diagnostic events in conjunction with the CPX terminalcan be:

� Decentral periphery station failure � communication between slave and master interrupted

� Module faulty (see device−related diagnosis Tab.�3/8)

� Change of operating status from START to RUN (nominal/actual difference exists)� configuration data of the CPX node do not� agree with the periphery

� CPX node has incorrect DIL setting

3.7.1 Read out diagnostic buffer with STEP 7 (up to V 5.2)

Requirements:

� HW Config must be accessed.

Proceed as follows (Fig.�3/10):

1. Switch from offline to online 1.

2. Click with the right−hand mouse button on the CPU inrack�2.

3. Click on [Module Information...] in the displayed contextmenu (Module status). The �Module Information" windowis displayed 3.

4. Click on the register �Diagnostic Buffer" 4.

5. Click on the event and read the details 5. Here you willfind more detailed information on proceding further,depending on the S7 controller used.

Page 121: CPX terminal

3. Diagnosis

3−25Festo P.BE−CPX−FB13−E N en 0811c

1 2 3 4

5

Fig.�3/10: Online diagnosis via the diagnostic buffer (explanation see text)

Page 122: CPX terminal

3. Diagnosis

3−26 Festo P.BE−CPX−FB13−E N en 0811c

3.7.2 Device−related diagnosis with STEP 7 (up to V�5.3)

You can display fault messages of the device−related diagnosiswith STEP 7 HW Config V5.1, if you mark the CPX�terminalinstead of the CPU. Proceed as follows (see Fig.�3/11):

Requirement:� HW Config has been accessed.

1. Switch from offline to online.

2. Click with the right−hand mouse button on the icon of theCPX terminal 1. Click on �Module Information" (compo�nent status) in the displayed context menu. The dialoguewindow �Module Information" now appears.

3. Select the �DP Slave Diagnostics" tab.

4. Read the diagnostic information 2.

1 2

Fig.�3/11: Device−related diagnosis with STEP 7 (explanation see text)

Page 123: CPX terminal

Technical appendix

A−1Festo P.BE−CPX−FB13−EN en 0811c

Appendix A

Page 124: CPX terminal

A. Technical appendix

A−2 Festo P.BE−CPX−FB13−EN en 0811c

Contents

A. Technical appendix A−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.1 Technical specifications of field bus node CPX−FB13 A−3 . . . . . . . . . . . . . . . . . . .

A.2 Start parameters A−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3 Access to the CPX terminal via DPV1 A−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3.1 Reading and writing data records A−9 . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3.2 Data records A−14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.3.3 Examples for DPV1 access A−18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 125: CPX terminal

A. Technical appendix

A−3Festo P.BE−CPX−FB13−EN en 0811c

A.1 Technical specifications of field bus node CPX−FB13

General information

General technical specifications see CPX system manual P.BE−CPX−SYS−...

Protection class as per EN 60529, CPX−FB13 fittedcompletely, plug connector plugged in or fitted with protective cap

IP65 / IP67

Protection against electric shock(protection against direct and indirect contact as per IEC/DIN EN 60204−1)

by means of a PELV circuit(Protected Extra−Low Voltage)

Module code (CPX−specific) Remote I/O: 202Remote controller: 153

Module identifier (in the handheld unit) Remote I/O:� FB13−RIO PROFIBUS remote I/ORemote controller:� FB13−RC PROFIBUS bus node

Voltage supply

Operating voltage�/�load voltage see CPX system manual P.BE−CPX−SYS−...

Current consumption of field bus node CPX−FB13� from operating voltage supply for electronics/

sensors (VEL/SEN)max. 200 mA (only CPX−FB13)

Electrical isolation bus interface opto−decoupled

Field bus

PROFIBUS chip SPC 3 with DPV1

Version RS485, floating

Type of transmission serial asynchronous, half duplex

Protocol PROFIBUS DP

Transmission speed 9.6 � 12000�kBaud, automatic baud rate recognition

Cable type depends on the cable length and on the set field bus baud rate: see the manual for your controller

Page 126: CPX terminal

A. Technical appendix

A−4 Festo P.BE−CPX−FB13−EN en 0811c

A.2 Start parameters

This section informs you about the number of startparameters of the CPX modules. Use of the newest GSD is arequirement.

Further information on start parameterisation can be found insection 2.2.1.

Sample calculation The following table shows a sample calculation to determinethe number of start parameters for the sample terminal 3(see Fig.�2/11). The result is below the upper limits for thestart parameters named in section 2.2.1.

Loca�tion

Module Startparameters

0 Field bus node CPX−FB13: DP slave [status] 5

1 Digital 8−input module CPX−8DE [8DI] 5

2 Digital 4−output module CPX−4DA [4DO]�x�2 5

3 CP interface CPI:�4 bytes I/16 bytes O 42

4 Digital multi−I/O module CPX−8DE−8DA [8DI/8DO] 7

5 MPA1 pneumatic module MPA1S: VMPA1−FB−EMS−8 [8DO] 5

6 MPA1 pneumatic module MPA1S: VMPA1−FB−EMS−8 [8DO] 5

Total 74

Tab.�A/1: Number of start parameters for example terminal 3 (see Fig.�2/11)

Page 127: CPX terminal

A. Technical appendix

A−5Festo P.BE−CPX−FB13−EN en 0811c

In the following tables,

� maximum number in a CPX terminal: specifies themaximum possible number of the respective modulein a CPX terminal.

Field bus node, digital input and outputmodules

Maximum number in a CPX terminal

Startparametersper module

� Rev. 15 � Rev. 20

Field bus node CPX−FB13, Remote I/O and Remote controller:

CPX−FB13

1 1 5

Digital 4−input module:

CPX−4DE

9 9 5

Digital 8−input modules:CPX−8DE, CPX−8DE−D, CPX−8NDE

9 9 5

Digital 16−input modules:CPX−16DE, CPX−M−16DE−D

9 9 6

Digital 4−way output module:CPX−4DA

9 9 5

Digital 8−output modules:CPX−8DA, CPX−8DA−H

9 9 6

Digital multi I/O module:CPX−8DE−8DA

9 9 7

Tab.�A/2: Number of start parameters, part 1: Field bus node, digital input and outputmodules

Page 128: CPX terminal

A. Technical appendix

A−6 Festo P.BE−CPX−FB13−EN en 0811c

Analogue input and output modules Maximum number in a CPX terminal

Startparametersper module

� Rev. 15 � Rev. 20

Analogue 2−input module:CPX−2AE−U−I

9 9 17

Analogue 4−input module:CPX−4AE−I

6 8 27

Analogue 4−input module (temp. module for RTD sensors):CPX−4AE−T

8 9 20

Analogue 4−input module (temp. module for TC sensors):CPX−4AE−TC

8 9 19

Analogue 2−output module:CPX−2AA−U−I

7 9 21

Tab.�A/3: Number of start parameters, part 2: Analogue input and output modules

Technology modules Maximum number in a CPX terminal

Startparametersper module

� Rev. 15 � Rev. 20

Soft stop end−position controllerCMPX without fail−safe

8 9 19

Soft stop end−position controllerCMPX with fail−safe

6 8 27

Multi−axis interfaceCPX−CMXX

9 9 0

CPX−CP interfaceCPX−CP−4−FB

see Tab.�A/5

Tab.�A/4: Number of start parameters, part 3: Technology modules

Page 129: CPX terminal

A. Technical appendix

A−7Festo P.BE−CPX−FB13−EN en 0811c

CPX−CP interface Maximum number in a CPX terminal

Startparametersper module

� Rev. 15 � Rev. 20

CPX−CP interface: CPX−CP−4−FBDependent on the CP−string assignment, as follows:

� 0I/0O� 0I/4O� 0I/8O� 0I/12O� 0I/16O

44444

44444

315243342

� 4I/0O� 4I/4O� 4I/8O� 4I/12O� 4I/16O

44444

44444

1015243342

� 8I/0O� 8I/4O� 8I/8O� 8I/12O� 8I/16O

44444

44444

1419243342

� 12I/0O� 12I/4O� 12I/8O� 12I/12O� 12I/16O

44444

44444

1823283342

� 16I/0O� 16I/4O� 16I/8O� 16I/12O� 16I/16O

44443

44444

2227323742

Tab.�A/5: Number of start parameters, part 4: Technology module CPX−CP interface

Page 130: CPX terminal

A. Technical appendix

A−8 Festo P.BE−CPX−FB13−EN en 0811c

Pneumatics Maximum number in a CPX terminal

Startparametersper module

� Rev. 15 � Rev. 20

Pneumatic interface for VTSA or VTSA−F pneumatic (ISO, type 44/45): 1)

� 1 � 8 valve coils� 1 � 16 valve coils� 1 � 24 valve coils� 1 � 32 valve coils

1111

1111

691215

Pneumatic interface for Midi/Maxi valves (type 03): 1)

� 1 � 8 valve coils� 1 � 16 valve coils� 1 � 24 valve coils� 1 � 32 valve coils (26 can be used)

1111

1111

57910

Pneumatic interface for CPA valves (type 12): 1)

� 1 � 8 valve coils� 1 � 16 valve coils� 1 � 24 valve coils (22 can be used)

111

111

6912

MPA1 pneumatic module VMPA1−FB−EM...−8 2)

8 8 5

MPA1 pneumatic module with diagnostic function D2:VMPA1−FB−EM...−D2−8 2)

8 8 7

MPA2 pneumatic moduleVMPA2−FB−EM...−4 2)

9 9 4

MPA2 pneumatic module with diagnostic function D2:VMPA2−FB−EM...−D2−4 2)

9 9 6

MPAP pressure sensor moduleVMPA−FB−PS−...

4 9 12

VPPM proportional pressure−regulating valve (type 32)VPPM−6TA−L−1−F...

9 9 18

1) Setting with DIL switch in the pneumatic interface2) Type of MPA electronic module used

Tab.�A/6: Number of start parameters, part 5: Pneumatics

Page 131: CPX terminal

A. Technical appendix

A−9Festo P.BE−CPX−FB13−EN en 0811c

A.3 Access to the CPX terminal via DPV1

By means of DPV1 commands, you can access all the dataand parameters which the CPX terminal provides:

� Parameter and status information

� System data

DPV1 commands are only available if you configure the fieldbus node with the following possibility:

� FB13: DP slave system diagnosis

You can easily access the system data via the PROFIBUSconfiguration software. Background information can be foundin the CPX system manual P.BE−CPX−SYS−...

A.3.1 Reading and writing data records

Various function modules are available for reading andwriting data. The following table provides an overview:

Function Function moduleSiemens S7 (former)

Function moduleSiemens S7 (new)

Functional moduleDP standard

Read data SFC 59 RD_REC SFB 52 RDREC DP_RDREC

Write data SFC 58 WR_REC SFB 53 WRREC DP_WRREC

DPV1 compatibility *) �S7 compatible" �S7 compatible"IEC 61131−3

�Standard"EN 50170

*) Parameterisation of the field bus node as in the following section

Tab.�A/7: Overview of function modules for reading and writing data records

Page 132: CPX terminal

A. Technical appendix

A−10 Festo P.BE−CPX−FB13−EN en 0811c

You can still use the function modules SFC�58 and SFC�59 inyour existing S7 projects.Recommendation: When creating new projects, use the newfunction modules SFB�52 and SFB�53, in order to make use ofthe full DPV1 functionality.

Before accessing the data, set the DPV1 compatibility to�S7�compatible" as follows:

Setting the DPV1 compatibility

Parameterise the field bus node S7−conform if you areworking with a Siemens master:

1. Proceed as described in section 2.2.2, double−click in step1 but on the line of the field bus node in the configurationtable. The dialogue window �Properties � DP slave" willbe displayed.

2. Select the �Parameter Assignment" tab and modify thevalue of the �DPV1 � Services" to �S7 compatible" (see following diagram).

3. Confirm with OK.

Fig.�A/1: Setting the compatibility for accessing the DPV1

Page 133: CPX terminal

A. Technical appendix

A−11Festo P.BE−CPX−FB13−EN en 0811c

Siemens S7 � SFC 59 and 58

Function module SFC 59 in STL for reading a data record:

STL ExplanationCALL SFC 59”RD_REC”REQ :=TRUE Request to readIOID :=B#16#54 Identifier of the address range (here always 54)LADDR :=W#16#6 Logical address of the field bus node

(see mask �Properties � DP slave" in HW Config)RECNUM :=B#16#14 Data record number 20 (see Tab.�A/8)RET_VAL :=MW100 If faults occur, output fault codeRECORD :=P#M110.0 BYTE 8 Target range for data record read and length of data recordBUSY :=M10.0 Reading in process

Fig.�A/2: Example program for reading out the diagnostic memory status

Function module SFC 58 in STL for writing a data record:

STL ExplanationCALL SFC 58”WR_REC”REQ :=TRUE Request to writeIOID :=B#16#54 Identifier of the address range (here always 54)LADDR :=W#16#6 Logical address of the field bus node

(see mask �Properties � DP slave" in HW Config)RECNUM :=B#16#14 Data record number 20 (see Tab.�A/8)RECORD :=P#M130.0 BYTE 8 Pointer at start of data range for diagnosis

and length of diagnostic dataRET_VAL :=MW102 If faults occur, output fault codeBUSY :=M10.1 Writing in process

Fig.�A/3: Example program for transmitting the diagnostic memory status

Page 134: CPX terminal

A. Technical appendix

A−12 Festo P.BE−CPX−FB13−EN en 0811c

Siemens S7 � SFB 52 and 53

New function module SFB 52 in STL for writing a data record:

STL ExplanationCALL ”RDREC” , DB100REQ :=TRUE Request to readID :=B#16#256 Logical address of the field bus node

(see mask �Properties � DP slave" in HW Config)INDEX :=17 Data record numberMLEN :=10 max. length of the data record information

to be read in byteVALID :=M200.0 1 = new data record received and validBUSY :=M200.1 1 = reading in processERROR :=M200.2 1 = fault in readingSTATUS :=MD202 Access identifier or fault codeLEN :=MW220 Length of the read data record informationRECORD :=P#M230.0 BYTE 10 Target range for the read data record and max. data

record length

Fig.�A/4: Example program for reading out the diagnostic memory status

New function module SFB 53 in STL for writing a data record:

STL ExplanationCALL ”WRREC” , DB101REQ :=TRUE Request to writeID :=B#16#256 Logical address of the field bus node

(see mask �Properties � DP slave" in HW Config)INDEX :=17 Data record numberLEN :=8 max. length of the data record information to be transferred

in bytesDONE :=M200.0 1 = data record has been transferredBUSY :=M200.4 1 = reading in processERROR :=M200.5 1 = fault in readingSTATUS :=MD206 Access identifier or fault codeRECORD :=P#M230.0 BYTE 10 Source range for the data record and max. data record

length to be written

Fig.�A/5: Example program for transmitting the diagnostic memory status

Page 135: CPX terminal

A. Technical appendix

A−13Festo P.BE−CPX−FB13−EN en 0811c

Compliant with the standard

For standard−conform access to the data records, set theDPV1 compatibility to �Standard" (see above under �Settingthe DPV1 compatibility").Use function module DP_RDREC for reading and DP_WRRECfor writing data.

Page 136: CPX terminal

A. Technical appendix

A−14 Festo P.BE−CPX−FB13−EN en 0811c

A.3.2 Data records

Access to the parameters and data is made via a slot numberand an index number. Tab.�A/8 to Tab.�A/11 show the addressassignment. The slot number for the module−related data results from:slot number = module number + 100.

Data model of the DPV1 access

ÓÓÓÓÓÓÓÓ

ÓÓÓÓÓÓÓÓ

0 1 2 3 4 5 6

8DI 8DI 4DO 8DI 4DO

Module no.:

8DO

Slot 100 Slot 101 Slot 102 Slot 103 Slot 104 Slot 105 Slot 106

Slot 1: System data and parameters (see Tab.�A/8)Index 16 � 19: System data, system parameters, diagnostic dataIndex 20 � 65: Diagnosis memory

Index 16 � 30:Module data and module parameters(see Tab.�A/11)

Fig.�A/6: Data model of the DPV1 access with the CPX−FB13

The following tables show the relationship between access toparameters and data via DPV1 and via the function numbers.Further information on the function numbers can be found inthe Appendix to the CPX system manual P.BE−CPX−SYS−...

Page 137: CPX terminal

A. Technical appendix

A−15Festo P.BE−CPX−FB13−EN en 0811c

Slot 1: System parameters

Index Name Length[byte]

Access Datarecordnumber *)

Function no.

16 System data 16 r 16 0 � 23 � 15 (reserved)

17 System parameters 8 r/w 17 4400 (reserved)4401 � 4407

18 Reserve 64 r/w 18 3416

19 System diagnostic data 8 r 19 1936 � 19381939 � 1943 (reserved)

20 Diagnosis memoryparameters

8 r/w 20 3480 � 3487

21 Diagnosis memory Entry 0

10 r 21 3488 � 3497

22 Diagnosis memory Entry 1

10 r 22 3498�. 3507

... Diagnosis memory Entry ...

10 r ... ...

60 Diagnosis memory Entry 39

10 r 60 3878 � 3887

65 Delete diagnosismemory

1 w 65 �

*) Siemens S7

Tab.�A/8: Slot 1: System parameters

Page 138: CPX terminal

A. Technical appendix

A−16 Festo P.BE−CPX−FB13−EN en 0811c

Slot 2: Channel−specific module parameters

Index Name Length[byte]

Access Datarecordnumber *)

Function no.

16 Fault mode 64 r 2 3888

17 Fault state 64 r 3 3952

18 Force mode outputs 64 r 4 4016

19 Force state outputs 64 r 5 4080

20 Force mode inputs 64 r 6 4144

21 Force state inputs 64 r 7 4208

22 Global operating system data 40 r 8 4792

*) Siemens S7

Tab.�A/9: Slot 2: Channel−specific module parameters

With slot 3 you have indirect reading and writing access tothe data records (system parameters, module data andmodule parameters). In order to do this, assign the 4 bytes ofthe command box with: the slot number, the index numberand an offset (byte 4 is reserved). You can then carry out theread or write process with the Read Box and the Write Box.

Slot 3: Indexed addressing of the objects

Index Name Length[byte]

Access Datarecordnumber *)

Function no.

16 Command box 4 r/w 9 �

17 Read Box 64 r 10 �

18 Write Box 64 w 11 �

*) Siemens S7

Tab.�A/10: Slot 3: Indexed addressing of the objects

Page 139: CPX terminal

A. Technical appendix

A−17Festo P.BE−CPX−FB13−EN en 0811c

Slot 100 � 147: Module data and module parameters

Index Name Length[byte]

Access Datarecordnumber *)

Function no.

16 Module configuration 16 r 72 16 + 16 � m

17 Module series number 4 r 73 784 + 4 � m

18 Module diagnostic data 4 r 74 2008 + 4 � m

19 Reserve 4 r/w 75 3224 + 4 � m

20 Module nominal configuration 8 r/w 76 4408 + 8 � m

21 Module parameters 64 r/w 77 4828 + 64 � m

22 Module parameter records 16 r 78 976 + 16 � m

23 Diagnosis of all input channels 64 r 79 �

24 Diagnosis of all output channels 64 r 80 �

25 Module fault mode 64 r/w 81 �

26 Module fault state 64 r/w 82 �

27 Module force: outputs 64 r/w 83 �

28 Module force: outputs 64 r/w 84 �

29 Module force: inputs 64 r/w 85 �

30 Module force: inputs 64 r/w 86 �

m = module number (counting from left to right, beginning with 0)*) Siemens S7

Tab.�A/11: Module data and parameters

Page 140: CPX terminal

A. Technical appendix

A−18 Festo P.BE−CPX−FB13−EN en 0811c

A.3.3 Examples for DPV1 access

Example of access to data records

In the following, the module parameter �Reaction after shortcircuit/overload of the load voltage supply" is modified onmodule no. 3 from Fig.�2/3 in the configuration example.Since slot number = module number + 100 (see above),slot�103 should be used for module no. 3 in the following.

As an initial setting, bit 1 of parameter 1 has the value �1" = �Switch voltage on again".

1. Assign the command box as follows:

Byte 1 2 3 4

Contents Slot no. Index no. Offset �

Example 103 21 1 �

2. Then transfer the value �0" with the Write Box.The module is now parameterised to �Leave voltageswitched off" in the event of a short circuit/overload.

Example of access to the diagnostic memory

In the following, entry 0 of the diagnosis memory will be readout indirectly via the command box.

1. Assign the command box as follows:

Byte 1 2 3 4

Contents Slot no. Index no. Offset �

Example 1 21 0 �

2. Read out the diagnostic memory with the Read Box.

Page 141: CPX terminal

A. Technical appendix

A−19Festo P.BE−CPX−FB13−EN en 0811c

Example for forcing of outputs

In the following, the output channels are forced in a CPX4−output module (Fig.�2/3, module no. 3 ). In steps 1 � 4, the forcing function is first released for the CPX terminal.

1. Read out the currently set system parameters via slot 1index 17.

2. Release the �Force mode" system parameter: Set byte�2bit 2 to �1". (See CPX system manual Tab. B/6 �Systemparameter: Force mode".)

3. Write the system parameters changed in step 2 via slot 1index 17.

This releases the Force function for the entire CPX terminal.Since slot number = module number + 100 (see above),slot�103 should be used for module no. 3 in the following

4. For the �Force State outputs" module parameter forchannels 0 � 3, via slot 103 set index 28 to �0Fh" (see Tab.�A/11)

5. For the �Force Mode outputs" module parameter forchannels 0 � 3, via slot 103 set index 27 to �0Fh" (see Tab.�A/11)

This sets the outputs 0 � 3 of the module through forcing.

See also CPX system manual Tab. B/21 �Module parameter:Forcing channel x".Basics of forcing can be found in the CPX system manual inappendix C �General principles for parameterisation" in the�Forcing" section.

Page 142: CPX terminal

A. Technical appendix

A−20 Festo P.BE−CPX−FB13−EN en 0811c

Page 143: CPX terminal

General DP master

B−1Festo P.BE−CPX−FB13−EN en 0811c

Appendix B

Page 144: CPX terminal

B. General DP master

B−2 Festo P.BE−CPX−FB13−EN en 0811c

Contents

B. General DP master B−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1 Operation with the general DP master B−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.1 Bus start B−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.2 Send parameterisation data B−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.3 Check the configuration data� B−7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.4 Transferring input and output data B−10 . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.5 Read diagnostic information B−14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.6 Implemented functions and service access points (SAP) B−15 . . . . . . . .

B.1.7 Bus parameters/reaction times B−16 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B.1.8 Transmission times on the PROFIBUS−DP B−16 . . . . . . . . . . . . . . . . . . . .

Page 145: CPX terminal

B. General DP master

B−3Festo P.BE−CPX−FB13−EN en 0811c

B.1 Operation with the general DP master

The Festo CPX terminal can be controlled from any PLC, PC orindustrial PC with a PROFIBUS−DP module in accordance withEN 50170.

Further information Read the information on the following themes in theappropriate sections:

� GSD: section 2.1.3

� Module consistency, FREEZE and SYNC, identifiers:section 2.1.1

� Status bits: section 3.3

B.1.1 Bus start

In order to commission the CPX terminal correctly, the DPmaster must carry out the following functions in the sequencespecified:

1. Request diagnosis.

2. Send parameterisation data (Set_Prm)For the start parameterisation, the parameter set will beloaded into the field bus node by the master. The nodedistributes the parameters amongst the modules.

3. Check configuration data (Chk_Cfg).

4. Transfer input and output data (cyclic data exchange,Data_Exchange).

5. Read diagnostic information (Slave_Diag).

The composition and contents of the individual telegrams aredescribed in the following sections.

Page 146: CPX terminal

B. General DP master

B−4 Festo P.BE−CPX−FB13−EN en 0811c

NoteAfter each interruption of the field bus system (e.g. afterinterruption of the power supply to the field bus node), theparameter set will be sent again by the PROFIBUS masterto the field bus node.

An exchange of individual CPX modules is therefore possiblewithout the need for manual parameterisation.

Page 147: CPX terminal

B. General DP master

B−5Festo P.BE−CPX−FB13−EN en 0811c

B.1.2 Send parameterisation data

Set_Prm The parameterisation data are sent to the CPX terminal bythe DP master via the function Set_Prm.

Octet 1: Station status

Bit Meaning Explanation

0 � Reserved

1 �

2 �

3 WD_On Response monitoring of the CPX terminal on/off:0 = Off1 = On

4 Freeze_Req 0 = FREEZE mode not requested by the master1 = FREEZE mode set by the master

5 Sync_Req 0 = SYNC mode not requested by the master1 = SYNC mode set by the master

6 Unlock_Req Bit 7 Bit 6 Explanation

7 Lock_Req 0 0 min TSDR + slave parameters may be overwritten

0 1 CPX terminal released for other masters

1 0 CPX terminal blocked for other masters

1 1 CPX terminal released for other masters

Tab.�B/1: Octet 1: Station status

Page 148: CPX terminal

B. General DP master

B−6 Festo P.BE−CPX−FB13−EN en 0811c

Further octets

Octet Description Explanation

2 and 3 WD_Fact_1WD_Fact_2

Range 1 � 255: The response monitoring time of the CPX terminal istransmitted with these two octets:TWD [s] = 10 ms x WD_Fact_1 x WD_Fact_2

4 Minimum Station DelayResponder (min TSDR)

The minimum time the CPX terminal must wait, beforethe reply telegram may be sent to the DP�master.

5 and 6 Ident_number Transmits the Ident. number (= 059Eh) of the CPXterminal; parametrizing telegrams to the CPX terminalare only accepted if the transmitted and the programmedIdent. numbers are the same.

7 Group_Ident Not supported by the CPX terminal

8 � 198 User_Prm_Data Information on the slave−specific parameters can befound in section 2.2 and the CPX system manualP.BE−CPX−SYS−... as well as in the manual for theI/O�modules P.BE−CPX−EA−...

Tab.�B/2: Octets 2 � 198

Page 149: CPX terminal

B. General DP master

B−7Festo P.BE−CPX−FB13−EN en 0811c

B.1.3 Check the configuration data�

Chk_Cfg The configuration data are transferred to the CPX terminalby the DP master with the function Chk_Cfg.

Permitted identifiers for the CPX terminal:

Identifiers according to EN 50170 and the assigned addressspace of the CPX modules can be found in the tables insection 2.1.2:

� Field bus nodes and diagnosis mode: Tab.�2/1

� Digital input and output modules: Tab.�2/2

� Analogue input and output modules: Tab.�2/3

� Technology modules Tab.�2/4

� CPX−FB13 as remote controller Tab.�2/5

� MPA pneumatics Tab.�2/6

� MPA pneumatic module with diagnosis function D2:Tab.�2/7

� Pneumatic interfaces and other pneumatics: Tab.�2/8 and Tab.�2/9

Page 150: CPX terminal

B. General DP master

B−8 Festo P.BE−CPX−FB13−EN en 0811c

Example: Configuring a CPX terminal

Mod.no.

Module DP identifierEN 50170

Comment

0 Field bus node(FB13: DP slave system status)

40h, 00h Configured with status bits

1 Digital 8−input module(I: CPX−8DE)

10h Identifier byte used completely

2 Digital 8−input module(I: CPX−8DE)

10h Identifier byte used completely

3 Digital 4−output module(O: CPX−4DA 2x)

20h Only 4 bits of the identifier byteare used

4 Digital multi I/O module(Y: CPX−8DE−8DA)

30h Identifier byte used completely

5 Digital 4−output module(*O: CPX−4DA)

00h The identifier byte from location 3is filled with the remaining 4 bits

6 CPA pneumatic interface, set withDIL switch to 1 � 16 valve coils(VI: CPX type 12: 1−16VS)

21h The interface to the pneumaticsmust be configured correctly tocorrespond to the pneumaticequipment fitted

Tab.�B/3: Example of the configuration of a CPX terminal (see Fig.�2/3) with differentmodules and MPA pneumatics

Page 151: CPX terminal

B. General DP master

B−9Festo P.BE−CPX−FB13−EN en 0811c

Mod.no.

Module DP identifierEN 50170

Explanation

0 Field bus nodeFB13:�DP slave system status

40h, 00h Configured with status bits

1 Digital 8−input moduleE:�CPX−8DE

10h Identifier byte used completely

2 Digital 4−output moduleO:�CPX−4DA 2x

20h Only the first 4 bits of the identifierbyte are used 1)

� MPA pneumatic interface VMPA−FB−EPL−...

� Passive module

3 MPA1 pneumatic moduleVI:�MPA1S: VMPA1−FB−EMS−8 [8DO]

20h MPA1 pneumatic modules withoutseparate power supply circuits.Identifier bytes are used completely

4 MPA1 pneumatic moduleVI:�MPA1S: VMPA1−FB−EMS−8 [8DO]

20hIdentifier bytes are used completely

5 MPA2 pneumatic moduleVI:�MPA2S: VMPA2−FB−EMS−4[4DO]��x�2

20h MPA2 pneumatic module (without separate circuits)Only the first 4 bits are used.

6 MPA2 pneumatic moduleVI:�*MPA2S: VMPA2−FB−EMS−4[4DO]��x�0

00h MPA2 pneumatic module (without separate circuits).The remaining 4 bits of moduleno.�5 are used.

1) As no output module with groupable identifier is used in the subsequent locations, 8 bits are assigned here, but only 4 are used.

Tab.�B/4: Example of the configuration of a CPX terminal (see Fig.�2/2) with differentmodules and MPA pneumatics

Page 152: CPX terminal

B. General DP master

B−10 Festo P.BE−CPX−FB13−EN en 0811c

B.1.4 Transferring input and output data

Data_Exchange The cyclic exchange of data is accomplished with thefunction Data_Exchange.

With this function the output data for CPX terminals aretransmitted as an octet string of length x. The octet stringlength depends on the number of identifier bytes.

NoteWith the function Data_Exchange, the CPX terminalexpects the output information for the valves and electricoutputs.

The input data are sent to the master as a reply telegram.

Page 153: CPX terminal

B. General DP master

B−11Festo P.BE−CPX−FB13−EN en 0811c

Overview of the work data (Data_Exchange) for the exampleCPX terminal 1 (CPX terminal with MPA1 and MPA2 pneu�matics):

Output data (Outp_Data) Input data (Inp_Data)

Octet 1: O−data byte_0 *)

(4DO module, mod. no. 2, 8DO)Bit 0: Output x.0Bit 1: Output x.1...Bit 6: Output x.6Bit 7: Output x.7

Octet 2: O−data byte_1(MPA1 pneumatic module, mod. no. 3, 8DO)

Bit 0: Output y.0...Bit 7: Output y.7

Octet 3: O−data byte_2(MPA1 pneumatic module, mod. no. 4, 8DO)

Bit 0: Output z.0...Bit 7: Output z. 7

Octet 4: O−data byte_3(MPA2 pneumatic modules, mod. nos. 5 and�6,8DO)

Bit 0: Output s.0...Bit 7: Output s.7

Octet 1: I−data byte_0(Status bits CPX−FB13, mod. no. 0)

Bit 0: Diagnostic message... (see section 3.3)Bit 7: Diagnostic message

Octet 2: I−data byte_1(8DI module, mod. no. 1, 8DI)

Bit 0: Input t.0Bit 1: Input t.1Bit 2: Input t.2Bit 3: Input t.3Bit 4: Input t.4Bit 5: Input t.5Bit 6: Input t.6Bit 7: Input t.7

*) Only the first 4 bits in this byte are used.x, y, z, s, t = address offset of master module

Tab.�B/5: Cyclical data exchange for example terminal 1 (see Fig.�2/9)

Page 154: CPX terminal

B. General DP master

B−12 Festo P.BE−CPX−FB13−EN en 0811c

Overview of the work data (Data_Exchange) for the exampleterminal 3 (CPX terminal with CP interface):

Output data (Outp_Data) Input data (Inp_Data)

Octet 1: O−data byte_0 *)

(4DO module, mod. no. 2, 8DO)Bit 0: Output x.0...Bit 7: Output x.7

Octet 2: O−data byte_1(CP interface 4 bytes I/16 bytes O, mod. no.�3, CPV valve terminal on string 1)

Bit 0: Output y.0...Bit 7: Output y.7

Octet 3: O−data byte_2(CP interface continued, CPV valveterminal on string 1)

Bit 0: Output (y+1).0�...Bit 7: Output (y+1).7

Octet 4: O−data byte_3(CP interface cont., assigned but unused)

Bit 0: Output (y+2).0�...Bit 7: Output (y+2).7

...

Octet 14: O−data byte_13(CP interface continued, output module onstring 4)

Bit 0: Output (y+12).0�...Bit 7: Output (y+12).7

Octet 1: I−data byte_0(Status bits CPX−FB13, mod. no. 0)

Bit 0: Diagnostic message... (see section 3.3)Bit 7: Diagnostic message

Octet 2: I−data byte_1(8DI module, mod. no. 1, 8DI)

Bit 0: Input u.0...Bit 7: Input u.7

Octet 3: I−data byte_2(CP interface 4 bytes I/16 bytes O, mod. no.�3, input module on string 1)

Bit 0: Input v.0�...Bit 7: Input v.7

Octet 4: I−data byte_3(CP interface continued, input module onstring 1)

Bit 0: Input (v+1).0�...Bit 7: Input (v+1).7

Octet 5: I−data byte_4(CP interface continued, assigned butunused)

Bit 0: Input (v+2).0�...Bit 7: Input (v+2).7

*) Only the first 4 bits in this byte are used. x, y, u, v = address offset of master module

Tab.�B/6: Cyclical data exchange for example terminal 3 (see Fig.�2/11) � part 1

Page 155: CPX terminal

B. General DP master

B−13Festo P.BE−CPX−FB13−EN en 0811c

Output data (Outp_Data) Input data (Inp_Data)

Octet 15: O−data byte_14(CP interface continued, output module onstring 4)

Bit 0: Output (y+13).0�...Bit 7: Output (y+13).7

Octet 16: O−data byte_15(CP interface continued, assigned butunused)

Bit 0: Output (y+14).0�...Bit 7: Output (y+14).7

...

Octet 18 O−data byte_17(8DI/8DO module, mod. no. 4, 8DX)

Bit 0: Output z.0...Bit 7: Output z. 7

Octet 19: O−data byte_18(MPA1 pneumatic module, mod. no. 5,8DO)

Bit 0: Output s.0...Bit 7: Output s.7

Octet 20: O−data byte_19(MPA1 pneumatic module, mod. no. 6,8DO)

Bit 0: Output t.0...Bit 7: Output t.7

Octet 6: I−data byte_5(CP interface continued, assigned butunused)

Bit 0: Input (v+3).0�...Bit 7: Input (v+3).7

Octet 7: I−data byte_6(8DI/8DO module, mod. no. 4, 8DX)

Bit 0: Input w.0�...Bit 7: Input w.7

x, y, z, ... = address offset

Tab.�B/7: Cyclic data exchange for example terminal 3 � part 2

Page 156: CPX terminal

B. General DP master

B−14 Festo P.BE−CPX−FB13−EN en 0811c

B.1.5 Read diagnostic information

Slave_Diag The diagnostic data are requested by the CPX terminal viathe function Slave_Diag (see section 3.5.3, Diagnosis viaPROFIBUS−DP).

Set_Prm With the function Set_Prm you can determine the watchdogtime (WD_Fact_1, Octet 2, WD_Fact_2, Octet 3). The reactionof the CPX terminal in the event of a fault (e.�g. a bus failure)depends on the parameterisation (see section 3.6.)

Page 157: CPX terminal

B. General DP master

B−15Festo P.BE−CPX−FB13−EN en 0811c

B.1.6 Implemented functions and service access points (SAP)

Function Available Destination SAP(DSAP)

Data_Exchange Yes NIL

RD_Inp Yes 56

RD_Outp Yes 57

Slave_Diag Yes 60

Set_Prm *) Yes 61

Chk_Cfg Yes 62

Get_Cfg Yes 59

Global_Control Yes 58

Set_Slave_Add No 55

MSAC_C1 Yes 50, 51

MSAC_C2 Yes 0 � 48

*) The CPX parameters are also sent with Set_Prm during the initialisation phase.

Tab.�B/8: Overview of functions and service access points

DPV1 You can access the DPV1 services with the followingfunctions:

� MSAC_C1: For masters of class 1 (e.g. PLC), fixed service accesspoints.

� MSAC_C2: For masters of class 2 (e.g. PC/PG), dynamic use,service access points are specified when connectionsare set up.

Page 158: CPX terminal

B. General DP master

B−16 Festo P.BE−CPX−FB13−EN en 0811c

B.1.7 Bus parameters/reaction times

Baud rate(kBaud)

max TSDR (TBit) min TSDR (TBit)

.. 187.5 60

500 100

1500 150 11

3000 250

11

6000 450

12000 800

Tab.�B/9: Bus parameters and reaction times

B.1.8 Transmission times on the PROFIBUS−DP

NoteObserve here the cycle time of your PLC and the updatetime of the PROFIBUS−DP.

The delay time within the CPX terminal is very brief. It is con�siderably less than 1 ms, irrespective of the equipment fittedon your CPX terminal.

Please refer to the manual for your controller for ascertainingthe total time required for transmission.

Page 159: CPX terminal

Index

C−1Festo P.BE−CPX−FB13−EN en 0811c

Appendix C

Page 160: CPX terminal

C. Index

C−2 Festo P.BE−CPX−FB13−EN en 0811c

Contents

C. Index C−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 161: CPX terminal

C. Index

C−3Festo P.BE−CPX−FB13−EN en 0811c

A

AbbreviationsProduct−specific XI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Additional power supply 1−26 . . . . . . . . . . . . . . . . . . . . . . . . .

Addressing 2−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B

Baud rate 1−18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

BF−LED 3−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Bus terminal 1−24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

C

Check the configuration data B−7 . . . . . . . . . . . . . . . . . . . . . .

CLEAR_DATA 2−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Configuration 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . With Siemens Master 2−22 . . . . . . . . . . . . . . . . . . . . . . . . . .

Configuration examples 2−14 . . . . . . . . . . . . . . . . . . . . . . . . . .

ConnectingField bus 1−17, 1−19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power supply 1−25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Connection for optical−fibre waveguide 1−23 . . . . . . . . . . . . .

CP interface 2−18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

CPA pneumatics 2−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

CPX−FEC 1−9, 2−37 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Cyclic exchange of data B−10 . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 162: CPX terminal

C. Index

C−4 Festo P.BE−CPX−FB13−EN en 0811c

D

Data_Exchange B−11, B−12 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Device master file (GSD) 2−20 . . . . . . . . . . . . . . . . . . . . . . . . .

Device−related diagnosis 3−26 . . . . . . . . . . . . . . . . . . . . . . . . .

Diagnosis bytes 3−12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Diagnosis steps 3−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

DIL switches 1−8, 1−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Dismantling 1−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

DP masterConfiguration with Siemens master 2−22 . . . . . . . . . . . . . . Operation with the general DP master B−3 . . . . . . . . . . . . .

DPV1 A−9, B−15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data model A−14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examples for DPV1 access A−18 . . . . . . . . . . . . . . . . . . . . . . Setting the compatibility A−10 . . . . . . . . . . . . . . . . . . . . . . .

E

Electrical connection and display elements 1−4 . . . . . . . . . . .

ExamplesConfiguration 2−14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Examples for DPV1 access A−18 . . . . . . . . . . . . . . . . . . . . . . . .

Examples of addressing 2−31 . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 163: CPX terminal

C. Index

C−5Festo P.BE−CPX−FB13−EN en 0811c

F

FEC 1−9, 2−37 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Field bus baud rate 1−18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Field bus cable 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Field bus length 1−18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Field bus plug 1−20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Fitting 1−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

FREEZE 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Function moduleSFB 52 A−12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SFB 53 A−12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SFC 58 A−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SFC 59 A−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

G

General DP master B−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

I

I/O diagnostic interface 3−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

IdentifierGroupable 2−13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Implemented functions (SAP) B−15 . . . . . . . . . . . . . . . . . . . . .

Important user instructions IX . . . . . . . . . . . . . . . . . . . . . . . . . .

Intended use VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

ISO pneumatics (VTSA) 2−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

L

LEDs 2−56, 3−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 164: CPX terminal

C. Index

C−6 Festo P.BE−CPX−FB13−EN en 0811c

M

M12 adapter 1−22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Midi/Maxi pneumatics 2−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Module data and module parameters A−17 . . . . . . . . . . . . . .

Module parameters 2−50 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

N

Notes on the manual VIII . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

O

Operating mode 1−9, 2−37 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

P

ParameterisationApplication example 2−54 . . . . . . . . . . . . . . . . . . . . . . . . . . . Module parameters 2−50 . . . . . . . . . . . . . . . . . . . . . . . . . . . Start parameterisation 2−43 . . . . . . . . . . . . . . . . . . . . . . . . . System parameters 2−46 . . . . . . . . . . . . . . . . . . . . . . . . . . .

ParameterisingDiagnostic memory 2−48 . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pictograms X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pin allocationField bus interface 1−19 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Power supply 1−25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

R

Reaction times B−16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Remote controller 1−9, 2−37 . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 165: CPX terminal

C. Index

C−7Festo P.BE−CPX−FB13−EN en 0811c

S

Segment length 1−18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Send parameterisation data B−5 . . . . . . . . . . . . . . . . . . . . . . .

Service VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Service access points (SAP) B−15 . . . . . . . . . . . . . . . . . . . . . .

SettingDiagnostic mode 1−10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DIL switches 1−8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operating mode 1−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Station number 1−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Siemens Master 2−22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Start parameterisation 2−43 . . . . . . . . . . . . . . . . . . . . . . . . . . .

Start parameters A−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Station numbersPermitted 1−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting 1−12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Station status 3−15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Status bits 3−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

STEP 7Device−related diagnosis 3−26 . . . . . . . . . . . . . . . . . . . . . . . HW Configurator 2−23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Online diagnostics 3−24 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strain relief 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Switch coverRemoving and fitting 1−7 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Symbol files 2−20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

SymmetricalField bus 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

SYNC 2−4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

System supply 1−26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 166: CPX terminal

C. Index

C−8 Festo P.BE−CPX−FB13−EN en 0811c

T

Target group VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Technical specifications A−3 . . . . . . . . . . . . . . . . . . . . . . . . . . .

Text markings X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

V

Valve supply module 1−26 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

VTSA pneumatics (ISO) 2−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

W

Work data B−11, B−12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .