You are on page 1of 84

Advant® Power 352),%86'3

Advant® Controller 160

User‘s Guide
GKW F 310 861 R0001

y
nl
O
se
l U
na
er
nt
rI
Fo
Use of'$1*(5,:$51,1*,&$87,21, and127(
This publication includes, '$1*(5, :$51,1*, &$87,21, and 127( information where appropriate to point out safety
related or other important information.
'$1*(5 Hazards which could result in severe personal injury or death
:$51,1* Hazards which could result in personal injury
&$87,21 Hazards which could result in equipment or property damage
127( Alerts user to pertinent facts and conditions

y
Although '$1*(5 and :$51,1* hazards are related to personal injury, and &$87,21 hazards are associated with
equipment or property damage, it should be understood that operation of damaged equipment could, under certain operational

nl
conditions, result in degraded process performance leading to personal injury or death. Therefore, comply fully with all
'$1*(5, :$51,1*, and &$87,21 notices.

O
75$'(0$5.6

se
Advant is a registered trademark of ABB Asea Brown Boveri Ltd., Switzerland.
MODBUS is a registered trademark of Gould Electronics.
lU
127,&(
The information in this document is subject to change without notice and should not be construed as a commitment by ABB
na

Power Plant Control. ABB Power Plant Control assumes no responsibility for any errors that may appear in this document.
In no event shall ABB Power Plant Control be liable for direct, indirect, special, incidental or consequential damages of any
nature or kind arising from the use of this document, nor shall ABB Power Plant Control be liable for incidental or
er

consequential damages arising from use of any software or hardware described in this document.
This document and parts thereof must not be reproduced or copied without ABB Power Plant Control’s written permission, and
the contents thereof must not be imparted to a third party nor be used for any unauthorized purpose.
nt

The software described in this document is furnished under a license and may be used, copied, or disclosed only in accordance
with the terms of such license.
rI

&(0$5.,1*
Fo

This product meets the requirements specified in EMC Directive 89/336/EEC and in Low Voltage Directive 72/23/EEC.

Copyright © ABB Power Plant Control 1998.


3BSE001264/E

Template: 3BSE001286/E

GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
7DEOHRI&RQWHQWV

7$%/(2)&217(176
&KDSWHU,QWURGXFWLRQ
1.1 Before You Begin .................................................................................................... 1-1
1.2 Equipment Requirements......................................................................................... 1-1
1.3 How to Use This Book............................................................................................. 1-1
1.4 Conventions ............................................................................................................. 1-2
1.5 Related Documentation............................................................................................ 1-2

y
1.6 Terminology............................................................................................................. 1-3

nl
1.7 Product Overview .................................................................................................... 1-3
1.7.1 Functionality ........................................................................................... 1-4

O
1.7.2 Functional Overview............................................................................... 1-4
1.7.3 Data Transmission .................................................................................. 1-6

&KDSWHU,QVWDOODWLRQ

se
2.1 Site Planning ............................................................................................................ 2-1
2.2 Installation Procedures............................................................................................. 2-1
lU
2.3 Start-up Procedures.................................................................................................. 2-5
2.4 Shut-down Procedures ............................................................................................. 2-6

&KDSWHU&RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ
na
3.1 Considerations ......................................................................................................... 3-1
3.2 Capacity and Performance ....................................................................................... 3-1
er

3.3 Database Configuration and Application Program.................................................. 3-2


3.4 Application Start-up................................................................................................. 3-3
nt

3.5 Tutorial..................................................................................................................... 3-3


3.5.1 Overview................................................................................................. 3-3
rI

3.5.2 Processor Module PM644....................................................................... 3-4


3.5.3 PROFIBUS-DP Master........................................................................... 3-5
3.5.4 PROFIBUS-DP DPM‘s .......................................................................... 3-7
Fo

3.5.4.1 PDIO ................................................................................ 3-7


3.5.4.2 PAIO .............................................................................. 3-12
3.6 Application Procedure ........................................................................................... 3-18
3.7 Configuration of Application................................................................................. 3-19
3.7.1 DB Element for Processor Module PM644 .......................................... 3-19
3.7.2 DB Element for PROFIBUS-DP Master .............................................. 3-20
3.7.3 DB Element for PROFIBUS-DP DPM‘s.............................................. 3-24
3.7.4 PC Elements for PROFIBUS-DP DPM‘s............................................. 3-31
3.7.4.1 Input from PROFIBUS .................................................. 3-31
3.7.4.2 Output to PROFIBUS .................................................... 3-32

GKW F 310 861 R0001 i


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
7DEOHRI&RQWHQWV

&217(176 FRQWLQXHG
3.7.5 The GSD File ........................................................................................ 3-37

&KDSWHU5XQWLPH2SHUDWLRQ
4.1 Operating Overview ................................................................................................. 4-1
4.2 Runtime Tutorial ...................................................................................................... 4-1
4.3 Operating Instructions.............................................................................................. 4-1

y
4.4 Runtime Operation Menus ....................................................................................... 4-1

nl
&KDSWHU0DLQWHQDQFH
5.1 Preventive Maintenance ........................................................................................... 5-1

O
5.2 Hardware Indicators ................................................................................................. 5-1
5.3 Data Base Elements Indicators................................................................................. 5-1
5.3.1 PB Data Base Element Indicators ........................................................... 5-1

se
5.3.2 PBS Data Base Element Indicators ......................................................... 5-2
5.4 Error Messages......................................................................................................... 5-3
lU
5.5 Fault Finding and User Repair ................................................................................. 5-4

$SSHQGL[$+DUGZDUH0RGXOH
1.1 Processor Module PM644 ....................................................................................... A-1
na

1.2 Performance .......................................................................................................... A-10


er
nt
rI
Fo

ii GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
/LVWRI)LJXUHV

,//8675$7,216
Figure 1-1. Organization of Manual................................................................................ 1-1
Figure 1-2. Functional Overview of PROFIBUS in AC 160 .......................................... 1-5
Figure 1-3. PROFIBUS-DP Data Transmission ............................................................. 1-6
Figure 2-1. Segmented PROFIBUS Network with Repeaters and Terminations ........... 2-2
Figure 2-2. Cabling and Bus Termination....................................................................... 2-3
Figure 3-1. Hierarchy of DB elements and PC elements for PROFIBUS-DP................ 3-2

y
Figure 3-2. Configuration of the Sample System............................................................ 3-3

nl
Figure 3-3. DB Element PM644 ..................................................................................... 3-4
Figure 3-4. DB Element PB, Base Part ........................................................................... 3-5

O
Figure 3-5. DB Element PB, Bus Parameters ................................................................. 3-6
Figure 3-6. DB Element PDIO, Base Part....................................................................... 3-7
Figure 3-7. DB Element PDIO, Slave Parameters .......................................................... 3-7

se
Figure 3-8. DB Element PDIO, User_Prm_Data ............................................................ 3-9
Figure 3-9. DB Element PDIO, Cfg_Data .................................................................... 3-10
lU
Figure 3-10. PC Elements for PDIO DPM...................................................................... 3-11
Figure 3-11. DB Element PAIO, Base Part..................................................................... 3-12
Figure 3-12. DB Element PAIO, Slave Parameters ........................................................ 3-13
Figure 3-13. DB Element PAIO, User_Prm_Data .......................................................... 3-14
na
Figure 3-14. DB Element PAIO, Cfg_Data .................................................................... 3-15
Figure 3-15. PC Elements for PAIO DPM...................................................................... 3-16
Figure 3-16. CPU View of Process and Diagnostic Data for any given DPM ............... 3-33
er

Figure 3-17. Modular DPM, Configuration Example ..................................................... 3-39


Figure 5-1. Example of errors in an error report of FCB ................................................ 5-3
nt

Figure 5-2. Example of errors in a module diagnostics of FCB ..................................... 5-4


Figure A-1. Processor module PM644.............................................................................A-4
rI

Figure A-2. Speed Input Pulses versus Time ...................................................................A-8


Figure A-3. PROFIBUS configuration for performance calculation .............................A-11
Fo

GKW F 310 861 R0001 iii


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
/LVWRI7DEOHV

7$%/(6
Table 1-1. Related Documentation................................................................................. 1-2
Table 2-1. Distances based on transmission speed for type-A cable ............................. 2-3
Table 2-2. Distances based on transmission speed for type-B cable ............................. 2-3
Table 2-3. Cable specification Type A for PROFIBUS................................................. 2-4
Table 2-4. Cable specification Type B for PROFIBUS ................................................. 2-5
Table 3-1. Checklist for PROFIBUS-DP applications in AC 160 ............................... 3-18

y
Table 3-2. PROFIBUS-DP/E compared to Advant Data Types .................................. 3-34

nl
Table 3-3. Advant compared to PROFIBUS-DP/E Data Types .................................. 3-35
Table 3-4. DPM status as seen by the master............................................................... 3-36

O
Table 3-5. GSD Keywords ........................................................................................... 3-37
Table A-1. PM644 Technical Data ................................................................................ A-2
Table A-2. Connector Allocation of Rotational Speed Inputs ....................................... A-9

se
Table A-3. PROFIBUS cycletime based on transmission speed 93.75 kbit/sec.......... A-12
Table A-4. PROFIBUS cycletime based on transmission speed 187.5 kbit/sec.......... A-12
lU
Table A-5. PROFIBUS cycletime based on transmission speed 500 kbit/sec............. A-12
Table A-6. PROFIBUS cycletime based on transmission speed 1500 kbit/sec........... A-13
na
er
nt
rI
Fo

iv GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ %HIRUH<RX%HJLQ

&KDSWHU ,QWURGXFWLRQ

 %HIRUH<RX%HJLQ
This manual describes the usage of PROFIBUS-DP interface as implemented in
Advant Controller 160.

y
 (TXLSPHQW5HTXLUHPHQWV

nl
To use the PROFIBUS-DP interface in Advant Controller 160, you must have the following:

O
Advant Controller 160 Basic Station with Processor module PM644
Advant Controller 160 BASE SW*1.1
Advant Station 160 Engineering Station

se
 +RZWR8VH7KLV%RRN
lU
This book is organized into chapters and sections as shown in Figure 1-1.
na
&KDSWHU

Configuration/
er

Runtime
Introduction Installation Application Maintenance Appendices Index
Building Operation
nt

Before You Site Planning Considerations Operating Preventive Processor


Begin Overview Maintenance ModulePM644
Installation Capacity &
rI

Equipment Procedures Performance Runtime Hardware Performance


Requirements Tutorial Indicators
Start-up Database
How to Use Procedures Configuration Operating Database
Fo

This Book and Application Instructions Element


Shut-down Program Indicators
Conventions Procedures Runtime
Application Operation Error
Related Start-up Menus Messages
Documentation
Tutorial
Fault Finding
Terminology & User Repair
Application
Product Procedures
Overview 6HFWLRQ
Configuration
of Application

)LJXUH  2UJDQL]DWLRQRI0DQXDO

GKW F 310 861 R0001 1-1


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU ,QWURGXFWLRQ

 &RQYHQWLRQV
All user input values to DB elements and PC elements described in the tutorial are formatted as
EROG.

 5HODWHG'RFXPHQWDWLRQ
Table 1-1 lists all documentation related to 352),%868VHU¶V*XLGH.

7DEOH  5HODWHG'RFXPHQWDWLRQ

y
nl
&DWHJRU\ 7LWOH 'HVFULSWLRQ
Station Advant Power Product Guide Product Guide describing the Advant

O
Power system
AC 160 User’s Guide User‘s Guide for AC 160

se
PC Elements Advant Controller 160 Reference manual AC160 PC elements
DB Elements Advant Controller 160 Reference manual AC160 DB elements
lU
Function Chart Builder User‘s Guide describing how to
configure Advant controllers with the
Function Chart Builder
Engineering Database - AC160 version User‘s Guide describing how to
na

configure Advant series 160 controllers


and stations together with Engineering
Database and Function Chart Builder
er

Other Draft Standard PROFIBUS-DP Description standard PROFIBUS-DP


Process Field Bus protocol(1)
nt

Decentralized Periphery (DP)


DIN 19245 Part 3, Issue 1994
PROFIBUS Draft Technical Guideline Description extensions to standard
rI

PROFIBUS-DP Extensions to EN PROFIBUS-DP protocol(1)


50170
Version 1.0, December 1997
Fo

www.profibus.com PROFIBUS Internet site


(1) Document can be subscibed by PNO

1-2 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 7HUPLQRORJ\

 7HUPLQRORJ\
The following is a list of terms associated with PROFIBUS-DP in Advant Controller 160 that
you should be familiar with.

7HUP 'HVFULSWLRQ
DPM Distributed Peripheral Module (PROFIBUS slave) Module with binary
or analog inputs/outputs, drives, valves, etc.

y
FCB Function Chart Builder

nl
EN 50170 European standard for PROFIBUS
GSD file Description file. A text file containing a description of the PROFIBUS

O
DPM, with a predetermined syntax. It is delivered with the DPM or can
be obtained from the manufacturer.
PNO PROFIBUS User Organisation

se
PDU Protocol Data Unit
PROFIBUS-DP Process Fieldbus - Decentralized Periphery PROFIBUS protocol whose
lU
speciality is high-speed, cyclic data communication.
PROFIBUS-DP/E Process Fieldbus - Decentralized Periphery / Extension PROFIBUS-DP
protocol with extensions for acyclic data communication.
na

 3URGXFW2YHUYLHZ
er

The PROFIBUS-DP interface in AC 160 allows to connect PROFIBUS DPM‘s.


nt

It conforms with the PROFIBUS-DP standard EN 50170 and a subset of the extensions known
as PROFIBUS-DP/E. Throughout this document the term PROFIBUS-DP is used for both,
except where especially noted.
rI

Traffic on a PROFIBUS link is controlled by a master station. Direct communication is possible


only between the master (PM644) and the slaves (DPM‘s). PROFIBUS in AC 160 consists of
Fo

three parts (see Figure 1-2):


1. The 3&SURJUDP (Process Control program), written in AMPL, is used to define and
control the data flow on the link.
2. The Advant process'DWDEDVH is used to configure the communication interface within the
processor module PM644, and to define the PROFIBUS DPM‘s.
3. The processor module 30 runs the PROFIBUS-DP protocol in the Advant Controller
160.
The processor module PM644 is installed in the basic station of the AC 160. It represents a
PROFIBUS-DP master (class 1) interface. The setup of this link is defined by a number of
database elements (see Section 3.6, Application Procedure).

GKW F 310 861 R0001 1-3


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU ,QWURGXFWLRQ

The PROFIBUS link forms a local control network within the ABB Advant Power system. Each
DPM may have a number from 0..125. Up to 6 processor modules PM644 can be installed in
AC160 basic station.

 )XQFWLRQDOLW\
The following PROFIBUS functions are implemented in the PM644 processor module:
• Configuring of the PROFIBUS master interface and the DPM‘s

y
• Reading and writing of process data to/from the DPM‘s

nl
• Reading of diagnostic data from the DPM‘s
• Supervision of the PROFIBUS link

O
For more detailed information about the PROFIBUS protocol, see thestandard EN 50170

 )XQFWLRQDO2YHUYLHZ

se
The application structure you will require in order to use PROFIBUS consists of two main parts:
the PC program and the database (see Figure 1-2).
lU
3&SURJUDP
The PC program will be used to control the data flow and status of the DPM‘s. The PC elements
to access the PROFIBUS data are:
na

‡ 3%,1
PC element for PROFIBUS data(provides the input of process and diagnostic data from
the PROFIBUS DPM).
er

‡ 3%287
PC element for PROFIBUS data (provides the output of process data to the PROFIBUS
nt

DPM).
rI

'DWDEDVH
The necessary database input for the processor module PM644 is defined with the database
element PM644 and other configuration database elements. These are:
Fo

‡ 30
Database element for the processor module (provides the logical link to the PROFIBUS
master DB element).
‡ 3%
Database element for PROFIBUS master configuration (defines the bus characteristics)
‡ 3%6
Database element for the PROFIBUS DPM (slave). It defines the characteristics of each
DPM (address, vendor specific settings, etc.).

1-4 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ )XQFWLRQDO2YHUYLHZ

$GYDQW&RQWUROOHU

3&SURJUDPIRUFRQWURO
3%,1 3%287

y
nl
'%HOHPHQWVIRUFRQILJXUDWLRQ
303%3%6

O
configuration PROFIBUS
data data

se
30
lU
352),%86'3
na

