4 Communication and bus systems
Manual ERZ 2000-NG · EN07 · 2019, May 13th
153
IL27 status
For example, the following could be required for the PGC status:
x
Value=1: The PGC measures without errors.
x
Value=0: The PGC is in alarm.
x
Value=0: The PGC is in revision.
Note
Only with value ≠ 0 the values of the gas quality are transferred.
It is possible that a PGC does
not
provide the status in exactly this form. Instead, it
gives:
Register 10: It shows the number of pending alarms. If the register shows the
value 0, the PGC is alarm-free. This is a 16-bit integer register.
Register 2:
Information provided here is coded bit by bit. If the bit with the
significance 4 is set, the PGC is in measurement mode. This is a
32-bit integer register.
The status formation can be formulated in coordinate
IL27
with the following consid-
erations:
A 16-bit integer register must be read for the first part. The number of pending
alarms that is readable there relates to the data type of an unsigned integer
(unsigned short int). The prefix for this is a lower-case
u
. The register address is
10, i.e. the value with
u10
must be requested.
Then, the value must be checked with a comparison operator to zero. The ex-
pression for the first part is
u10==0
. As a result, the expression has the value
true when
u10
contains the value
0
.
A 32-bit integer register must be read for the second part. Since this value must
be interpreted bit by bit, it is an unsigned integer with 32 bits (unsigned long int).
The prefix for this is a capital
U
The register address is 2, i.e. the value with
U2
must be requested.
Then, it must still be determined whether the bit with significance
4
is set. For
this purpose, the bit-by-bit
and
must be used as an operator, which is repre-
sented by the character
&
. The second partial expression then becomes
u2&4.
This expression has the value 0 as a result when the bit is not set with signifi-
cance 4 and a value different than 0 when the bit is set. The bits with a different
significance than 4 do not influence the result.
Finally, the two partial expressions must be linked by a logical And. This opera-
tor is represented by the characters
&&
. The parentheses rules must be ob-
Summary of Contents for ERZ2000-NG
Page 10: ......
Page 68: ...2 Introduction Manual ERZ 2000 NG EN07 2019 May 13th 58 Figure 44 Menu LA Overview...
Page 69: ...2 Introduction Manual ERZ 2000 NG EN07 2019 May 13th 59 Figure 45 Menu LB Totalizer BM1...
Page 77: ...2 Introduction Manual ERZ 2000 NG EN07 2019 May 13th 67 Figure 51 Overview System sub menu...
Page 241: ...6 Flow meters Manual ERZ 2000 NG EN07 2019 May 13th 231 Figure 167 Interface module C34...
Page 340: ...8 Overview Coordinates Manual ERZ 2000 NG EN07 2019 May 13th 330 8 5 6 TSV export...
Page 453: ...Certificates Manual ERZ 2000 NG EN07 2019 May 13th 443...