55
PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s PROFIBUS DP Services Master Class 2 Field Device (Slave) Controls the Field Devices Parameterization Configuration Cyclic Data Exchange Read Diagnostic Read Diagnostic Set Station Address Read Configuration Read I/O Take Over Control of 1 Slave Parameterization Configuration Data Exchange Read Diagnostic Upload, Download (De)Activate Parameters (De)Activate Slaves Set Operation Mode ster Class1 and/or Class 2 and/or Slave can be implemented in one Devic Master Class 1

PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s PROFIBUS DP Services Master Class 2 Field Device (Slave) Controls the Field Devices Parameterization

Embed Size (px)

Citation preview

Page 1: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 1

PROFIBUS Details

s

PROFIBUS DP Services

Master Class 2

Field Device (Slave)

Controls the Field Devices Parameterization Configuration Cyclic Data Exchange Read Diagnostic

Read Diagnostic Set Station Address Read Configuration Read I/O Take Over Control of 1 Slave

Parameterization Configuration Data Exchange

Read Diagnostic Upload, Download (De)Activate Parameters (De)Activate Slaves Set Operation Mode

! Master Class1 and/or Class 2 and/or Slave can be implemented in one Device !

Master Class 1

Page 2: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 2

PROFIBUS Details

s

Electronic... (continued)

Each slave/class 1 master device needs an Electronic Device Data Sheet (= GSD file)

All features/characteristics/parameters of the device are defined in this file

Simple text file (ASCII-format)

Information out of the data sheet is read by configuration tools

File is created by device manufacturer

On www.profibus.com you’ll find…

… a GSD editor tool to create data sheets

… a GSD checker (included in the editor)

… a GSD library

GSD

Page 3: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 3

PROFIBUS Details

s

Electronic... (continued)

File extension identifies language

“.gsd” as minimum requirement (language should be English)

Either “.gsd” or all other

English = “.gse”

French = “.gsf”

German = “.gsg”

Italian = “.gsi”

Portuguese = “.gsp”

Spanish = “.gss”

GSD

Page 4: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 4

PROFIBUS Details

s

Text Description For Parameters (O)

Extended Parameter Definition (O)

General Data (M)

Field Device Related Data (M & O)

Module (I/O) Definition (M)

Electronic... (continued) - File Structure GSD

;<Prm-Text-Def-List>

PrmText = ...

EndPrmText

#Profibus_DP

;<Ext-User-Prm-Data-Def-List>

ExtUserPrmData = ...

EndExtUserPrmData

;<Unit-Definition-List>

GSD_Revision = ...

;Slave-specification

Freeze_Mode_supp = ...

;<Module-Definition-List>

Module = ...

EndModule (M) = Mandatory (O) = Optional

Page 5: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 5

PROFIBUS Details

s

File Structure... (continued) GSD

Version According to Standard

Vendor/Manufacturer Name

Device Name (Displayed in Config Tool)

Unique ID Number per Product Mandatory for Class 1 & Slave Devices Issued by PTO

Services Supported (0=DP; 1=DP&FMS)

Type (0=Slave; 1=Master)

Supported Transmission Rates & Related Timing Parameters

Page 6: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 6

PROFIBUS Details

s

File Structure... (continued) GSD

1=Synchronization of Input Data Supported

1=Synchronization of Output Data Supported

1=Transmission Rate Detected by Device

0=Address can NOT be set via PROFIBUS

1=Station Expandable

Length Definitions for Modular Stations

Maximum Number of Diagnostic Data Reported by the Device

Used by Configuration Tool

Page 7: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 7

PROFIBUS Details

s

Data Exchange - SYNC/UNSYNC In Normal Mode, When the Outputs Are Received by the Slave

ASIC, They Are Immediately Given to the Slave Firmware for Writing to the Physical Outputs

When a SYNC Control Command is Sent, the Last Set of Received Outputs is Transferred to the Slave Firmware and Then This Transfer is Blocked

Normal Mode Operation Resumes After an UNSYNC Command

MASTEROutputs to Slave

DATA xPhysical Outputs

DATA x