'30µV
er

)LJXUH  )XQFWLRQDO2YHUYLHZRI352),%86LQ$&


nt
rI
Fo

GKW F 310 861 R0001 1-5


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU ,QWURGXFWLRQ

 'DWD7UDQVPLVVLRQ
In PROFIBUS-DP the master addresses cyclically all connected DPM‘s (max. 125 devices). It
sends up to 244 bytes output data and receives up to 244 bytes input data. Figure 1-3 shows this
data transmission. Additionally there can be up to 244 byte diagnostic data from the DPM. The
transmission of diagnostic data is requested by the DPM. All these data are transferred in so
called PROFIBUS-DP PDU‘s.

5HTXHVWIUDPH

y
nl
Trailer

LPPHGLDWHUHVSRQVH
Output data Header
'3PDVWHU

'3VODYH
'30
30

O
Input data Trailer
Header

se
5HVSRQVHIUDPH
lU
)LJXUH  352),%86'3'DWD7UDQVPLVVLRQ
na
er
nt
rI
Fo

1-6 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 6LWH3ODQQLQJ

&KDSWHU ,QVWDOODWLRQ

This chapter will guide you through the installation of the PROFIBUS interface in Advant
Controller 160. The chapter focuses on physical installation of the PROFIBUS and not on
system setup and configuration.

127(

y
Is is recommended to use only certified PROFIBUS DPM‘s, to ensure adherence
of the DPM‘s to the standard.

nl
Certified PROFIBUS DPM‘s, repeaters, connectors, cables and other PROFIBUS products can
be found in the product catalog published by the PNO at www.profibus.com.

O
 6LWH3ODQQLQJ

se
See the Advant Controller 160 User‘s Guide for guidelines on earth connection, power supply,
etc.

 ,QVWDOODWLRQ3URFHGXUHV
lU
:LULQJ
na
All devices are connected in a bus structure (i.e., line). For load reasons this bus is divided into
so-called segments. Up to 32 devices (master or DPM‘s or repeater‘s) can be connected in one
segment. The bus is terminated by an active bus terminator at the beginning and end of each
er

segment. See Figure 2-1 for the bus structure and Figure 2-2 for the bus termination and
cabling.
nt

Figure 2-1 shows a network structure that consists of three bus segments. The bus line starts at a
master (1) and goes to one DPM and a repeater (2). The bus line ends at a second DPM (3). The
repeater connects the first segment to a second one, which in turn has one DPM and a second
rI

repeater (4) connected. This last repeater then drives the third bus segment.
To ensure error-free operation, both bus terminations must always be powered.
Fo

127(
Many vendors have designed a switchable bus termination in their devices or plug
connectors.

When more than 32 devices are used, repeaters (line amplifiers) must be used to connect the bus
segments.

127(
The use of more than 3 repeaters in series is not recommended.

GKW F 310 861 R0001 2-1


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU ,QVWDOODWLRQ

M 1

y
D R 2 D 3

nl
O
R 4 D

se
lU
D D D
na
er

D DPM without termination


D DPM with termination
nt

R Repeater with termination


R Repeater without termination
rI
Fo

M Master with termination M Master without termination

)LJXUH  6HJPHQWHG352),%861HWZRUNZLWK5HSHDWHUVDQG7HUPLQDWLRQV

2-2 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ ,QVWDOODWLRQ3URFHGXUHV

VP (6)
Station 1 Station 2
390 Ohm

(3) RxD/TxD-P Data line RxD/TxD-P (3)


RxD/TxD-P (3)
DGND (5) (5) DGND

y
220 Ohm
VP (6) (6) VP

nl
Data line
RxD/TxD-N (8) (8) RxD/TxD-N RxD/TxD-N (8)

O
Shielding 390 Ohm

Protective Protective
ground ground DGND (5)

se
Cabling Bus termination

)LJXUH  &DEOLQJDQG%XV7HUPLQDWLRQ


lU
The maximum cable length depends on the transmission speed. See Table 2-1 and Table 2-2 .
na
The specified cable length can be increased by the use of repeaters.

7DEOH  'LVWDQFHVEDVHGRQWUDQVPLVVLRQVSHHGIRUW\SH$FDEOH 


er

Baud rate (kbit/sec) 9.6 19.2 93.75 187.5 500 1500 3000 6000 12000
Segment length (m) 1200 1200 1200 1000 400 200 100 100 100
nt

(1) see Table 2-3


rI

7DEOH  'LVWDQFHVEDVHGRQWUDQVPLVVLRQVSHHGIRUW\SH%FDEOH 


Fo

Baud rate (kbit/sec) 9.6 19.2 93.75 187.5 500 1500 3000 6000 12000
Segment length (m) 1200 1200 1200 600 200 - - - -
(1) see Table 2-4

Use of a 9-pin D sub plug connector is preferred for PROFIBUS networks using RS 485
transmission technology. The pin assignment of the plug connector and the wiring are shown in
Figure 2-2.

GKW F 310 861 R0001 2-3


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU ,QVWDOODWLRQ

6KLHOGLQJ
EN 50170 leaves it to the user if a shielded or unshielded cable shall be used. In areas with no
disturbances unshielded cable is permitted. The following reasons however make it advisable to
use a shielded cable:
(a) An area free of disturbances will only exist inside of a shielded cabinet. As soon as a relay is
mounted into the cabinet non interference is no longer ensured.
(b) The use of unshielded cables requires additional protection mechanisms at the bussignal
inputs against overvoltage.

y
Therefore it is recommended to use always shielded cable.

nl
This recommendation is also applicable for eventually needed supply cables from external
power supplies to the PROFIBUS devices. (e.g. repeaters). Double shielded lines are especially

O
suitable for surroundings with heavy electromagnetic interference. In order to guarantee optimal
protection the outer shield (shielding braid) and the inner shield (shielding foil) should be
connected to ground on both cable ends flatly with a ground termination clip.

se
6KLHOGLQJ5XOHV
When using a shielded bus cable it is recommended to connect the shield on both sides low
lU
inductively with the protective ground in order to achieve optimal electromagnetic
compatibility. In case of separate potentials (e.g. refinery) the shield should be connected only
at one side of the bus cable to the protective ground.
Preferably the connection between shield and protective ground is made via the metal cases and
na

the screw top of D-sub connector. Should this mechanism not be possible then the connection
can be made via pin 1 of the D-sub connector. Please notice that this is not the optimal solution.
In such a case it is better to bare the cable shield at an appropriate point and to ground with a
er

cable as short as possible to the metallic structure of the cabinet. This could be achieved with a
ground bus bar in front of the bus connector.
nt

%XV&DEOH
The PROFIBUS standard defines two variations of the bus cable for PROFIBUS. Type A is
rI

especially recommended for high transmission speeds (> 500 kbit/sec) and permits doubling of
the network distance in comparison to Type B. Type B should only be used at low transmission
speeds and low requirements on the network distances.
Fo

127(
It is recommended to use only cable Type A.

7DEOH  &DEOHVSHFLILFDWLRQ7\SH$IRU352),%86

Impedance: 135 up to 165 Ohm at a frequency of 3 to 20 MHz.


Cable capacity: < 30 pF per Meter

2-4 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 6WDUWXS3URFHGXUHV

7DEOH  &DEOHVSHFLILFDWLRQ7\SH$IRU352),%86 &RQWLQXHG

Core diameter 0.64 mm


Core cross section > 0.34 mm², corresponds to AWG 22
Cable type twisted pair cable. 1x2 or 2x2 or 1x4 lines
Resistance < 110 Ohm per km
Signal attenuation max. 9 dB over total length of line section

y
Shielding CU shielding braid or shielding braid and shielding foil

nl
O
7DEOH  &DEOHVSHFLILFDWLRQ7\SH%IRU352),%86

Impedance 135 up to 165 Ohm at a frequency of > 100 kHz

se
Cable capacity typ. < 60 pF per Meter
Core diameter lU> 0.53 mm
Core cross section > 0.22 mm², corresponds to AWG 24
Cable type twisted pair cable. 1x2 or 2x2 or 1x4 lines
na
Resistance -
Signal attenuation max. 9 dB over total length of line section
Shielding CU shielding braid or shielding braid and shielding foil
er
nt

 6WDUWXS3URFHGXUHV
rI

To start the PROFIBUS application load the application program in the controller, save it into
PROM. Set the processor module’s start mode switch either in position AUTO or CLEAR and
deblock the program.
Fo

The PROFIBUS interface will be configured during the loading process and the PROFIBUS
communication is started, as indicated by the R(un) LED of the PROFIBUS interface. It will
then automatically scan all configured DPM‘s and checks whether their actual settings are the
same as specified in the database. Only successful configured DPM‘s go into data exchange
mode.
After deblocking of the PC program the process values are transmitted to and from the
PROFIBUS DPM‘s.

GKW F 310 861 R0001 2-5


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU ,QVWDOODWLRQ

 6KXWGRZQ3URFHGXUHV
A PROFIBUS application on AC 160 is stopped whenever the user either blocks the program or
resets the processor module with the start mode switch in position STOP.
The PROFIBUS communication itself is stopped during the reconfiguration of the PROFIBUS
interface (e.g. the application program is reloaded) or the reset of the processor module.

y
nl
O
se
lU
na
er
nt
rI
Fo

2-6 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ &RQVLGHUDWLRQV

&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

 &RQVLGHUDWLRQV
If you want to set up the DB elements to configure the PROFIBUS-DP link and the PC elements
to access the PROFIBUS-DP data, you need the following information:

y
1. How shall the network be configured?

nl
– Network number
– Addresses for all DPM‘s on the PROFIBUS

O
– DPM‘s to be used
2. What are the line characteristics?
– PROFIBUS-DP bus characteristics:

se
Specify the speed and the various timing parameters if these require non-standard
settings. This might be the case for some special DPM‘s. The timings are usually

