You are on page 1of 17

www.infoPLC.

net

DP Extensions

‰ Additional Services

Master Class 1 Master Class 2

‰ Initiate
‰ Read Data Set
‰ Read Data Set
‰ Write Data Set
‰ Write Data Set
‰ Read Diagnostics with Status
‰ Data Transport
or Alarm Information
‰ Abort

Field Device (Slave)

Master Class1 and/or Class 2 and/or Slave can be implemented in the same Device

s DP Extensions
Date 09/11/00, Page 1
www.infoPLC.net

DP Extensions

‰ Extended 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

Up to 244 Bytes

7 Bytes 3 Bytes Device Specific


Mandatory DPV1_Status (Optional)

s DP Extensions
Date 09/11/00, Page 2
www.infoPLC.net

DP Extensions

‰ Parameterization (continued) - DPV1_Status

7 0
Octet 8
Reserved
1=Base for Watchdog calculation: 1ms
0=Base for Watchdog calculation: 10ms
Reserved
1=Slave operated in Fail Safe mode
DPV1_Enable

s DP Extensions
Date 09/11/00, Page 3
www.infoPLC.net

DP Extensions

‰ Parameterization - DPV1_Status (continued)

7 0
Octet 9
1=Application specific behavior for configuration check
Reserved
Enable alarms (under construction)

Octet 10
Alarm_Mode (specifies alarm capabilities) (under construction)
Reserved

s DP Extensions
Date 09/11/00, Page 4
www.infoPLC.net

DP Extensions

‰ Additional Services for the Controlling Master


(Master Class 1)

; Read Data Set (service is module/slot related)


; Write Data Set (service is module/slot related)
; Definition of Status/Alarm information as part of the
PROFIBUS diagnostic
; Services are performed in acyclic manner (that
means in-between two data exchange cycles)

s DP Extensions
Date 09/11/00, Page 5
www.infoPLC.net

DP Extensions

‰ Additional Services for the Diagnostic Master


(Master Class 2)

; Initiate/Abort to establish/end a communication


channel/relationship
; Read Data Set (service is module/slot related)
; Write Data Set (service is module/slot related)
; Data Transport (combination of read and write)

s DP Extensions
Date 09/11/00, Page 6
www.infoPLC.net

DP Extensions

‰ Additional Communication Ports Acyclic Communication:

DP Master DP Slave
Function
Dec. Hex Dec. Hex

MSAC_C1 51 33 51 33 Master Class 1 - Field Device

MSAC_C2 50 32 0..48 0..30 Master Class 2 - Field Device

Resource 50 32 49 31 Initiate Master Class 2


Communication
-
Manager

s DP Extensions
Date 09/11/00, Page 7
www.infoPLC.net

DP Extensions

‰ DP Extended - Device Model

9 Application Process Instances (API)


8 Allows definition of multiple applications within the device
8 Master Class 1 ALWAYS addresses API 0
8 Addressed API for Master Class 2 is selected with Initiate
service

9 API objects are identified by Slot and Index


8 Slot 0..254 possible
8 Recommendation: slot = module
8 Slot 0 = head module/device itself
8 Index 0..254 possible
8 Index identifies data block/set within the module

s DP Extensions
Date 09/11/00, Page 8
www.infoPLC.net

DP Extensions

‰ DP Extended - Device Model (continued)

Base Module Module 1 Module 2 Module 3 Module 4

API 0
Slot 0
Index 0
8 DO 16 DO 8 DI 2 AI
API 0
Slot 0 API 0 API 0
Index 1 Slot 2 Slot 4
Index 4 Index 1
API 1
Slot 0 API 2
Index 2 Slot 4
Index 16

s DP Extensions
Date 09/11/00, Page 9
www.infoPLC.net

DP Extensions

‰ Communication Sequence

Initiate (Master Class 2 only) Which SAP to be used?

Read Data v Write Data v Data Transfer Data Transfer is Master Class 2 only

Polling Until data available

Abort (Master Class 2 only) Close communication channel

s DP Extensions
Date 09/11/00, Page 10
www.infoPLC.net

DP Extensions

‰ Diagnostic
Startup Sequence
- Device- Parameterization
Related Part used for Status/Alarms
SD LE LEr SD DA SA FC DSAP SSAP DU.. FCS ED

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

Up to 244 Bytes

6 Bytes Device Related Identifier Related Channel Related


Mandatory (Status/Alarms) (Optional) (Optional)

s DP Extensions
Date 09/11/00, Page 11
www.infoPLC.net

DP Extensions

‰ Diagnostic
Startup Sequence
(continued)
- Parameterization
- Alarm Coding

io nn
t
ccti o
u
ttrru
s
nns
o
CCo
r
eer
d
nnd
uu
a rree
m ss a
lalarrm
AA

s DP Extensions
Date 09/11/00, Page 12
www.infoPLC.net

DP Extensions

‰ Diagnostic (continued) - Coding Status

Up to 59 bytes additional status information


Octet 1
Data length (including header) - 4 to 63
“00”
0-Reserved
Octet 2 1-Status Message
Status Type 2-Module Status
1 (= Status) 3..31-Reserved
32..126-Manufacturer Specific
Octet 3
127-Reserved
Slot Number
Octet 4
Status Specifier
00=No further differentiation 10=Status disappears
01=Status appears 11=Reserved
Reserved

s DP Extensions
Date 09/11/00, Page 13
www.infoPLC.net

DP Extensions

‰ Additional Data Types


9 Integer
9 Unsigned
9 Floating Point
9 Visible String
9 Octet String
9 Date
9 Time of Day
9 Time Difference

s DP Extensions
Date 09/11/00, Page 14
www.infoPLC.net

DP Extensions

‰ Additional Data Types (continued) - Configuration


Special Format

Header I/O Data Vendor Additional Config Data


Specification Specific Data (Simple or Special Format)
7 0 1-Boolean 10-Octet String
2-Integer8 11-Date
Code for Data Type 3-Integer16 12-Time of Day
4-Integer32 13-Time Difference
5-Unsigned8 14-Time of Day
6-Unsigned16 15-Time Difference
7-Unsigned32 16..31-Reserved
8-Floating Point 32..63-User specific
9-Visible String 64..255-Reserved

s DP Extensions
Date 09/11/00, Page 15
www.infoPLC.net

DP Extensions

‰ Additional Data Types (continued) - Example


Special Format

1 Byte for Input Data Specification & 2 Bytes


0 1 0 0 0 0 1 0 Vendor Specific Data follow

1 0 0 0 0 1 0 0 5 Bytes of Input Data with Consistency over


whole Length
0 0 0 0 1 0 0 0
Data Type Floating Point
0 0 0 0 0 1 0 1
Data Type Unsigned8

s DP Extensions
Date 09/11/00, Page 16
www.infoPLC.net

DP Extensions

‰ Application Example
PROFIBUS (up to 12 Mbaud) εx
Engineering Tool
(Diagnostic Master)

Direct access to field

εx device via DP
Extensions (e.g.
to change range of
measurement)

PROFIBUS-PA (31.25 kbaud)

s DP Extensions
Date 09/11/00, Page 17

You might also like