!******************************************************;
!*****  Alarm Fallo de Red A******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=ElectricityGridA
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA portId=1
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA,AlarmEntry=ACTIVE specificProblem="Power Grid Failure in Supply A"
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridA,AlarmEntry=ACTIVE additionalText="No Electricity Grid Available in Supply A"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=ElectricityGridA,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Fallo de Red B******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=ElectricityGridB
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB portId=2
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB,AlarmEntry=ACTIVE specificProblem="Power Grid Failure in Supply B"
setMOAttribute ea1 SDN=0,AlarmPort=ElectricityGridB,AlarmEntry=ACTIVE additionalText="No Electricity Grid Available in Supply B"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=ElectricityGridB,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Fallo Major Equipo DC  A******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=DCMajorA
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorA portId=5
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorA inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=DCMajorA
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorA,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorA,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorA,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorA,AlarmEntry=ACTIVE specificProblem="DC System Major Failure in Supply A"
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorA,AlarmEntry=ACTIVE additionalText="Whole DC System A is on Fail"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=DCMajorA,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Fallo Major Equipo DC  B******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=DCMajorB
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorB portId=6
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorB inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=DCMajorB
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorB,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorB,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorB,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorB,AlarmEntry=ACTIVE specificProblem="DC System Major Failure in Supply B"
setMOAttribute ea1 SDN=0,AlarmPort=DCMajorB,AlarmEntry=ACTIVE additionalText="Whole DC System B is on Fail"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=DCMajorB,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Fallo Menor Equipo DC  A******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=DCMinorA
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorA portId=9
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorA inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=DCMinorA
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorA,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorA,AlarmEntry=ACTIVE perceivedSeverity=Minor
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorA,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorA,AlarmEntry=ACTIVE specificProblem="DC System Minor Failure in Supply A"
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorA,AlarmEntry=ACTIVE additionalText="Circuit Break in A for Protection"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=DCMinorA,AlarmEntry=ACTIVE


!******************************************************;
!*****  Alarm Fallo Menor Equipo DC  B******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=DCMinorB
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorB portId=10
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorB inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=DCMinorB
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorB,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorB,AlarmEntry=ACTIVE perceivedSeverity=Minor
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorB,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorB,AlarmEntry=ACTIVE specificProblem="DC System Minor Failure in Supply B"
setMOAttribute ea1 SDN=0,AlarmPort=DCMinorB,AlarmEntry=ACTIVE additionalText="Circuit Break in B for Protection"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=DCMinorB,AlarmEntry=ACTIVE
!******************************************************;
!*****  Alarm Fallo Distribucion  A******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=DCDistributorA
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA portId=13
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA,AlarmEntry=ACTIVE specificProblem="DC Distributor Failure in Supply A"
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorA,AlarmEntry=ACTIVE additionalText="DC Distributor Failure in Supply A"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=DCDistributorA,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Fallo Distribucion  B******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=DCDistributorB
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB portId=14
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB,AlarmEntry=ACTIVE specificProblem="DC Distributor Failure in Supply B"
setMOAttribute ea1 SDN=0,AlarmPort=DCDistributorB,AlarmEntry=ACTIVE additionalText="DC Distributor Failure in Supply B"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=DCDistributorB,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Interruptor de Bateria A ******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=BatteryA
setMOAttribute ea1 SDN=0,AlarmPort=BatteryA portId=17
setMOAttribute ea1 SDN=0,AlarmPort=BatteryA inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=BatteryA
setMOAttribute ea1 SDN=0,AlarmPort=BatteryA,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=BatteryA,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=BatteryA,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=BatteryA,AlarmEntry=ACTIVE specificProblem="Battery Circuit Break  in A"
setMOAttribute ea1 SDN=0,AlarmPort=BatteryA,AlarmEntry=ACTIVE additionalText="Battery Circuit Break  in A"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=BatteryA,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Interruptor de Bateria B ******;
!******************************************************;
startTransaction ea1
createMO ea1 SDN=0,AlarmPort=BatteryB
setMOAttribute ea1 SDN=0,AlarmPort=BatteryB portId=18
setMOAttribute ea1 SDN=0,AlarmPort=BatteryB inputActive=activeWhenOpen
getMOAttribute ea1 SDN=0,AlarmPort=BatteryB
setMOAttribute ea1 SDN=0,AlarmPort=BatteryB,AlarmEntry=ACTIVE eventType=equipmentAlarm
setMOAttribute ea1 SDN=0,AlarmPort=BatteryB,AlarmEntry=ACTIVE perceivedSeverity=Major
setMOAttribute ea1 SDN=0,AlarmPort=BatteryB,AlarmEntry=ACTIVE probableCause=x733EquipmentMalfunction
setMOAttribute ea1 SDN=0,AlarmPort=BatteryB,AlarmEntry=ACTIVE specificProblem="Battery Circuit Break  in B"
setMOAttribute ea1 SDN=0,AlarmPort=BatteryB,AlarmEntry=ACTIVE additionalText="Battery Circuit Break  in B"
commit ea1
endTransaction ea1
getMOAttribute SDN=0,AlarmPort=BatteryB,AlarmEntry=ACTIVE

!******************************************************;
!*****  Alarm Temperatura  ******;
!******************************************************;
startTransaction e1
createMO e1 SDN=0,OneWireBus=1
setMOAttribute e1 SDN=0,OneWireBus=1 portId=1
commit e1
endTransaction e1
getContainment SDN=0,OneWireBus=1
startTransaction e2
createMO e2 SDN=0,AnalogInputPort=Temp1
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1 depEquipment="SDN=0,OneWireBus=1,OneWireSlave=28-000003372f44;"
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1 portId=1
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1 sensorDescription=1WireTempSensor1
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1 highThreshold=28
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1 lowThreshold=10
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1, AlarmEntry=HIGH probableCause=m3100HighTemperature
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1, AlarmEntry=HIGH specificProblem="High Temperature"
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1, AlarmEntry=HIGH additionalText="High Temperature Level Excedded"
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1, AlarmEntry=LOW probableCause=m3100HighTemperature
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1, AlarmEntry=LOW specificProblem="Low Temperature"
setMOAttribute e2 SDN=0,AnalogInputPort=Temp1, AlarmEntry=LOW additionalText="Low Temperature Level Reached" 
commit e2
endTransaction e2



