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.
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 | |||