proj_get_code
Retrieve source code for a TwinCAT PLC object: declaration/implementation, line numbers, parsed VAR declarations, and sub-items for code inspection.
Instructions
Source of an object ('FB_Valve', 'FB_Valve.Open', 'MAIN'): declaration/implementation with file line numbers, parsed VAR declarations, sub-items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| part | No | both | |
| with_line_numbers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||