February 2024, Jan Chrin

Handsome Power Usage and Saving Hierarchy at PROSCAN, HUSH!

About

The HUSH! application initiates energy saving procedures and records the power saved.
Power Saving Accounting is only activated when PROSCAN is in "Produktion" mode as indicated by the enumerated process variable, PROSCAN:OPERATION:STATUS.

The Repository

The application comprises two components:

GUI, Control Tab

Main panel for use by operators to place the quadruples into their standby state and to restore them to their nominal operating values.

Operator Panel

Ramp Delay: Can take on values from 0.0s to 0.2s.
Defines the delay between setting individual quadruples when initiating standby/restore. A value of 0.0s means that the quadruple currents are set simultaneously.

Expert Panel

Selecting the Dry Run option disables setting values to epics process variables. Used for testing.

Saving Overview

Displays a number of parameters for a given section related to power saving accounting.
Table description
Initial Power (kw): The nominal summed power when quadruples are in the usual powered-on state.
Power (kw): The summed current power,
Saving (MWh): The running power in the current saving period.
Time in Saving Mode:   Time elapsed in current saving period (days hours:minutes:seconds).
Tot Saved (MWh): The accumulated power saved so far in the calendar year.

Magnet Tab Panel

Table of current and power values for quadruples within each section: G1, SH, G2, O2, PIF, G3. (Section B1B2 has only readback capabilities).
Quadruples may be set to their standby values or restored to their initial values. These action buttons are only enabled if certan conditions are met, i.e, the corresponding beam disrupter is closed, "Geschlossen" and the corresponding access writes are granted as controlled by either the global Mastership or the relevant section Submastership
Best practice dictates that "Update" be pressed before "Standby" is initiated. This updates the magnet current values in the "Init. Value" column, which provides the 'set' values for an eventual "Restore" action. The "Init Value" of the Power table is likewise updated. The updated sum of initial power values is then propagated to the "initial" column in the "Savings Overview" sub-panel for use in the energy saving accounting. An "Update" in either the Current or Power table will automatically update the other. Note that the "Update" button is disenabled when the section is in "Standby" mode and energy saving is activated.
If for some haphazard reason the Initial Power Value appearing in the "Savings Overview" is evidently wrong for a given section during energy saving (and for which the "Update" button is disenabled), e.g., it is less than the current power usage as shown in the "Power" column, it can be ovewritten to its default value from the "Last Power" sub-panel within the "IOC" tab widget.
The three light blue background coloured device entries in the magnet table indicate the quadruples that are monitored within the IOC to determine the "Standby/Restore" state of the section.

Mastership Table

Displays the current access rights for the various sections.
Possible enumerated values are: UNDEF (0), FREI (1), SUBMASTERSHIP (2), MASTERSHIP (3), FEHLER(10). SUBMASTERSHIP and MASTERSHIP mode grants control to the beamline magnets and the entire accelerator complex magnets, respectively. The enabling/disabling of the "Restore" and "Standby" buttons in the magnet sub-panel follow suite.

GUI, IOC Tab

The panel displays the status of the State Machine (SM) operating with the IOC, and further allows certain interactions. The SM is responsible for the Power Saving accounting. It is essentially decoupled from the HLA. Should quadruples be set from outside the HLA, the SM will capture the change and act accordingly.

State Machine

Displays the status of the state machine sequencer.
Reset: SEQ-ONOFF  Restarts the SM. Press and hold button for at least 2 seconds to ensure the initial "OFF" instruction is captured by the SM. If the section is in Energy Saving mode, this action transfers the currently saved amount from "Saving" to "Tot Saving", and restarts the "Time in Saving Mode" from zero.
SM:SEQ-ONOFF Status ("OFF", "ON") of the State Machine. Should always be "ON".
Sequencer State   SEQ-STATE See below for the enumerated values. When in energy saving mode, this parameter will oscillate between the "READY_FOR_EVENT" and "ALLOW_ENERGY_SAVING" states. Otherwise it will display one of a number conditions for which Standby is not enabled. During normal operation where magnets are at their nominal values, i.e., above their standby reference values, this will display "MAGNETS_ABOVE_REF".
ON or Standby STATE Displays "STANDBY" when energy saving accounting is enabled, else ON (energy saving conditions have not been met)

Enumerated values for SEQ-STATE (not all states may have necessarily been implemented):
'FEEDBACK_OFF', 'FEEDBACK_ON', 'READY_FOR_EVENT',
'SHIFT_TYPE_OK', 'SHIFT_TYPE_NOT_APPLICABLE',
'I_BELOW_THRESHOLD', 'I_ABOVE_THRESHOLD',
'MAGNETS_BELOW_REF', 'MAGNETS_ABOVE_REF',
'SOURCEI_BELOW_THRESHOLD', 'SOURCEI_ABOVE_THRESHOLD',
'BEAM_PATH_OPEN', 'BEAM_PATH_CLOSED',
'CHANNELS_DISCONNECTED', 'CHANNELS_CONNECTED',
'ALLOW_ENERGY_SAVING'

Hush Accounting

The accounting of the energy saved for a given is year is to be recorded. At the end of the calendar year, the process variables holding the power saved values are to be reset to zero. This is accomplished through the "Reset Account" button. This action is password protected (HUSH!) The energy saved is also recorded in the elogbook.

Last Power

This sub-panel allows the expert user to reset the Initial Power in "Savings Overview" for a given section to its default value, should such a need ever haphazardly arise while the section is in Energy Saving mode, and for which the "Update" button in the Magnet panel is disenabled.

HUSH! Image

  Inspired by Dada Ante Portas, arguably Switzerland's greatest Pop/Rock band! Give 'em a listen. Their music and lyrics are awesome!