Skip to main content

errors

Short summary​

This property returns an ICycleError interface fluently to provide error handling methods.

Purpose and usage​

This property provides fluent access to the error handling interface of the cycle manager. It allows chaining error-related method calls and enables comprehensive error management functionality within the cycle management system.

The property returns the same instance cast to ICycleError interface for method chaining.

return: ICycleError: Error handling interface providing acknowledge() and handle() methods

Typical usage patterns​

  1. Fluent error acknowledgment: Chain method calls for cleaner code
  2. Error handling: Access error-specific methods and properties
  3. Error state checking: Check if current step was reached via error
  4. Alarm integration: Handle errors with alarm system integration

When to use​

  • When you need to acknowledge errors in the cycle
  • For displaying alarms and waiting for operator response
  • When implementing error recovery logic
  • For fluent method chaining in error scenarios

Example:

// Fluent error acknowledgment
IF operator_ack_button THEN
cyclemanager.errors.acknowledge();
END_IF;

// Error handling with alarm
IF critical_error_detected THEN
cyclemanager.errors.handle(critical_alarm, TRUE);
END_IF;

// Check error context
IF cyclemanager.errors.isInErrorStep THEN
// Handle error-triggered step differently
enable_manual_mode := TRUE;
ELSE
enable_manual_mode := FALSE;
END_IF;

// Fluent chaining (conceptual - methods don't return interfaces)
// This demonstrates the fluent interface pattern
error_interface := cyclemanager.errors;
error_interface.acknowledge();

Code​

Declaration​

PROPERTY errors :ICycleError