xae_pou_create
Creates a PLC object (program, function block, method, etc.) under a specified parent folder or POU in TwinCAT, with optional declaration and implementation code.
Instructions
Create a PLC object under a folder/POU. kind = program | fb | function | method | property | action | transition | struct | enum | union | alias | gvl | interface | itf_method | itf_property | folder | parameter_list, and accessors on their own: property_get | property_set (under a property) | itf_property_get | itf_property_set (under an interface property). A property / itf_property is created with its accessors (accessors='get,set' default, 'get' or 'set'): without one it does not compile (C0373). return_type: function, method, property; access: PUBLIC | PRIVATE | PROTECTED | INTERNAL. Optional code is set after creation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| access | No | ||
| extends | No | ||
| language | No | st | |
| accessors | No | get,set | |
| implements | No | ||
| declaration | No | ||
| parent_path | Yes | ||
| return_type | No | ||
| implementation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||