plc_assign_program
Assign, move, or reorder a program within an existing task, atomically updating task XML and OEM links while rejecting inconsistent identities, ambiguous instances, and cross-controller moves.
Instructions
Assign, move or reorder one Program in an existing task. Position is one-based; omitted preserves the current position or appends a new assignment. Startup omitted preserves an existing setting, or enables a new assignment. Atomically update task XML and OEM links; reject inconsistent identities, ambiguous instances and cross-controller moves. No PLC or Sysmac build implied.
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": {
"transaction_id": "<transaction_id>",
"task_id": "<task_id>",
"program_id": "<program_id>",
"expected_revision": "<expected_revision>"
},
"name": "plc_assign_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startup | No | ||
| task_id | Yes | ||
| position | No | ||
| program_id | Yes | ||
| transaction_id | Yes | ||
| expected_revision | Yes | Project revision read before staging this change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||