A Modern Approach to CIP Device Descriptions

Rick Blair
Schneider Electric
October 14, 2015

Agenda•••••••Introduction to XML
Sample Conversion Concepts
Validation Using Schema
Extracting Data Examples
Migration Strategy
Comparing EDS and XML
Recommendation

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

2

Introduction to XML••••

Designed to describe data
Self descriptive
Tree structure
Tags– Case sensitive– No spaces

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

3

Introduction to XML••••

Designed to describe data
Self descriptive
Tree structure
Tags– Case sensitive•

Elements– Opening and closing tags

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

4Introduction to XML••••

Designed to describe data
Self descriptive
Tree structure
Tags– Case sensitive•

Elements– Opening and closing tags
– Contain other elements

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

5Introduction to XML••••

Designed to describe data
Self descriptive
Tree structure
Tags– Case sensitive•

Elements– Opening and closing tags
– Contain other elements– Contain attributes

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

6

Introduction to XML••••

Designed to describe data
Self descriptive
Tree structure
Tags– Case sensitive•

Elements––––Opening and closing tags
Contain other elements
Contain attributes
Contain text

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

7

Introduction to XML Schema•••

Written in XML
Validates an XML document
against specified criteria
Validation criteria examples– Sequence of elements

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

8

Introduction to XML Schema•••

Written in XML
Validates an XML document
against specified criteria
Validation criteria examples– Sequence of elements– Data types

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

9Introduction to XML Schema•••

Written in XML
Validates an XML document
against specified criteria
Validation criteria examples– Sequence of elements– Data types– Data ranges

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

10Introduction to XML Schema•••

Written in XML
Validates an XML document
against specified criteria
Validation criteria examples––––Sequence of elements
Data types
Data ranges
Data enumeration

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

11

Introduction to XML Document Object Model (DOM)••••

Standard for accessing andmanipulating XML
Views XML documents as tree
structure called node tree
Each element, attribute and text
field is a node
Access nodes by– Node name
– Traversing the tree

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

Collection
AlbumAlbumAlbum

Year

Year

Year

ArtistArtistArtist

Title

Title

Title

www.odva.org

12

EDS vs. XML File Formats

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org13

Device Section

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

14

Parameter Section

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

15

Validation Example Using SchemaTechnical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

16

Example Extracting Data Using Relationships

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

17

Example Extracting Data Using Node Name

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

18Migration•

Create new XML based DD Specification– Opportunity to start with a relatively clean slate– Remove limitations based upon current implementation– Remove constructs that cannot be validated using schema•

Create translation tool
– Use EZ EDS as base•

New tools use XML•

Legacy tools support both XML and EDS (for a period of time)

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

19Conclusion•••••••

XML parsing is built into many modern compilers and web browsers
XML is understood by most recent Computer Science graduates
Schema can and should be updated at the same time as XML enhancements
XML files can be dynamically verified and validated by tools prior to data
extraction
XML supports more than just ASCIIXML is extensible
XML can be made human readable without user comments

It’s time once more to investigate XML as the future for describing devices

Technical Track© 2015 ODVA, Inc.

2015 Industry Conference & 17th Annual Meeting
All rights reserved.

www.odva.org

20

THANK YOU