Commit Graph

8 Commits

Author SHA1 Message Date
Miguel ab99a1cee1 Implement hash-based change detection for XML files and enhance cross-reference parsing documentation
- Added HASH_DETECTION.md to document the new SHA256 hash-based change detection method for XML files, detailing its advantages over traditional methods.
- Introduced a new field `source_xml_hash` in JSON files to store the hash of the source XML, improving change detection accuracy.
- Updated `x0_main.py`, `x1_to_json.py`, and `x2_process.py` to implement hash calculation and usage in processing logic.
- Created xref_info.md to provide comprehensive technical documentation on parsing TIA Portal `_XRef.xml` files for call tree generation.
- Added debug scripts (`debug_find_network13.py`, `debug_sr_details.py`, `debug_sr_processed.py`, `debug_sr_xml.py`) for detailed analysis of network and instruction data in JSON and XML formats.
2025-09-02 15:53:49 +02:00
Miguel fab8c95038 Add Syrup Line MFM Prep DAR Function Block Implementation
- Implemented the "Syrup_Line_MFM_Prep_DAR" function block with optimized access.
- Defined input and output variables for the function block.
- Added various internal state variables and temporary variables for processing.
- Converted logic from LAD and STL to structured text for the syrup preparation process.
- Included fuzzy logic for syrup density checks and syrup line manual drain conditions.
- Integrated timeout handling and pump status management within the function block.
- Ensured compatibility with existing system variables and procedures.
2025-08-28 17:32:18 +02:00
Miguel c907112293 Implement SyrBrix Autocorrection Function Block and Syrup Line MFM Preparation Logic
- Added the SyrBrix Autocorrection function block (FB1809) to handle syrup brix and density measurements for sugar-based beverages.
- Implemented logic for syrup autocorrection requests, latching, and running states.
- Introduced a new function block for Syrup Line MFM Preparation (FB1813) to manage syrup line preparation and related timers.
- Enhanced network logic for syrup preparation, including handling of manual drain and fuzzy logic for syrup density checks.
- Updated variable handling and added necessary comments for clarity and maintainability.
2025-08-28 14:55:55 +02:00
Miguel b1ee3a0eae feat: Add duplicate UID handler and process_sr processor
- Implemented a new processor for handling duplicate UIDs in JSON data. The `duplicate_uid_handler.py` detects and resolves duplicate UIDs by renaming them with a suffix (_dup1, _dup2, etc.) and updates references accordingly.
- Added a new processor for Set/Reset flip-flop (Sr) in `process_sr.py`. This processor marks instructions as processed without generating specific code for cases with no connections, and flags errors for more complex cases.
2025-08-27 22:30:30 +02:00
Miguel f7d11c67c3 feat: Update workspace paths and enhance JSON output handling with relative paths for better portability 2025-08-27 21:05:53 +02:00
Miguel 64ef308a65 Eliminados los pyc 2025-08-02 10:39:00 +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 d51a1bb13b Agregado del grupo de Scripts para convertir LAD a SCL - Falta adaptar a logica de directorios de trabajo 2025-05-03 00:06:04 +02:00