Herunterladen Diese Seite drucken

Bosch UGM 2040 Konfiguration Und Bedienung Seite 131

Vorschau ausblenden Andere Handbücher für UGM 2040:

Werbung

UGM 2040
AdapterRule:
# map city tie values
ResultCityTie = {
"24":EventTypes.Normal,
"7":EventTypes.Activation,
"27":EventTypes.GeneralFault,
"29":EventTypes.Bypass,
"31":EventTypes.Isolate
};
# map values from other entity types
ResultOther = {
"30":(EventTypes.FireVerify,RequiresHandling.Yes),
};
RuleBody:
# prepare locals with default values
reqHandling = RequiresHandling.AsGiven
evType = EventTypes.Unknown
# check if citiy tie and value belongs to ResultCityTie
if(Entity.EntityType.IsA(EntityTypes.CityTie) and
Property.Value.ToString() in ResultCityTie):
evType = ResultCityTie[Property.Value.ToString()] # use event type from
"ResultCityTie" table
else:
# check if value belongs to ResultOther
if(Property.Value.ToString() in ResultOther):
# use event type from "ResultOther" table
evType = ResultOther[Property.Value.ToString()][0]
# use req handling from "ResultOther" table
reqHandling = ResultOther[Property.Value.ToString()][1]
else:
# convert the given property value into proper MCP event type or
EventType.Unknown
evType = EventTypes.FromIdOrUnknown (Property.Value.ToInt32())
# when property name indicates an initial state (Einschaltmeldung) and
# found event type is of type Fire then handling is required
if(Property.Name == PropertyNames.InitialState and
evType.IsA(EventTypes.Fire)):
reqHandling = RequiresHandling.Yes
return evType, reqHandling
In diesem erweiterten Beispiel für eine FPA 5000, die seriell angebunden ist, sind zusätzliche
Features in die Adapter-Regel eingebaut:
Bosch Sicherheitssysteme GmbH
Spezielles Mapping der LZs einer Übertragungseinrichtung (analog der UGM2020-Regel)
Konfiguration und Inbetriebnahme
Fortgeschrittene Konzepte | de
2012.09 | V 1.0 | F.01U.276.086
131

Werbung

loading