How to Display Dependencies of Your Application with Help of Predefined Queries on Dependency View
With the Dependency View, you can visualize the dependencies of your analyzed application as a dependency graph. You can select the content and the layout of the dependency graph.
Refer to Dependency View.
Open your preferred project or create a new project with File > New Project > From Project Template > Template Full.
Step |
Action |
Result / Comment |
---|---|---|
1 |
Right-click the Application object in the Devices tree. |
- |
2 |
Select Add Object > Code Analysis Dependency View from the contextual menu. |
The Add Code Analysis Dependency View editor is displayed. |
3 |
Click the Add button. |
oA Code Analysis Dependency View object is added beneath the Application object in the Devices tree. oThe Dependency View is displayed. |
Step |
Action |
Result / Comment |
---|---|---|
1 |
Click the Analyze code button. |
The project is analyzed. |
Step |
Action |
Result / Comment |
---|---|---|
1 |
Click the Select and Add button. |
- |
2 |
Select Scope > Application + POU Space. |
This reduces the number elements that are added to the dependency graph to nodes that are defined in your project only. |
3 |
Select Query > Call Graph. |
This adds the calls of your application to the dependency graph. |
4 |
Click the Apply button. |
The project is analyzed and the dependency graph is displayed. |