rec_profile_save
Save a named TwinCAT signal-capture profile from symbols, a checklist, or attribute pragmas, including triggers and cycle settings for later replay.
Instructions
Save a named capture profile. Sources combine: explicit symbols (mode='auto' picks cycle for REAL/TIME, change for BOOL/INT/enum, poll for strings — or give cycle|change|poll), a marked checklist (path, or the name given to rec_scan), and/or {attribute 'tcmcp.record' := 'cycle'} pragmas in the source (from_attributes=true; scope limits to one program). Triggers and the default cycle are stored with the profile. rec_profile_start(name) replays it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| name | Yes | ||
| scope | No | ||
| replace | No | ||
| symbols | No | ||
| cycle_ms | No | ||
| stop_when | No | ||
| duration_s | No | ||
| start_when | No | ||
| description | No | ||
| from_checklist | No | ||
| pre_trigger_ms | No | ||
| from_attributes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||