beautypg.com

ProSoft Technology PTQ-PDPMV1 User Manual

Page 138

background image

Configuring the Processor with Concept 2.6

PTQ-PDPMV1 ♦ Quantum Platform

User Manual

PROFIBUS DP Master Network Interface Module for Quantum

Page 138 of 306

ProSoft Technology, Inc.

August 12, 2014

4.12.3 Alarm Mailbox

Function Block: GETALARM

Trigger Register: The GETALARM function block does not require a trigger
because this mailbox is initiated from the module.

Description: The GETALARM mailbox is used to read the alarm mailbox
messages sent by the module. The module will automatically generate the alarm
mailboxes after it receives the alarm message from the PROFIBUS slave.
Therefore, no triggers are required for this mailbox.

The last alarm received is copied at the LastAlarm output pin. This is a data
structure that contains all alarm information:

ALARMTYPE definition:

SlaveAddress: BYTE;

SlotNumber: BYTE;

SeqNumber: BYTE;

SpecAck: BYTE;

AlarmType: BYTE;

ExtDiag: BYTE;

FaultInfo: ARRAY[0..1] OF BYTE;

ByteCount: BYTE;

Data: ARRAY[0..127] OF WORD;

This function block also keeps track of the last 20 alarms through the HistAlarm
output pin.

For example, if the module receives 10 alarms (first alarm - Sequence Number =
1, second alarm - Sequence Number = 2, and so on). After the alarm #10 is
received, the processor application could refer to these alarms stored at the
following output pins:

Last Alarm - Alarm #10
HistAlarm[1] - Alarm # 9
HistAlarm[2] - Alarm # 8
HistAlarm[3] - Alarm # 7
HistAlarm[4] - Alarm # 6
HistAlarm[5] - Alarm # 5
HistAlarm[6] - Alarm # 4
HistAlarm[7] - Alarm # 3
HistAlarm[8] - Alarm # 3
HistAlarm[9] - Alarm # 2
HistAlarm[10] - Alarm # 1

If the HistAlarm buffer is full and it receives a new alarm then the oldest alarm in
the queue will be deleted to reserve space for the new alarm.

The AlarmCnt output pin in incremented every time the alarm mailbox is
received. This register will roll over at 30000. The processor application can keep
track of this register to determine when the processor has received a new alarm
mailbox message from the module.