You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing training@inductiveautomation.com.
Version:
- Version 8.1 New
- Version 8.0
- Version 7.9
- Version 7.8 New
LESSON
About DNP3 Addressing
Description
Learn what data is automatically browsed in DNP3 devices and how to address other values through aliased points and scripting functions.
Video recorded using: Ignition 8.1
Resources
Transcript
(open in window)[00:00] In this lesson, we'll use the DNP3Legacy device connection that we set up in the previous lesson to explore DNP3 addressing, tags associated with the legacy device, and legacy DNP3 scripting tools available within Ignition. To get started, I'll go to the Config tab, scroll down to the OPC UA section, and select Device Connections to confirm that our DNP3Legacy device is set up and connected within the gateway. Now we can switch over to our designer. First, we'll head to the tag browser. We'll need to take a look at the Connected Devices window in order to access the Ignition OPC UA Server, so I'll click on the plus sign and select Browse Devices. Here, I can expand Ignition OPC UA Server and the devices folder to find my DNP3Legacy device. Next, I'll expand the DNP3Legacy folder, and we can take a look at the two folders inside-- internal indicators and points.
[01:04] The internal indicators folder contains a number of tags that are used to assess the status of the device. If there are other tags associated with the device, the points folder will contain a list of those tags, including analog inputs and outputs, counters, and frozen counters. My simulator doesn't have any tags of that nature associated with it, so let's use one of the special built-in features and add some Aliased Points tags instead. If we go back to our gateway, we can click the more button next to our DNP3Legacy device. A link will appear for Aliased Points. Here, we can address a number of points to add to our DNP3Legacy device. We can also export our current configuration or import any previous configurations we may have created. I'm going to start by clicking on Add Row. Now, We can add a point address. Mine is G40V1I3.
[02:05] That G,V, and I stand for group, variation, and index, and it's how Legacy DNP3 devices do their addressing. Next, I can enter a path to that tag. If I just want my tag to appear in the root folder, then I would put a slash and then my tag name. However, I can precede my tag name by putting as many folder names as I want. For example, I'll put /folder at the beginning of the path. Now my tag is going to appear in a folder called folder, and the name of my tag is going to be tag. Finally, I can enter a short description for my tag. I can add as many rows as I want and set up as many tags as I want. I have what I need, so I'm going to scroll down and hit Save Configuration. Let's go back to our designer. I'll refresh the OPC browser in the Connected Devices window and navigate to my device again. Now, you'll notice there's a new folder available called Aliased Points.
[03:03] If I expand the Aliased Points folder, you'll notice it contains a folder called folder. I open it and there's my tag called tag exactly like we set up in the path. One of the other more advanced features of the Legacy DNP3 driver is that we can interface with it directly through scripting. I have a button in my view here, and if I right click on it and select configure events, I can look at a component event as a quick example. I'll select onActionPerformed, hit the plus sign, and select script. If I type in system dot dnp3 dot, the autocomplete popup will appear with a list of built-in scripting functions that I can use to interface directly with the device. All of these functions contain descriptions of the function as well as descriptions of all the parameters. One note of caution, though. All of these functions are considered advanced and you should only use them if you're familiar with both scripting and your device.
[04:04] For more information on connected devices, Aliased Points, and scripting functions related to the Legacy DNP3 device, please see the links to the Ignition User Manual below this video.