Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-evrisland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESS EPICS Environment
wrappers
e3-evrisland
Commits
4cede8f7
Commit
4cede8f7
authored
3 years ago
by
Gabriel Fedel
Browse files
Options
Downloads
Patches
Plain Diff
Improve the way to change between modes and include Mixed Mode Delay
These changes allow to use Mixed Mode synced with a 14Hz Pulse
parent
2b92624f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure/CONFIG_MODULE
+1
-1
1 addition, 1 deletion
configure/CONFIG_MODULE
evrisland/evrislandApp/Db/evrisland.template
+119
-73
119 additions, 73 deletions
evrisland/evrislandApp/Db/evrisland.template
with
120 additions
and
74 deletions
configure/CONFIG_MODULE
+
1
−
1
View file @
4cede8f7
...
...
@@ -2,7 +2,7 @@
EPICS_MODULE_NAME:=evrisland
#
E3_MODULE_VERSION:=
1.6.1
E3_MODULE_VERSION:=
dev
# DEPENDENT MODULE VERSION
# For Example,
...
...
This diff is collapsed.
Click to expand it.
evrisland/evrislandApp/Db/evrisland.template
+
119
−
73
View file @
4cede8f7
...
...
@@ -84,16 +84,22 @@ record(fanout, "$(P)$(R=)#FanRFWdtProc") {
#field(LNK2, "$(P)$(R=)#SetPulser0DlyGlobal") # Global Mode
}
# records that must be processed when in Local
or Mixed
Mode
# records that must be processed when in LocalMode
record(fanout, "$(P)$(R=)#FanRFWdtLocal") {
field(LNK0, "$(P)$(R=)#SetBeamWidth")
field(LNK1, "$(P)$(R=)#SetPulser3Dly")
# field(LNK1, "$(P)$(R=)#SetPulser3Dly")
}
record(fanout, "$(P)$(R=)#FanRFWdtMixed") {
field(LNK0, "$(P)$(R=)#SetBeamWidth")
# field(LNK1, "$(P)$(R=)#SetPulser3Dly")
# field(LNK2, "$(P)$(R=)#SetPulser1Dly")
}
# records that must be processed when in Global Mode
record(fanout, "$(P)$(R=)#FanRFWdtGlobal") {
field(LNK0, "$(P)$(R=)#SetPulser3Dly")
field(LNK1, "$(P)$(R=)#SeqSetGlobal")
#
field(LNK0, "$(P)$(R=)#SetPulser3Dly")
#
field(LNK1, "$(P)$(R=)#SeqSetGlobal")
}
record(ao, "$(P)$(R=)BeamPulseDly-SP") {
...
...
@@ -149,6 +155,7 @@ record(seq, "$(P)$(R=)#SeqFixedVals") {
# EVR Event -> 15
# SuperCycle Delay (SCDly) -> typically ZERO
# MixedMode Delay (MMDly) -> default is 44976.09
# Modulator (Pulser 0) -> Event RFStart; delay = SCDly (zero);
# RF Start (Pulser 1) -> Event RFStart; delay = SCDly + RFSyncDly;
...
...
@@ -160,74 +167,80 @@ record(seq, "$(P)$(R=)#SeqFixedVals") {
# Pulser 0 - Modulator
record(calcout, "$(P)$(R=)#SetPulser0Dly"){
field(INPA, "$(P)$(R=)
PrePulseDly-RB
")
field(INPB, "$(P)$(R=)
OpMode CP
")
field(INPA, "$(P)$(R=)
OpMode
")
field(INPB, "$(P)$(R=)
PrePulseDly-RB
")
field(INPC, "$(P)$(R=)SCDly CP")
field(CALC, "
B=2?C:A
")
field(CALC, "
A=0?B:C
")
field(OUT, "$(EVRPREFIX)DlyGen-0-Delay-SP PP" )
}
# Pulser 1 - RF Start
record(calcout, "$(P)$(R=)#SetPulser1Dly"){
field(INPA, "$(P)$(R=)
PrePulseDly-RB
")
field(INPB, "$(P)$(R=)
RFSyncDly-SP CP") # When updates value, update evr
field(INPC, "$(P)$(R=)
OpMode CP")
field(INPA, "$(P)$(R=)
OpMode
")
field(INPB, "$(P)$(R=)
PrePulseDly-RB")
field(INPC, "$(P)$(R=)
RFSyncDly-SP CP") # When updates value, update evr
field(INPD, "$(P)$(R=)SCDly CP")
field(CALC, "C=2?B+D:A+B")
field(INPE, "$(P)$(R=)MMDly CP")
field(CALC, "A=0?(B+C):(A=1?C+E:C+D)")
field(OUT, "$(EVRPREFIX)DlyGen-1-Delay-SP PP" )
}
# Pulser 2 - LLRF Start (should 5us before RF Start)
record(calcout, "$(P)$(R=)#SetPulser2Dly"){
field(INPA, "$(P)$(R=)
PrePulseDly-RB
")
field(INPB, "$(P)$(R=)
RFSyncDly-SP CP") # When updates value, update evr
field(INPC, "
5") # Removing 5us, time for LLRF firmware
field(INPD, "
$(P)$(R=)OpMode CP")
field(INPA, "$(P)$(R=)
OpMode
")
field(INPB, "$(P)$(R=)
PrePulseDly-RB")
field(INPC, "
$(P)$(R=)RFSyncDly-SP CP") # When updates value, update evr
field(INPD, "
5") # Removing 5us, time for LLRF firmware
field(INPE, "$(P)$(R=)SCDly CP")
field(CALC, "D=2?E+B-C:A+B-C")
field(OUT, "$(EVRPREFIX)DlyGen-2-Delay-SP PP" )
field(INPF, "$(P)$(R=)MMDly CP")
field(CALC, "A=0?(B+C-D):(A=1?C+F-D:C+E-D)")
field(OUT, "$(EVRPREFIX)DlyGen-2-Delay-SP PP" )
}
# Pulser 3 - LLRF End
record(calcout, "$(P)$(R=)#SetPulser3Dly"){
field(INPA, "$(P)$(R=)
PrePulseDly-RB
")
field(INPB, "$(P)$(R=)
RFSyncDly-SP CP") # When updates value, update evr
field(INPC, "$(P)$(R=)RFSync
Wdt-SP")
field(INPD, "$(P)$(R=)
OpMode
CP")
field(INPA, "$(P)$(R=)
OpMode
")
field(INPB, "$(P)$(R=)
PrePulseDly-RB")
field(INPC, "$(P)$(R=)RFSync
Dly-SP CP") # When updates value, update evr
field(INPD, "$(P)$(R=)
RFSyncWdt-SP
CP")
field(INPE, "$(P)$(R=)SCDly CP")
field(CALC, "D=2?B+C+E:A+B+C")
field(INPF, "$(P)$(R=)MMDly CP")
field(CALC, "A=0?(B+C+D):(A=1?C+D+F:C+D+E)")
field(OUT, "$(EVRPREFIX)DlyGen-3-Delay-SP PP" )
}
# Pulser 4 - Beam Start
record(calcout, "$(P)$(R=)#SetPulser4Dly"){
field(INPA, "$(P)$(R=)
PrePulseDly-RB
")
field(INPB, "$(P)$(R=)
RFSyncDly-SP CP") # When updates value, update evr
field(INPC, "$(P)$(R=)
BeamPulse
Dly-SP CP") # When updates value, update evr
field(INPD, "$(P)$(R=)
OpMode CP")
field(INPA, "$(P)$(R=)
OpMode
")
field(INPB, "$(P)$(R=)
PrePulseDly-RB")
field(INPC, "$(P)$(R=)
RFSync
Dly-SP CP") # When updates value, update evr
field(INPD, "$(P)$(R=)
BeamPulseDly-SP CP") # When updates value, update evr
field(INPE, "$(P)$(R=)SCBSt CP")
field(CALC, "D=2?E:A+B+C")
field(INPF, "$(P)$(R=)MMDly CP")
field(CALC, "A=0?(B+C+D):(A=1?C+D+F:E)")
field(OUT, "$(EVRPREFIX)DlyGen-4-Delay-SP PP" )
}
# Pulser 5 - Beam End
record(calcout, "$(P)$(R=)#SetPulser5Dly"){
field(INPA, "$(P)$(R=)
PrePulseDly-RB
")
field(INPB, "$(P)$(R=)
RFSyncDly-SP CP") # When updates value, update evr
field(INPC, "$(P)$(R=)
BeamPulse
Dly-SP CP") # When updates value, update evr
field(INPD, "$(P)$(R=)BeamPulse
Wdt
-SP CP") # When updates value, update evr
field(INPE, "$(P)$(R=)
OpMode CP")
field(INPA, "$(P)$(R=)
OpMode
")
field(INPB, "$(P)$(R=)
PrePulseDly-RB")
field(INPC, "$(P)$(R=)
RFSync
Dly-SP CP") # When updates value, update evr
field(INPD, "$(P)$(R=)BeamPulse
Dly
-SP CP") # When updates value, update evr
field(INPE, "$(P)$(R=)
BeamPulseWdt-SP CP") # When updates value, update evr
field(INPF, "$(P)$(R=)SCBEnd CP")
field(CALC, "E=2?F:A+B+C+D")
field(OUT, "$(EVRPREFIX)DlyGen-5-Delay-SP PP" )
field(INPG, "$(P)$(R=)MMDly CP")
field(CALC, "A=0?(B+C+D+E):(A=1?C+D+E+G:F)")
field(OUT, "$(EVRPREFIX)DlyGen-5-Delay-SP PP" )
}
# Pulser 6 - FIM
record(calcout, "$(P)$(R=)#SetPulser6Dly"){
field(INPA, "$(P)$(R=)
FIMDly-RB CP") # When updates value, update evr
field(INPB, "$(P)$(R=)
OpMode CP")
field(INPA, "$(P)$(R=)
OpMode")
field(INPB, "$(P)$(R=)
FIMDly-RB CP") # When updates value, update evr
field(INPC, "$(P)$(R=)SCDly CP")
field(CALC, "B=2?A+C:A")
field(INPD, "$(P)$(R=)MMDly CP")
field(CALC, "A=0?(B):(A=1?B+D:B+C)")
field(OUT, "$(EVRPREFIX)DlyGen-6-Delay-SP PP" )
}
...
...
@@ -239,10 +252,20 @@ record(fanout, "$(P)$(R=)#SetInitVals") {
field(LNK3, "$(P)$(R=)#SetPulser3Dly")
field(LNK4, "$(P)$(R=)#SetPulser4Dly")
field(LNK5, "$(P)$(R=)#SetPulser5Dly")
field(LNK6, "$(P)$(R=)#SetPulser
5
Dly")
field(LNK6, "$(P)$(R=)#SetPulser
6
Dly")
field(LNK7, "$(P)$(R=)RFSyncWdt-SP")
}
record(fanout, "$(P)$(R=)#ReloadDelays") {
field(LNK0, "$(P)$(R=)#SetPulser0Dly")
field(LNK1, "$(P)$(R=)#SetPulser1Dly")
field(LNK2, "$(P)$(R=)#SetPulser2Dly")
field(LNK3, "$(P)$(R=)#SetPulser3Dly")
field(LNK4, "$(P)$(R=)#SetPulser4Dly")
field(LNK5, "$(P)$(R=)#SetPulser5Dly")
field(LNK6, "$(P)$(R=)#SetPulser6Dly")
}
### Sequencer 0
record(seq, "$(P)$(R=)Seq0-Enable") {
...
...
@@ -462,6 +485,9 @@ record(seq, "$(P)$(R=)#SeqSetMixed"){
field(DOLC, "1")
field(LNKC, "$(EVRPREFIX)SoftSeq-0-Enable-Cmd CP")
field(DOLD, "1")
field(LNKD, "$(P)$(R=)#ReloadDelays.PROC" )
}
...
...
@@ -476,58 +502,58 @@ record(seq, "$(P)$(R=)#SeqSetLocal"){
field(LNK1, "$(EVRPREFIX)DlyGen-0-Evt-Trig0-SP PP")
# RF Start
field(DOL
7
, "$(Island_event)")
field(LNK
7
, "$(EVRPREFIX)DlyGen-1-Evt-Trig0-SP PP")
field(DOL
2
, "$(Island_event)")
field(LNK
2
, "$(EVRPREFIX)DlyGen-1-Evt-Trig0-SP PP")
# LLRF Start
field(DOL
2
, "$(Island_event)")
field(LNK
2
, "$(EVRPREFIX)DlyGen-2-Evt-Trig0-SP PP")
field(DOL
3
, "$(Island_event)")
field(LNK
3
, "$(EVRPREFIX)DlyGen-2-Evt-Trig0-SP PP")
# LLRF End
field(DOL
3
, "$(Island_event)")
field(LNK
3
, "$(EVRPREFIX)DlyGen-3-Evt-Trig0-SP PP")
field(DOL
4
, "$(Island_event)")
field(LNK
4
, "$(EVRPREFIX)DlyGen-3-Evt-Trig0-SP PP")
# Beam Start
field(DOL
4
, "$(Island_event)")
field(LNK
4
, "$(EVRPREFIX)DlyGen-4-Evt-Trig0-SP PP")
field(DOL
5
, "$(Island_event)")
field(LNK
5
, "$(EVRPREFIX)DlyGen-4-Evt-Trig0-SP PP")
# Beam End
field(DOL
5
, "$(Island_event)")
field(LNK
5
, "$(EVRPREFIX)DlyGen-5-Evt-Trig0-SP PP")
field(DOL
6
, "$(Island_event)")
field(LNK
6
, "$(EVRPREFIX)DlyGen-5-Evt-Trig0-SP PP")
# FIM
field(DOL
6
, "$(Island_event)")
field(LNK
6
, "$(EVRPREFIX)DlyGen-6-Evt-Trig0-SP PP")
field(DOL
7
, "$(Island_event)")
field(LNK
7
, "$(EVRPREFIX)DlyGen-6-Evt-Trig0-SP PP")
#
#
Reload delays
#
field(DOL
7
, "1")
#
field(LNK
7
, "$(P)$(R=)
#
Se
tInitVals
.PROC")
#
Start sequencer
field(DOL
8
, "1")
field(LNK
8
, "$(P)$(R=)Se
q0-Enable
.PROC")
# S
tar
t sequencer
field(DOL
8
, "
1
")
field(LNK
8
, "$(
P)$(R=)
Seq0-
Enable.PROC
")
# S
e
t sequencer
trigger source to Prescaler 0
field(DOL
9
, "
2
")
field(LNK
9
, "$(
EVRPREFIX)Soft
Seq
-
0-
TrigSrc-2-Sel PP
")
#
Se
t sequencer
trigger source to Prescaler
0
field(DOL
9
, "
2
")
field(LNK
9
, "$(EVRPREFIX)SoftSeq-0-
TrigSrc-2-Sel P
P")
#
Commi
t sequencer 0
field(DOL
A
, "
1
")
field(LNK
A
, "$(EVRPREFIX)SoftSeq-0-
Commit-Cmd C
P")
#
Commit sequencer 0
field(DOL
A
, "
1
")
field(LNK
A
, "$(
EVRPREFIX)SoftSeq-0-Commit-Cmd C
P")
#
Unblock Cycle Frequency from Island mode
field(DOL
B
, "
0
")
field(LNK
B
, "$(
P)$(R=)CycleFreq-SP.DIS
P")
#
Unb
lock
Cycle
Frequency from
Islan
d mode
field(DOL
B
, "
0
")
field(LNK
B
, "$(P)$(R=)
Cycle
Freq
-SP
.DISP")
#
B
lock Frequency from
Mixe
d mode
field(DOL
C
, "
1
")
field(LNK
C
, "$(P)$(R=)
Mix
Freq.DISP")
#
Block Frequency from Mixed mode
field(DOL
C
, "
1
")
field(LNK
C
, "$(P)$(R=)
MixFreq.DISP"
)
#
Change the event monitor
field(DOL
D
, "
6
")
field(LNK
D
, "$(P)$(R=)
#SelEvnMon.SELN"
)
# Change the event monitor
field(
DOLD, "6"
)
field(LNKD, "$(P)$(R=)#SelEvnMon.SELN" )
field(DOL
E
, "1")
field(LNK
E
, "$(P)$(R=)#
S
el
EvnMon
.PROC" )
field(DOLE, "1")
field(
LNKE, "$(P)$(R=)#SelEvnMon.PROC"
)
field(DOL
F
, "1")
field(LNK
F
, "$(P)$(R=)#
R
el
oadDelays
.PROC" )
}
...
...
@@ -566,6 +592,23 @@ record(seq, "$(P)$(R=)#SeqChgFreqMix"){
field(LNK8, "$(P)$(R=)#SelEvnMon.SELN" )
field(DOL9, "1")
field(LNK9, "$(P)$(R=)#SelEvnMon.PROC" )
}
##############
# Mixed Mode PVs
#############
# Mixed mode delay
record(ao, "$(P)$(R=)MMDly") {
field(DESC, "Mixed mode delay")
field(DRVL, "0")
field(DRVL, "71400")
field(VAL, "44976.09")
field(PINI, "NO")
field(FLNK, "$(P)$(R=)#FanRFWdtMixed PP")
field(EGU, "us")
info(autosaveFields_pass0, "VAL")
}
###############
...
...
@@ -667,6 +710,9 @@ record(seq, "$(P)$(R=)#SeqSetGlobal"){
field(DOLB, "1")
field(LNKB, "$(P)$(R=)#SelEvnMon.PROC" )
field(DOLC, "1")
field(LNKC, "$(P)$(R=)#ReloadDelays.PROC" )
}
########
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment