generate_pdw
Creates a PDW binary by replacing X0/X1-to-Y0/Y1/Y2 NO/NC rungs in a local FBs-60MC template with the same rung count, returning the artifact and warnings without overwriting files.
Instructions
Experimental PDW: replace one/two X -> Y rungs in a local FBs-60MC template.
Same rung count required. Only X0/X1, Y0/Y1/Y2 and NO/NC contacts supported.
No branches, functions, comments or PLC operations. Templates are workspace-scoped.
Keep private templates outside Git; configure --root to their private directory.
Return the actual binary artifact and warnings. Never overwrite.
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": {
"output_name": "<output_name>",
"template_path": "<template_path>",
"rungs": "<rungs>",
"io_contract": "<io_contract>"
},
"name": "generate_pdw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rungs | Yes | ||
| acceptance | No | ||
| io_contract | Yes | ||
| output_name | Yes | ||
| template_path | Yes |