plc_diagnostics
Runs PLC diagnostics including trace recording, file upload/download/delete, and static code analysis to inspect and maintain Sigmatek LASAL controls.
Instructions
Run PLC diagnostics: trace recording, file upload/download/delete on PLC, or static code analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | PLC diagnostics/maintenance action: trace (DataAnalyzer run), file_upload/file_download/file_delete (files on the control), code_analysis (static analysis on the project or one source file), download_os (install a LasalOS .lbi — control reboots), clear_ram_image, save_project_on_plc (backup the running project on the control), download_connection_file (.lcf). | |
| os_path | No | LasalOS update file (.lbi) to install (download_os action only). | |
| lcp_path | No | Absolute path to the .lcp file. Omit to use the currently selected project. | |
| plc_path | No | File path on the PLC (for file upload/download/delete). | |
| timeout_s | No | Timeout override in seconds. Defaults: 120s, or 600s for download_os. | |
| connection | No | PLC connection string. Omit to use connection from project's .lss file. | |
| local_path | No | Local file path on the host (for file upload/download). | |
| config_path | No | Absolute path to the DataAnalyzer config file (trace action only). | |
| duration_ms | No | Duration in milliseconds to run the trace (trace action only). Default 5000. | |
| output_path | No | Destination path for the trace output or code analysis result. | |
| source_file | No | Analyze a single source file instead of the whole project (code_analysis action only). | |
| connection_file | No | Optional .lcf connection file path (download_connection_file action only; omit to use the project's active connection file). |