Normal Mode

MASTEROutputs to Slave

DATA yPhysical Outputs

DATA xXSync Mode

MASTERSYNC

DATA xPhysical Outputs

DATA x

Sync Mode

Page 8: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 8

PROFIBUS Details

s

Data Exchange - SYNC/UNSYNCOutputs (x) to Slave 3

DATA DATA Physical Outputs = x

Outputs (z) to Slave 5DATA DATA

Physical Outputs = z

DATA DATA

Outputs (a) to Slave 3DATA x DATA x

Physical Outputs = xX

Outputs (y) to Slave 4DATA DATA

Physical Outputs = yTime Lag Between DataAppearing at Physical Outputs of Different Slaves

Outputs (a) to Slave 4DATA y DATA y

Physical Outputs = yX

Outputs (a) to Slave 5DATA z DATA z

Physical Outputs = zX

After SYNC, Data Transfer to User’s Buffer Is Blocked…OnlyBuffered in Receive Buffer for All Slaves in Groups Indicated

DATA DATA

Physical Outputs = DATA

Physical Outputs = DATA

SYNC Broadcast

Receive Buffer User’s Buffer

Data is ImmediatelyTransferred to User’s Buffer & Physical Outputs Appear “Simultaneously” For All Slaves in Groups Indicated

x

y

z

x

y

z

DATA a

DATA a

DATA a

Page 9: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 9

PROFIBUS Details

s

DATA a

Data Exchange - SYNC/UNSYNC

DATA a3

DATA a4

DATA a

DATA x

DATA y

DATA z

Physical Outputs = a

Physical Outputs = a

Physical Outputs = a5

SYNC Broadcast

DATA b

Data is ImmediatelyTransferred to User’s Buffer, Physical Outputs Appear “Simultaneously” & Slaves Go Back Into Normal Mode For All Slaves in Groups Indicated

DATA b

UNSYNC Broadcast

Data is ImmediatelyTransferred to User’s Buffer & Physical Outputs Appear “Simultaneously” For All Slaves in Groups Indicated

Outputs (b) to Slave 3DATA a

Physical Outputs = aX

Outputs (b) to Slave 4DATA a DATA a

Physical Outputs = aX

Outputs (b) to Slave 5DATA a DATA a

Physical Outputs = aX

Data Transfer to User’sBuffer Is Blocked…OnlyBuffered in Receive Buffer for All Slaves in Groups Indicated

Receive Buffer User’s Buffer

DATA a

DATA a

DATA a

DATA b

DATA b

DATA a

DATA a DATA b

DATA bPhysical Outputs = b

Physical Outputs = b

DATA b

Page 10: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 10

PROFIBUS Details

s

PROFIBUS Demo

Feature “SYNC”

Feature “SYNC”

Page 11: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 11

PROFIBUS Details

s

PROFIBUS Message Structure

SD: Start DelimiterLE: Net Data Length (DU) + DA, SA , FC, DSAP, SSAPLEr: Length repeatedDA: Destination Address (Where the message goes to)SA: Source Address (Where the message comes from)FC: Function Code ( FC=Type & Priority of Message)

DSAP: Destination Service Access Point (Communication Port of Receiver)SSAP: Source Service Access Point (Communication Port of Sender)FCS: Frame Checking SequenceED: End Delimiter

= Included in FCS

SD LE LEr SD DA SA FC DSAP SSAP DU.. FCS ED

0x68 x x 0x68 x x x 0x3D 0x3E x .. x 0x16

Page 12: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 12

PROFIBUS Details

s

PROFIBUS Character Format

StartBit“0”

Each character is 11 bits(Start-, Stop-, (Even) Parity- and 8 Data bits)

DataBit0

LSB

DataBit1

DataBit2

DataBit3

DataBit4

DataBit5

DataBit6

DataBit7

MSB

ParityBit

StopBit“1”

Page 13: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 13

PROFIBUS Details

s

Communication Ports (Service Access Points)

Parameterization

Configuration

Output Data

Diagnostic Request

Is it…?

PROFIBUS Address #24

You gotmail...

