search_logic
Find where tags, blocks, or regex patterns are used across all POUs and networks, revealing which routines call a given block.
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 |