rec_profile_start
Start recording a saved TwinCAT profile, creating aligned files per mode and cycle group and returning IDs for stats or export.
Instructions
Start recording a saved profile: one recording per (mode, cycle_ms) group, all named '/@'. Triggers given here override the profile's. Returns the recording ids; rec_profile_stop(name) stops them together, rec_stats/rec_export work per id. align (default, several groups, no start_when): every group starts on the same PLC cycle — a shared start trigger on the task's cycle counter a moment ahead — and duration_s then counts from that cycle, so all files cover the same window (D29: groups started ≈ 160 ms apart).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| align | No | ||
| stop_when | No | ||
| duration_s | No | ||
| max_events | No | ||
| start_when | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||