use INSTR instead of PREFIX to make the same as sinqMotor
This commit is contained in:
20
README.md
20
README.md
@ -4,13 +4,25 @@ A collection of standardised SPS databases (or "modules") for interacting with
|
||||
the control unit itself and other external hardware.
|
||||
|
||||
This makes use of the
|
||||
[s7plcFW Epics driver](https://git.psi.ch/epics_driver_modules/s7plcFW) for
|
||||
[s7plcFW Epics driver](https://gitea.psi.ch/lin-epics-modules/sinqS7plcFW) for
|
||||
communication with the Siemens 7th Generation PLC via the Fetch-Write Protocol.
|
||||
|
||||
# Shutter Module
|
||||
|
||||
```
|
||||
epicsEnvSet("PREFIX", "SQ:INSTRUMENT") # can also be set in runScript call
|
||||
This script allows the shutter at the instrument to be opened and closed as
|
||||
well as providing access to many status bits and messages.
|
||||
|
||||
runScript "$(sinqSPS_DIR)shutter.cmd" "SPS_IP=172.28.101.26, FETCH_DB=2000"
|
||||
```
|
||||
epicsEnvSet("INSTR", "SQ:INSTRUMENT:") # can also be set in runScript call
|
||||
|
||||
runScript("$(sinqSPS_DIR)shutter.cmd","SPS_IP=172.28.101.26,FETCH_DB=210")
|
||||
```
|
||||
|
||||
The directly exposed database fields can be found in
|
||||
[shutter.substitutions](./templates/shutter.substitutions).
|
||||
|
||||
A simplified status value and status message is created from these fields via
|
||||
the logic in [shutter.db](./db/shutter.db).
|
||||
|
||||
The corresponding nicos device is located at
|
||||
[nicos\_sinq/devices/epics/shutter.py](https://gitea.psi.ch/lin-instrument-computers/Nicos/src/branch/release-3.12/nicos_sinq/devices/epics/shutter.py).
|
||||
|
Reference in New Issue
Block a user