TOP=../..
include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE

#----------------------------------------------------
#  Optimization of db files using dbst (DEFAULT: NO)
#RESTORES_OPT = YES

#----------------------------------------------------
# Create and install (or just install) into <top>/db
# databases, templates, substitutions like this

#Other
#############################################
RESTORES += plcAdmin.db
RESTORES += iocAdmin.db
RESTORES += eip_stat.db
RESTORES += plcAdminControlLogix-cw.template
RESTORES += plcAdminControlLogix-alh.template
RESTORES += plcAdminControlLogix-archiver.template

#############################################
#Archiver Configs

RESTORE += vac_plc_interlockin-archiver.template
RESTORES += vac_plc_digitalout_momentary-archiver.template


# Gamma MPC/MPCe Pump Controller (Ion Pumps)
RESTORES += vac_gammampc_plc-archiver.template
#RESTORES += gammampc.proto.db
RESTORES += vac_gammampc_serial_controller-archiver.template
RESTORES += vac_gammampc_serial_pump-archiver.template
RESTORES += vac_gammampc_serial_setpoint-archiver.template
#RESTORES += vac_pumps_oldfw_serial.db

# MKS 937a Gauge Controller (Cold Cathode and Pirani Gauges)
RESTORES += vac_mks937a_plc_cc-archiver.template
RESTORES += vac_mks937a_plc_pr-archiver.template
RESTORES += vac_mks937a_plc_ccpr-archiver.template
RESTORES += vac_mks937a_plc_ccpr_analogonly-archiver.template
#RESTORES += vac_gauges_ccccprpr_plc.db
#RESTORES += vac_gauges_ccccprpr_serial.db
#RESTORES += mks937a.proto.db
RESTORES += vac_mks937a_serial_cc-archiver.template
RESTORES += vac_mks937a_serial_pr-archiver.template

# MKS 937b Gauge Controller (Cold Cathode, Pirani Gauges and CM)
RESTORES += vac_mks937b_plc_cc-archiver.template
RESTORES += vac_mks937b_plc_pr-archiver.template
RESTORES += vac_mks937b_plc_ccpr-archiver.template
RESTORES += vac_mks937b_serial_cc-archiver.template
RESTORES += vac_mks937b_serial_cm-archiver.template
RESTORES += vac_mks937b_serial_pr-archiver.template
RESTORES += vac_mks937b_serial_vgxx-archiver.template

#Varian V81 Turbo Pump
RESTORES += vac_varianturbo_serial-archiver.template

#Agilent Turbo Pump
RESTORES += vac_agilentturbo_serial-archiver.template
RESTORES += vac_agilentturbo_serial-archiver.template
RESTORES += vac_agilentturbo_serial-cw.template

# MKS PDR2000
RESTORES += vac_mkspdr2000-archiver.template
#RESTORES += mkspdr2000.proto.db

# MKS PR4000
RESTORES += vac_mkspr4000-archiver.template
#RESTORES += mkspr4000.proto.db

# Granville-Philips 307 Gauge Controller (Hot Filament and Convectron Gauges)
RESTORES += vac_gp307_plc_cp-archiver.template
RESTORES += vac_gp307_plc_hf-archiver.template

# SLAC Valve Controller (Pneumatic Valves)
RESTORES += vac_slacvvc_plc_master-archiver.template
#RESTORES += vac_slacvvc_plc_masterhalf-archiver.template
#RESTORES += vac_slacvvc_plc_mastersimulator-archiver.template
RESTORES += vac_slacvvc_plc_slave-archiver.template

# Manual Valve
RESTORES += vac_manualvalve_plc-archiver.template

# SLAC Fast Valve
RESTORES += vac_slacvvfs_plc-archiver.template

# Allen-Bradley ControlLogix PLC (Miscellaneous Inputs and Outputs)
RESTORES += vac_plc_analogin-archiver.template
RESTORES += vac_plc_digitalin-archiver.template
RESTORES += vac_plc_digitalout-archiver.template
RESTORES += vac_plc_digitalout_momentary-archiver.template
RESTORES += vac_plc_interlockin-archiver.template
RESTORES += vac_plc_heartbeat-archiver.template
RESTORES += vac_plc_status-archiver.template

