plc_create_pou
Stages a new POU from a single-section template in the same controller/folder, inferring Program/Function/FB and ST/LD with fresh declarations, IDs, and atomic edits for Sysmac rebuild.
Instructions
Stage a new POU from a readable single-section template in the same controller/folder. Infer Program/Function/FB and ST/LD from the template; provide fresh declarations and exactly one ST source or native LD rungs. Add fresh IDs and models atomically without copying application code/build caches. Result remains unverified until Sysmac rebuild.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition | Yes | ||
| transaction_id | Yes | ||
| template_pou_id | Yes | ||
| expected_revision | Yes | Project revision read before staging this change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||