rec_export
Export a PLC signal recording to CSV in wide or long format for analysis, with optional forward-fill for charting.
Instructions
Export a recording to CSV. csv_wide: one row per PLC sample time, one column per variable and per array element (name[i]); an empty cell means no sample of that variable at that time (fill=true forward-fills — handy for charts, but a cell then no longer means "sampled now"). csv_long: t_ms,symbol,value. Both include plc_filetime (the PLC's own sample timestamp) when available. Default path next to the JSONL. An out_path must be in a folder this server writes to ([server] output_dirs adds more). An existing file — also an earlier export at the default path with other symbols/fill, or of a recording that has grown since — is only replaced with overwrite=true; an identical re-export (same source bytes and parameters) is not refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| fmt | No | csv_wide | |
| fill | No | ||
| symbols | No | ||
| out_path | No | ||
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||