Commit Graph

6 Commits

Author SHA1 Message Date
Miguel 0f162377cd S7_DB_Utils funcionando v1 2025-05-18 02:57:49 +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