This section describes how to use the UNDDL command to decompile the NC database and how to check the database for errors.
To decompile the NC database:
- Open a command prompt window.
- Change the current directory to the FMSDATA path.
- Decompile the NC database.
- Type the following command string to
overwrite the existing file contents: C:\>UNDDL NC <NETWORK NAME>
<NCNAME> /Y. See Figure 1 for an example
command string. Figure 1. Command Prompt Decompile Command
- Once the decompile process is complete, a
file with a UND extension appears in the <NCNAME> folder and the subdirectory.
Note: If the decompile is successful, no errors should be present. If errors are present, as in Figure 2, correct them using a text editor. Errors are indicated by the tilde (~) character and are searchable in the text editor.Figure 2. Command Prompt Decompile Errors
- Copy the <NCNAME>.und file to the <NCNAME>.ddl file.
- Open the NC-1.ddl file in a text editor.
- In the <NCNAME>.ddl file, locate the definition of the VMA14xx controller that you want to replace.
- Fix any errors discovered during the decompile.
- Change the device type for the VMA from
"VMA" to "VND" (Figure 3). Figure 3. Change Device Type
- Change the model name for any CS objects
associated with the VMA1832 controller to use the new model name from the model file
(Figure 4). Note: The model name in Figure 4 must change from "VAV-CLG" to "1420-SD" to match the model created in Figure 1.Figure 4. Change Model Name
- Save the model file.
- Open the PRN file created by CCT for the new controller application. Review the point list and attributes of the copied CS model and compare its point list with the PRN file of the VMA1832 controller. Most of the points in your copied model should match points in the PRN file.