--- Log de Ejecución: x4.py ---
Grupo: ObtainIOFromProjectTia
Directorio de Trabajo: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourceXML
Inicio: 2025-05-20 12:12:51
Fin: 2025-05-20 12:20:01
Duración: 0:07:09.648304
Estado: SUCCESS (Código de Salida: 0)

--- SALIDA ESTÁNDAR (STDOUT) ---
--- TIA Portal Cross-Reference Exporter ---

Selected Project: C:/Trabajo/SIDEL/09 - SAE452 - Diet as Regular - San Giovanni in Bosco/Reporte/SourceDoc/Migration/SAE452/SAE452.ap18
Using Base Export Directory: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourceXML

Connecting to TIA Portal V18.0...
2025-05-20 12:12:56,780 [1] INFO  Siemens.TiaPortal.OpennessApi18.Implementations.Global OpenPortal - Start TIA Portal, please acknowledge the security dialog.
2025-05-20 12:12:56,804 [1] INFO  Siemens.TiaPortal.OpennessApi18.Implementations.Global OpenPortal - With user interface
Connected to TIA Portal.
2025-05-20 12:13:30,582 [1] INFO  Siemens.TiaPortal.OpennessApi18.Implementations.Portal GetProcessId - Process id: 21952
Portal Process ID: 21952
Opening project: SAE452.ap18...
2025-05-20 12:13:31,077 [1] INFO  Siemens.TiaPortal.OpennessApi18.Implementations.Portal OpenProject - Open project... C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\Migration\SAE452\SAE452.ap18
Project opened successfully.
2025-05-20 12:14:15,234 [1] INFO  Siemens.TiaPortal.OpennessApi18.Implementations.Project GetPlcs - Found plc CPU 315F-2 PN/DP with parent name _SSAE0452
Found 1 PLC(s). Starting cross-reference export process...

--- Processing PLC: CPU 315F-2 PN/DP ---