Page 14: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 14

PROFIBUS Details

s

Communication Ports (continued)

It is:PROFIBUS Address #24

SAP #60SAP Default

Configuration

You gotmail...

SAP #62SAP #61

Page 15: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 15

PROFIBUS Details

s

FunctionDP Master DP Slave

Dec. Hex Dec. Hex

Data_Exchange - - - -

RD_Inp 62 3E 56 38

RD_Outp 62 3E 57 39

Slave_Diag 62 3E 60 3C

Set_Prm 62 3E 61 3D

Chk_Cfg 62 3E 62 3E

Get_Cfg 62 3E 59 3B

Global_Control 62 3E 58 3A

Set_Slave_Add 62 3E 55 37-

Communication Ports (continued)

Page 16: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 16

PROFIBUS Details

s

High-Speed Data Exchange - Startup Sequence

Power ON/Reset

Power ON/Reset of Master or Slave

ParameterizationDownload of Parameters into the Field Device (selected during Configuration by the User)

I/O ConfigurationDownload of I/O Configuration into the Field Device (selected during Configuration by the User)

Data ExchangeCyclic Data Exchange (I/O Data)and Field Device reports Diagnostics

Page 17: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 17

PROFIBUS Details

s

Startup Sequence (continued)

Power ON/Reset

Power ON/Reset of Master or Slave

ParameterizationDownload of Parameters into the Field Device (selected during Configuration by the User)

I/O ConfigurationDownload of I/O Configuration into the Field Device (selected during Configuration by the User)

Data ExchangeCyclic Data Exchange (I/O Data)and Field Device reports Diagnostics

ParameterizationDownload of Parameters into the Field Device (selected during Configuration by the User)

Page 18: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 18

PROFIBUS Details

s

7 Bytes Mandatory

Device Specific (Optional)

Up to 244 Bytes

Startup Sequence - Parameterization

SD LE LEr SD DA SA FC DSAP SSAP DU.. FCS ED

0x68 x x 0x68 x x x 0x3D 0x3E x .. x 0x16

Page 19: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 19

PROFIBUS Details

s

Parameterization (continued)

Parameters are sent once after Power On/Reset

First 7 bytes are mandatory for every field device

Mandatory parameterization consists of:

Response Monitoring Time

TSDR Time for Master/Slave Timing

Freeze/Sync Mode

Lock or Unlock Slave for this Master

Assignment to Group

Master Address

Ident Number

Slave confirms receipt with short acknowledge

Page 20: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 20

PROFIBUS Details

s

Parameterization (continued) - Mandatory

Lock Unlock Meaning0 0 Min TSDR and User Parameters are allowed to be overwritten0 1 DP-Slave is NOT locked for other Masters1 0 DP-Slave is locked for other Masters; all parameters are accepted1 1 DP- Slave is NOT locked for other Masters

ReservedWD_ON (1=Response Monitoring (Watchdog) Activated)

Freeze_Req (1=Support of Freeze Mode Required)

Sync_Req (1=Support of Sync Mode Required)

Unlock (See Table below)

Lock (See Table below)

7 0Octet 1

Page 21: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 21

PROFIBUS Details

s

WD_Fact_1

WD_Fact_2 (Watchdog (s)=10ms * WD_Fact_1 * WD_Fact_2)

TSDR (Time the field device waits before it responds)

PROFIBUS Ident Number (high byte)PROFIBUS Ident Number (low byte)

Group_Ident (8 groups; bit x is set -> devices belongs to group x)

Parameterization - Mandatory (continued)

Octet 2

Octet 3

Octet 4

Octet 5

Octet 6

Octet 7

Page 22: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 22

PROFIBUS Details

s

Parameterization (continued) - Device Related

Each device can use Octets 8 - 244 for device/ module-related information (e.g. startup information)

Takes the place of DIP switches (e.g. set range of measurement for an analog channel)

Page 23: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 23

PROFIBUS Details

s

Parameterization (continued) - Example GSD File

Page 24: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 24

PROFIBUS Details

s

Startup Sequence (continued)

Power ON/Reset

