#
# Used by higher level software to determine how to use PVs associated
# with the device.  This record is manually set by operations when the 
# state of the device changes.
# For example: Ops thinks the device is broken in some way.  
# They write an Artemis and put the device in MAINTENANCE.  
# The hardware guys fix the problem, solve the Artemis and put the 
# device in CHECKOUT.  Ops decides whether the device is working and 
# either marks it ONLINE or back to MAINTENANCE.
#
record(mbbo, "ACCL:LI29:0:P_ACCESS")
{
  field(DESC, "ACCL:LI29:0:P_ Usage Mode")
  field(PINI, "YES")
# Online - this device is operational, working normally, and ready to 
# be used by higher level software.
  field(ZRST, "Online")
  field(ZRSV, "NO_ALARM")
# Maintenance - this device is in a maintenance state (being worked on by 
# controls) where maintainers can see how it is performing, but should not 
# be used by most higher level software.
  field(ONST, "Maintenance")
  field(ONSV, "MINOR")
# Checkout - This device has had maintenance work done and is back in 
# production for 'check out' purposes by operations before it's released 
# for normal use.  Some higher level software may use it.
  field(TWST, "Checkout")
  field(TWSV, "MINOR")
# Offline - device is broken and should not be used by any higher level
# software.
  field(THST, "Offline")
  field(THSV, "MAJOR")
}
#
# Used by higher level software to determine how to use PVs associated
# with the device.  This record is manually set by operations when the 
# state of the device changes.
# For example: Ops thinks the device is broken in some way.  
# They write an Artemis and put the device in MAINTENANCE.  
# The hardware guys fix the problem, solve the Artemis and put the 
# device in CHECKOUT.  Ops decides whether the device is working and 
# either marks it ONLINE or back to MAINTENANCE.
#
record(mbbo, "PCAV:LI29:100:P_ACCESS")
{
  field(DESC, "PCAV:LI29:100:P_ Usage Mode")
  field(PINI, "YES")
# Online - this device is operational, working normally, and ready to 
# be used by higher level software.
  field(ZRST, "Online")
  field(ZRSV, "NO_ALARM")
# Maintenance - this device is in a maintenance state (being worked on by 
# controls) where maintainers can see how it is performing, but should not 
# be used by most higher level software.
  field(ONST, "Maintenance")
  field(ONSV, "MINOR")
# Checkout - This device has had maintenance work done and is back in 
# production for 'check out' purposes by operations before it's released 
# for normal use.  Some higher level software may use it.
  field(TWST, "Checkout")
  field(TWSV, "MINOR")
# Offline - device is broken and should not be used by any higher level
# software.
  field(THST, "Offline")
  field(THSV, "MAJOR")
}
