plc_register_external
Registers an existing same-controller global as VAR_EXTERNAL in a POU, preserving source and rejecting local name/type conflicts or duplicate aliases. Repairs missing declarations from validation.
Instructions
Register an existing same-controller global as VAR_EXTERNAL in one POU. Preserve source, reject local name/type conflicts and avoid duplicate aliases. Useful for repairing missing declarations reported by plc_validate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pou_id | Yes | ||
| transaction_id | Yes | ||
| expected_revision | Yes | Project revision read before staging this change. | |
| global_variable_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||