3.
lU
given in units of bit-time, TBIT.
What DB elements do you need?
– Create a DB element for the processor module PM644 and for the PROFIBUS-DP
master using the FCB.
na
– Create a DB element for each PROFIBUS-DP DPM using the FCB. You will need
the GSD file for each of the DPM to do that.
er

127(
The GSD file is provided by the DPM manufacturer.
nt

4. What PC elements do you need?


rI

– Create a PC element for each value for each DPM using the FCB.
See Section 3.6, Application Procedure, for a complete checklist.
Fo

 &DSDFLW\DQG3HUIRUPDQFH
• An AC 160 basic station supports up to 6 PROFIBUS-DP lines.
• A maximum of 125 PROFIBUS-DP DPM‘s per line is allowed.
• A bus segment can handle up to 32 PROFIBUS-DP DPM‘s, including the repeater to
another bus segment.
• Transmissions speeds may range from 9600 Baud up to 12 MBaud.

GKW F 310 861 R0001 3-1


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

 'DWDEDVH&RQILJXUDWLRQDQG$SSOLFDWLRQ3URJUDP
The necessary database input for the PROFIBUS-DP configuration is defined with the DB
elements:
• PM644
• PB
• PBS
The necessary application program input for the PROFIBUS-DP data access is defined with the

y
PC elements:

nl
• PB-IN
• PB-OUT

O
In the figure below the hierarchy of these DB elements and PC elements is shown.

30

se
lU
The processor module PM644 is configured
by a DB element PM644

reference
3% The PROFIBUS-DP master characteristics
na

*6'ILOHV are configured by a DB element PB


er

same bus number


nt

The PROFIBUS-DP DPM‘s are configured


3%6 by one DB element PBS for each DPM
HOHPHQWV
rI

same PROFIBUS
address
Fo

The PROFIBUS-DP data are accessed


3%,1 by one PC element PB-IN or PB-OUT
3%287 for each value for each DPM
HOHPHQWV

)LJXUH  +LHUDUFK\RI'%HOHPHQWVDQG3&HOHPHQWVIRU352),%86'3

3-2 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ $SSOLFDWLRQ6WDUWXS

 $SSOLFDWLRQ6WDUWXS
To build the application database and PC program in the AC 160, you need an FCB. The
following must be done before you can start up the PROFIBUS-DP link:
1. Create and configure the DB elements
2. Build a PC program as described in Section 3.6, Application Procedure.
3. When the application database and PC program are ready, you can start up the
communication link as described in Section 2.3, Start-up Procedures.

y
 7XWRULDO

nl
 2YHUYLHZ

O
This section describes how an AC 160 system using PROFIBUS-DP must be configured. The
configuration comprises an AC 160 base station and 2 fictitious PROFIBUS-DP DPM‘s, PDIO

se
and PAIO, respectively. The PDIO DPM handles 2 digital inputs as well as 2 digital outputs.
Similarly, the PAIO DPM handles 2 analog inputs and 2 analog outputs.
The PDIO DPM offer 1 extended diagnostic byte (byte number 7). Figure 3-2 shows how this
lU
sample system is build up.
na
PM644

er
nt
rI

AC 160
PROFIBUS address 0 PROFIBUS station 0 Bus #5
Fo

PROFIBUS

PROFIBUS station 1 PROFIBUS station 2


DPM DPM
Digital Analog
Input & Output Input & Output
PDIO PAIO

)LJXUH  &RQILJXUDWLRQRIWKH6DPSOH6\VWHP

GKW F 310 861 R0001 3-3


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

In the example, the bus is configured with the logical bus number 5 while the AC 160 has the
PROFIBUS station number 0 on that bus. It runs with 500 kBit/s and uses the standard timing
values as specified by EN 50170.
Only the DB/PC elements relevant for the PROFIBUS-DP are described.

 3URFHVVRU0RGXOH30
The DB element PM644 for the processor module must be configured as follows:

y
30

nl
CPU NAME ERR

O
0 BUS CHECKERR
0 STATION STATUS1
1 POSITION STATUS2

se
1 IMPL STATUS3
PM644 TYPE
lU
352),%86 CH1
na

)LJXUH  '%(OHPHQW30

The reference “PROFIBUS” at terminal CH1 connects the processor module with the DB
er

element PB1, shown below. All other terminal settings shown are examples only and must be
adapted to your actual application.
nt
rI
Fo

3-4 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 352),%86'30DVWHU

 352),%86'30DVWHU
The DB element PB for the PROFIBUS-DP master must be configured as follows:

A 3%
%DVH3DUW

352),%86 NAME ERR

y
B  ACT DIAG

nl
 BUSNO
C
 STNNO

O
0 TIMESYNC
D
0 SYNCCYCL

se
S CABLE
lU
)LJXUH  '%(OHPHQW3%%DVH3DUW

The string “PROFIBUS” at the NAME terminal is an arbitrary name. It is also used to make the
reference from the DB element PM644 to the DB element PB1.
na
The bus is active (B) and has the logical bus number 5 (C). The own station number is set to 0
(D).
er

The remaining terminals CABLE, TIMESYNC and SYNCCYCL are set to the default values
(their functionality is supported in future versions of AC 160 PROFIBUS).
nt
rI
Fo

GKW F 310 861 R0001 3-5


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

3%
E %XV3DUDPHWHUV

 BAUDRATE
F
 ECL2SERV

y
2000 DCNTRTIM

nl
 CLEAR
G
200 SLOTTIME

O
11 MINTSDR
100 MAXTSDR

se
0 QUIETTIM
1 SETTIME
lU
1 GAPFACTR
H
 HSA
na

1 MAXRETRY

)LJXUH  '%(OHPHQW3%%XV3DUDPHWHUV


er

The transmission speed is selected at the BAUDRATE terminal (E). A PROFIBUS-DP class 2
master (e.g. a tool for commissioning purposes) is not allowed to access the PM644
nt

PROFIBUS-DP class 1 master (F). The PROFIBUS-DP DPM‘s are configured to set their
outputs to 0 (safe position) should a data transmission problem occur. (G)
rI

Since we have only 2 PROFIBUS-DP DPM‘s plus 1 master connected to the bus, the highest
station address is set to 2 (H). Thus the PROFIBUS-DP can operate at its maximum speed
without permanently checking for other DPM‘s that are not on the bus.
Fo

All timing parameters are left at their default values as specified by EN 50 170. However, these
depend on the actual PROFIBUS-DP devices (DPM‘s, repeaters) in your application. Please
consult the manufacturer’s documentation to determine whether the standard values are
acceptable.

3-6 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 352),%86'3'30µV

 352),%86'3'30µV

 3',2

3%6
%DVH3DUW

y
PDIO NAME ERR
A

nl
1 ACT DIAG
 BUS

O
 STATION
B
0 FREEZE

se
0 SYNC
0 GROUP_ID
lU
)LJXUH  '%(OHPHQW3',2%DVH3DUW

The PROFIBUS-DP DPM that is represented by the DB element PDIO is connected to the
na
logical bus number 5 (A). This number must correspond to the value of the BUSNO terminal of
the DB element PB1 above (see Figure 3-4).
The PROFIBUS-DP address for that DPM is 1 as specified at the STATION terminal (B). This
er

number must coincide with the actual setting of the address switch at the PROFIBUS-DP DPM.
nt

3%6
C 6ODYH3DUDPHWHUV
rI

 DP_V1
D
) IDENTNO
Fo

E  MAXDIAGL

F  FAILSAFE
 WDFACT1
G
 WDFACT2

H  MINSINT

)LJXUH  '%(OHPHQW3',26ODYH3DUDPHWHUV

GKW F 310 861 R0001 3-7


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

The basic characteristics of the PROFIBUS-DP DPM‘s are defined in the Slave Parameters part
of the DB element PDIO.
The fictitious PROFIBUS-DP DPM is a standard DPM without the extended capabilities of
DP_V1 (C).
It has the ident number 002F (D), taken from the GSD file at the keyword Ident_Number. Note
that this number is written in hexadecimal notation.
The terminal MAXDIAGL specifies that the maximum length of the DPM‘s diagnostic data in
this example, 7 byte (E). You can find this figure in the GSD file at the keyword

y
Max_Diag_Data_Len. Please note that this entry in the GSD file is not mandatory for
PROFIBUS-DP DPM‘s conforming to EN 50 170 (as opposed to DPV1). If there is none in

nl
your specific GSD file choose a value of which you assume that it is big enough. The DPM will
not enter data exchange mode if this value is too small.

O
The master is instructed to set the DPM outputs to 0 when it goes to the CLEAR state (F). This
happens for instance when the master is reconfigured.
The terminals WDFACT1 and WDFACT2 define the watchdog time-out that the PROFIBUS-

se
DP DPM uses to supervise the communication (G). The time-out value is calculated as
7:' :')$&7 :')$&7 PV
lU
A time-out value of 0 means that there will be no time-out supervision and the DPM will not
report any bus fault.
The master is told how fast it may access the DPM with the terminal MINSINT (minimum slave
interval) (H).
na
er
nt
rI
Fo

3-8 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 352),%86'3'30µV

3%6
8VHUB3UPB'DWD 8VHUB3UPB'DWD

5 UPRMDLEN UPRMD13
0AC300210F UPRMD14
UPRMD1

y
UPRMD2 UPRMD15

nl
UPRMD3 UPRMD16

UPRMD4 UPRMD17

O
UPRMD5 UPRMD18

UPRMD6 UPRMD19

se
UPRMD20
UPRMD7
UPRMD8 UPRMD21

UPRMD9
lU UPRMD22

UPRMD10 UPRMD23
UPRMD24
na
UPRMD11
UPRMD12 UPRMD25
er

)LJXUH  '%(OHPHQW3',28VHUB3UPB'DWD


nt

The User_Prm_Data settings are also taken from the GSD file. See the keyword
User_Prm_Data in the GSD file. It contains a number of hexadecimal bytes that are used to
rI

configure the PROFIBUS-DP DPM.


Because of limitations in the FCB, these figures must be entered in chunks of 10 bytes each
UPRMD1, UPRMD2, ... UPRMD25.
The parameter UPRMDLEN gives the total number of bytes which are entered at the UPRMDn
Fo

terminals. The FCB checks at target code generation time whether this value is correct by
comparing it with the number of bytes actually entered. If the numbers do not match, an error
message is given and the application will not be loadable.

GKW F 310 861 R0001 3-9


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

3%6
&IJB'DWD &IJB'DWD

13 CFGDLEN CFGD13
1234567890 AC300210F CFGD14
CFGD1

y
0A0D0F CFGD2 CFGD15

nl
CFGD3 CFGD16

CFGD4 CFGD17

O
CFGD5 CFGD18

CFGD6 CFGD19

se
CFGD20
CFGD7
CFGD8 CFGD21
lU
CFGD9 CFGD22

CFGD10 CFGD23
na

CFGD11 CFGD24

CFGD12 CFGD25
er

)LJXUH  '%(OHPHQW3',2&IJB'DWD


nt

The Cfg_Data settings are taken from the GSD file that the manufacturer of the PROFIBUS-DP
DPM‘s delivers. See the keyword Module in the GSD file. It contains a number of hexadecimal
rI

bytes that are used to perform a check whether the addressed DPM matches the description in
the master. The DPM will not enter the data exchange state if this check fails.
Because of limitations in the FCB, these figures must be entered in chunks of 10 bytes each
Fo

CFGD1, CFGD2, ... CFGD25.


The parameter CFGDLEN gives the total number of bytes which are entered at the CFGDn
terminals. The FCB checks at target code generation time whether this value is correct by
comparing it with the number of bytes actually entered. If the numbers do not match, an error
message is given and the application will not be loadable.

3-10 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 352),%86'3'30µV

PB-IN
(B, 2, 0)
A  1 STATION VALID 3

y
B  2 VALUENO VALUE1 4

nl
VALUE2 5

O
PB-IN
(B, 1, 1)
 1 STATION VALID 3

se
C  2 VALUENO VALUE1 4
lU PB-OUT
(B, 2)
 1 STATION
na
D  2 VALUENO

3 VALUE1
er

4 VALUE2
nt

)LJXUH  3&(OHPHQWVIRU3',2'30


rI

The terminals of the PC elements PB-IN and PB-OUT for the PDIO DPM provides the
connections of the values from and to the PROFIBUS-DP DPM to the PC part of your
application program.
Fo

The PROFIBUS-DP address for that DPM is 1 as specified at the STATION terminal (A). This
number must coincide with the actual setting of the address switch at the PROFIBUS-DP DPM.
The number of the first process value in the input PROFIBUS-DP PDU is specified with the
VALUENO terminal (B). The number of the seventh diagnostic value in the input PROFIBUS-
DP PDU is specified with the VALUENO terminal (C). The number of the first process value in
the output PROFIBUS-DP PDU is specified with the VALUENO terminal (D).
The terminals VALUEn are used to connect the input/output values from/to the DPM (see call
parameters below).
The terminals VALID are used to signal that the values are updated.
Additionally specified call parameters for PC elements (in brackets):

GKW F 310 861 R0001 3-11


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

PB-IN (B, 2, 0):


The data type of the value is B (Boolean), the number of inputs within the value are 2, the data
kind of the value is 0 (process data)
PB-IN (B, 1, 1):
The data type of the value is B (Boolean), the number of inputs within the value is 1, the data
kind of the value is 1 (diagnostic data)
PB-OUT (B, 2):

y
The data type of the value is B (Boolean), the number of outputs within the process value are 2.

nl
 3$,2

O
3%6
%DVH3DUW

se
PAIO NAME ERR
lU
B 1 ACT DIAG
 BUS
 STATION
A
na

0 FREEZE
0 SYNC
er

0 GROUP_ID
nt

)LJXUH  '%(OHPHQW3$,2%DVH3DUW


