--- Log de Ejecución: xTest.py ---
Grupo: ObtainIOFromProjectTia
Directorio de Trabajo: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourcdSD
Inicio: 2025-05-22 11:17:27
Fin: 2025-05-22 11:18:44
Duración: 0:01:16.758340
Estado: ERROR (Código de Salida: 1)

--- SALIDA ESTÁNDAR (STDOUT) ---
============================================================
PRUEBA DE EXPORTACIÓN SIMATIC SD - TIA PORTAL V20
============================================================

Project: C:/Trabajo/SIDEL/09 - SAE452 - Diet as Regular - San Giovanni in Bosco/Reporte/SourceDoc/Migration/SAE452_V20/SAE452_V20.ap20
Export Directory: C:/Users/migue/Downloads/Nueva carpeta (18)\SIMATIC_SD_Test

Connecting to TIA Portal V20...
2025-05-22 11:17:49,266 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.Global OpenPortal - Start TIA Portal, please acknowledge the security dialog.
2025-05-22 11:17:49,283 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.Global OpenPortal - With user interface
Connected successfully.
Opening project...
2025-05-22 11:18:05,562 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.Portal OpenProject - Open project... C:/Trabajo/SIDEL/09 - SAE452 - Diet as Regular - San Giovanni in Bosco/Reporte/SourceDoc/Migration/SAE452_V20/SAE452_V20.ap20
Project opened successfully.
2025-05-22 11:18:20,088 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.Project GetPlcs - Found plc CPU 315F-2 PN/DP with parent name _SSAE0452
Found 1 PLC(s)

Testing with PLC: CPU 315F-2 PN/DP
Found 410 program blocks

--- Testing Block 1/3: ISOonTCP_or_TCP_Protocol ---
  Programming Language: STL
  Available methods on block:
    - export
    - export_cross_references
  ✗ ExportAsDocuments method NOT found
  Available methods containing 'export':
    - export
    - export_cross_references

--- Testing Block 2/3: PIDControl ---
  Compiling block...
2025-05-22 11:18:24,970 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.ProgramBlock Compile - Compile the PLC program block PIDControl. Result:
2025-05-22 11:18:31,184 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.ProgramBlock Compile - Warning: CPU 315F-2 PN/DP > General warnings > Inputs or outputs are used that do not exist in the configured hardware.
2025-05-22 11:18:31,185 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.ProgramBlock Compile - Warning: CPU 315F-2 PN/DP > Compiling finished (errors: 0; warnings: 1)
  Programming Language: LAD
  Available methods on block:
    - export
    - export_cross_references
  ✗ ExportAsDocuments method NOT found
  Available methods containing 'export':
    - export
    - export_cross_references

--- Testing Block 3/3: DETAIL_DP_DIAG ---
  Programming Language: STL
  Available methods on block:
    - export
    - export_cross_references
  ✗ ExportAsDocuments method NOT found
  Available methods containing 'export':
    - export
    - export_cross_references

============================================================
PRUEBA COMPLETADA
============================================================

No se crearon archivos en C:/Users/migue/Downloads/Nueva carpeta (18)\SIMATIC_SD_Test

Closing TIA Portal...
2025-05-22 11:18:31,209 [1] INFO  Siemens.TiaPortal.OpennessApi19.Implementations.Portal ClosePortal - Close TIA Portal

Press Enter to exit...

--- ERRORES (STDERR) ---
Traceback (most recent call last):
  File "D:\Proyectos\Scripts\ParamManagerScripts\backend\script_groups\ObtainIOFromProjectTia\xTest.py", line 215, in <module>
    input("\nPress Enter to exit...")
EOFError: EOF when reading a line

--- FIN DEL LOG ---
