1 / 17

Additional Services

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).

libra
Download Presentation

Additional Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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) Master Class1 and/or Class 2 and/or Slave can be implemented in the same Device

  2. 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 Mandatory 3 Bytes DPV1_Status Device Specific (Optional)

  3. 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

  4. 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

  5. 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)

  6. 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)

  7. Additional Communication Ports Acyclic Communication: Master Class 1 - Field Device Master Class 2 - Field Device Initiate Master Class 2 Communication

  8. 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

  9. DP Extended - Device Model (continued) Module 4 2 AI Base Module Module 1 8 DO Module 2 16 DO Module 3 8 DI API 0 Slot 0 Index 0 API 0 Slot 0 Index 1 API 0 Slot 2 Index 4 API 0 Slot 4 Index 1 API 1 Slot 0 Index 2 API 2 Slot 4 Index 16

  10. 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

  11. Diagnostic - Device Related Part used for Status/Alarms • 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 Up to 244 Bytes 6 Bytes Mandatory Device Related (Status/Alarms) Identifier Related (Optional) Channel Related (Optional)

  12. Diagnostic (continued) - Alarm Coding • Startup Sequence - Parameterization Alarms are under Construction

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

  14. Additional Data Types • Integer • Unsigned • Floating Point • Visible String • Octet String • Date • Time of Day • Time Difference

  15. Additional Data Types(continued) - Configuration Special Format Header I/O Data Specification Vendor Specific Data Additional Config Data (Simple or Special Format) 7 0 1-Boolean 10-Octet String 2-Integer8 11-Date 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 Code for Data Type

  16. Additional Data Types(continued) - Example Special Format 1 Byte for Input Data Specification & 2 Bytes Vendor Specific Data follow 0 1 0 0 0 0 1 0 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

  17. Application Example PROFIBUS (up to 12 Mbaud) Engineering Tool (Diagnostic Master) Direct access to field device via DP Extensions (e.g. to change range of measurement) PROFIBUS-PA (31.25 kbaud)

More Related