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 docs@inductiveautomation.com.
Version:
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.3
Resources
Transcript
(open in window)[00:00] In this lesson, we'll use the DNP3 Legacy 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 Connections, Devices, and Connections to confirm that our DNP3 Legacy 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 the OPC UA server and the Devices folder to find my DNP3 Legacy device. Next, I'll expand the DNP3 Legacy folder, and we can take a look at the two folders inside -- Internal Indicators and Points. The Internal Indicators folder contains a number of tags that are used to assess the status of the device.
[01:04] 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 three dots menu next to our DNP3 Legacy device and select Aliased Points. Here we can address a number of points to add to our DNP3 legacy device. We can also export our current configuration or import any previous configurations we may have created. I'm gonna start by clicking on Add. Now, we can add a point address. Mine is g40v1i3. 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'd put a slash and then my tag name.
[02:05] 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 gonna appear in a folder called folder, and the name of my tag is gonna be tag. Finally, I can enter a short description for my tag. I can add as many rows I want and set up as many tags as I want. I have what I need, so I'm gonna save my changes. Let's get back to our designer. I'll refresh the OPC browser in the Connected Devices window and navigate to my device again. Now you'll see that there's a new folder available called Aliased Points. If I expand the aliased points folder, you'll notice it contains a folder called folder. I open it, and there's my 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.
[03:11] If I type in system dot DNP3 dot, the auto-complete popup will appear with a list of built-in scripting functions that I can use to interface directly with the device. All these functions contain descriptions of the function as well as descriptions of all the parameters. However, because they are considered advanced, it's recommended that you only use them if you have a solid understanding of both scripting and your device. 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.