Alarms

class pytm4srv.models.Alarm

Represents a past alarm.

alarm_code: Mapped[str]

The alarm code reported by the machine.

alarm_src: Mapped[str]

The source of the alarm (“NC” or “TMAC”).

alarm_type: Mapped[str]

The type of alarm reported.

custom_message: Mapped[str]

Message specified in machine settings or looked up from the alarm code.

editor_id: Mapped[int | None]

ID of the user who last edited this alarm.

false_alarm: Mapped[bool]

Whether the alarm reported by the machine has been identified as a false alarm.

id: MappedColumn object at 0x7b55cc329c60>]]

Unique, numeric ID for this alarm in OnTakt.

info: Mapped[dict]

Data that was recorded during the alarm.

  • For NC alarms, this is the position of all axes.

  • For TMAC alarms, this is the tool and section that were running.

machine_id: Mapped[int]

The ID of the machine the alarm occurred on.

notes: Mapped[str]

User-modifiable notes about the alarm.

timestamp: Mapped[datetime]

The date and time the alarm was reported.

tool_assembly_id: Mapped[int | None]

ID of the tool assembly related to this alarm, if any.

Primarily for use with TMAC alarms.