deploy_all
Run the full PLC and HMI deploy pipeline in one call: compile, download, start, and verify runtime states, with optional LASAL SCREEN and Visu steps plus async job polling.
Instructions
Full deploy pipeline: compile → download PLC → start PLC → verify state → compile LASAL SCREEN (.lpr, when present) → optional SCREEN download → update Visu stations → download Visu → start HMI runtime. Each step is optional via flags. Supports async: true — the call then returns immediately with a jobId and you MUST poll check_job_status until it reports status completed/failed (the result is delivered there).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | Run in the background: returns { status: 'pending', jobId } — poll with check_job_status. Default false. | |
| compile | No | Compile the CLASS 2 project. Default true. | |
| lse_run | No | Start the screen runtime on the target after download (Download & Run). Default true. | |
| lcp_path | No | Absolute path to the .lcp file. Omit to use the selected project. | |
| lse_path | No | Absolute path to the .lpr (LASAL SCREEN) project. Omit to auto-detect from the selected project. | |
| lvp_path | No | Absolute path to the .lvp file. Omit to auto-detect from the selected project. | |
| start_plc | No | Start the PLC runtime after a successful download. Default true. | |
| timeout_s | No | Timeout override in seconds for compile and download steps. | |
| compile_lse | No | Compile the LASAL SCREEN project (writes the Runtime output folder). Skipped when there is no .lpr. Default true. | |
| download_lse | No | Download the LASAL SCREEN project to its station (requires lse_connection or a station target in the solution). Default false. | |
| download_plc | No | Download the compiled CLASS 2 project to the PLC. Default true. | |
| download_visu | No | Download the VISUDesigner project to the HMI after updating stations. Requires visu_connection. Default false. | |
| add_plc_loader | No | Force loader download to PLC even if the target already has a compatible loader. Default: auto — sent for local LARS/loopback targets, skipped otherwise. Set false to disable, true to force. | |
| lse_connection | No | SCREEN download target, e.g. 'TCPIP:192.168.1.50'. Omit to resolve from the station that owns the .lpr. | |
| plc_connection | No | PLC connection string (e.g. 'TCPIP:192.168.1.100'). Omit to use the connection saved in the project's .lss file. | |
| compile_options | No | Compile mode. RebuildAll is safest; BuildChanges is faster for incremental work. | RebuildAll |
| visu_connection | No | HMI connection string (e.g. 'TCPIP:192.168.1.100'). Required when download_visu is true. | |
| add_visu_runtime | No | Force runtime download to HMI even if the version already matches. | |
| start_hmi_runtime | No | Start the local HMI runtime (DataService) and copy HMI files after a successful compilation/update. Default false. | |
| visu_download_flags | No | VISUDesigner download mode: 0=normal (default), 1=changes only, 2=publish+download changes. | |
| update_visu_stations | No | Run update_all_stations on the VISUDesigner project to sync datapoints after CLASS 2 changes. Default true. |