ads_wait_until
Wait for a TwinCAT PLC symbol to meet a comparison (==, !=, >, >=, <, <=) or timeout, using ADS notifications with polling fallback; returns met, value, elapsed.
Instructions
Block until symbol value (==, !=, >, >=, <, <=) or timeout. Uses an ADS change notification, so it returns as soon as the runtime sees the condition (met_at_plc_ms = PLC-relative timestamp of that sample); falls back to polling every interval_ms when notifications are unavailable. Returns met/value/elapsed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"op": "<op>",
"value": "<value>"
},
"name": "ads_wait_until"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| name | Yes | ||
| value | Yes | ||
| timeout_ms | No | ||
| interval_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||