plc_values
Read or write live channel values on a running PLC using ObjectName.ChannelName paths, with automatic type coercion from ST declarations.
Instructions
Read or write live channel values on a running PLC. Channels use 'ObjectName.ChannelName' format. Auto-coerces types based on ST declarations.
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": {
"action": "<action>"
},
"name": "plc_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'read' fetches live channel values; 'write' pushes new values. | |
| values | No | Channel/value pairs to write (write only). | |
| channels | No | Channel paths to read, each in 'ObjectName.ChannelName' format (read only). | |
| lcp_path | No | Absolute path to the .lcp file. Omit to use the selected project. | |
| connection | No | Connection string or address-book name. Omit to use the project's saved connection. |