User Manual DEV 1953
96
Copyright DEV Systemtechnik GmbH 2015-2017
5.6.3
Sandar Prosan Commands
The different commands for the communication with the device are described next.
5.6.3.1
Status Query (Q)
The status query can be sent at any time to the device
<STX>Q<checksum><ETX>
i.e.
<STX>Q51<ETX>
The device answer is
<ACK><STX>Q<status_byte><checksum><ETX>
e.g.
<ACK><STX>Q00B1<ETX>
with the following possible content of the
<status_byte>
:
00
= Status ok in Remote/Auto Mode
01
= Pending event(s) in Remote/Auto Mode
10
= Status ok in Local Mode
11
= Pending event(s) in Local Mode
5.6.3.2
Query Alarm Messages (AM or AMA)
This is the command for the query of pending events
<STX>AM<checksum><ETX>
i.e.
<STX>AM8E<ETX>
or
<STX>AMA<checksum><ETX>
i.e.
<STX>AMACF<ETX>
The device answer is
<ACK><STX>AM001:0000,e
{
,x
1
,…,x
e
}
<checksum><ETX>
or
<ACK><STX>AMA001:0000,e
{
,x
1
,…,x
e
}
<checksum><ETX>
with:
e
=
00
…
99
number of events following
{
,x
1
,…,x
e
}
=
00
…
FF
if there are events: error code class (first digit) and
error code sub-class (second digit) in hexadecimal (!) notation,
separated by commas ("
,
")
e.g.
<ACK><STX>AM001:0000,00A5<ETX>
(no events)
or
<ACK><STX>AMA001:0000,02,12,1307<ETX>
(power supply & power line event(s))
Note:
The event indication is the upper two hexadecimal digits of the related error
class. The first digit specifies the error class according to chapter 5.9.4.4.2; the
second digit defines the sub-class. The events of the second example are in the
error class "
1
", i.e. this denotes events in the area of the power supplies, please
refer to chapter 6.1.1. The sub-class of the first indicated event (
x
1
=
12
) is "
2
",
specifying a "Power Line" event, the sub-class of the second indicated event
(
x
2
=
13
) is "
3
", specifying a "Power Supply" event.
It is not indicated if there is more than one pending and not acknowledged
event of the same error code class/sub-class.