Merge branch 'master' of gitlab.psi.ch-samenv:samenv/sea
This commit is contained in:
@ -123,7 +123,7 @@ proc stdConfig::ccu4 {{title CCU4} args} {
|
|||||||
|
|
||||||
node hav out
|
node hav out
|
||||||
prop newline 1
|
prop newline 1
|
||||||
prop enum 1
|
prop enum none,int,ext
|
||||||
prop label "He lev. available"
|
prop label "He lev. available"
|
||||||
|
|
||||||
node h upd -secop=helev
|
node h upd -secop=helev
|
||||||
|
@ -143,6 +143,9 @@ proc ccu4ext::fillExt {type} {
|
|||||||
} else {
|
} else {
|
||||||
set valve [sctval /cc/hv]
|
set valve [sctval /cc/hv]
|
||||||
set auto [sctval /cc/ha]
|
set auto [sctval /cc/ha]
|
||||||
|
if {[sctval /cc/hav] != 2} { # must be on 2=ext
|
||||||
|
hset /cc/hav 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
set errtxt ""
|
set errtxt ""
|
||||||
set sm [expr [DoubleTime] > [silent 0 sct change_time] + 10]
|
set sm [expr [DoubleTime] > [silent 0 sct change_time] + 10]
|
||||||
|
@ -12,7 +12,9 @@ proc stdConfig::hcp {} {
|
|||||||
prop update hcp::update
|
prop update hcp::update
|
||||||
prop complete hcp::complete
|
prop complete hcp::complete
|
||||||
|
|
||||||
obj hcp rd
|
obj hcp wr
|
||||||
|
prop check hcp::setMain
|
||||||
|
prop write hcp::writeMain
|
||||||
prop reg M0
|
prop reg M0
|
||||||
kids "high voltage" {
|
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 {} {
|
proc hcp::read {} {
|
||||||
sct send ">[sct reg]?"
|
sct send ">[sct reg]?"
|
||||||
return update
|
return update
|
||||||
|
@ -247,8 +247,13 @@ proc magfield::run {} {
|
|||||||
if {[sct phase] != 0 || abs($tf - $pf) > $tol || $pm != 1} {
|
if {[sct phase] != 0 || abs($tf - $pf) > $tol || $pm != 1} {
|
||||||
# we have to go to persistent field
|
# we have to go to persistent field
|
||||||
if {![sct leads_at_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} {
|
if {[sct phase] < 2} {
|
||||||
sct phase 2 ;# ramping leads to field
|
sct phase 2 ;# ramping leads to field
|
||||||
|
sct start_phase2 $now
|
||||||
msg "ramp to persistent field $pf"
|
msg "ramp to persistent field $pf"
|
||||||
lassign [check_field $pf] ok
|
lassign [check_field $pf] ok
|
||||||
if {!$ok} {
|
if {!$ok} {
|
||||||
|
@ -15,6 +15,9 @@ makenv tt -driver [lsdriver] {
|
|||||||
tt set/limit 310
|
tt set/limit 310
|
||||||
|
|
||||||
makeCCU4 ma10 nv_release_blocked he_ilm
|
makeCCU4 ma10 nv_release_blocked he_ilm
|
||||||
|
hefill minfillminutes 20
|
||||||
|
hefill maxfillminutes 60
|
||||||
|
|
||||||
hupdate /nv/set 1.8
|
hupdate /nv/set 1.8
|
||||||
|
|
||||||
makenv mf -driver ipsmag -port ma10-ts:3001 -controller _mf
|
makenv mf -driver ipsmag -port ma10-ts:3001 -controller _mf
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
stickDesc = standard MA10 stick
|
stickDesc = standard MA10 stick
|
||||||
|
|
||||||
#stick_sensors x88932 code=22000 #until May 2023
|
#stick_sensors x88932 code=22000 #until May 2023
|
||||||
stick_sensors x154359 none
|
stick_sensors x154359 undefined
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
stickDesc = uniax press stick for Petra III
|
stickDesc = uniax press stick for Petra III
|
||||||
|
|
||||||
stick_sensors x132254 none
|
stick_sensors x132254 undefined
|
||||||
|
Reference in New Issue
Block a user