Overview Block alarm memory multiple

Block function block for the control element Block Alarm (multiple). The control element must be connected with this function block.

With this block several alarm or message texts are managed via a configurable list. In the list (parameter „Contacts") the triggering address, a trigger type and a message text are defined per row. The block itself has no inputs. When a row fires, the corresponding message text is entered into the message list with date and time and shown on the control element. The list is limited to „Message memory size"; once it is full, the oldest message is removed. Status, count and the last message text are stored persistently and are available again after a restart. Optionally, an e-mail with the complete message list can be sent on every new alarm.


Inputs


none
The triggering addresses are not linked at the block but entered per message in the list „Contacts". Older projects in which the block still had inputs T0..Tn are converted once when opened: the address of each input is transferred to its row. Inputs that were only connected to another block by a drawn line have no address – these rows must be given an address again.

Outputs

AP
Alarm pulse
Set to 1 for approx. 2 seconds on every new alarm (pulse), then back to 0.
AS
Alarm status
1 if at least one message is in the list, otherwise 0.
AZ
Alarm count
Number of messages in the list.
AA
Alarm current
Text of the most recently occurred message (string).

Parameters

Contacts
List of messages, editable via the „…" button (up to 128 rows). Addresses are dragged from the variable window into the list: on empty space a new row is created per address with the address comment as message text, on an existing row its address is replaced. The dialog stays open meanwhile. The message is edited by double-click, address and comment cannot be edited. Per row:
  • Address: the address that triggers the message. The same address may be used in several rows, e.g. with „At 1" and „At 0" for two different message texts. A row without address never fires.
  • Comment: the comment of the address, for orientation only.
  • Trigger: when the message is triggered (see below).
  • Message: the text entered into the message list.
Possible trigger types:
  • Rising edge: change of the address from 0 to non-zero.
  • Falling edge: change from non-zero to 0.
  • Change: every value change of the address.
  • At 1: every write telegram with a non-zero value – even if the value has not changed.
  • At 0: every write telegram with the value 0 – even if the value has not changed.
  • Telegram: every write telegram, regardless of the value.
Edges and change evaluate write telegrams and responses. „At 1", „At 0" and „Telegram" evaluate write telegrams only, no feedbacks. Telegrams from the bus are evaluated as well as values written to the address by another block. After a restart the current value of the address is the starting value; no message is triggered by it.
Message memory size
Maximum length of the message list (1 to 255). If the number is exceeded, the oldest message is deleted.
Mail
Enables sending an e-mail on every new alarm. The e-mail contains the complete message list with time stamps.
Address
Recipient address for the e-mail (only visible when „Mail" is enabled).
Subject
Subject of the e-mail (only visible when „Mail" is enabled).

See also common parameters of all function blocks.