ads_connect
Connects or reconnects to a TwinCAT target via ADS by specifying AMS Net ID and port, letting you control which PLC runtime subsequent operations affect.
Instructions
(Re)connect to a target. ams_net_id like '5.12.34.56.1.1', 'local' for this PC, None = keep current; port 851 = PLC runtime 1. Re-targeting to a NetId other than the configured one is control-class (it changes which machine every later write hits).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ads_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ams_port | No | ||
| ams_net_id | No | ||
| ip_address | No | ||
| confirm_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||