soederqvist_a 7cfde4570f
Test And Build / Build (push) Successful in 4s
Improvements to shutter
Based on work with NEUTRA N-Shutter or experiment shutter.

Add error for retries, don't retry unless status is ok

Shutter: Move status FLNK to last string msg

shutter: reset busy when moves 0->1
2026-04-13 10:54:25 +02:00
2025-07-04 14:43:10 +02:00
2026-04-13 10:54:25 +02:00
2026-04-13 10:54:25 +02:00
2026-04-13 10:54:25 +02:00
2025-04-24 17:41:20 +02:00

sinqSPS

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 for communication with the Siemens 7th Generation PLC via the Fetch-Write Protocol.

Shutter Module

This script allows the shutter at the instrument to be opened and closed as well as providing access to many status bits and messages.

epicsEnvSet("INSTR", "SQ:INSTRUMENT:") # can also be set in runScript call

require sinqSPS
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.

A simplified status value and status message is created from these fields via the logic in shutter.db.

The corresponding nicos device is located at nicos_sinq/devices/epics/shutter.py.

S
Description
SPS Templates for interfacing with standardised "modules" on SINQ SPS systems
Readme 155 KiB
Languages
Batchfile 45.9%
Python 38.7%
Makefile 11.5%
Shell 3.9%