search_logic
Find where a tag, block, or regex appears across all POUs and networks. Locate usages and callers by matching symbol tables and Structured Text lines.
Instructions
Search for a tag, block or regex across every POU and network.
Answers "where is this used?" and "which routines call this block?". Matches symbol-table entries (declarations, block types, instances, pins) first, then raw Structured Text lines, so both a tag name and a regex work.
Note the pattern is an ordinary regex, so MC_ matches every MC_*
block reference (the underscore is literal, and MC_\d+ would require
digits after it and so match nothing).
Args: path: Project file or directory. pattern: Tag name, block name, or regex pattern. limit: Maximum number of matches to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |