- Updated directory structure in readme.md to include project-specific files. - Refactored find_io_recursively to include module context for better IO address mapping. - Modified generate_markdown_tree to generate PLC-specific hardware trees and improved markdown formatting. - Added sanitization function for filenames to ensure valid output paths. - Improved logging to provide detailed execution flow and output paths. - Updated process_aml_file to extract and save global outputs, returning project data for further processing. - Enhanced overall error handling and output messages for clarity. |
||
---|---|---|
.. | ||
data.json | ||
description.json | ||
esquema_group.json | ||
esquema_work.json | ||
log_x1.txt | ||
log_x2.txt | ||
log_x3.txt | ||
log_x4.txt | ||
readme.md | ||
script_config.json | ||
scripts_description.json | ||
siemens_tia_scripting.md | ||
work_dir.json | ||
x1.py | ||
x2.py | ||
x3.py | ||
x4.py |
readme.md
Directory structure
<working_directory>/ ├── <Project_Name>_CAx_Export.aml ├── <PLC1_Name>/ │ ├── ProgramBlocks_XML/ │ │ └── ... (archivos XML de bloques) │ ├── ProgramBlocks_SCL/ │ │ └── ... (archivos SCL de bloques) │ ├── ProgramBlocks_CR/ │ │ └── ... (archivos XML de referencias cruzadas de bloques) │ ├── PlcTags/ │ │ └── ... (archivos XML de tablas de tags) │ ├── PlcTags_CR/ │ │ └── ... (archivos XML de referencias cruzadas de tablas de tags) │ ├── PlcDataTypes_CR/ │ │ └── ... (archivos XML de referencias cruzadas de UDTs) │ ├── SystemBlocks_CR/ │ │ └── ... │ └── SoftwareUnits_CR/ │ └── ... │ └── Documentation/ │ └── Source │ └── ... (archivos md de bloques de programa) │ └── JSON │ └── ... (archivos JSON temporales) │ └── xref_calls_tree.md │ └── xref_db_usage_summary.md │ └── xref_plc_tags_summary.md │ └── full_project_representation.md │ └── <Project_Name>_CAx_Export_Hardware_Tree.md
├── <PLC2_Name>/ │ ├── ProgramBlocks_XML/ │ │ └── ... │ └── ... └── ...