connect_plc
Connect to a Siemens PLC via IP address, rack, slot, and TCP port to enable data exchange and PLC interaction.
Instructions
Connect to a Siemens PLC.
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": {
"address": "<address>"
},
"name": "connect_plc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | PLC IP address (e.g., "192.168.1.1") | |
| rack | No | Rack number (default 0) | |
| slot | No | Slot number (default 1) | |
| tcp_port | No | TCP port (default 102) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |