Skip to content

Commit

Permalink
Merge pull request #1056 from lnls-sirius/add-llrf-reset-orbintkl
Browse files Browse the repository at this point in the history
orbintlk.FIX: send LLRF reset after manual interlock when in dry run
  • Loading branch information
anacso17 authored Dec 11, 2023
2 parents 803d5e7 + 060664b commit ecd6b6a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions siriuspy/siriuspy/orbintlk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def __init__(self, tests=True):
devname=_ASLLRF.DEVICES.SI,
props2init=[
'ILK:BEAM:TRIP:S', 'ILK:BEAM:TRIP', 'FASTINLK-MON',
'ILK:MAN:S', 'ILK:MAN', 'IntlkSet-Cmd',
'ILK:MAN:S', 'ILK:MAN', 'IntlkSet-Cmd', 'Reset-Cmd',
])
self._llrf.pv_object('FASTINLK-MON').auto_monitor = True

Expand Down Expand Up @@ -1470,6 +1470,12 @@ def _handle_reliability_failure(self, is_failure=True):
self._llrf['IntlkSet-Cmd'] = 1
_time.sleep(1)
self._llrf['IntlkSet-Cmd'] = 0
if self._is_dry_run:
# wait a little and rearming FDL acquisition
_time.sleep(self._const.DEF_TIME2WAIT_INTLKREARM)
self._llrf['Reset-Cmd'] = 1
_time.sleep(1)
self._llrf['Reset-Cmd'] = 0

# --- device lock methods ---

Expand Down Expand Up @@ -1537,7 +1543,7 @@ def _start_lock_thread(
self, device, propty_sp, desired_value, pvname, value):
if self._lock_suspend:
return

# do not try to lock devices that are not in list of monitored devices
devname = _PVName(pvname).device_name
if devname not in self._ti_mon_devs and \
Expand Down

0 comments on commit ecd6b6a

Please sign in to comment.