64 lines
1.2 KiB
Markdown
64 lines
1.2 KiB
Markdown
# ePowerSwitch Midas Frontend
|
|
|
|
Midas frontend that wraps an EPICS ePowerSocket drivers
|
|
|
|
## List of compatible EPICS driver
|
|
|
|
https://gitea.psi.ch/lin-epics-modules/ePowerSwitch/src/branch/master/README.md
|
|
|
|
# How to use
|
|
## Clone & Compile
|
|
|
|
Clone the frontend code
|
|
|
|
```bash
|
|
$ git clone --recurse-submodules -j8 <URL>
|
|
$ cd ./ePowerSwitch_frontend
|
|
```
|
|
|
|
Compile it
|
|
|
|
```bash
|
|
$ mkdir build
|
|
$ cmake -B build
|
|
$ cmake --build build
|
|
```
|
|
|
|
## Run
|
|
|
|
Start it with default name
|
|
```bash
|
|
$ $PWD/build/ePowerSwitchFront
|
|
```
|
|
Start it with specified frontend name and default equipment name
|
|
```bash
|
|
$ $PWD/build/ePowerSwitchFront <frontendName>
|
|
```
|
|
Start it with specified frontend name and equipment name
|
|
```bash
|
|
$ $PWD/build/ePowerSwitchFront <frontendName> <equipmentName>
|
|
```
|
|
|
|
# Features
|
|
|
|
## Controls
|
|
|
|
The frontend exposes for each socket two ODB keys:
|
|
|
|
```
|
|
Socket n requested => indicates the requested state for the socket number n
|
|
Socket n current => indicates the current state of the socket number
|
|
```
|
|
|
|
There are 3 state currently supported:
|
|
- On
|
|
- Off
|
|
- Restart
|
|
|
|
## Dynamic grow / shrink
|
|
|
|
This frontend will detect the number of sockets that EPICS declares.
|
|
It will adapt accordingly. This feature also works at runtime.
|
|
|
|
- By default, all new sockets' states will be assigned to "Off"
|