Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Detect if program execution halts

  • Last UpdatedJul 20, 2024
  • 1 minute read

You can detect if the program execution is abnormally halted by the Sequencer by reading the values of the ExecutionHalted.Condition attribute and the ExecutionHaltedDesc attribute.

The program execution is halted and an alarm raised if, for example:

  • you configure the Halt on Condition Error or Halt on Output Error options in the Sequencer editor

  • a failover occurs and AutoResume is false (and the execution state is Running or SingleStep before the failover)

  • the Sequencer object is taken Off Scan and then brought On Scan again and AutoResume is false (and the execution state is Running or SingleStep before taking it Off Scan)

  • the hosting AppEngine object is restarted On Scan (and the execution state is Running or SingleStep before restarted the hosting AppEngine)

  • the computer is rebooted (and the execution state is Running or SingleStep before restarted the hosting AppEngine).

To detect program execution halting:

  • Read the values from the following attributes:

Attribute

Description

ExecutionHalted.Condition

TRUE - The program execution was halted

FALSE - The program execution is running as controlled by the user

ExecutionHaltedDesc

A description indicating possible causes

For more information on these attributes, see Sequencer object help.

TitleResults for “How to create a CRG?”Also Available in