Files
sinqSPS/templates/shutter.substitutions
2024-12-17 09:24:45 +01:00

37 lines
1.0 KiB
Plaintext

file "$(sinqSPS_DB)/writebit.db"
{
pattern
{OFFSET, BIT, BIT_NAME }
{0 , 7 , "OPEN-SHUTTER" }
{1 , 0 , "CLOSE-SHUTTER" }
}
file "$(sinqSPS_DB)/readbit.db"
{
pattern
{OFFSET, BIT, BIT_NAME }
{0 , 0 , "PSYS-OK" }
{0 , 1 , "SHUTTER-READY" }
{0 , 2 , "EMERGENCY-STOP"}
{0 , 3 , "NOT-LOCKED" }
{0 , 4 , "CLOSED" }
{0 , 5 , "OPEN" }
{0 , 6 , "REMOTE-OKAY" }
}
# The way that the strings are currently implemented in the SPS, the first two
# bytes are the maximum length of the string and the size of the current string
# in the register. The epics driver doesn't seem to handle this currently, so
# we add two to the offset to skip these bytes.
file "$(sinqSPS_DB)/readstring.db"
{
pattern
{OFFSET, LENGTH, STRING_NAME }
{4 , 24 , "PSYS-OK-TXT" }
{30 , 22 , "SHUTTER-READY" }
{54 , 30 , "EMERGENCY-STOP" }
{86 , 22 , "NOT-LOCKED" }
{108 , 19 , "OPEN" }
{132 , 32 , "REMOTE-ENABLED" }
}