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.
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>",
"template_pou_id": "<template_pou_id>",
"definition": "<definition>",
"expected_revision": "<expected_revision>"
},
"name": "plc_create_pou"
}
}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 | |||