# AsynRecord
RESTORES += vac_asynRecord-archiver.template




#############################################
#Alarm Handler Configs

RESTORES += vac_plc_interlockin-alh.template
RESTORES += vac_plc_digitalout_momentary-alh.template


# Gamma MPC/MPCe Pump Controller (Ion Pumps)
RESTORES += vac_gammampc_plc-alh.template
#RESTORES += gammampc.proto.db
#RESTORES += vac_gammampc_serial_controller-alh.template
#RESTORES += vac_gammampc_serial_pump-alh.template
#RESTORES += vac_gammampc_serial_setpoint-alh.template
#RESTORES += vac_pumps_oldfw_serial.db

# MKS 937a Gauge Controller (Cold Cathode and Pirani Gauges)
RESTORES += vac_mks937a_plc_cc-alh.template
RESTORES += vac_mks937a_plc_pr-alh.template
RESTORES += vac_mks937a_plc_ccpr-alh.template
RESTORES += vac_mks937a_plc_ccpr_analogonly-alh.template
#RESTORES += vac_gauges_ccccprpr_plc.db
#RESTORES += vac_gauges_ccccprpr_serial.db
#RESTORES += mks937a.proto.db
RESTORES += vac_mks937a_serial_cc-alh.template
RESTORES += vac_mks937a_serial_pr-alh.template

# MKS 937b Gauge Controller (Cold Cathode, Pirani Gauges and CM)
RESTORES += vac_mks937b_plc_cc-alh.template
RESTORES += vac_mks937b_plc_pr-alh.template
RESTORES += vac_mks937b_plc_ccpr-alh.template
RESTORES += vac_mks937b_serial_pr-alh.template
RESTORES += vac_mks937b_serial_vgxx-alh.template
RESTORES += vac_mks937b_serial_cc-alh.template
RESTORES += vac_mks937b_serial_cm-alh.template

#Varian V81 Turbo Pump
RESTORES += vac_varianturbo_serial-alh.template

#Agilent Turbo Pump
RESTORES += vac_agilentturbo_serial-alh.template



# MKS PDR2000
RESTORES += vac_mkspdr2000-alh.template
#RESTORES += mkspdr2000.proto.db

# MKS PR4000
RESTORES += vac_mkspr4000-alh.template
#RESTORES += mkspr4000.proto.db

# Granville-Philips 307 Gauge Controller (Hot Filament and Convectron Gauges)
RESTORES += vac_gp307_plc_cp-alh.template
RESTORES += vac_gp307_plc_hf-alh.template

# SLAC Valve Controller (Pneumatic Valves)
RESTORES += vac_slacvvc_plc_master-alh.template
#RESTORES += vac_slacvvc_plc_masterhalf-alh.template
#RESTORES += vac_slacvvc_plc_mastersimulator-alh.template
RESTORES += vac_slacvvc_plc_slave-alh.template

# Manual Valve
RESTORES += vac_manualvalve_plc-alh.template

# SLAC Fast Valve
RESTORES += vac_slacvvfs_plc-alh.template

# Allen-Bradley ControlLogix PLC (Miscellaneous Inputs and Outputs)
#RESTORES += vac_plc_analogin-alh.template
RESTORES += vac_plc_digitalin-alh.template
#RESTORES += vac_plc_digitalout-alh.template
#RESTORES += vac_plc_digitalout_momentary-alh.template
#RESTORES += vac_plc_interlockin-alh.template
#RESTORES += vac_plc_heartbeat-alh.template
#RESTORES += vac_plc_status-alh.template

# AsynRecord
#RESTORES += vac_asynRecord-alh.template




#############################################
#Channel Watcher Configs

RESTORES += vac_plc_interlockin-cw.template
RESTORES += vac_plc_digitalout_momentary-cw.template

