Commit Graph

3 Commits

Author SHA1 Message Date
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