Merge branch 'master' of gitlab.psi.ch-samenv:samenv/sea

This commit is contained in:
l_samenv
2023-09-14 11:00:44 +02:00
7 changed files with 25 additions and 4 deletions

View File

@ -123,7 +123,7 @@ proc stdConfig::ccu4 {{title CCU4} args} {
node hav out
prop newline 1
prop enum 1
prop enum none,int,ext
prop label "He lev. available"
node h upd -secop=helev

View File

@ -143,6 +143,9 @@ proc ccu4ext::fillExt {type} {
} else {
set valve [sctval /cc/hv]
set auto [sctval /cc/ha]
if {[sctval /cc/hav] != 2} { # must be on 2=ext
hset /cc/hav 2
}
}
set errtxt ""
set sm [expr [DoubleTime] > [silent 0 sct change_time] + 10]

View File

@ -12,7 +12,9 @@ proc stdConfig::hcp {} {
prop update hcp::update
prop complete hcp::complete
obj hcp rd
obj hcp wr
prop check hcp::setMain
prop write hcp::writeMain
prop reg M0
kids "high voltage" {
@ -53,6 +55,14 @@ proc stdConfig::hcp {} {
}
proc hcp::setMain {} {
hset [sct]/set [sct target]
}
proc hcp::writeMain {} {
return hcp::read
}
proc hcp::read {} {
sct send ">[sct reg]?"
return update

View File

@ -247,8 +247,13 @@ proc magfield::run {} {
if {[sct phase] != 0 || abs($tf - $pf) > $tol || $pm != 1} {
# we have to go to persistent field
if {![sct leads_at_field]} {
if {[sct phase] == 2 && $now > [silent $now sct start_phase2] + 300} {
sct phase 1
clientlog "timeout ramping to persistent field -> redo"
}
if {[sct phase] < 2} {
sct phase 2 ;# ramping leads to field
sct start_phase2 $now
msg "ramp to persistent field $pf"
lassign [check_field $pf] ok
if {!$ok} {

View File

@ -15,6 +15,9 @@ makenv tt -driver [lsdriver] {
tt set/limit 310
makeCCU4 ma10 nv_release_blocked he_ilm
hefill minfillminutes 20
hefill maxfillminutes 60
hupdate /nv/set 1.8
makenv mf -driver ipsmag -port ma10-ts:3001 -controller _mf

View File

@ -1,4 +1,4 @@
stickDesc = standard MA10 stick
#stick_sensors x88932 code=22000 #until May 2023
stick_sensors x154359 none
stick_sensors x154359 undefined

View File

@ -1,3 +1,3 @@
stickDesc = uniax press stick for Petra III
stick_sensors x132254 none
stick_sensors x132254 undefined