Data Model Excercise

This exercise guides through the creation of a Custom Namespace File. The Custom Name Space file represents a customer-specific IEC 61850 data model. It is used in STS to create a specification based on customized logical Nodes.

  1. Navigate in the Libraries Folder to the DataType folder

    image-20200816-152010.png


  2. Create a new Namespace File with the right mouse click. Select SclNsModel from the list of wizards in the folder “Example EMF Model Wizards”.

    image-20200816-152144.png

    Name it MyCustom.sclns and select IEC61850 as model Object.

  3. Open another copy of the Namespace Editor by right-clicking the IEC61850 7-4 ED2.sclns file and split the screen by dragging the editor tab to the right border of the application.

    image-20200817-034858.png


  4. Create a new Namespace element by right-clicking on the TIEC61850 root element and adjust the attributes:

    image-20200817-035153.png


    image-20200817-035620.png



  5. Select the LNode XCBR and PTOC of 7-4 file and drag them to the TNS element.

    image-20200817-035809.png


  6. Remove all attributes but Beh, OP, and Pos of the LNode.

    image-20200817-040144.png


  7. Hover over the DO with the error indication until you see the error message:

    image-20200817-040438.png


  8. Look for the missing DOType element in the 7-4 file and drag it to the TNS element. Repeat the operation until all errors of the DO Types are gone.

    image-20200817-040926.png


  9. Open the DO Types Tab and remove all Data Attributes but dataNs general, phsA, phsB, phsC, neut stVal, Oper, q and t

    image-20200817-041656.png


  10. Observe remaining errors for the Data Attributes Oper and stVal.

    image-20200817-042037.png


  11. Complete the file by adding missing Data Attribute Types form the DA Types and Enumeration tab. Remove all attributes of Oper_boolean but ctlVal and operTm.

    image-20200817-042347.png


  12. Save and reopen the file MyCustom.sclns. All errors should be gone.

    image-20200817-042520.png


  13. Right click on TNS and select Modify Data Type IDs

    image-20200817-042632.png


  14. Use Find Replace to change all Type IDs in your file. Do not forget to press Apply:

    image-20200817-042841.png


  15. Observe that all Data Type IDs have changed.

    image-20200817-043016.png


  16. Save the file. The exercise is completed.