Files
sinqSPS/templates/shutter.substitutions

38 lines
1.1 KiB
Plaintext

file "$(sinqSPS_DB)/writebit.db"
{
pattern
{OFFSET, BIT, BIT_NAME }
{0 , 0 , "OPEN-SHUTTER" }
{0 , 1 , "CLOSE-SHUTTER" }
}
file "$(sinqSPS_DB)/readbit.db"
{
pattern
{OFFSET, BIT, BIT_NAME }
{1 , 0 , "PSYS-OK" }
{1 , 1 , "SHUTTER-READY" }
{1 , 2 , "EMERGENCY-STOP-OFF"}
{1 , 3 , "NOT-LOCKED" }
{1 , 4 , "CLOSED" }
{1 , 5 , "OPEN" }
{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 }
{6 , 11 , "PSYS-OK-TXT" }
{20 , 17 , "SHUTTER-READY-TXT" }
{40 , 17 , "EMERGENCY-STOP-TXT" }
{60 , 19 , "BLOCKED-TXT" }
{82 , 24 , "BLOCKED-REASON-TXT" }
{108 , 14 , "OPEN-TXT" }
{124 , 27 , "REMOTE-TXT" }
}