From b7781dd59ec43fcdc1be934fb02a213547c1ada3 Mon Sep 17 00:00:00 2001 From: Krisztian Olah Date: Thu, 12 Nov 2026 18:22:21 +0100 Subject: [PATCH] Fix failure and error code handling in inspection group Proposed fix for issue #68 --- .../POUs/TcoInspectionGroup/TcoInspectionGroup.TcPOU | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/TcoInspectors/src/XAE/XAE/TcoInspectors/POUs/TcoInspectionGroup/TcoInspectionGroup.TcPOU b/src/TcoInspectors/src/XAE/XAE/TcoInspectors/POUs/TcoInspectionGroup/TcoInspectionGroup.TcPOU index ae5ac38a..9fa31d84 100644 --- a/src/TcoInspectors/src/XAE/XAE/TcoInspectors/POUs/TcoInspectionGroup/TcoInspectionGroup.TcPOU +++ b/src/TcoInspectors/src/XAE/XAE/TcoInspectors/POUs/TcoInspectionGroup/TcoInspectionGroup.TcPOU @@ -535,21 +535,19 @@ END_IF CASE _currentRunResult.Result OF - eOverallResult.NoAction: + eOverallResult.NoAction, ; eOverallResult.Passed: ; eOverallResult.Failed: _refOverallResult.Result := eOverallResult.Failed; - _refOverallResult.Failures := _currentRunResult.Failures; - _refOverallResult.ErrorCodes := _currentRunResult.ErrorCodes; END_CASE IF(_done) THEN - _refOverallResult.Failures :=concat( _originalOverallResult.Failures,_refOverallResult.Failures); - _refOverallResult.ErrorCodes :=concat( _originalOverallResult.ErrorCodes,_refOverallResult.ErrorCodes); + _refOverallResult.Failures :=concat( _originalOverallResult.Failures,_currentRunResult.Failures); + _refOverallResult.ErrorCodes :=concat( _originalOverallResult.ErrorCodes,_currentRunResult.ErrorCodes); _overallResult := _refOverallResult; END_IF; @@ -605,4 +603,4 @@ WithCoordinator := THIS^;]]> - \ No newline at end of file +