niagara-ax/stations/demo/px/AlarmDemo.px
2026-03-17 13:31:18 -07:00

119 lines
5.3 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<!-- Niagara Presentation XML -->
<px version="1.0" media="workbench:WbPxMedia">
<import>
<module name="alarm"/>
<module name="baja"/>
<module name="bajaui"/>
<module name="converters"/>
<module name="gx"/>
<module name="kitPx"/>
<module name="workbench"/>
</import>
<content>
<BorderPane padding="0.0" border="1.0 solid black" fill="linearGradient( stop(0.0% #004b6981) stop(0.0% #384b5a) stop(50.0% #4b6981) stop(100.0% #384b5a) )">
<EdgePane name="content">
<BorderPane name="left" margin="10.0" padding="0.0" border="1.0 solid black" fill="#283540">
<CanvasPane name="content" viewSize="300.0,500.0" valign="top">
<Label layout="40.0,240.0,120.0,20.0" text="Alarm Low Limit:" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<GenericFieldEditor layout="160.0,240.0,100.0,20.0">
<WbFieldEditorBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest/OutOfRangeAlarmExt/offnormalAlgorithm/lowLimit"/>
</GenericFieldEditor>
<Label layout="40.0,210.0,120.0,20.0" text="Alarm High Limit:" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<GenericFieldEditor layout="160.0,210.0,100.0,20.0">
<WbFieldEditorBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest/OutOfRangeAlarmExt/offnormalAlgorithm/highLimit"/>
</GenericFieldEditor>
<BoundLabel layout="0.0,30.0,300.0,20.0" font="bold 11.0pt Tahoma" foreground="white" halign="left">
<BoundLabelBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest" statusEffect="none">
<ObjectToString name="text" format="Current Value: %.%"/>
</BoundLabelBinding>
</BoundLabel>
<SaveButton layout="95.0,280.0,90.0,30.0" image="module://icons/x16/save.png"/>
<Label layout="10.0,100.0,20.0,20.0" text="-50" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<Label layout="265.0,100.0,20.0,20.0" text="150" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<Rect fill="black" stroke="black" geom="0.0,0.0,300.0,50.0"/>
<Label layout="15.0,5.0,215.0,40.0" text="Alarm Generator" font="26.0pt Tahoma" foreground="white" halign="left"/>
<Bargraph layout="20.0,75.0,260.0,25.0" min="-50.0" max="150.0" valueVisible="false" fill="#018200" foreground="null" background="#a80000" orientation="horizontal" scaleVisible="false">
<ValueBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest/OutOfRangeAlarmExt/offnormalAlgorithm/highLimit" summary="HighLimit = %.%">
<INumericToNumber name="value"/>
</ValueBinding>
</Bargraph>
<Bargraph layout="20.0,75.0,260.0,25.0" min="-50.0" max="150.0" valueVisible="false" fill="#a80000" foreground="null" orientation="horizontal" scaleVisible="false">
<ValueBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest/OutOfRangeAlarmExt/offnormalAlgorithm/lowLimit" summary="LowLimit = %.%">
<INumericToNumber name="value"/>
</ValueBinding>
</Bargraph>
<Slider layout="20.0,70.0,260.0,20.0" min="-50.0" max="150.0" value="-16.0">
<SetPointBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest/fallback/value" widgetEvent="actionPerformed" widgetProperty="value"/>
</Slider>
<Label layout="80.0,100.0,20.0,20.0" text="0" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<Label layout="140.0,105.0,20.0,20.0" text="50" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<Label layout="205.0,105.0,20.0,20.0" text="100" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<Label layout="40.0,150.0,120.0,20.0" text="Current Value:" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
<Label layout="160.0,150.0,100.0,20.0" foreground="white" halign="left">
<ValueBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest/out">
<ObjectToString name="text" format="%value%"/>
</ValueBinding>
</Label>
<Label layout="160.0,180.0,130.0,20.0" foreground="white" halign="left">
<ValueBinding ord="station:|slot:/PxHome/Alarm/AlarmDemo/AlarmTest/out">
<ObjectToString name="text" format="{%status.flagsToString%}"/>
<IStatusToSimple name="background">
<Brush name="disabled" value="#dddddd"/>
<Brush name="fault" value="#ffaa26"/>
<Brush name="down" value="yellow"/>
<Brush name="alarm" value="red"/>
<Brush name="stale" value="#d6cbae"/>
<Brush name="overridden" value="#d88aff"/>
<Brush name="nullStatus" value="null"/>
<Brush name="unackedAlarm" value="null"/>
</IStatusToSimple>
</ValueBinding>
</Label>
<Label layout="40.0,180.0,120.0,20.0" text="Current Status:" font="bold 11.0pt Tahoma" foreground="white" halign="left"/>
</CanvasPane>
</BorderPane>
<BorderPane name="center" padding="10.0 10.0 10.0 0.0">
<BorderPane name="content" padding="0.0" border="1.0 solid black" fill="#cccccc">
<AlarmConsole name="content">
<WbViewBinding ord="station:|slot:/Services/AlarmService/ConsoleRecipient"/>
</AlarmConsole>
</BorderPane>
</BorderPane>
</EdgePane>
</BorderPane>
</content>
</px>