Power ON/Reset of Master or Slave

ParameterizationDownload of Parameters into the Field Device (selected during Configuration by the User)

I/O ConfigurationDownload of I/O Configuration into the Field Device (selected during Configuration by the User)

Data ExchangeCyclic Data Exchange (I/O Data)and Field Device reports Diagnostics

I/O ConfigurationDownload of I/O Configuration into the Field Device (selected during Configuration by the User)

Page 25: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 25

PROFIBUS Details

s

Simple and/or Special Identifier Format

Up to 244 Bytes

Startup Sequence - Configuration

SD LE LEr SD DA SA FC DSAP SSAP DU.. FCS ED

0x68 x x 0x68 x x x 0x3D 0x3E x .. x 0x16

Page 26: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 26

PROFIBUS Details

s

Configuration (continued)

Configuration is sent once after Power On/Reset

Master sends configurations to Slaves

– any device-specific configuration– I/O configuration

Slave confirms receipt with short acknowledge

acknowledge configuration (Short Acknowledge “E5”h)

check configuration information for validity

Page 27: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 27

PROFIBUS Details

s

Configuration (continued) - Simple Format

Data Length for Input and/or Output Data (NOT for Special Format)0000=1 Byte/Word...1111=16 Bytes/Words

Data Definition00=Special Format (see page 28)01=Input10=Output11=Input & Output

Size Data Unit (NOT for Special Format)0=Byte1=Word

7 0Identifier 1 (1 Byte per Module for Simple Format)

Data Consistency (NOT for Special Format)0=Byte/Word1=Whole Length

Additional Configuration Data (Simple and/or Special Format)

Page 28: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 28

PROFIBUS Details

s

Configuration (continued) - Example Simple Format

Data Length1010=11 Words

Data Definition10=Output

Size Data Unit (NOT for Special Format)1=Word

Data Consistency (NOT for Special Format)0=Word

0 1 1 0 1 0 1 0

Page 29: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 29

PROFIBUS Details

s

Configuration (continued) - Special Format

Length of Vendor Specific Data0000=No Data0001-1110=1-15 Bytes1111=No Data00=Special Format (FIXED)Input/Output00=No I/O01=One Byte for Input Data Specification follows10=One Byte for Output Data Specification follows11=One Byte for Output & 1 Byte for Input Data Specification follows

7 0

Header

I/O Data Specification

Vendor Specific Data

Additional Config Data (Simple or Special Format)Header

Page 30: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 30

PROFIBUS Details

s

Configuration (continued) - Special Format

Data Length for Input or Output Data000000=1 Byte/Word...111111=64 Bytes/Words

Size Data Unit0=Byte1=Word

Data Consistency0=Byte/Word1=Whole Length

7 0

Header

HeaderVendor

Specific DataAdditional Config Data

(Simple or Special Format)I/O Data

Specification

Page 31: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 31

PROFIBUS Details

s

Configuration (continued) - Example Special Format

0 1 0 0 0 0 1 1 1 Byte for Input Data Specification & 3 Bytes Vendor Specific Data follow

1 0 1 0 0 1 0 0 36 Bytes of Input Data with Consistency over whole Length 0 0 0 0 0 1 1 0

1 1 1 1 0 1 1 0

1 0 1 1 1 1 0 1

3 Bytes of Vendor Specific Information

Page 32: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 32

PROFIBUS Details

s

Configuration (continued) - Example Telegram

= Simple Format

= Special Format

1st Module

2nd Module

3rd Module

Page 33: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 33

PROFIBUS Details

s

Configuration (continued) - Example GSD File

Page 34: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 34

PROFIBUS Details

s

Startup Sequence (continued)

Power ON/Reset

Power ON/Reset of Master or Slave

ParameterizationDownload of Parameters into the Field Device (selected during Configuration by the User)

I/O ConfigurationDownload of I/O Configuration into the Field Device (selected during Configuration by the User)

Data ExchangeCyclic Data Exchange (I/O Data)and Field Device reports DiagnosticsData ExchangeCyclic Data Exchange (I/O Data)and Field Device reports Diagnostics