rI

The PROFIBUS-DP DPM using analog values has the PROFIBUS-DP address 2 (A). This
number must coincide with the actual setting of the address switch at the PROFIBUS-DP DPM.
Fo

The setting of the bus terminal is the same as on the PB and PDIO elements (B).

3-12 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 352),%86'3'30µV

3%6
6ODYH3DUDPHWHUV
C  DP_V1
D $ IDENTNO

y
E  MAXDIAGL

nl
0 FAILSAFE
0 WDFACT1

O
0 WDFACT2
24 MINSINT

se
)LJXUH  '%(OHPHQW3$,26ODYH3DUDPHWHUV
lU
The fictitious analogue PROFIBUS-DP DPM is a DPM with the extended capabilities of
DP_V1 (C).
It has the ident number 2A18 (D), taken from the GSD file at the keyword Ident_Number.
na
Also taken from the GSD file is the value for MAXDIAGL, 6 bytes (E).
er
nt
rI
Fo

GKW F 310 861 R0001 3-13


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

3%6
8VHUB3UPB'DWD 8VHUB3UPB'DWD

22 UPRMDLEN UPRMD13
11223344550AC300210F UPRMD14
UPRMD1

y
1A2B3C4D5E6F66778899 UPRMD2 UPRMD15

nl
3278 UPRMD3 UPRMD16

UPRMD4 UPRMD17

O
UPRMD5 UPRMD18

UPRMD6 UPRMD19

se
UPRMD20
UPRMD7
UPRMD8 UPRMD21
lU
UPRMD9 UPRMD22

UPRMD10 UPRMD23
na

UPRMD11 UPRMD24

UPRMD12 UPRMD25
er

)LJXUH  '%(OHPHQW3$,28VHUB3UPB'DWD


nt

The GSD file specifies the User_Prm_Data settings, too. In this example a few randomly
rI

selected values are shown.


Fo

3-14 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 352),%86'3'30µV

3%6
&IJB'DWD &IJB'DWD

13 CFGDLEN CFGD13
1234567890 0AC300210F CFGD14
CFGD1

y
2A1D0F CFGD2 CFGD15

nl
CFGD3 CFGD16

CFGD4 CFGD17

O
CFGD5 CFGD18

CFGD6 CFGD19

se
CFGD20
CFGD7
CFGD8
lU CFGD21

CFGD9 CFGD22

CFGD10 CFGD23
na
CFGD11 CFGD24

CFGD12 CFGD25
er

)LJXUH  '%(OHPHQW3$,2&IJB'DWD


nt

The Cfg_Data settings are taken from the GSD file that the manufacturer of the PROFIBUS-DP
rI

DPM delivers. See the keyword Module in the GSD file. It contains a number of hexadecimal
bytes that are used to perform a check whether the addresses device matches the description in
the master. The DPM will not enter the data exchange state if this check fails.
Fo

Because of limitations in the FCB, these figures must be entered in chunks of 10 bytes each
CFGD1, CFGD2, ... CFGD25.
The parameter CFGDLEN gives the total number of bytes which are entered at the CFGDn
terminals. The FCB checks at target code generation time whether this value is correct by
comparing it with the number of bytes actually entered. If the numbers do not match, an error
message is given and the application will not be loadable.

GKW F 310 861 R0001 3-15


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

PB-IN
(R, 1, 0)
A  1 STATION VALID 3


y
B 2 VALUENO VALUE1 4

nl
PB-IN

O
(R, 1, 0)
 1 STATION VALID 3
C  2 VALUENO VALUE1 4

se
lU
PB-OUT
(R, 1)
 1 STATION
na

D  2 VALUENO

3 VALUE1
er

PB-OUT
nt

(R, 1)
 1 STATION
rI

E  2 VALUENO

3 VALUE1
Fo

)LJXUH  3&(OHPHQWVIRU3$,2'30

The terminals of the PC elements PB-IN and PB-OUT for the PAIO DPM provides the
connections of the values from and to the PROFIBUS-DP DPM to the PC part of your
application program.
The PROFIBUS-DP address for that DPM is 2 as specified at the STATION terminal (A). This
number must coincide with the actual setting of the address switch at the PROFIBUS-DP DPM.
The number of the first process value in the input PROFIBUS-DP PDU is specified with the
VALUENO terminal (B). The number of the second process value in the input PROFIBUS-DP

3-16 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 352),%86'3'30µV

PDU is specified with the VALUENO terminal (C). The number of the first process value in the
output PROFIBUS-DP PDU is specified with the VALUENO terminal (D). The number of the
second process value in the output PROFIBUS-DP PDU is specified with the VALUENO
terminal (E)
The terminals VALUEn are used to connect the input/output values from/to the DPM (see call
parameters below).
The terminals VALID are used to signal that the values are updated.
Additionally specified call parameters for PC elements (in brackets):

y
PB-IN‘s (R, 1, 0):

nl
The data type of the value is R (Real), the number of inputs within the value is 1, the data kind
of the value is 0 (process data)

O
PB-OUT‘s (R, 1):
The data type of the value is R (Real), the number of inputs within the value is 1.

se
lU
na
er
nt
rI
Fo

GKW F 310 861 R0001 3-17


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

 $SSOLFDWLRQ3URFHGXUH
This is a checklist of the steps necessary to build the application database and PC program for
the PROFIBUS-DP communication in AC 160.

7DEOH  &KHFNOLVWIRU352),%86'3DSSOLFDWLRQVLQ$&

,VVXH 2.
Define the logical bus number for the PROFIBUS-DP line

y
PROFIBUS-DP bus characteristics:

nl
Specify the speed and the various timing parameters if these require non-standard
settings. This might be the case for some special DPM‘s. The timings are usually
given in units of bit-time, TBIT

O
PROFIBUS-DP DPM‘s to be used
Get the GSD file for each DPM

se
Define the PROFBUS address for all DPM‘s
Create a DB element PBS for each PROFIBUS-DP DPM using the FCB
lU
Configure the DB element PM644
Configure the DB element PB
Check whether any of the DPM‘s needs an unusual timing
na

Configure the DPM DB elements PBS


Define the cycle time of your control modules
er

Build the control module


nt

Create a PC element PB-IN for each input value of the PROFIBUS DPM‘s
Create a PC element PB-OUT for each output value of the PROFIBUS DPM‘s
rI

Configure the DPM PC elements


Fo

3-18 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ &RQILJXUDWLRQRI$SSOLFDWLRQ

 &RQILJXUDWLRQRI$SSOLFDWLRQ
The following DB element descriptions are an excerpt of the “Reference Manual AC160 DB
Elements”.

 '%(OHPHQWIRU3URFHVVRU0RGXOH30

6XPPDU\

y
The PM644 is the Processor Module (CPU) of the Advant Controller 160 control system with
PROFIBUS interface. By means of the call name PM644 an Engineering Station will create 1

nl
data base element of type Processor Module.
The PROFIBUS interface data base element must be defined separately.

O
Edit DB Terminal Values - PM1

se
Processor Module :
lU PM1
0
0
NAME
BUS
STATION
ERR
CHECKERR
STATUS1
3 POSITION STATUS2
1 IMPL STATUS3
PM644 TYPE
na
CH1
er
nt

7HUPLQDO'HVFULSWLRQ
9DOXH 3&FRQ
rI

7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH

