plc_download
Deploy the active PLC project to the live target, with options for headless boot project or command methods. Automatically logs out from the IDE to apply source edits before deployment.
Instructions
Deploy the active PLC project. Guarded: confirm="ALLOW_PLC_DOWNLOAD" (deploys a boot project to the live target). method "bootproject" (default): headless via ITcPlcProject — writes the boot project to the target boot dir; twincat_restart_runtime loads and runs it. method "command": legacy DTE command route (needs a shell with window automation). autoLogout (default true): if the IDE is logged into the PLC, log out first via UI Automation so any source edits deferred by the online lock are applied before deploy. Never logs back in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | bootproject | |
| confirm | No | ||
| treePath | No | PLC root node, default first project under TIPC | |
| autostart | No | ||
| autoLogout | No | ||
| commandName | No |