Skip to main content
Version: 2.7

HEIDENHAIN Alarm and Event Sources

HEIDENHAIN Alarm and Message handling produces alarm events. The AlarmEventSourceInfo object is used to handle these alarms and events. The declaration is located in the device file.

Messages are not acknowledged by the HumanOS Plugin. Typically, this is done by the HEIDENHAIN system using the RESET button.

Alarm Source Addresses

The Heidenhain Control Driver supports CNC/NC/PLC Alarms. The Address for the alarms is following:

AddressDescriptionData Type
Nc{x}.NcAlarmEvent:0System Alarm and operator message reader.TAlarmEvent[]

An Alarm contains following fields:

Field NameDescriptionData Type
SourceNameCan be unknown or:
  • DNC_EG_NONE = 0
  • DNC_EG_OPERATING = 1
  • DNC_EG_PROGRAMING = 2
  • DNC_EG_PLC = 3
  • DNC_EG_GENERAL = 4
  • DNC_EG_REMOTE = 5
  • DNC_EG_PYTHON = 6
System.String
AlarmTypeCan be unknown or:
  • DNC_EC_NONE = 0
  • DNC_EC_WARNING = 1
  • DNC_EC_FEEDHOLD = 2
  • DNC_EC_PROGRAMHOLD = 3
  • DNC_EC_PROGRAMABORT = 4
  • DNC_EC_EMERGENCY_STOP = 5
  • DNC_EC_RESET = 6
  • DNC_EC_INFO = 7
  • DNC_EC_ERROR = 8
  • DNC_EC_NOTE = 9
System.String
ConditionNameAlarm with its corresponding numberSystem.String
MessageMessage contentSystem.String
OccurrenceDate and Time of the appearanceSystem.String

By default, all errors with the following DNC ErrorClass will set the emergency state flag:

  • DNC_EC_EMERGENCY_STOP
  • DNC_EC_RESET

And all errors with the following DNC ErrorClass will set the alarm state flag:

  • DNC_EC_NONE
  • DNC_EC_FEEDHOLD
  • DNC_EC_PROGRAMHOLD
  • DNC_EC_PROGRAMABORT