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.
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 | |||