Files
sinqSPS/templates/shutter.substitutions

38 lines
1.4 KiB
Plaintext

file "$(sinqSPS_DB)/writebit.db"
{
pattern
{OFFSET, BIT, BIT_NAME , DESC }
{0 , 0 , "OPEN-SHUTTER" , "Opens the Shutter" }
{0 , 1 , "CLOSE-SHUTTER", "Closes the Shutter"}
}
file "$(sinqSPS_DB)/readbit.db"
{
pattern
{OFFSET, BIT, BIT_NAME , ZNAM , ONAM , DESC}
{1 , 0 , "PSYS-OK" , "" , "" , "" }
{1 , 1 , "SHUTTER-READY" , "" , "" , "" }
{1 , 2 , "EMERGENCY-STOP-OFF", "" , "" , "" }
{1 , 3 , "NOT-LOCKED" , "" , "" , "" }
{1 , 4 , "CLOSED" , "Closed" , "Open" , "" }
{1 , 5 , "OPEN" , "Open" , "Closed" , "" }
{1 , 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 , 11 , "PSYS-OK" }
{18 , 17 , "SHUTTER-READY" }
{38 , 17 , "EMERGENCY-STOP" }
{58 , 19 , "BLOCKED" }
{80 , 24 , "BLOCKED-REASON" }
{106 , 14 , "OPEN" }
{122 , 27 , "REMOTE" }
}