search_logic
Search an L5X project for a tag, AOI, or regex pattern across all routines to find every rung or line that references it. Use it to trace where a PLC tag or AOI is used.
Instructions
Search for a tag, AOI, or pattern across all routines in an L5X project.
Returns every routine/rung/line that references the matching symbol(s). Supports regex patterns. Use this to answer "Where is this tag used?" or "Which routines reference this AOI?"
Args: l5x_path: Path to a .l5x file. pattern: Tag name, AOI name, or regex pattern to search for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| l5x_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |