Upload
libra
View
26
Download
0
Embed Size (px)
DESCRIPTION
Additional Services. Master Class 2. Master Class 1. Initiate Read Data Set Write Data Set Data Transport Abort. Read Data Set Write Data Set Read Diagnostics with Status or Alarm Information. Field Device (Slave). - PowerPoint PPT Presentation
Citation preview
DP ExtensionsDate 09/11/00, Page 1
DP Extensions
s
Additional Services
Master Class 2
Field Device (Slave)
Read Data Set Write Data Set Read Diagnostics with Status or Alarm Information
Initiate Read Data Set Write Data Set Data Transport Abort
Master Class1 and/or Class 2 and/or Slave can be implemented in the same Device
Master Class 1
DP ExtensionsDate 09/11/00, Page 2
DP Extensions
s
7 Bytes Mandatory
Device Specific (Optional)
Up to 244 Bytes
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
3 Bytes DPV1_Status
DP ExtensionsDate 09/11/00, Page 3
DP Extensions
s
Parameterization (continued) - DPV1_Status
Reserved1=Base for Watchdog calculation: 1ms0=Base for Watchdog calculation: 10ms
1=Slave operated in Fail Safe modeDPV1_Enable
7 0
Octet 8
Reserved
DP ExtensionsDate 09/11/00, Page 4
DP Extensions
s
Parameterization - DPV1_Status (continued)
7 0
Octet 9
Octet 10
1=Application specific behavior for configuration check
Enable alarms (under construction)Reserved
Alarm_Mode (specifies alarm capabilities) (under construction)Reserved
DP ExtensionsDate 09/11/00, Page 5
DP Extensions
s
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)
DP ExtensionsDate 09/11/00, Page 6
DP Extensions
s
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)
DP ExtensionsDate 09/11/00, Page 7
DP Extensions
s
FunctionDP Master DP Slave
Dec. Hex Dec. Hex
MSAC_C1 51 33 51 33
MSAC_C2 50 32 0..48 0..30
ResourceManager
50 32 49 31-
Additional Communication Ports Acyclic Communication:
Master Class 1 - Field Device
Master Class 2 - Field Device
Initiate Master Class 2 Communication
DP ExtensionsDate 09/11/00, Page 8
DP Extensions
s
DP Extended - Device Model
Application Process Instances (API)
Allows definition of multiple applications within the device
Master Class 1 ALWAYS addresses API 0
Addressed API for Master Class 2 is selected with Initiate service
API objects are identified by Slot and Index
Slot 0..254 possible
Recommendation: slot = module
Slot 0 = head module/device itself
Index 0..254 possible
Index identifies data block/set within the module
DP ExtensionsDate 09/11/00, Page 9
DP Extensions
s
DP Extended - Device Model (continued)
Base Module Module 1
8 DO
Module 2
16 DO
Module 3
8 DI
Module 4
2 AI
API 0Slot 0
Index 0
API 0Slot 0
Index 1
API 1Slot 0
Index 2
API 0Slot 4
Index 1
API 2Slot 4
Index 16
API 0Slot 2
Index 4
DP ExtensionsDate 09/11/00, Page 10
DP Extensions
s
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
DP ExtensionsDate 09/11/00, Page 11
DP Extensions
s
6 Bytes Mandatory
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 - Device Related Part used for Status/Alarms
Identifier Related (Optional)
Channel Related (Optional)
Device Related (Status/Alarms)
DP ExtensionsDate 09/11/00, Page 12
DP Extensions
s
Startup Sequence - Parameterization Diagnostic (continued) - Alarm Coding
Alarms are under C
onstructio
n
Alarms are under C
onstructio
n
DP ExtensionsDate 09/11/00, Page 13
DP Extensions
s
“00”
Diagnostic (continued) - Coding Status
Octet 1
Data length (including header) - 4 to 63
Up to 59 bytes additional status information
1 (= Status)
Octet 2
Status Type
0-Reserved1-Status Message2-Module Status3..31-Reserved32..126-Manufacturer Specific127-Reserved
Octet 3
Slot Number
Reserved
Octet 4
Status Specifier00=No further differentiation 10=Status disappears01=Status appears 11=Reserved
DP ExtensionsDate 09/11/00, Page 14
DP Extensions
s
Additional Data Types
Integer
Unsigned
Floating Point
Visible String
Octet String
Date
Time of Day
Time Difference
DP ExtensionsDate 09/11/00, Page 15
DP Extensions
s
Additional Data Types (continued) - Configuration Special Format
Code for Data Type
7 0
I/O Data Specification
Header Additional Config Data (Simple or Special Format)
1-Boolean 10-Octet String2-Integer8 11-Date3-Integer16 12-Time of Day4-Integer32 13-Time Difference5-Unsigned8 14-Time of Day6-Unsigned16 15-Time Difference7-Unsigned32 16..31-Reserved8-Floating Point 32..63-User specific9-Visible String 64..255-Reserved
Vendor Specific Data
DP ExtensionsDate 09/11/00, Page 16
DP Extensions
s
Additional Data Types (continued) - Example Special Format
0 1 0 0 0 0 1 01 Byte for Input Data Specification & 2 Bytes 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
0 0 0 0 0 1 0 1
Data Type Floating Point
Data Type Unsigned8
DP ExtensionsDate 09/11/00, Page 17
DP Extensions
s
Application Example
PROFIBUS-PA (31.25 kbaud)
PROFIBUS (up to 12 Mbaud)
x
x
Engineering Tool(Diagnostic Master)
Direct access to field device via DP
Extensions (e.g.to change range of
measurement)