[PLC: CPU 315F-2 PN/DP] Exporting Program Block Cross-References...
  Target: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourceXML\CPU 315F-2 PN\DP\ProgramBlocks_CR
  Found 410 program blocks.
    Processing block: ISOonTCP_or_TCP_Protocol...
      Exporting cross-references for ISOonTCP_or_TCP_Protocol...
    Processing block: PIDControl...
      Exporting cross-references for PIDControl...
    Processing block: DETAIL_DP_DIAG...
      Exporting cross-references for DETAIL_DP_DIAG...
    Processing block: Net Dosing Sys Prof...
      Exporting cross-references for Net Dosing Sys Prof...
    Processing block: ICS Profibus Comm...
      Exporting cross-references for ICS Profibus Comm...
    Processing block: GNS DriveDiag...
      Exporting cross-references for GNS DriveDiag...
    Processing block: HMI_Blender_Parameters...
      Exporting cross-references for HMI_Blender_Parameters...
    Processing block: HMI Drive...
      Exporting cross-references for HMI Drive...
    Processing block: GNS DriveDiagMain...
      Exporting cross-references for GNS DriveDiagMain...
    Processing block: Integral...
      Exporting cross-references for Integral...
    Processing block: LowPassFilter...
      Exporting cross-references for LowPassFilter...
    Processing block: SlewLimit...
      Exporting cross-references for SlewLimit...
    Processing block: MSE Slope...
      Exporting cross-references for MSE Slope...
    Processing block: Statistical_Analisys...
      Exporting cross-references for Statistical_Analisys...
    Processing block: Blender_Variables...
      Exporting cross-references for Blender_Variables...
    Processing block: BrixTracking_ProdSamples...
      Exporting cross-references for BrixTracking_ProdSamples...
    Processing block: Procedure_Variables...
      Exporting cross-references for Procedure_Variables...
    Processing block: Blender_Constants...
      Exporting cross-references for Blender_Constants...
    Processing block: BrixTracking_SampleTime...
      Exporting cross-references for BrixTracking_SampleTime...
    Processing block: Delay...
      Exporting cross-references for Delay...
    Processing block: CO2Tracking_ProdSamples...
      Exporting cross-references for CO2Tracking_ProdSamples...
    Processing block: CO2Tracking_SampleTime...
      Exporting cross-references for CO2Tracking_SampleTime...
    Processing block: Interlocking_Variables...
      Exporting cross-references for Interlocking_Variables...
    Processing block: System_RunOut_Variables...
      Exporting cross-references for System_RunOut_Variables...
    Processing block: CIP_Program_Variables...
      Exporting cross-references for CIP_Program_Variables...
    Processing block: Filler_Head_Variables...
      Exporting cross-references for Filler_Head_Variables...
    Processing block: Filling_Time_Tranfer_DB...
      Exporting cross-references for Filling_Time_Tranfer_DB...
    Processing block: Blender_Variables_Pers...
      Exporting cross-references for Blender_Variables_Pers...
    Processing block: HMI_Alarms...
      Exporting cross-references for HMI_Alarms...
    Processing block: HMI_Local_CIP_Variables...
      Exporting cross-references for HMI_Local_CIP_Variables...
    Processing block: HMI_Service...
      Exporting cross-references for HMI_Service...
    Processing block: HMI_Variables_Cmd...
      Exporting cross-references for HMI_Variables_Cmd...
    Processing block: HMI_Variables_Status...
      Exporting cross-references for HMI_Variables_Status...
    Processing block: HMI_Device...
      Exporting cross-references for HMI_Device...
    Processing block: HMI_Instrument...
      Exporting cross-references for HMI_Instrument...
    Processing block: HMI_Digital...
      Exporting cross-references for HMI_Digital...
    Processing block: HMI_PID...
      Exporting cross-references for HMI_PID...
    Processing block: HMI_ICS...
      Exporting cross-references for HMI_ICS...
    Processing block: HMI_Device_AVS...
      Exporting cross-references for HMI_Device_AVS...
    Processing block: Profibus_Variables...
      Exporting cross-references for Profibus_Variables...
    Processing block: Input_CheckFlowMetersSta...
      Exporting cross-references for Input_CheckFlowMetersSta...
    Processing block: Input_DigitalScanner...
      Exporting cross-references for Input_DigitalScanner...
    Processing block: ProductLiterInTank...
      Exporting cross-references for ProductLiterInTank...
    Processing block: ProductAvailable...
      Exporting cross-references for ProductAvailable...
    Processing block: T_Timer...
      Exporting cross-references for T_Timer...
    Processing block: SEL_I...
      Exporting cross-references for SEL_I...
    Processing block: _StepMove...
      Exporting cross-references for _StepMove...
    Processing block: ProductPipeDrain_Seq...
      Exporting cross-references for ProductPipeDrain_Seq...
    Processing block: ProductPipeDrain...
      Exporting cross-references for ProductPipeDrain...
    Processing block: ProductPipeRunOut_Seq...
      Exporting cross-references for ProductPipeRunOut_Seq...
    Processing block: SEL_R...
      Exporting cross-references for SEL_R...
    Processing block: ProductPipeRunOut...
      Exporting cross-references for ProductPipeRunOut...
    Processing block: LIMIT_I...
      Exporting cross-references for LIMIT_I...
    Processing block: System_Run_Out...
      Exporting cross-references for System_Run_Out...
    Processing block: System_Run_Out_Data...
      Exporting cross-references for System_Run_Out_Data...
  ERROR accessing Program Blocks for cross-reference export: RemotingException: El objeto '/bd68de4c_3307_463d_b3ce_57a1378b3bde/lnycb9uriadrpgmom_mjdspm_249.rem' se desconectó o no existe en el servidor.

[PLC: CPU 315F-2 PN/DP] Exporting PLC Tag Table Cross-References...
  Target: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourceXML\CPU 315F-2 PN\DP\PlcTags_CR
  Found 2 Tag Tables.
    Processing Tag Table: Default tag table...
      Exporting cross-references for Default tag table...
    Processing Tag Table: STEP7 classic symbols...
      Exporting cross-references for STEP7 classic symbols...
  Tag Table CR Export Summary: Exported=2, Skipped/Errors=0

