I am trying to dump a list of all modules or classes containing the PID function block.
Historically, I would have done this by navigating to PID in FunctionBlockTemplate - Analog Control - PID and right clicking and selecting "references" (BTW a typomatic hot key would be lovely for this function)
When I perform references, I only return 46 hits in the references dialog. I know for a fact that we have over 1200 PID loops at this facility.
stranger still, I get references to a "PIDWCALARM", which has a type "Function Block Template", location PIDWCALARM, but there is no such template to be viewed.
Has anyone seen anything like this before. I know I have searched for all "DC" function blocks in this manner before and do not see why this should not work with "PID".
Two ways that I use for this sort of activity: 1. Parse Fhx file, 2. User-defined export (UDE). #1 is a long and winding rabbit hole you don't need and probably don't want to go down anyway. I would recommend #2. Create a user-defined format file that contains (at a minimum) module name and any parameter on a PID1 block (e.g., PID1/PV). Then perform an UDE on all modules. The ones with a PID block will have a numeric value (probably zero) while those that do not will have <NULL>. You can then open in Excel and sort/filter. If you have both class based and non-class based modules, you will need an extra column (PID1$PV.CV for class based and PID1/PV.CV for non-class based)... if either has a numerical value then it contains a PID1 block, if both are null... then it does not.
This only gets PID1. If you have any modules with PID2 or something else, you need to add more columns to your format file.
Andre Dicaire
In reply to Andre Dicaire:
In reply to Douglas Crowder:
A cool trick I just learned this week while UDE on a customer system with over 19,000 modules:
From Knowledge Base Article AK-1400-0008, select just the areas with the modules you want to export rather than "Expand All" or “'Select All” on the tree in the User Defined Export dialog window.
In modifying an existing fmt file, perform the following steps:a. Open the folder D:\DeltaV\DVData\Bulkedit.b. Launch Notepad and drag the fmt file from the Bulkedit folder to that Notepad window.c. In the first line of the fmt file, change the word “Module” to “MODULEAREA”, as follows: Original: begin_format_defn Module Revised: begin_format_defn MODULEAREAd. Go to File menu and select Save. Close Notepad.
Proceed with the user-defined export of the modules in DeltaV Explorer. You may now just select the Plant Areas that the Modules are located.Notes- Selecting “Expand All” or “Select All” is not required or recommended for large systems- Only the Control Modules under a selected area will be exported. For example, it does not work for unit modules, but control modules inside a unit module will be exported.- If the system has many Areas with thousands of Control Modules, the entire system still needs to be broken into two or more exports to avoid reaching 8000 modules per export.
In reply to CPitsaer: