ads_read
Read one TwinCAT PLC symbol with type-aware decoding; large structures return summaries, with readable time and enum values.
Instructions
Read one symbol with type-aware decoding. Structs/FB instances/arrays of structs decode into a nested tree (datatype table); TIME/DATE/DT/TOD get readable text; enums get names. Trees larger than max_chars are summarised (member names + sizes) — use ads_leaves or ads_dump for the full content.
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>"
},
"name": "ads_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| max_chars | No | ||
| max_members | No | ||
| expand_struct | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||