NAME user PMx – Unique module1$0(. Max. 20 characters.


Fo

BUS predef 0 – %86number. See section “Address


terminals” in chapter
STATION predef 0 – 67$7,21number. Introduction.
POSITION range 3..8
POSITION user 3 – 326,7,21of the module.

IMPL predef 1 – ,03/emented. –


0=the module is spare
1=the module is implemented

TYPE predef PM644 – Module 7<3(. See call name.

ERR system – B(r) (55or flag. –


0=no error
1=non functional module

GKW F 310 861 R0001 3-19


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

7HUPLQDO'HVFULSWLRQ &RQWLQXHG
9DOXH 3&FRQ
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH

CHECKERR system – B(r) &+(&.sum (55or on PROM. –


0=no checksum error
1=checksum error

STATUS1 system – IL(r) 67$786 . Status and error information. –

y
STATUS2 system – IL(r) 67$786 . Data base version date. –

nl
STATUS3 system – IL(r) 67$786 . Data base version time –

CH1 user – DBRef Reference to PROFIBUS data base element –

O
se
 '%(OHPHQWIRU352),%86'30DVWHU lU
6XPPDU\
The PROFIBUS-DP data base element specifies the interface to PROFIBUS-DP. The element contains configuration data as
well as diagnostic information.
na

2YHUYLHZ
er

PROFIBUS-DP : Base part Bus parameters

NAME ERR BAUDRATE


nt

ACT DIAG ECL2SERV


BUSNO DCNTRTIM
STNNO CLEAR
TIMESYNC SLOTTIME
SYNCCYCL MINTSDR
rI

CABLE MAXTSDR
QUIETTIM
SETTIME
GAPFACTR
Fo

HSA
MAXRETRY

3-20 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ '%(OHPHQWIRU352),%86'30DVWHU

%DVHSDUW
Edit DB Terminal Values - PB1

PROFIBUS-DP : Base part

PB1 NAME ERR


1 ACT DIAG
0 BUSNO

y
1 STNNO
0 TIMESYNC
100 SYNCCYCL

nl
S CABLE

O
7HUPLQDO'HVFULSWLRQ%DVHSDUW
9DOXH 3&FRQ

se
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH

NAME user PBx – Unique module 1$0(.


lU Max. 20 characters.

ACT user 1 – The DB element is: –


0=spare
1=$&7ive
na
BUSNO user 0 – Unique %861umber for this fieldbus. 0..255

STNNO user 1 – 67atio11umber representing the Controller on 0..125


the fieldbus.
er

TIMESYNC predef 0 – Send a 7,0( 6<1&hronization message. For future use.

SYNCCYCL predef 100 – 6<1&hronization &<&/e for time For future use
nt

synchronization message.

CABLE predef S – &$%/( connection. For future use.


S=Single, R=Redundant
rI

ERR system 0 B(r) (55or flag indicating hardware or configuration –


error.
Fo

DIAG system 0 B(r) ',$*nostic changed sum flag for all PROFIBUS- –
DP stations (sum of all PBS DIAG flags).

GKW F 310 861 R0001 3-21


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

%XVSDUDPHWHUV
Edit DB Terminal Values - PB1

PROFIBUS-DP : Bus parameters

500 BAUDRATE
0 ECL2SERV
2000 DCNTRTIM

y
1 CLEAR
200 SLOTTIME

nl
11 MINTSDR
100 MAXTSDR
0 QUIETTIM
1 SETTIME

O
10 GAPFACTR
125 HSA
1 MAXRETRY

7HUPLQDO'HVFULSWLRQ%XVSDUDPHWHUV
se
lU
9DOXH 3&FRQ
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH
na

BAUDRATE user 500 – %$8'5$7( of PROFIBUS network in kilobits May change other terminal
per second (kbit/sec). Values: values, see table below.
9.6, 19.2, 93.75, 187.5, 500, 1500, 3000, 6000,
12000.
er

ECL2SERV user 0 – 1=(nable&/ass6(59er access Allows a PROFIBUS-DP


0=disable class 2 server access master class 2 to access
this master.
nt

DCNTRTIM user 2000 – 'ata &o175ol 7,0e in milliseconds. 0..65535


Time-out supervision of master – slave dialog.
rI

CLEAR user 0 – If data exchange fails Value 1 not supported in


1=set output of all PROFIBUS-DP slaves to 0 this version.
(&/($5)
Fo

0=do not change outputs

SLOTTIME user 200 – 6/277,0( TSL. The maximum time a 0..65535 TBIT. Value may
PROFIBUS-DP master must wait for a change if terminal
transaction response. BAUDRATE is changed.
See table below.

MINTSDR user 11 – 0,176'5. Specifies the minimum time a slave 0..65535 TBIT.
must wait before it may respond.

MAXTSDR user 100 – 0$;76'5. Specifies the maximum time after 0..65535 TBIT. Value may
which a slave must respond. change if terminal
BAUDRATE is changed.
See table below.

3-22 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ '%(OHPHQWIRU352),%86'30DVWHU

7HUPLQDO'HVFULSWLRQ%XVSDUDPHWHUV &RQWLQXHG
9DOXH 3&FRQ
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH

QUIETTIM user 0 – 48,(77,0e TQUI. Transmitter fall time. 0..255 TBIT. Value may
change if terminal
BAUDRATE is changed.
See table below.

SETTIME user 1 – 6(7up 7,0( TSET. Time between event and 0..255 TBIT. Value may

y
reaction. change if terminal
BAUDRATE is changed.

nl
See table below.

GAPFACTR user 10 – *$3 )$&7o5. Number of token rounds between 0..100

O
GAP maintenance cycles.

HSA user 125 – +ighest 6tation (slave)$ddress configured on 2..125


this bus.

se
MAXRETRY user 1 – 0$;Lmum number of times to 5(75< 1..8. Value may change if
transmission. terminal BAUDRATE is
changed. See table below.
lU
The value of the following terminals changes to the specified default if terminal BAUDRATE is changed:

'HIDXOWVGHSHQGLQJRQ%$8'5$7(
na
%$8'5$7( 6/277,0( 0$;76'5 48,(77,0 6(77,0( 0$;5(75<
9.6 100 60 0 1 1
er

19.2 100 60 0 1 1

93.75 100 60 0 1 1
nt

187.5 100 60 0 1 1

500 200 100 0 1 1


rI

1500 300 150 0 1 1


3000 400 250 3 4 2
Fo

6000 600 450 6 8 3

12000 1000 800 9 16 4

GKW F 310 861 R0001 3-23


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

 '%(OHPHQWIRU352),%86'3'30µV

6XPPDU\
The PROFIBUS Slave data base element describes a PROFIBUS-DP slave device.
Every PROFIBUS slave device is mapped to a data base element which contain configuration data and diagnostic information.

y
2YHUYLHZ

nl
PROFIBUS Slave : Base part Slave parameters User_Prm_Data 1

NAME ERR DP_V1


UPRMDLEN

O
ACT DIAG IDENTNO
MAXDIAGL UPRMD1
BUS UPRMD2
STATION FAILSAFE
WDFACT1 UPRMD3
FREEZE UPRMD4
SYNC WDFACT2
UPRMD5

se
GROUP_ID MINSINT
UPRMD6
UPRMD7
UPRMD8
UPRMD9
lU
UPRMD10
UPRMD11
UPRMD12
na

User_Prm_Data 2 Cfg_Data 1 Cfg_Data 2

UPRMD13 CFGDLEN CFGD13


UPRMD14 CFGD1 CFGD14
CFGD15
er

UPRMD15 CFGD2
UPRMD16 CFGD3 CFGD16
UPRMD17 CFGD4 CFGD17
UPRMD18 CFGD5 CFGD18
CFGD6 CFGD19
nt

UPRMD19
UPRMD20 CFGD7 CFGD20
UPRMD21 CFGD8 CFGD21
UPRMD22 CFGD9 CFGD22
UPRMD23 CFGD10 CFGD23
rI

UPRMD24 CFGD11 CFGD24


UPRMD25 CFGD12 CFGD25
Fo

3-24 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ '%(OHPHQWIRU352),%86'3'30µV

%DVHSDUW
Edit DB Terminal Values - PBS1

PROFIBUS Slave : Base part

PBS1 NAME ERR


1 ACT DIAG
0 BUS

y
1 STATION
0 FREEZE
0 SYNC

nl
0 GROUP_ID

O
7HUPLQDO'HVFULSWLRQ%DVHSDUW
9DOXH 3&FRQ

se
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH

NAME user PBSx – Unique module 1$0(.


lU Max. 20 characters.

ACT user 1 – The DB element is: –


0=spare
1=$&7ive
na
BUS user – – Unique %86number of the PROFIBUS. 0..255

STATION user 1 – 67$7,21number representing the slave on the 0..125


PROFIBUS.
er

FREEZE predef 0 B(r/w) )5((=( PROFIBUS slave. Not supported in this


version.
nt

SYNC predef 0 B(r/w) 6<1&hronize PROFIBUS slave. Not supported in this


version.

GROUP_ID predef 0 – *5283,' of PROFIBUS slave. GROUP ID for the FREEZE


rI

and SYNC functions.


Not supported in this
version
Fo

ERR system 0 B(r) (55or flag indicating the PROFIBUS slave –


status (the slave station status error bits are
logically ORed to the flag).

DIAG system 0 B(r) ',$*nostic changed flag for PROFIBUS station. –

GKW F 310 861 R0001 3-25


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

6ODYHSDUDPHWHUV
Edit DB Terminal Values - PBS1

PROFIBUS Slave : Slave parameters

0 DP_V1
H’0000 IDENTNO
0 MAXDIAGL

y
1 FAILSAFE
0 WDFACT1
0 WDFACT2

nl
0 MINSINT

O
7HUPLQDO'HVFULSWLRQ6ODYHSDUDPHWHUV
9DOXH 3&FRQ

se
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH

DP_V1 GSD/user 0 – PROFIBUS slave uses '3/9 (=DP/E) GSD keyword:


lU
functionality: DPV1_Slave.
0=DP-slave CFG data of EN50170
1=DP-slave CFG data of DP/V1.
IDENTNO GSD/user H’0000 – Unique PROFIBUS slave,'(17ifier. Assigned H’0000..H’FFFF.
na

by PNO. GSD keyword:


Ident_Number.
MAXDIAGL GSD/user 32 – 0$;imum ',$*nostic data /ength. 6..244.
er

GSD keyword:
Max_Diag_Data_Len.

FAILSAFE GSD/user 0 – )$,/6$)( capability: GSD keyword:


nt

0= The master sends output data with zero length Fail_Safe.


1= The master sends output data with all outputs
set to zero
rI

WDFACT1 user 0 – :atch 'og )$&7or . 0..255.


After expiration of timer the
WDFACT2 user 0 – :atch 'og )$&7or . slave sets outputs to 0.(1)
Fo

MINSINT GSD/user 0 – 0,1imum 6lave ,17erval. Minimum time 0..65535.


between two poll cycles GSD keyword:
(0..65535 × 0.1ms). Min_Slave_Interval.

(1) Slave supervision of connection with time out TWD = WDFACT1 × WDFACT2 × 10ms. No supervision if WDFACT1 = WDFACT2 = 0.

3-26 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ '%(OHPHQWIRU352),%86'3'30µV

8VHUB3UPB'DWD
Edit DB Terminal Values - PBS1

PROFIBUS Slave : User_Prm_Data 1

0 UPRMDLEN
UPRMD1
UPRMD2

y
UPRMD3
UPRMD4
UPRMD5

nl
UPRMD6
UPRMD7
UPRMD8
UPRMD9

O
UPRMD10
UPRMD11
UPRMD12

se
7HUPLQDO'HVFULSWLRQ8VHUB3UPB'DWD

7HUPLQDO

1DPH
9DOXH

HQWHUHG

E\
'HIDXOW

YDOXH
3&FRQ

QHFWLRQ

GDWDW\SH
lU
'HVFULSWLRQ 5HPDUNV

UPRMDLEN GSD/user 0 – 8ser 3a5a0eter 'ata /(1gth. 0..244.


na
GSD keyword:
User_Prm_Data_Len.

UPRMD1 GSD/user – 8ser 3a5a0eter 'ata, st 10 bytes. 20 character string


representing a hexadecimal
er

UPRMD2 GSD/user – 8ser 3a5a0eter 'ata, nd 10 bytes. number.


GSD keyword:
: : : : : User_Prm_Data.
nt

UPRMD12 GSD/user – 8ser 3a5a0eter 'ata, th 10 bytes.


rI
Fo

GKW F 310 861 R0001 3-27


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

8VHUB3UPB'DWD
Edit DB Terminal Values - PBS1

PROFIBUS Slave : User_Prm_Data 2

UPRMD13
UPRMD14
UPRMD15

y
UPRMD16
UPRMD17
UPRMD18

nl
UPRMD19
UPRMD20
UPRMD21
UPRMD22

O
UPRMD23
UPRMD24
UPRMD25

se
7HUPLQDO'HVFULSWLRQ8VHUB3UPB'DWD
lU
9DOXH 3&FRQ
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH

UPRMD13 GSD/user – 8ser 3a5a0eter 'ata, th 10 bytes. 20 character string


na

representing a hexadecimal
UPRMD14 GSD/user – 8ser 3a5a0eter 'ata, th 10 bytes. number.
GSD keyword:
: : : : : User_Prm_Data.
er

UPRMD25 GSD/user – 8ser 3a5a0eter 'ata, th 10 bytes.


nt
rI
Fo

3-28 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ '%(OHPHQWIRU352),%86'3'30µV

&IJB'DWD
Edit DB Terminal Values - PBS1

PROFIBUS Slave : Cfg_Data 1

0 CFGDLEN
CFGD1
CFGD2

y
CFGD3
CFGD4
CFGD5

nl
CFGD6
CFGD7
CFGD8
CFGD9

O
CFGD10
CFGD11
CFGD12

se
7HUPLQDO'HVFULSWLRQ&IJB'DWD

7HUPLQDO

1DPH
9DOXH

HQWHUHG

E\
'HIDXOW

YDOXH
3&FRQ

QHFWLRQ

GDWDW\SH
lU
'HVFULSWLRQ 5HPDUNV

CFGDLEN GSD/user 0 – &on)i* 'ata/(1gth. Must be calculated from 0..244.


na
the actual configuration. GSD keyword: Module.
(Can be several for modular
devices)

&on)i*uration 'ata, st 10 bytes.


er

CFGD1 GSD/user – 20 character string


representing a hexadecimal
CFGD2 GSD/user – &on)i*uration 'ata, nd 10 bytes. number.
GSD keyword: Module.
nt

: : : : :

CFGD12 GSD/user – &on)i*uration 'ata, th 10 bytes.


rI
Fo

GKW F 310 861 R0001 3-29


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

&IJB'DWD
Edit DB Terminal Values - PBS1

PROFIBUS Slave : Cfg_Data 2

y
CFGD13
CFGD14
CFGD15

nl
CFGD16
CFGD17
CFGD18
CFGD19

O
CFGD20
CFGD21
CFGD22
CFGD23
CFGD24

se
CFGD25
lU
7HUPLQDO'HVFULSWLRQ&IJB'DWD
9DOXH 3&FRQ
7HUPLQDO 'HIDXOW
HQWHUHG QHFWLRQ 'HVFULSWLRQ 5HPDUNV
1DPH YDOXH
E\ GDWDW\SH
na

CFGD13 GSD/user – &on)i*uration 'ata, th 10 bytes. 20 character string


representing a hexadecimal
CFGD14 GSD/user – &on)i*uration 'ata, th 10 bytes. number.
er

GSD keyword: Module.


: : : : :

CFGD25 GSD/user – &on)i*uration 'ata, th 10 bytes.


nt
rI
Fo

3-30 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 3&(OHPHQWVIRU352),%86'3'30µV

 3&(OHPHQWVIRU352),%86'3'30µV
The following PC element descriptions are an excerpt of the “Reference Manual AC160 PC
Elements”.

 ,QSXWIURP352),%86

6XPPDU\

y
PC element PB-IN is used to transfer process or diagnostic PB-IN
(C1,C2,C3)
values from the PROFIBUS slaves to the Advant Controller

nl
160. 1 STATION VALID 3
2 VALUENO VALUE1 4

VALUEC2 3+C2

O
PC element PB-IN

se
&DOO3%,1 &&&
3DUDPHWHU 6LJQLILFDQFH 3HUPLVVLEOHYDOXHV

C1

C2
Data type

Number of inputs
lU
B, I, IL, R

1..32 (C1=B C3=0)


1..8 (C1=B C3=1)
1 (C1=I, IL, R C3=0)
na
C3 Process/Diagnostic 0 = Process data
data kind selector 1 = Diagnostic data (1))

(1) Note: for further information see the according PROFIBUS specifications!
er

7HUPLQDO'HVFULSWLRQ
nt

1R 1DPH 7\SH 'HVFULSWLRQ

1 STATION II 67$7,21number representing the slave on the PROFIBUS.


rI

Range 0..125

2 VALUENO II 9$/8(1umber of the PROFIBUS slave.


Range 1..244 (245 if C3 = 1 --> represents the internal PROFIBUS interface slave status).
Fo

3 VALID OB 9$/,'. 1 = Data has been updated, 0 = Data has not been received.

4 VALUE1 OC1 9$/8( of type B, I, IL, R.

5 VALUE2 OC1 9$/8( of type B.

:
3+C2 VALUEC2 OC1 9$/8(& of type B.

)XQFWLRQ
PC element PB-IN is used to transfer process or diagnostic values from the PROFIBUS slaves to the Advant Controller 160.
With the help of call parameters the number, type and kind of values are chosen.

GKW F 310 861 R0001 3-31


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

 2XWSXWWR352),%86

6XPPDU\
PC element PB-OUT is used to transfer values from the PB-OUT
(C1,C2)
Advant Controller 160 to the PROFIBUS slaves.
1 STATION
2 VALUENO
3 VALUE1

2+C2 VALUEC2

y
PC element PB-OUT

nl
&DOO3%287 &&

O
3DUDPHWHU 6LJQLILFDQFH 3HUPLVVLEOHYDOXHV

C1 Data type B, I, IL, R

se
C2 Number of outputs 1..32 (C1=B)
1 (C1=I, IL, R)

7HUPLQDO'HVFULSWLRQ
lU
1R 1DPH 7\SH 'HVFULSWLRQ

1 STATION II 67$7,21number representing the slave on the PROFIBUS.


Range 0..125
na

2 VALUENO II 9$/8(1umber of the PROFIBUS slave.


Range 1..244.

9$/8( of type B, I, IL, R.


er

3 VALUE1 IC1

4 VALUE2 IC1 9$/8( of type B.


nt

:
3+C2 VALUEC2 IC1 9$/8(& of type B.
rI

)XQFWLRQ
PC element PB-OUT is used to transfer values from the Advant Controller 160 to the PROFIBUS slaves. With the help of call
Fo

parameters the number and type of values are chosen.

3-32 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 3&(OHPHQWVIRU352),%86'3'30µV

9DOXHDFFHVVYLD3&HOHPHQWV
It is possible to acces with the PC elements each value within the PROFIBUS-DP PDU. You
can view the PROFIBUS-DP data for any given DPM as being diveded in three parts: input
data, output data and diagnostic data. Each of the three parts contains up to 244 values in
PROFIBUS-DP data types. In fact, this is the way the PROFIBUS-DP interface provides the
data to the system CPU. Figure 3-16 illustrates this memory layout.

y
Input Data Output Data Diagnostic Data Status

nl
1 244 1 244 1 244 245

O
)LJXUH  &389LHZRI3URFHVVDQG'LDJQRVWLF'DWDIRUDQ\JLYHQ'30

To access a value via a data terminal at a DPM PC element, you specify the number of the

se
value, the relevant part and what data type it has. With this specification the PM644 is able to
determine where the value is located in the PROFIBUS-DP interface.

127(
lU
More than one PB-OUT element can update the same value. There is no checking
that the combination of the terminals STATION, VALUENO and VALUEn gives
nonoverlapping positions in the PDU.
na
From the PROFIBUS-DP interface itself the PROFIBUS-DP data type is mapped to the
corresponding Advant data type and vice versa.
er

,QSXWVDQG2XWSXWV
The supported data types depends on the protocol variant of PROFIBUS-DP:
nt

• PROFIBUS-DP only knows about Byte (Unsigned8) and Word (Unsigned16) values. You
have to convert these raw formats into data types that suit the physical value, using PC
rI

elements.
• PROFIBUS-DP/E recognizes a large number of different data types automatically and
allowes to define user specific data types. Table 3-2 and Table 3-3 show the relation
Fo

between the various PROFIBUS-DP/E and Advant data types.

GKW F 310 861 R0001 3-33


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

7DEOH  352),%86'3(FRPSDUHGWR$GYDQW'DWD7\SHV

352),%86'3( $GYDQW 5HPDUNV


1XPEHURI
'DWDW\SH 'DWDW\SH
E\WHV
Boolean 1 B

y
Integer8 1 I, IL,B

nl
Integer16 2 I, IL,B
Integer32 4 IL, B

O
Unsigned8 1 I ,IL, B transmitted as data type Byte in
PROFIBUS-DP

se
Unsigned16 2 IL, B Transmitted as data type Word in
PROFIBUS-DP
Unsigned32 4 IL, B When the range is exceeded the
lU
output is set to the maximum
IntegerLong value.
Floating Point 4 R
na

(1)
Visible String 1, 2, 3 .. C
(1)
Octet String 1, 2, 3 .. I, IL, B
er

Date 7 - Not supported(2)


Time Of Day 4 or 6 - Not supported(2)
nt

Time Difference 4 or 6 - Not supported(2)


(3)
Binary value fast 2 I, IL, B
rI

(3)
Binary value slow 2 I, IL, B
(3)
Analog value fast 2 R
Fo

(3)
Analog value slow 2 R
(3)
Speed fast 4 R
(3)
Speed slow 4 R
(1) each byte is mapped separately
(2) for PROFIBUS-DP DPM‘s with these data types raw value handling is done (each
byte of the complete PROFIBUS PDU is mapped seperately)
(3) user specific data type

3-34 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 3&(OHPHQWVIRU352),%86'3'30µV

7DEOH  $GYDQWFRPSDUHGWR352),%86'3('DWD7\SHV

$GYDQW 352),%86'3( 5HPDUNV


1XPEHURI
'DWDW\SH 'DWDW\SH
E\WHV
B Boolean 1

y
I, IL, B Integer8 1 Only the lower 8 bits of I, IL are

nl
used.
Transmitted as data type Byte in
PROFIBUS-DP.

O
I, IL, B Integer16 2 Only the lower 16 bits of I are
used.
Transmitted as data type Word in

se
PROFIBUS-DP.
IL, B Integer32 4
I, IL, B
lU
Unsigned8 1 Only the lower 8 bits of I, IL are
used
I, IL, B Unsigned16 2 Only the lower 16 bits of I are
used
na
IL, B Unsigned32 4
R Floating Point 4
er

I, IL, B Visible String 1, 2, 3 .. Only the lower 8 bits of I, IL are


used (1)
nt

I, IL, B Octet String 1, 2, 3 .. Only the lower 8 bits of I, IL are


used (1)
rI

- Date 7 Not supported(2)


- Time Of Day 4 or 6 Not supported(2)
Fo

- Time Difference 4 or 6 Not supported(2)


(3)
I, B Binary value 2
(3)
R Analog value 2
R Speed 4 (3)

(1) each byte is mapped separately


(2) for PROFIBUS-DP DPM‘s with these data types raw value handling is done (each
byte of the complete PROFIBUS PDU is mapped seperately)
(3) user specific data type

GKW F 310 861 R0001 3-35


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

'LDJQRVWLFV
The diagnostics data area holds the bytes that the PROFIBUS-DP DPM´s deliver, in order to
show their status. The contents of the first six bytes are defined by the standard EN 50170. The
remaining 238 bytes are completely defined by the DPM’s manufacturer and can be found in the
relevant documentation. Therefore this data are handled from the PROFIBUS-DP interface
always in raw format as Byte (unsigned 8).
The status byte at position 245 in the diagnostics data area delivers information about how the
PROFIBUS-DP master views the DPM. Table 3-4 shows the bit definitions in this byte.

y
nl
7DEOH  '30VWDWXVDVVHHQE\WKHPDVWHU

%LW 'HVFULSWLRQ

O
0..3 DPM connection status:
0 - connection up and running

se
1 - error in establishing connection
2 - connection aborted
3 - DPM activated
lU
4 - DPM deactivated
5 - DPM not configured
4 not used
na

5 DPM parameter fault flag.


PDU size mismatch, e.g. the maximum diagnostic data length value is to low.
6 Data transfer flag.
er

Process data is transfered between PM644 and DPM


7 System diagnostic flag.
nt

DPM has reported diagnostics


rI
Fo

3-36 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 7KH*6')LOH

 7KH*6')LOH
The GSD file contains information about the PROFIBUS-DP DPM‘s. Its contents are defined in
EN 50170.
There is a GSD file for each PROFIBUS-DP DPM, provided by the manufacturer of the DPM.
It describes the capabilities of a certain DPM, such as supported baud rates and/or other
functions. Futhermore, you find configuration data in the GSD file. These configuration data is
used by the PROFIBUS-DP master to check whether your configuration matches the actually
connected DPM.

y
The GSD file has the following general format:

nl
KEYWORD = value
where: .(<:25' is a keyword defined in the PROFIBUS-DP standard,

O
YDOXH is either a string or a number (in decimal or hexadecimal notation).

The Table 3-5 shows the most important keywords which are used to find data to create and

se
configure PROFIBUS-DP DPM (slave) DB elements in AC 160.

lU 7DEOH  *6'.H\ZRUGV

*6'.H\ZRUG 'HVFULSWLRQ 8VHDW'%HOHPHQW5HPDUN


Baud_supp Describes the baud rates the slave PB:BAUDRATE
na
can handle. Note: that all connected slaves
%DXG might have a range from 9.6 .. must support the specified baud
12M rate
er

MaxTsdr_Baud Specifies the maximum time after PB:MAXTSDR


which a slave must respond.
%DXG might have a range from 9.6 ..
nt

12M
Given in TBIT
rI

MinTsdr_Baud Specifies the minimum time a slave PB:MINTSDR


must wait before it may respond.
%DXG might have a range from 9.6 ..
Fo

12M
Given in TBIT
Ident_Number This is the ident number of the slave PBS:IDENTNO
Freeze_Mode_supp The slave is able to handle the PBS:FREEZE
freeze mode.
1 = freeze mode supported
0 = not supported
Sync_Mode_supp The slave is able to handle the sync PBS:SYNC
mode.
1 = sync mode supported
0 = not supported

GKW F 310 861 R0001 3-37


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

7DEOH  *6'.H\ZRUGV &RQWLQXHG

*6'.H\ZRUG 'HVFULSWLRQ 8VHDW'%HOHPHQW5HPDUN


User_Prm_Data_Len This figure gives the maximum PBS:UPRMDLEN
length of the user parameter data
User_Prm_Data Vendor specific data for the slave. PBS:UPRMD1..UPRMD25
Its length must match
User_Prm_Data_Len

y
Min_Slave_Interval Minimum time between two PBS:MINSINT

nl
accesses to the slave.
Given in units of 100µs.

O
Module Configuration data for the slave. PBS:CFGD1..CFGD25,
See also Modular DPM‘s below CFGDLEN
Note: CFGDLEN must set to the
EndModule End of configuration data for the sum length of all configuration data

se
slave. See also Modular DPM‘s
below
Specifies whether the slave can PBS:FAILSAFE
lU
Fail_Safe
accept a data telegram without data
bytes when the master is in the
CLEAR(1) state
na

Max_Diag_Data_Len Maximum length of the slave’s PBS:MAXDIAGL


diagnostic data Note: this is not a mandatory
keyword in EN 50170. If the given
figure is too small, the slave will
er

not go in the data exchange mode.


Specifying an arbitrary large
nt

number is allowed.
(1) The master is temporary in the CLEAR state when a new or changed application program is
loaded to the controller.
rI
Fo

3-38 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 7KH*6')LOH

0RGXODU'30µV
Modular DPM‘s need configuration data that is specific for each module. The DPM vendor’s
GSD file contains a description of the configuration data for all supported modules.
The configuration data for any given module is defined between the keywords Module and
EndModule in the GSD file.
The configuration data for the complete slave is generated by appending the configuration data
for each module to the CFGDn terminals of the DPM (slave) DB element.

y
nl
GSD File

O
Module=”Module_1”0x04,0x00,0x00,0xAD,0xC4

se
EndModule
Module=”Module_2”0x04,0x00,0x00,0x9B,0x40
lU EndModule

Sum length of all configuration data = 10

3%6
na
&IJB'DWD
10 CFGDLEN
er

DPM DB element
040000ADC4 0400009B40 CFGD1
nt

CFGD2
CFGD3
rI

CFGD4
CFGD5
Fo

~
~ ~
~

)LJXUH  0RGXODU'30&RQILJXUDWLRQ([DPSOH

GKW F 310 861 R0001 3-39


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU &RQILJXUDWLRQ$SSOLFDWLRQ%XLOGLQJ

y
nl
O
se
lU
na
er
nt
rI
Fo

3-40 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 2SHUDWLQJ2YHUYLHZ

&KDSWHU 5XQWLPH2SHUDWLRQ

The AC 160 must execute a PC program (mode P1, indicated on the front of the processor
module) to communicate on the PROFIBUS link.
With the AC 160 in stop mode (mode P3, indicated on the front of the processor module), the
communication is stopped.

y
 2SHUDWLQJ2YHUYLHZ

nl
After start-up, and with the AC 160 in P1 mode, you can control the following operations:
• The status information for the PROFIBUS link in the PROFIBUS database element can be

O
displayed.
• The status information for the PROFIBUS DPM‘s in the PROFIBUS DPM database
elements can be displayed.

se
 5XQWLPH7XWRULDO lU
A Runtime Tutorial is not included in this manual. The reader must be familiar with AC 160
application programming.

 2SHUDWLQJ,QVWUXFWLRQV
na
For a description of commands for control of the PC program and Database, please refer to
$03/&RQILJXUDWLRQ$GYDQW&RQWUROOHU6HULHV.
er

 5XQWLPH2SHUDWLRQ0HQXV
nt

Not applicable.
rI
Fo

GKW F 310 861 R0001 4-1


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU 5XQWLPH2SHUDWLRQ

y
nl
O
se
lU
na
er
nt
rI
Fo

4-2 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ 3UHYHQWLYH0DLQWHQDQFH

&KDSWHU 0DLQWHQDQFH

 3UHYHQWLYH0DLQWHQDQFH
Not applicable.

y
 +DUGZDUH,QGLFDWRUV

nl
The PM644 processor module has the following indicators on the front:
• The green RUN1 LED is lit when the processor module has succesfully completed its self-

O
tests and the application program is executed normally.
• The red FAULT LED is lit when a fault condition is detected on the processor module.
• The green TOKEN LED is lit when the PROFIBUS interface is in possession of the

se
PROFIBUS token.
• The red HALT LED is lit when an halt condition on the processor of the PROFIBUS


interface occured.
lU
The green R(un) LED is lit when the PROFIBUS interface is configured and operational.
• The red F(ault) LED is lit when the PROFIBUS interface initialization is running or an
error occured.
na
For a detailed discussion of the front panel, see appendix A
er

 'DWD%DVH(OHPHQWV,QGLFDWRUV
In this chapter the possible faults indicated in PROFIBUS data base elements are described.
nt

 3%'DWD%DVH(OHPHQW,QGLFDWRUV
rI

The terminal ERR indicating hardware or configuration error of the PROFIBUS interface. See
chapter Error Messages for more detailed information.
Fo

The terminal DIAG shows the sum of all PBS data base element DIAG terminals. All PBS data
base element DIAG terminals are logically ORed to yield the final value.

GKW F 310 861 R0001 5-1


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU 0DLQWHQDQFH

 3%6'DWD%DVH(OHPHQW,QGLFDWRUV
The terminal ERR shows the sum error of the first 3 standard PROFIBUS-DP DPM diagnostic
bytes. All listed diagnostic bits are logically ORed to yield the final value:
Diagnostics byte 1 (station status 1):

Bit 0: Diag.Station_Not_Exists Set by the master when the slave doesn’t exists.
Bit 1: Diag.Station_Not_Ready Set by the slave when it is not ready for data

y
exchange.

nl
Bit 2: Diag.Cfg_Fault Set by the slave when the received
configuration data does not match the actual
configuration.

O
Bit 4: Diag.Not_Supported Set by the slave if a non existing function is
requested. F.i.Sync/Freeze.

se
Bit 5: Diag.Invalid_Slave_Response Set by the master when the slave response is
invalid.
Bit 6: Diag.Prm_Fault Set by the slave if the parameter data is invalid.
lU
Bit 7: Diag.Master_Lock Set by the master when the slave is
parametrized by another master
na

Diagnostics byte 2 (station status 2):

Bit 0: Diag.Prm_Req Set by the slave when the slave requests new
er

parametrisation.
Bit 7: Diag.Deactivated Set by the master when the slave has been
marked inactiv within the slave parameter set.
nt

Diagnostics byte 3 (station status 3):


rI

Bit 7: Diag.Ext_Diag_Overflow Set by the slave when there are more diagnostic
data available than will fit in the area for
Fo

diagnostic data.
The master can set this bit, too, when the slave
sends more diagnostics data than the master is
able to process.

The terminal DIAG shows that the DPM has published changed diagnostic data. In that case you
may read the diagnostic data with the PB-IN PC element.

5-2 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ (UURU0HVVDJHV

 (UURU0HVVDJHV
You can read error messages by an engineering station using the Function Chart Builder
command 7DUJHW_'LDJQRVWLFV_7DUJHW_5HSRUW(UURUV.
This command shows the error report of your Avant Controller 160 system. The error report
lists the all detected errors with error type.
Examples of Errors seen with FCB: (Menu Error Report)

y
(UURU5HSRUW

nl
12.05.98 16:00:00

O
List Modules: * Diagnose Module


Delete Reported Errors

se
Address Module Type Date Time Type of First Detected Error
0,0,3,0 PM644V00Ra 12.05.98 07:31:16 Process error

lU
na
er

)LJXUH  ([DPSOHRIHUURUVLQDQHUURUUHSRUWRI)&%


nt

The line shown in the error report window says that there is a problem within the processor
module that is not not related to the system software. These “process errors” are indicated for
rI

additional hardware subsystems within the processor module. Double-click on that line and the
diagnostic tool will show a detailed list of errors that occured within the processor module.
Fo

GKW F 310 861 R0001 5-3


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU 0DLQWHQDQFH

'LDJQRVWLFV>0RGXOH'LDJQRVWLFV
0RGXOH'LDJQRVWLFV >@ @
12.05.98 16:00:30
Module Type: PM644V00Ra
Module State: Operational

Object Types: Instances with Errors:

y
Device


2
Profibus coupler
Instance: 2

nl
Profibus node Bytewise Dec.: 0.2
Hexadecimal: 2
State: Config error

O
Error State Error Message
Detected Data exchange stopped

se
Detected lU Establishing connection error
na

)LJXUH  ([DPSOHRIHUURUVLQDPRGXOHGLDJQRVWLFVRI)&%

The relevant entries for the PROFIBUS are marked with the object types “Profibus coupler”
er

(for the PROFIBUS master) and “Profibus node” (for the PROFIBUS DPM).

 )DXOW)LQGLQJDQG8VHU5HSDLU
nt

If you follow the instructions in Chapter 2, Installation and in Section 3.6, Application
Procedureand still do not have a correctly working communication link, please check the
rI

following:
 ,VWKHFDEOLQJFRUUHFWO\VHWXS"
Fo

– The PM644 must be properly connected to the PROFIBUS.


– The termination resistors must be properly in place.
– Check whether the PROFIBUS connectors are correctly wired.
 ,VWKH3%GDWDEDVHHOHPHQWFRUUHFWO\ILOOHGLQ"
– All network numbers in the AC 160 node must be unique.
– The PROFIBUS address must be unique.
 $UHWKH3%6GDWDEDVHHOHPHQWVFRUUHFWO\ILOOHGLQ"
– The DPM characteristics must match the vendor’s DPM description.

5-4 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
6HFWLRQ )DXOW)LQGLQJDQG8VHU5HSDLU

– The PROFIBUS address must be unique and match the DPM address.
 &KHFNWKHGDWDEDVHDQG3&SURJUDPDSSOLFDWLRQ
– Is the PM644 correctly working?
The green RUN1 LED must be lit.
– Is the PROFIBUS interface correctly configured?
The green R(un) LED must be lit.

y
– Are the PROFIBUS DPM‘s correctly configured?
The indicators of the PROFIBUS DPM‘s must show data exchange mode.

nl
 $UHWKHUHDQ\&RQILJXUDWLRQ(UURUVUHSRUWHG

O
– Error messages may occur during download of the application, indicating that the
configuration of the modules was not possible. Check the error messages by
executing the REPORT ERROR command on FCB
 $UHWKHUHDQ\IDXOWVLQGLFDWHGYLDWKH3%GDWDEDVHHOHPHQWLQGLFDWRUV"

se
– All indicators should be zero.
 $UHWKHUHDQ\IDXOWVLQGLFDWHGYLDWKH3%6GDWDEDVHHOHPHQWLQGLFDWRUV"
lU
– All indicators should be zero.
na
If you know the answers to the following questions, further analysis will be easier:
a. Are modems and cables installed as described in the Advant Controller 160 User‘s
Guide (Chapter Installation)? Pay particular attention to the power supply and
er

connection to signal ground.


b. How is your control system configured? A block diagram with all node and network
nt

numbers is useful. Note also the type of PROFIBUS DPM‘s you are using.
c. Have you made any significant changes in your configuration?
rI

d. Is it possible to repeat your problem?


e. Have you found any way to circumvent the problem?
Fo

f. Have you made any other observations related to the problem?


A bus analyser1 for monitoring the PROFIBUS line is also useful for further analysis. This test
tool shows the traffic on the PROFIBUS and can be used to detect and trace down problems.

1. Bus analysers can be found in the product catalog published by the PNO at www.profibus.com

GKW F 310 861 R0001 5-5


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
&KDSWHU 0DLQWHQDQFH

y
nl
O
se
lU
na
er
nt
rI
Fo

5-6 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[ 3URFHVVRU0RGXOH30

$SSHQGL[$+DUGZDUH0RGXOH

 3URFHVVRU0RGXOH30

$SSOLFDWLRQ

y
The PM644 is a powerful nonredundant processor module with PROFIBUS-DP master
interface for the AC 160 system for the control and supervision of processes and equipment in

nl
power plant environments.
The PM644 can be placed in the positions 3...8 of the basic station. In multiprocessing

O
applications up to 6 processor modules PM640, PM644 and PM645 can be placed in one
controller. The data communication between these processor modules takes place via the global
memory in the communication interface CI630 (or CI626). One communication module CI630
(or CI626) is always necessary for the correct operation of the processor modules.

se
The processor module PM644 is based on 32-bit Motorola MC68360 processors.

0RGXOHUHSODFHPHQW
lU
PM644 can be replaced under voltage, but process control is interrupted. After replacement, the
processor module and its assigned I/O channels must be restarted.
na
er
nt
rI
Fo

GKW F 310 861 R0001 A-1


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[$+DUGZDUH0RGXOH

7HFKQLFDOGDWD

7DEOH$307HFKQLFDO'DWD

)HDWXUHV 'DWD
Processor for application Motorola MC68360 Microprocessor, 33 MHz (1)
program
Memory for application 2 MByte Flash PROM system software

y
program 1 MByte Flash PROM application program and

nl
boot sector
2 MByte SRAM for application purposes

O
Processor for PROFIBUS Motorola MC68360 Microprocessor, 33 MHz
communication
Memory for PROFIBUS 2 MByte Flash PROM system software

se
communication 2.25 MByte SRAM
Real Time Clock (RTC) Built in for time and calendar functions
lU
Watchdog 1 software watchdog activated after 10 ms
1 external hardware watchdog activated after 150 ms
COUNT interface RS422 interface, 15-pin Sub-D, female
na

Interfaces COM A and 2 RS 232C opto-isolated serial interfaces, V24


COM B
er

Interface connector COM A 9-pin Sub-D, female (per interface)


and COM B Section 1:
Pin 2 - TxD
nt

Pin 3 - RxD
Pin 5 - GND
Relay connector 3-pin connector
rI

Pin 2 - Common
Pin 1 - Normally closed when Processor Module in
operational mode
Fo

Pin 3 - Normally open when Processor Module in


operational mode
Relay plug with cable 3BHT 310359R1 3x1 mm2, 3 m length
Relay contact
Max. voltage 48 V DC
Max. current 0.5 A
Max. DC switching power 10 W
Interface CH1A RS485 galvanically separated serial PROFIBUS
interface

A-2 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[ 3URFHVVRU0RGXOH30

7DEOH$307HFKQLFDO'DWD &RQWLQXHG

)HDWXUHV 'DWD
Interface connector CH1A 9-pin Sub-D, female
Pin 1 - Schield
Pin 3 - RxD/TxD-P
Pin 4 - CNTR-P
Pin 5 - DGNG
Pin 6 - VP

y
Pin 8 - RxD/TxD-N
Pin 9 - CNTR-N

nl
Power dissipation < 12 W

O
(1) Processor Modules without BSE article number are equipped with 25 MHz clock with therefore
decreased performance

se
lU
na
er
nt
rI
Fo

GKW F 310 861 R0001 A-3


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[$+DUGZDUH0RGXOH

)URQWYLHZ

FAULT - LED (red)


)DXOW
RUN 1 - LED (green)
5XQ

RESet push-button 5HV

Diagnostic display

y
nl
O
0RGH
MODE selector switch

&RXQW

Dual rotational speed input

se
with sensor supply

HALT - LED (red)


lU
+DOW
TOKEN - LED (green)
7RNHQ

&RP$
F - LED (red)
na

Serial interface ) 5 R - LED (green)


to PC - Tool

Serial interface
er

to PROFIBUS
nt

&RP%
Serial interface
to Modbus 1 &KD
rI

Not to be used with PM644


Fo

5HO
Relay contact
&KE

30

)LJXUH$3URFHVVRUPRGXOH30

A-4 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[ 3URFHVVRU0RGXOH30

)XQFWLRQDOGHVFULSWLRQ
The processor module PM644 is based on 32-bit Motorola MC68360 processors.
The application program and the PROFIBUS communication are processed with separate
microprocessors and memories. Diagnostic information and a life sign are exchanged between
both microprocessors.
The system software includes diagnostic routines which check the processor module PM644
and all used I/O and interface modules during initialization and ensure system integrity during
the execution of the application program. Dedicated reactions can be defined within the

y
application program. The system software also monitors whether the processor module has
sufficient capacity to perform its functions within the times specified. If it does not, the

nl
processor module inhibits the application. The system software detects when I/O modules are
withdrawn. New modules added to the application via the DB elements are initialized

O
automatically.
During power-up, the functions of the processor module and the contents of application and
system PROM are checked as well as the internal RAM of the processor module PM644. While

se
the application program is running, the diagnostic routines continue checking operation without
impact on the execution of the application.

0HPRU\
lU
The processor module is supplied with a built-in memory. Additionally one module CI630 (or
CI626) is necessary in the same controller and used as global memory for communication
between the processor modules.
na
The application program is stored in a 1 MByte Flash PROM. The application runs from an
SRAM copy of the Flash PROM.
er

On the processor module’s processing section (PS), 2 MBytes of SRAM are available.
The SRAM copy of the program permits easy and quick modification and debugging of an
nt

application. After modification of an application, you can copy the new version back to the
Flash PROM (back up).
For the specific task data exchange via PROFIBUS, the processor module additionally contains
rI

the communication section (CS) with its own microprocessor and memory. On the
communication section 2 MByte Flash PROM for the system software and 2.25 MByte SRAM
are available.
Fo

The BASE system software and the system software options are loaded via COM A on front of
the module to the Flash PROM. It is not necessary to replace the Flash PROM or to open the
processor module. A system software change can be performed directly in the controller on-site.

%DFNSODQH
PM644 is to be connected to the multimaster backplane. The respective basic subrack RF616 is
to be used.

,QGLFDWLRQRIPRGXOHVWDWXV
Six LEDs and a diagnostic display indicate the status of the module.

GKW F 310 861 R0001 A-5


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[$+DUGZDUH0RGXOH

/('6WDWXVLQGLFDWLRQ

581/('
The RUN1 LED is green and indicates that the application program is executing normally.

)$8/7/('
The FAULT LED is red and indicates a fault condition on the processor module.

y
+$/7/('

nl
The HALT LED is red and indicates a halt condition on the PROFIBUS interface processor.

O
72.(1/('
The TOKEN LED is green and indicates the PROFBUS token.

se
5 XQ /('
lU
The Run LED is green and indicates that the PROFIBUS interface is configured and
operational.

) DXOW /('
na

The Fault LED is red and indicates that the initialization is running or an error occurred on the
PROFIBUS interface.
er

'LDJQRVWLFGLVSOD\
The diagnostic display consists of an upper part and a lower part and indicates:
nt

• Error codes in case of a system stop of the processor module.


The LED RUN 1 does not light and “P” is not shown on the diagnostic display.
rI

• Processor module functions in the system.


The character “P” is always shown in the upper part. A digit or a character which indicates
the control mode in accordance with the examples below is shown in the lower part.
Fo

The diagnostic display indicates the processor module’s operating mode as follows:
P- = start-up
P1 = normal operation
P3 = stop after initialization
P4 = processor module is not running an application program
P5 = loading application program from PROM
P6 = engineering station is connected and is in the on-line mode
PL = waiting for download of system software

A-6 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[ 3URFHVVRU0RGXOH30

PU = loading system software option


xx = error code.
If a two-digit number (xx) is visible, the system has stopped and the number represents an error
code.

5(6SXVKEXWWRQ
Pressing the RES push-button initiates a cold start of the processor module.

y
02'(VHOHFWRU

nl
The mode selector has four positions but only position 0 and 1 are used. The mode selector
defines the power-up and restart behavior of the processor module. If possible, a restart is made

O
automatically after severe error is detected.
MODE 0 (Stop - Mode)

se
The user can prevent the application program from starting if the mode selector is in
position 0. The system software continues execution to allow access to the stored error
messages using the Advant Station 100ES.
MODE 1 (Cold start - Mode)
lU
The initialization procedure starts from the beginning and hardware and software are reset
to their initial states. Application software is loaded from the internal PROM into the
RAM. The cold start procedure is executed after power-up and after pressing the Res push
na
button.

6HULDOLQWHUIDFHFRQQHFWLRQV&20$DQG&20%
er

There are three serial interfaces on the processor module:


nt

• Front connector COM A to connect the Advant Station 100ES programming tool.
Communication speed is fixed at 9600 bit/sec.
• Front connector COM B for exchanging data using the optional Modbus I protocol with an
rI

operator station based on a personal computer. Communication speed is fixed at 9600


bit/sec.
Fo

• No parity; 1 Stop Bit, 1 Start Bit.

5HOD\FRQWDFW IORDWLQJ
The contact can be wired in closed-circuit principle (use Pin 1 and Pin 2) or in open-circuit
principle (use Pin 3 and Pin 2).
During normal operation with closed-circuit principle the contact is closed. In case of severe
errors or during reboot the contact is open.
During normal operation with open-circuit principle the contact is open. In case of severe errors
or during reboot the contact is closed

GKW F 310 861 R0001 A-7


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[$+DUGZDUH0RGXOH

352),%86FRQQHFWLRQ
With the front connector CH1A the PROFIBUS can be connected to the PM644. The
PROFIBUS interface (according to EN 50170) supports the following features:
• Galvanically separated RS485 interface (without bus termination)
• Transmission speeds from 9600 Baud up to 12 MBaud
• PROFIBUS-DP master (class 1)
• using of up to 125 PROFIBUS-DP slaves

y
nl
5RWDWLRQDOVSHHGFRQQHFWLRQ
With the front connector COUNT two incremental inputs with speed measurement and

O
recognition of the direction of the rotation (for example for turbine/drive speed) are available.
Each channel includes two RS422 tracks (A and B) for connection of a pulse sensor. The
direction of the speed measurement is identified through the phase displacement.
Synchronization is not supported.

se
If the input for recognition of the direction of the speed measurement is not used (B not wired),
the PM644 assumes positive direction.
lU
To supply the external sensors two short-circuit-proof 24 V output voltages are available.
The outputs are short-circuit and break monitored. The rated current amounts to min. 10 mA
and max. 100 mA.
The accuracy of the speed measurement depends on the cycle time of the control task within the
na

application program, which contains the PC element RSM. The length of the cycle time is
directly proportional to the measuring accuracy.
Input frequency: max. 40 KHz.
er

1. Call of speed 2. Call of speed


measurement measurement
nt

cycle time
1 2 3 4 5
rI

T (4 MHz)
Fo

)LJXUH$6SHHG,QSXW3XOVHVYHUVXV7LPH

Only the rising pulses are counted. The speed is calculated via the amount of pulses received
within one cycle. Time “T” is measured with 4 MHz, measured from the last pulse in the last
cycle until the last pulse in the actual cycle. This is done by the hardware.
If a very slow speed should be measured, the cyclic time in the control module must be less than
4,19 sec. A very slow speed is a speed where not in each cycle a pulse occurs for example with
emergency turning gear.
Each incremental sensor channel (1 and 2) including sensor supply reserves 7 contacts of the
15 pin Sub-D-plug on the front of the PM644.

A-8 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[ 3URFHVVRU0RGXOH30

Connector allocation:

7DEOH$&RQQHFWRU$OORFDWLRQRI5RWDWLRQDO6SHHG,QSXWV

3,1 ([SODQDWLRQ
1 24 V supply voltage 1+

y
2 supply voltage 1-
3 incremental sensor input A1+

nl
4 incremental sensor input A1-

O
5 incremental sensor input B1+
6 incremental sensor input B1-
7 shield

se
8 not connected
9
10
lU
24 V supply voltage 2+
supply voltage 2-
11 incremental sensor input A2+
na
12 incremental sensor input A2-
13 incremental sensor input B2+
er

14 incremental sensor input B2-


15 shield
nt
rI
Fo

GKW F 310 861 R0001 A-9


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[$+DUGZDUH0RGXOH

 3HUIRUPDQFH
This section is a short description of the PM644 PROFIBUS-DP performance. The section
contains calculation formulas and tables based on the mentioned formulas.

$SSUR[LPDWHFDOFXODWLRQRIUHTXLUHGWLPHIRURQHEXVF\FOH7%&
Formulas:
TMC =TS/R + TSDR * TBIT + TA/R + TID * TBIT + TEXE * (NI + NO)
TS/R =(NHD + NI) * NBB * TBIT

y
TA/R =(NHD + NO) * NBB * TBIT
=Σ (NI + NO)

nl
NIOA
TBC =TPRT + ΣTMC

O
7%& PV>  0$;76'5 1,2$ 7%,7PV 1,2$@1'30

se
Definitions:
NHD =9 byte
NBB =11 bit/byte
lU
TEXE =0.0072 ms
TPRT =10 ms
TSDR =MAX TSDR2
TID =MAX TSDR
na

Abbrevations:
TBC =Bus Cycle time PROFIBUS in ms
er

TMC =Message Cycle time PROFIBUS per DPM in ms


TPRT =Program Run Time PROFIBUS interface in ms
TEXE =Execution time data conversion PROFIBUS interface for one I/O value in ms
nt

TS/R =Send/Request frame time in ms


TSDR =Actual Station Delay of Responder in TBIT
rI

MAX TSDR =Maximum Station Delay of Responder in TBIT


TA/R =Acknowledgement/Response frame time in ms
TID =Idle time in TBIT
TBIT =Bit Time (1/baudrate)
Fo

NDPM =No of DPM‘s


NIOA =No of I/O bytes of All DPM‘s
NI =No of Input bytes per DPM
NO =No of Output byte per DPM
NHD =No of Header bytes per PDU
NBB =No of Bits/Byte

1. see also EN 50170


2. for worstcase calculation

A-10 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[ 3HUIRUPDQFH

Assumptions:
1. Mono master system (with one PM644).
2. All DPM‘s are in data exchange mode, with no diagnostic data pending.
3. All DPM‘s uses standard (no user specific) data types (see Chapter 3-2,
Configuration/Application Building Figure 3-2, Figure 3-3).

y
The following figure shows the PROFIBUS configuration for calculation.

nl
O
PM644

se
PROFIBUS-DP master (class 1)
lU AC 160

PROFIBUS-DP
na
PT PT

DPM DPM DPM DPM


er

PROFIBUS-DP DPM´s
PROFIBUS termination
nt

PT
rI

)LJXUH$352),%86FRQILJXUDWLRQIRUSHUIRUPDQFHFDOFXODWLRQ
Fo

GKW F 310 861 R0001 A-11


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[$+DUGZDUH0RGXOH

The following tables shows the different PROFIBUS cycletimes depending on the transmission
speed:

7DEOH$352),%86F\FOHWLPHEDVHGRQWUDQVPLVVLRQVSHHGNELWVHF

'30µV VODYHV 352),%86F\FOHWLPH>PV@


input/output bytes per DPM
2/2 byte 16/16 byte 32/32 byte 244/244 byte

y
1 14 17 21 74

nl
5 29 47 67 331
10 49 84 124 652

O
30 127 231 351 1935

se
.

7DEOH$352),%86F\FOHWLPHEDVHGRQWUDQVPLVVLRQVSHHGNELWVHF
lU
'30µV VODYHV 352),%86F\FOHWLPH>PV@
input/output bytes per DPM
na

2/2 byte 16/16 byte 32/32 byte 244/244 byte


1 12 14 16 44
er

5 20 29 40 179
10 30 48 69 348
nt

30 69 124 187 1025


rI

7DEOH$352),%86F\FOHWLPHEDVHGRQWUDQVPLVVLRQVSHHGNELWVHF
Fo

'30µV VODYHV 352),%86F\FOHWLPH>PV@


input/output bytes per DPM
2/2 byte 16/16 byte 32/32 byte 244/244 byte
1 11 12 13 25
5 15 19 23 85
10 19 27 37 160
30 37 62 90 461

A-12 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[ 3HUIRUPDQFH

7DEOH$352),%86F\FOHWLPHEDVHGRQWUDQVPLVVLRQVSHHGNELWVHF

'30µV VODYHV 352),%86F\FOHWLPH>PV@


input/output bytes per DPM
2/2 byte 16/16 byte 32/32 byte 244/244 byte

y
1 10 11 11 17

nl
5 12 14 16 47
10 14 18 23 84

O
30 22 34 48 233

se
lU
na
er
nt
rI
Fo

GKW F 310 861 R0001 A-13


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
$SSHQGL[$+DUGZDUH0RGXOH

y
nl
O
se
lU
na
er
nt
rI
Fo

A-14 GKW F 310 861 R0001


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
,QGH[

,QGH[
% 5
Bus Cable 2-3 to 2-4 Repeater 2-1 to 2-2, 3-1
Bus Connector PM644 A-3 Runtime Operation 4-1
Bus Cycle A-10
Bus Terminator 2-1, 2-3 6
Shielding 2-4
&

y
Capacity 3-1 7
Checking the System 5-4

nl
Test tool 5-5

' :

O
Data Transmission 1-6 Wiring 2-1
Database 1-4
DB elements 3-2
Diagnostics 3-36

se
DPM 1-3
DPM Status 3-36

(
EN 50170 1-3
lU
Error Messages 5-3
na
)
FCB 1-3
Functional Overview 1-5
er

*
nt

GSD File 1-3, 3-37

3
rI

PB 3-2, 3-5
PB-IN 3-2, 3-11, 3-16
PB-OUT 3-2, 3-11, 3-16
Fo

PBS 3-2, 3-7, 3-12


PC elements 3-2
PC program 1-4
PDU 1-3, 1-6, 3-33
Performance 3-1, A-10 to A-11
PM644 3-2, 3-4, A-1
PNO 1-3
Processor Module PM644 A-1
Product catalog PROFIBUS 2-1
PROFIBUS-DP 1-1, 1-3
PROFIBUS-DP/E 1-3

GKW F 310 861 R0001 i


352),%86'3$GYDQWŠ&RQWUROOHU8VHU¶V*XLGH
,QGH[

y
nl
O
se
lU
na
er
nt
rI
Fo

ii GKW F 310 861 R0001


Fo
rI
nt
er
na
lU
se
O
nl
y
y
nl
O
se
lU
na
er
nt
rI
Fo

$%%3RZHU3ODQW&RQWURO GKW F 310 861 R0001


P.O. Box 10 03 51 June 1998
D-68128 Mannheim
Phone: +49 / 621 381 4479
Telefax: +49 / 621 381 8574

You might also like