Page 35: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 35

PROFIBUS Details

s

Application Specific Data

Up to 244 Bytes

Startup Sequence - Data Exchange Request

SD LE LEr SD DA SA FC DU.. FCS ED

0x68 x x 0x68 x x x x .. x 0x16

Page 36: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 36

PROFIBUS Details

s

Application Specific Data

Up to 244 Bytes

Startup Sequence - Data Exchange Response

SD LE LEr SD DA SA FC DU.. FCS ED

0x68 x x 0x68 x x 0x08 x .. x 0x16

Page 37: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 37

PROFIBUS Details

s

Data Exchange (continued) - Example GSD File

Page 38: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 38

PROFIBUS Details

s

Startup sequence (continued) - Diagnostic

When does the master request diagnostic?

Before sending the parameter download to make sure the field device is available

Before entering the data exchange mode to validate parameters and configuration and make sure the field device is ready

During data exchange whenever indicated by the field device

Page 39: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 39

PROFIBUS Details

s

Diagnostic (continued)

Power ON/Reset

Parameterization

I/O Configuration

Data Exchange

Are you there?(Check whether field device is available)

Parameters & configuration ok?(Validation of download)

Are you ready for data exchange?

What happened?(Master fetches diagnostic as indicated by

field device)

Page 40: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 40

PROFIBUS Details

s

Application Specific Data

Up to 244 Bytes

Diagnostic (continued) - How is it indicated during the Data Exchange?

SD LE LEr SD DA SA FC DU.. FCS ED

0x68 x x 0x68 x x 0x0A x .. x 0x16

Field device raises “red flag” in Data Exchange response

Page 41: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 41

PROFIBUS Details

s

Diagnostic (continued) - Request to Field Device

SD LE LEr SD DA SA FC DSAP SSAP FCS ED

0x68 x x 0x68 x x x 0x3C 0x3E x 0x16

Page 42: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 42

PROFIBUS Details

s

6 Bytes Mandatory

Device Related (Optional)

Up to 244 Bytes

Startup Sequence - Parameterization

SD LE LEr SD DA SA FC DSAP SSAP DU.. FCS ED

0x68 x x 0x68 x x x 0x3D 0x3E x .. x 0x16

Diagnostic (continued) - Response from Field Device

Identifier Related (Optional)

Channel Related (Optional)

Page 43: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 43

PROFIBUS Details

s

Diagnostic (continued) - Mandatory

Diag.Station_Non_Exist (Field device doesn’t answer; set by master)

Diag.Station_Not_Ready (Field device not ready for data exchange)

Diag.Cfg_Fault (Error in configuration data)

Diag.Ext_Diag (Field device reports extended diagnostic information)

Diag.Not_Supported (Requested feature not supported by field device)

Diag.Invalid_Slave_Response (Set by master)

7 0Octet 1

Diag.Prm_Fault (Error in parameter data, e.g. Ident Number)

Diag.Master_Lock (Field device controlled by another master; set by master)

Page 44: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 44

PROFIBUS Details

s

Diagnostic - Mandatory (continued)

Diag.Prm_Req (Field device needs to be paramterized)

Diag.Static_Diag (Field device can not provide valid data)

always set to “1”

Diag.WD_ON/OFF (Response monitoring in field device activated/de-activated)

Diag.Freeze_Mode (Field device is operating in FREEZE mode)

Diag.Sync_Mode (Field device is operating in SYNC mode)

7 0Octet 2

Reserved

Diag.Deactivated (Set by master)

Page 45: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 45

PROFIBUS Details

s

Diag.Ext_Overflow (Too much extended diagnostic data)

Diag.Master_Add (Address of controlling master; FFh if none)

PROFIBUS Ident Number (High byte)

PROFIBUS Ident Number (Low byte)

Diagnostic - Mandatory (continued)

Octet 3

Octet 4

Octet 5

Octet 6

Reserved

Page 46: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 46

PROFIBUS Details

s

00 (Fixed)

Diagnostic (continued) - Optional: Device Related

Header

Data length(including header)

