Going to instance or variable (without instance context)
How to go from Instances view to an →instance or a →variable (without →instance context):
-
If the instance or variable is included within a collapsed level, expand this collapsed level.
-
Open the context menu for the instance or variable and select Open Type. Alternative 1: Hold the Alt-key while double-clicking the instance/variable. Alternative 2: Select the instance/variable and press Ctrl+T.
Result: The editor is opened for the instance or the variable.
Alternative in order to open the editor in which the instance is used: Open the context menu for the instance and select Open Variable Declaration (Type) or press Ctrl+Shift+T.
Example: If the instanceMyFB1
is declared/used withinProgram1
, the command Open Instance for the instanceMyFB1
opens the editor forMyFB1
, while the command Open Variable Declaration (Type) opens the editor forProgram1
. If possible, the declaration within the editor is selected to easily spot it.
It is possible to quickly go from the declaration to appropriate elements within the editor:
-
If you want to go from the declaration of an instance to the appropriate type, use command Open Declaration within the editor. See "Opening declaration of an element" for ST-editor or "Going to the declaration of a block or variable" for FBD-editor.
-
If you want to go from the declaration of a variable to the usages, use command Find References within the editor. See "Finding references for element" for ST-editor or "Finding references (= usages) for an element" for FBD-editor.
Good to know |
---|
See "Going to a function block or program and setting the instance context", if you want to open the editor with instance context.
Usually, an FBD-editor without instance context is used for editing while an FBD-editor with instance context is used for debugging. The default behavior of Neuron Power Engineer is that 2 different tabs can be opened for editing and debugging at the same time. |