plc_values
Read or write live channel values on a running PLC using ObjectName.ChannelName format. Automatically coerces types based on 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.
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. |