> For the complete documentation index, see [llms.txt](https://inscada.gitbook.io/ins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inscada.gitbook.io/ins/en-1/user-interface/development/alarms.md).

# Alarms

This is the part where the alarm definitions are made. You can write as many conditions, operations and comparison functions as you want for alarms and define Line Printer for automatic printing of alarms.&#x20;

![Figure 1 : Development->Alarms](/files/-LjXfwzEvii85UBYC4_k)

In inSCADA, using options located in the upper corner,&#x20;

![Figure 2 : Alarm Export, Import, Setting Printer, Add, Edit, Delete](/files/-LjXhnqMnD3KoPcHWmiu)

Alarm Export/Import, Setting Printer, Add, Edit and Delete operations can be done.

## Alarm Printer Settings

You can define a line-printer for your alarms. To do so, press the button in the top right corner and the dialog window as in Figure 3 will open. Here, you only need to enter the IP and Port to which the printer is connected.&#x20;

![Figure 3 : Alarm Settings](/files/-LkbtacyWIaCMFOYWsJ4)

In Figure 3, you can also specify the scan time (ms) of the alarms with Scan Time.

{% hint style="info" %}
You must define for each project separately.
{% endhint %}

## Alarm Page Add/Edit Form

![Figure 4 : Alarm Add/Edit Form](/files/-Lkbu_rrf-DpcFNkCGGL)

#### Project

You can select the project to add an alarm to.

#### Alarm Group

You can select the group of Alarm.

#### Name

You can assign any name (10 characters) to the alarm.

#### Description

You can enter a detailed description of the alarm (50 characters).

#### Delay

Alarm delay time.

#### Expression

You must write a script for the alarm. When the script result is true, it will be Alarm On and will be Alarm Off if it is false.

```javascript
var tag=ins.getVariableValue("U01_POWER");
if (tag===null) {return false};
if (tag.value<100) {
return true;
} else {
return false;
}

```

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://inscada.gitbook.io/ins/en-1/user-interface/development/alarms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
