Skip to main content

acknowledge

Short summary

This method acknowledges an error in the cycle manager and resets the current step to the step before the error occurred.

Purpose and usage

This method provides error acknowledgment functionality for the cycle manager. It clears the current error state and returns the cycle manager to the step that was executing before the error occurred, allowing for error recovery and continuation of the sequence.

The method should be called when an operator or system wants to acknowledge an error and attempt to continue the process from where it left off.

Typical usage patterns

  1. Manual error acknowledgment: Operator acknowledges error via HMI button
  2. Automatic error recovery: System automatically acknowledges after conditions are met
  3. Retry operations: Acknowledge error to retry the failed step
  4. Error logging: Acknowledge error after logging for audit trail

When to use

  • When an error has been resolved and process should continue
  • After manual operator intervention to fix the error condition
  • In automated error recovery scenarios
  • When implementing retry logic after temporary failures

behavior

  • Clears the error state flag
  • Returns cycle manager to the last successful step
  • Resets internal error tracking variables
  • Allows normal sequence progression to resume

Example:

// Manual error acknowledgment via HMI
IF HMI_acknowledge_button THEN
cyclemanager.errors.acknowledge();
HMI_acknowledge_button := FALSE;
END_IF;

// Automatic error acknowledgment after condition resolution
ERROR_STEP:
IF error_condition_resolved THEN
cyclemanager.errors.acknowledge(); // Return to previous step
END_IF;

// Error acknowledgment with logging
IF error_acknowledged_by_operator THEN
logger.logEvent('Error acknowledged by operator');
cyclemanager.errors.acknowledge();
error_acknowledged_by_operator := FALSE;
END_IF;

Parameters

none

Code

Declaration

METHOD acknowledge