[PLC: CPU 315F-2 PN/DP] Exporting PLC Data Type (UDT) Cross-References...
  Target: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourceXML\CPU 315F-2 PN\DP\PlcDataTypes_CR
  Found 21 UDTs.
    Processing UDT: AnyPoint...
      Exporting cross-references for AnyPoint...
    Processing UDT: FunctionButton...
      Exporting cross-references for FunctionButton...
    Processing UDT: TADDR_PAR...
      Exporting cross-references for TADDR_PAR...
    Processing UDT: Device...
      Exporting cross-references for Device...
    Processing UDT: AnalogInstrument...
      Exporting cross-references for AnalogInstrument...
    Processing UDT: DigitalInstrument...
      Exporting cross-references for DigitalInstrument...
    Processing UDT: PID...
      Exporting cross-references for PID...
    Processing UDT: EHS16...
      Exporting cross-references for EHS16...
    Processing UDT: Danfoss Diag...
      Exporting cross-references for Danfoss Diag...
    Processing UDT: QCO Timer...
      Exporting cross-references for QCO Timer...
    Processing UDT: QCO Phase...
      Exporting cross-references for QCO Phase...
    Processing UDT: ReportCIPSimpleData...
      Exporting cross-references for ReportCIPSimpleData...
    Processing UDT: CIP_WaitEvent_Type...
      Exporting cross-references for CIP_WaitEvent_Type...
    Processing UDT: CIP_Step_Type_New...
      Exporting cross-references for CIP_Step_Type_New...
    Processing UDT: CIP_Simple_Type...
      Exporting cross-references for CIP_Simple_Type...
    Processing UDT: CIP_Link_Type...
      Exporting cross-references for CIP_Link_Type...
    Processing UDT: CIP_Step_Type...
      Exporting cross-references for CIP_Step_Type...
    Processing UDT: Recipe_Prod...
      Exporting cross-references for Recipe_Prod...
    Processing UDT: ICS Hndsk receive signal...
      Exporting cross-references for ICS Hndsk receive signal...
    Processing UDT: ICS Hndsk send signal...
      Exporting cross-references for ICS Hndsk send signal...
    Processing UDT: TCON_PAR...
      Exporting cross-references for TCON_PAR...
  UDT CR Export Summary: Exported=21, Skipped/Errors=0

[PLC: CPU 315F-2 PN/DP] Attempting to Export System Block Cross-References...
  Target: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourceXML\CPU 315F-2 PN\DP\SystemBlocks_CR
  Found 12 system blocks (using get_system_blocks).
    Processing System Block: TIM_S5TI...
      Exporting cross-references for TIM_S5TI...
    Processing System Block: REPLACE...
      Exporting cross-references for REPLACE...
    Processing System Block: LIMIT...
      Exporting cross-references for LIMIT...
    Processing System Block: NE_STRNG...
      Exporting cross-references for NE_STRNG...
    Processing System Block: TURCV...
      Exporting cross-references for TURCV...
    Processing System Block: TUSEND...
      Exporting cross-references for TUSEND...
    Processing System Block: PID_Continuos...
      Exporting cross-references for PID_Continuos...
    Processing System Block: TDISCON...
      Exporting cross-references for TDISCON...
    Processing System Block: TCON...
      Exporting cross-references for TCON...
    Processing System Block: TRCV...
      Exporting cross-references for TRCV...
    Processing System Block: TSEND...
      Exporting cross-references for TSEND...
    Processing System Block: DT_DATE...
      Exporting cross-references for DT_DATE...
  System Block CR Export Summary: Exported=12, Skipped/Errors=0

[PLC: CPU 315F-2 PN/DP] Attempting to Export Software Unit Cross-References...
  Target: C:\Trabajo\SIDEL\09 - SAE452 - Diet as Regular - San Giovanni in Bosco\Reporte\SourceDoc\SourceXML\CPU 315F-2 PN\DP\SoftwareUnits_CR
  Found 0 Software Units.
  Software Unit CR Export Summary: Exported=0, Skipped/Errors=0

--- Finished processing PLC: CPU 315F-2 PN/DP ---

Cross-reference export process completed.

Closing TIA Portal...
2025-05-20 12:19:54,187 [1] INFO  Siemens.TiaPortal.OpennessApi18.Implementations.Portal ClosePortal - Close TIA Portal
TIA Portal closed.

Script finished.

--- ERRORES (STDERR) ---
Traceback (most recent call last):
  File "D:\Proyectos\Scripts\ParamManagerScripts\backend\script_groups\ObtainIOFromProjectTia\x4.py", line 99, in export_plc_cross_references
    block_name = block.get_name()
                 ^^^^^^^^^^^^^^^^
ValueError: RemotingException: El objeto '/bd68de4c_3307_463d_b3ce_57a1378b3bde/lnycb9uriadrpgmom_mjdspm_249.rem' se desconectó o no existe en el servidor.

--- FIN DEL LOG ---
