Commit Graph

10 Commits

Author SHA1 Message Date
Miguel 18f6cdaa4f feat: Update TIA Portal version support and enhance export functionality in x1.py and x4.py; remove obsolete test scripts 2025-08-23 16:49:30 +02:00
Miguel 48e25282d6 Add path validation and sanitization tests
- Implemented `test_path_validation.py` to test filename sanitization, path sanitization, and export path validation functions.
- Added comprehensive test cases for various problematic block names and paths to ensure proper handling of invalid characters and whitespace.
- Created `test_sanitization.py` to specifically address problematic block names with updated sanitization logic, including special cases for "I/O access error" and "Time error interrupt".
- Enhanced filename sanitization to replace specific problematic characters and patterns, ensuring consistent output for known issues.
2025-08-23 16:24:58 +02:00
Miguel 586e3cc9b3 Add test script for verifying SIMATIC SD compatibility detection
- Implemented a new test script `test_simatic_sd_compatibility.py` to check the availability of SIMATIC SD format in TIA Scripting.
- Included detailed analysis of SIMATIC SD requirements based on official Siemens documentation.
- Provided feedback on supported and unsupported programming languages and block types.
- Added error handling for TIA Scripting import and environment variable checks.
2025-08-23 13:53:13 +02:00
Miguel 04084e7289 Actualización de scripts de exportación y mejora en la gestión de versiones de TIA Portal
- Se modificó el script x1.py para soportar múltiples versiones de TIA Portal (18, 19 y 20) y se mejoró la detección de la versión a partir de la extensión del archivo del proyecto.
- Se actualizó la descripción del script en scripts_description.json para reflejar las nuevas versiones soportadas.
- Se realizaron ajustes en los logs de ejecución para reflejar las nuevas fechas y duraciones en el script x1.
- Se mejoró la gestión de directorios de exportación y se añadieron mensajes en español para una mejor comprensión del proceso de exportación.
2025-06-12 20:17:36 +02:00
Miguel c0a0a5e088 Actualización de logs y configuración para scripts de exportación en TIA Portal
- Se modificaron los logs de ejecución para reflejar nuevas fechas y duraciones en los scripts x1, x2, x4 y x7.
- Se ajustó el directorio de trabajo en `script_config.json` y `work_dir.json` para apuntar a la nueva ubicación de los archivos.
- Se eliminaron archivos obsoletos como `readme.md` y `siemens_tia_scripting.md`.
- Se mejoró la documentación y se añadieron nuevas descripciones para los scripts en `scripts_description.json`.
2025-06-03 11:04:04 +02:00
Miguel ffabf6b2b0 Add functionality to open current working directory in file explorer
- Implemented a new button in the UI to open the current working directory in the file explorer.
- Added event listener for the new button that triggers an API call to open the directory.
- Included validation to ensure a group is selected and the working directory is set before attempting to open the explorer.
- Created a new JSON description file for the CSharpCodeMerger script group.
2025-05-19 18:21:28 +02:00
Miguel f6ae6f4f82 Creado nuevo grupo IO_adaptation con flujo de trabajo desde x1 a x5 2025-05-15 12:16:01 +02:00
Miguel 88ff4a25a2 Add README and execution log for ObtainIOFromProjectTia and XML Parser to SCL
- Created a README file for the ObtainIOFromProjectTia script group detailing the directory structure and file organization.
- Added a detailed execution log for the x4_cross_reference.py script, including timestamps, output summaries, and error logs.
2025-05-12 12:05:14 +02:00
Miguel 1f64cdf448 Add technical documentation for parsing TIA Portal _XRef.xml files to generate call trees
- Introduced a comprehensive guide detailing the structure and interpretation of _XRef.xml files.
- Explained key XML elements necessary for constructing call trees, including SourceObject, ReferenceObject, and Location.
- Provided a step-by-step data extraction strategy for identifying caller-callee relationships.
- Included example Python code for parsing XML and aggregating call relationships.
- Addressed considerations for handling multiple files and variations across TIA Portal versions.
2025-05-05 12:33:30 +02:00
Miguel 9f8437fc2d Actualizado de descripciones 2025-05-03 23:35:29 +02:00