Find in Project
On this page
What it does
Find in Project is a per-block where-used surface. Pick a block in the Project Explorer and run Find References; the application fetches every cross-reference Siemens TIA Portal knows about that block across the open project and shows them in the TIA References view. Results are grouped by relationship into Used by · callers, Uses · callees, Reads, Writes and Other accesses, with one line per location that names the kind of access and where the location is.
Use it to answer questions like:
- "Where is
FB_Motorcalled from?" - "Which blocks does
FB_Motorcall?" - "Which tags does
FB_Motorread or write?" - "Where is
FB_Motormonitored, forced or used in an alarm?"
How to open it
| Trigger | Action |
|---|---|
| Project Explorer | Right-click a block node and choose Find References |
| Keyboard shortcut | Select a block in the Project Explorer tree and press Shift+F12 |
Either trigger resolves the block and its parent PLC, opens the TIA References view in the TIA Portal side bar, and fetches that block's cross-references. This is an exact per-block where-used lookup, not a substring name search. To search for text inside the blocks of the whole project, use Project Search instead.
From the editor
You can also run the same where-used lookup from inside an open block. In the code, right-click a block name and choose Go to References (or press Shift+F12) to list everywhere that block is used across the project, right in the editor's references peek. Done this way on an instance data block (such as idb_Motor), the list also points to the function block the instance is based on, so you can jump straight to the block's logic. Uses in LAD, FBD and other graphical blocks are listed as well; when such a block is open in an editor, its entry points to the network.
Reading the results
Results appear as a grouped list:
FB_MotorCtrl (FB)
Used by · callers (3)
OB1 2
Call Network 3
Call Network 5
FC_Line 1
Call Network 7
Reads (1)
db_Recipe 1
Read Speed
Other accesses (1)
Watch table_1 1
Monitor
- Each object that uses the block, or that the block uses, has a head row with its name and the number of its locations.
- Below it, each location has its own line with the kind of access, such as Call, Instance, Read, Write, Read/Write, Monitor, Modify, Force, Alarm or Declaration, followed, where they apply, by the member it concerns in a data block or data type, the name it is used under and where it is.
- Other accesses collects the uses that are neither calls nor reads or writes, such as monitoring, modifying and forcing, alarms and declarations.
- In a project with several devices, the head row names the device when the location is on another device, for example on an HMI device.
- Empty groups are hidden. When a block has no references at all, a "No references found for …" hint is shown.
- When the members of a very large data block cannot all be gone through, a hint above the results says that the member list was cut, so not every member is listed.
Opening a location
Click a location line (or press Enter) to open it:
- In a LAD, FBD or other graphical block, the block opens at the network, which is scrolled into view and highlighted; in the text source view of the block the line of that network is shown.
- In an SCL block, the block opens at the first use of the name in its code.
- In a data block or a PLC data type, the interface table opens at the member.
- A tag or a constant opens its tag table with the tag shown.
- Other objects are shown in the Project Explorer.
Click the head row of an object to open the object itself. If the object is not found in the Project Explorer, a message asks you to refresh the project tree; if the object opens but the location cannot be shown, a message says so. Operands that are not openable blocks (raw I/O, bracketed array access) show a "cannot be opened directly" notification.
Right-click menu
Right-click a location line for these entries:
- Go to Reference opens the location, the same as a click.
- Go to Definition opens the object the location belongs to, without jumping to the location.
- Reveal in Project Explorer selects that object in the Project Explorer.
- Copy Reference Location copies the location text to the clipboard.
The first three entries appear when the location names an object of the project.
View actions
The TIA References view title has two actions:
- Refresh: re-runs the lookup for the last block.
- Clear: clears the results and returns to the empty hint.
Requirements
Cross-references are only reliable on TIA Portal V18 and later. On V15-V17 the view reports that Find References requires TIA Portal V18 or later.