control_plc
Start, stop, or query PLC runtime state via LASAL, with an automatic ping before start/stop to verify the target PLC is reachable.
Instructions
Start, stop, or query PLC runtime state. Pings the target PLC before start/stop.
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": "control_plc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'start' runs the PLC project; 'stop' halts it; 'get_state' queries its current state. | |
| 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. |