Up to 62 bytes Device Related information

Meaning is manufacturer specific

Should be described in GSD file

Page 47: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 47

PROFIBUS Details

s

Diagnostic Device Related (continued) - Example GSD File

Meaning: Bit 0 of the Device Related Diagnostic is set to “1” - Field voltage missing!

Page 48: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 48

PROFIBUS Details

s

01 (Fixed)

Diagnostic (continued) - Optional: Identifier Related

Header

Data length(including header)

Based on modular system

Each module has one identifier

No additional descriptionnecessary

Page 49: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 49

PROFIBUS Details

s

Diagnostic Identifier Related (continued) - Example

0 1 0 0 0 1 0 0

0 1 0 0 0 0 0 1

0 0 0 0 0 0 0 1

Identifier Related Diagnostic; Length = 4 Bytes

1 0 0 0 0 0 0 0

Identifier 0 & 6 (Module 1 & 7) with Diagnostics

Identifier 8 (Module 9) with Diagnostics

Identifier 23 (Module 24) with Diagnostics

Page 50: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 50

PROFIBUS Details

s

10 (Fixed)

Diagnostic (continued) - Optional: Channel Related

Octet 1

Identifier number

3 bytes per channel

Pre-defined error types

Vendor specific types possible

01 = Input10 = Ouput11 = Input/Output

Octet 2

Channel number

001 = Bit010 = 2 Bit011 = 4 Bit

Octet 3

Error type100 = Byte101 = Word110 = 2 Words

1-short circuit2-under voltage3-over voltage4-overload5-over temperature6-wire break7-upper limit exceeded8-lower limit exceeded9-error10-15 reserved16-31 manufacturer specific

Page 51: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 51

PROFIBUS Details

s

Diagnostic Channel Related (continued) - Example

1 0 0 0 0 1 0 0

0 1 0 0 0 0 0 1

0 0 1 0 0 1 1 0

Channel Related Diagnostic; Identifier 4 (Module 5)

1 0 0 0 0 1 1 1

Channel 1 (=Input) with Diagnostic

Bit organized; Wire Break

Channel Related Diagnostic; Identifier 7 (Module 8)

Channel 3 (=Output) with Diagnostic

Word organized; Manufacturer specific code

1 0 0 0 0 0 1 1

1 0 1 1 0 0 1 0

Page 52: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 52

PROFIBUS Details

s

Data Exchange (continued) - DP Master

Four main operation modes for a DP Master:

OFFLINE - No activity

STOP - Communication to a Master Class 2 possible; no communication to field devices

CLEAR - Master communicates with field devices; output data are set to “0” or output length = 0 in case of field devices that support “Fail Safe” feature

OPERATE - Standard operation mode; data exchange between master and field devices

Page 53: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 53

PROFIBUS Details

s

Data Exchange (continued) - DP Master “Global_Control” Telegram

Sent as broadcast (= message to all stations)

Destination address = 127

Used in CLEAR and OPERATE to inform field devices of the current operation mode of the Master

Used to signal change in operation mode from CLEAR to OPERATE and vice-versa

Used to select groups of field devices for operation in SYNC and/or FREEZE mode

Page 54: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 54

PROFIBUS Details

s

Data Exchange (continued) - Global Control

Command Group Definition

Not used

CLEAR

UNFREEZE

FREEZE

UNSYNC

SYNC

Not used

SD LE LEr SD DA SA FC DSAP SSAP DU.. FCS ED

0x68 x x 0x68 0xFF x x 0x3A 0x3E x .. x 0x16

0 = all field devices addressed

Each bit = 1 addresses ONE group(8 different groups are possible)

Page 55: PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization

PROFIBUS DetailsDate 06/22/00, Page 55

PROFIBUS Details

s

Data Exchange (continued) - DP Master AUTOCLEAR

Feature can be specified during network configuration

Master automatically switches operation mode from OPERATE to CLEAR if one or more field devices do not answer within a defined time frame

To indicate the mode change, the Master sends a “Global_Control” telegram with the CLEAR command

The switch back to OPERATE must be initiated by the user/application