rec_start
Start continuous real-time recording of online TwinCAT PLC variables with cycle, change, or poll modes and triggers, streaming JSONL events for diagnostics and test analysis.
Instructions
Start a continuous real-time recording of online PLC variables (runs in the background until rec_stop, duration_s, max_events or stop_when). Select by explicit symbols (an FB or struct instance expands to all its leaves), prefix ('MAIN.fbFill' → every leaf under it) or fnmatch pattern. mode: 'cycle' = one PLC-timestamped sample per symbol per cycle_ms (ADS notification, cycle-accurate); 'change' = PLC-timestamped sample only when the value changes (checked every cycle_ms); 'poll' = sum-read every cycle_ms from this PC. Triggers: start_when='MAIN.bStart == TRUE' with pre_trigger_ms keeps the events before the trigger (scope-style); stop_when='MAIN.fbFill.bDone == TRUE'. Events stream to a JSONL file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | change | |
| name | No | ||
| prefix | No | ||
| pattern | No | ||
| symbols | No | ||
| cycle_ms | No | ||
| stop_when | No | ||
| duration_s | No | ||
| max_events | No | ||
| start_when | No | ||
| max_symbols | No | ||
| pre_trigger_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||