#==============================================================
#
#  Abs:  Initalize MPS Link Knode Pvs 
#
#  Name: init_db.cmd
#
#  Rem:  Upon entry the following macros must be defined.
#        Note that all other environment variables
#        used within this file are defined in envPaths.
#
#         IOC_NAME     - IOC device name      ex) SIOC:BC1B:sp01
#         SLOT         -
#         L2MPS_PREFIX -
#
#         WARNING!!!
#         The TOP environment variable is defined in
#         envPaths, however in development (afs), the
#         definitionmay include "slac.stanford.edu", which is
#         not understood by linuxRT. However, when "cram" is used
#         to release to production,"slac" is substituted for
#         "slac.stanford.edu", which fixes the problem.
#
#  Facility:  EED Shared Platform Controls
#
#  Auth: 15-Sep-2021, Kyle Leleux     (kleleux)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#--------------------------------------------------------------
#  Mod:
#        17-Oct-2022, K. Luchini      (LUCHINI):
#         extract from atca_receiver.cmd
#
#================================================================
#

# After call to restore thresholds, clear lcls1 timeout so MPS is functional
dbpf $(IOC_NAME):$(SLOT):TCRB0:OUTPUTCONFIG BP
dbpf $(IOC_NAME):$(SLOT):TCRB1:OUTPUTCONFIG BP
dbpf $(IOC_NAME):$(SLOT):TCRB2:OUTPUTCONFIG BP
dbpf $(IOC_NAME):$(SLOT):TCRB3:OUTPUTCONFIG BP
dbpf $(L2MPS_PREFIX):THR_LOADED 1
dbpf $(L2MPS_PREFIX):MPS_EN 1

# End of file

