ads_task_stats
Read TwinCAT PLC task timing stats: cycle time, execution time min/max/mean, load %, and cycle-time-exceeded deltas over a set sample interval. Use it to assess real-time task cost.
Instructions
PLC task timing (TwinCAT_SystemInfoVarList._TaskInfo[n]): cycle time, last/min/max/mean
execution time over samples, load %, cycle-time-exceeded counter delta — the FB's cost
on the real-time task.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ads_task_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| samples | No | ||
| task_index | No | ||
| interval_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||