build_remoteconnect_logic_copy
Edit ST logic safely by building a copy and saving only if build succeeds, avoiding source corruption.
Instructions
Safely edit ST logic and save only after a clean build, always to a copy.
source_path may be any member of a RemoteConnect bundle; its paired logic file is opened without saving in place. output_path must be a new .STU path unless overwrite=true. variables is an optional list of dictionaries with name/type and optional comment/address/initial_value. declare contains section-local or FB declarations. On edit/build failure the application is closed without saving and output_path is not written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| declare | No | ||
| section | Yes | ||
| overwrite | No | ||
| st_source | Yes | ||
| variables | No | ||
| output_path | Yes | ||
| source_path | Yes |