# Gamma MPC/MPCe Pump Controller (Ion Pumps)
RESTORES += vac_gammampc_plc-cw.template
#RESTORES += gammampc.proto.db
#RESTORES += vac_gammampc_serial_controller-cw.template
#RESTORES += vac_gammampc_serial_pump-cw.template
#RESTORES += vac_gammampc_serial_setpoint-cw.template
#RESTORES += vac_pumps_oldfw_serial.db

# MKS 937a Gauge Controller (Cold Cathode and Pirani Gauges)
RESTORES += vac_mks937a_plc_cc-cw.template
RESTORES += vac_mks937a_plc_pr-cw.template
RESTORES += vac_mks937a_plc_ccpr-cw.template
RESTORES += vac_mks937a_plc_ccpr_analogonly-cw.template
#RESTORES += vac_gauges_ccccprpr_plc.db
#RESTORES += vac_gauges_ccccprpr_serial.db
#RESTORES += mks937a.proto.db
RESTORES += vac_mks937a_serial_cc-cw.template
RESTORES += vac_mks937a_serial_pr-cw.template

# MKS 937b Gauge Controller (Cold Cathode, Pirani Gauges and CM)
RESTORES += vac_mks937b_plc_cc-cw.template
RESTORES += vac_mks937b_plc_pr-cw.template
RESTORES += vac_mks937b_plc_ccpr-cw.template
RESTORES += vac_mks937b_serial_pr-cw.template
RESTORES += vac_mks937b_serial_vgxx-cw.template
RESTORES += vac_mks937b_serial_cc-cw.template
RESTORES += vac_mks937b_serial_cm-cw.template

#Varian V81 Turbo Pump
RESTORES += vac_varianturbo_serial-cw.template

#Agilent Turbo Pump
RESTORES += vac_agilentturbo_serial-cw.template


# MKS PDR2000
#RESTORES += vac_mkspdr2000-cw.template
#RESTORES += mkspdr2000.proto.db

# MKS PR4000
#RESTORES += vac_mkspr4000-cw.template
#RESTORES += mkspr4000.proto.db

# Granville-Philips 307 Gauge Controller (Hot Filament and Convectron Gauges)
#RESTORES += vac_gp307_plc_cp-cw.template
#RESTORES += vac_gp307_plc_hf-cw.template

# SLAC Valve Controller (Pneumatic Valves)
RESTORES += vac_slacvvc_plc_master-cw.template
#RESTORES += vac_slacvvc_plc_masterhalf-cw.template
#RESTORES += vac_slacvvc_plc_mastersimulator-cw.template
RESTORES += vac_slacvvc_plc_slave-cw.template

# Manual Valve
RESTORES += vac_manualvalve_plc-cw.template

# SLAC Fast Valve
RESTORES += vac_slacvvfs_plc-cw.template

# Allen-Bradley ControlLogix PLC (Miscellaneous Inputs and Outputs)
#RESTORES += vac_plc_analogin-cw.template
RESTORES += vac_plc_digitalin-cw.template
#RESTORES += vac_plc_digitalout-cw.template
#RESTORES += vac_plc_digitalout_momentary-cw.template
#RESTORES += vac_plc_interlockin-cw.template
#RESTORES += vac_plc_heartbeat-cw.template
#RESTORES += vac_plc_status-cw.template

# AsynRecord
#RESTORES += vac_asynRecord-cw.template





#############################################
#Archiver Configs
# SLAC Valve Controller (Pneumatic Valves)
#RESTORES += vac_slacvvc_plc_master-archiver.template
#RESTORES += vac_slacvvc_plc_masterhalf-archiver.template
#RESTORES += vac_slacvvc_plc_mastersimulator-archiver.template
#RESTORES += vac_slacvvc_plc_slave-archiver.template



#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# <anyname>_template = <templatename>

include $(TOP)/configure/RULES
include $(TOP)/configure/RULES.Restore
#----------------------------------------
#  ADD RULES AFTER THIS LINE

