rec_scan
Scan TwinCAT runtime or project symbols to find recordable PLC variables and estimate data rates and storage costs at a chosen cycle time. Generate a checklist for recording profiles.
Instructions
Enumerate the variables that could be recorded and what each would cost. source='runtime' walks the live symbol/datatype tables (every scalar leaf under prefix, or all programs/GVLs); source='project' walks the source declarations (works offline). pattern = fnmatch filter on the full path. Returns counts by type and by group (program.instance) with bytes/s estimates at cycle_ms, a suggested mode per leaf, and — when checklist='' — writes ~/.twincat_mcp/profiles/.checklist.csv with a 'select' column to mark (preselect = patterns already marked). Then rec_profile_save(name, from_checklist=name).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show | No | ||
| prefix | No | ||
| source | No | runtime | |
| pattern | No | ||
| cycle_ms | No | ||
| checklist | No | ||
| max_items | No | ||
| preselect | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||