Commit Graph

11 Commits

Author SHA1 Message Date
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 3975a96395 Version funcionante de S7_DB_Utils 2025-05-18 13:59:49 +02:00
Miguel 89451abd15 Tratando de lograr el el excel de comparacion de x7 funcione correctamente 2025-05-18 13:25:46 +02:00
Miguel 0f162377cd S7_DB_Utils funcionando v1 2025-05-18 02:57:49 +02:00
Miguel e85c0c169d antes de eliminar las estructuras de Begin block de los json 2025-05-18 01:04:24 +02:00
Miguel 00f3b6d2ec Creado x7 para actualizar los valores 2025-05-17 23:54:50 +02:00
Miguel f76f593fef feat: Enhance S7_DB_Utils scripts with configuration loading and Excel documentation generation
- Added configuration loading functionality in x4.py and x5.py to retrieve working directory and other settings.
- Updated x4.py to print the working directory being used.
- Refactored error handling in log.txt to reflect successful execution and improved logging messages.
- Created detailed technical documentation for the parsed S7 data JSON format.
- Added a new script x6.py to generate Excel documentation for Data Blocks (DBs) from parsed JSON data.
- Implemented functions to format data types and flatten members for Excel export in x6.py.
- Improved directory structure documentation in readme.md for better clarity on project organization.
2025-05-17 21:32:11 +02:00
Miguel 884166b60e Add S7 data block and JSON documentation generator
- Created a new data block file `reconstructed_s7_source_stat.txt` containing structured data for HMI Blender parameters.
- Implemented a Python script `x5.py` to generate Markdown documentation from parsed S7 JSON data, including formatting for UDTs and DBs.
- The script includes functions for formatting data types, offsets, and generating tables for members, as well as handling current values and comments.
2025-05-17 14:48:28 +02:00
Miguel de5134920d Add initial implementation of Recipe Production and HMI Blender Parameters
- Introduced a new data type "Recipe_Prod" with various parameters related to production settings, including syrup properties, CO2 factors, and production rates.
- Created a data block "HMI_Blender_Parameters" to encapsulate processor options and settings for the blender, including various operational flags and parameters for different components.
- Initialized default values for recipe parameters and process setup configurations to ensure proper operation of the production system.
2025-05-17 14:31:37 +02:00
Miguel a82ef44fb8 Add x4.py for S7 source code generation and documentation
- Implemented functions to format data types, generate variable declarations, and create S7 source code from JSON data.
- Added recursive functions to handle STRUCTs and UDTs, including generating assignments for the BEGIN block.
- Created a Markdown documentation generator for DBs.
- Enhanced error handling and logging in x3.py, addressing issues with missing attributes in the DB_Parser module.
- Updated log.txt to reflect the execution flow and errors encountered during the process.
2025-05-17 14:06:22 +02:00