From bc148e201b926f54fbe85e48d14b618c848357d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Denis?= <jfdenis@cea.fr>
Date: Thu, 10 Nov 2016 10:43:41 +0100
Subject: [PATCH] ADD console PMAC and Brake command

---
 db/EMU.substitutions                          |   57 +-
 db/EMU_CALCUL.template                        |   66 +-
 db/EMU_PMAC-CONSOLE.template                  |   14 +
 ..._pmac.template => EMU_PMAC-GETBO.template} |    0
 ..._pmac.template => EMU_PMAC-SETBO.template} |   11 +-
 db/EMU_PROCESS.template                       |   28 +-
 db/EMU_PS-SIM.template                        |   15 -
 db/console.substitutions                      |    5 -
 db/console.template                           |   14 -
 db/get_value_pmac.substitutions               |   10 -
 db/set_bo_pmac.substitutions                  |    6 -
 db/set_value_pmac.substitutions               |    6 -
 opi/EMU.opi                                   | 4073 ++++++++++++-----
 src/EMU_CALCULS.c                             |   89 +
 startup/EMU.cmd                               |   38 +-
 15 files changed, 3236 insertions(+), 1196 deletions(-)
 create mode 100644 db/EMU_PMAC-CONSOLE.template
 rename db/{get_value_pmac.template => EMU_PMAC-GETBO.template} (100%)
 rename db/{set_value_pmac.template => EMU_PMAC-SETBO.template} (60%)
 delete mode 100644 db/EMU_PS-SIM.template
 delete mode 100644 db/console.substitutions
 delete mode 100644 db/console.template
 delete mode 100644 db/get_value_pmac.substitutions
 delete mode 100644 db/set_bo_pmac.substitutions
 delete mode 100644 db/set_value_pmac.substitutions

diff --git a/db/EMU.substitutions b/db/EMU.substitutions
index caa2bb2..c9a6bec 100644
--- a/db/EMU.substitutions
+++ b/db/EMU.substitutions
@@ -421,44 +421,57 @@ pattern	{DEVICE, SCAN_EF}
 ##########################################################################
 file EMU_CALCUL.template
 {
-pattern	{DEVICE}
-	{"$(DEVICE)"}
+pattern	{DEVICE,DAQPREFIX,DET2WF,DET3WF,DET2,DET3,NELM,SCAN_EF}
+	{"$(DEVICE)","$(DAQNDSPREFIX)","AI-CH1-DATA","AI-CH2-DATA","DET2","DET3","$(DAQBUFSIZE)","PS"}
 }
 
+##########################################################################
+################################ BUFFER ##################################
+##########################################################################
+file EMU_BUFF_CHAN.template
+{
+pattern	{DEVICE,SIGNAL,SIGNAL2,NELM,NELM_COMP,SCAN_EF,SCAN_SLIT,MTRREC}
+	{"$(DEVICE)","DET1","CURRENT","1000","1000","$(SCAN_EF)","$(SCAN_SLIT)","$(MTRREC)"}
+}
+
+
+##########################################################################
+################################ ETHERCAT ################################
+##########################################################################
+file ecat2el41xx.template
+{
+	pattern {PREFIX,CH_ID, SLAVE_IDX,PDO_IDX, EOFF, ESLO, DRVL, DRVH}
+		{"LNS-ISRC-010:PBI-EM","HVhor-SP", 1,1, 0, 0.0003051850947599719, -10, 10}
+		{"LNS-ISRC-010:PBI-EM","HVver-SP", 1,2, 0, 0.0003051850947599719, -10, 10}
+		{"SIMU","CURRENT-SP", 1,3, 0, 0.0003051850947599719, -10, 10}
+}
+
+file ecat2slave.template
+{
+	pattern {PREFIX,DTYP,MOD_ID,SLAVE_IDX}
+		{"LNS-ISRC-010:PBI-EM","EL4134","EL4134",1}
+}
 
 ##########################################################################
 ################################ GEOBRICK - TEST #########################
 ##########################################################################
 
-file console.template
+file EMU_PMAC-CONSOLE.template
 {
 pattern	{P, M, SPORT}
-	{SOURCE,EMITTANCE-METTER,pmacLV}
+	{LNS-ISRC-010,PBI-EM,pmacLV}
 }
 
-file get_value_pmac.template
+file EMU_PMAC-GETBO.template
 {
 pattern	{P,	M,			NAME,		DESC,				EGU,	VARIABLE,	PREC,	SCAN,		SPORT}
-	{SOURCE,EMITTANCE-METTER,	V_BRAKE,	"0: brake on, 1: brake off",	boolean,M33,		0,	"1 second",	pmacLV}
-#	{SOURCE,EMITTANCE-METTER,	V_SWITCH_H,	"Vertical high motor swicth",	boolean,M121,		0,	"1 second",	pmacLV}
-#	{SOURCE,EMITTANCE-METTER,	V_SWITCH_L,	"Vertical low motor swicth",	boolean,M122,		0,	"1 second",	pmacLV}
-#	{SOURCE,EMITTANCE-METTER,	V_M_IN_POSITION,"Vertical low motor swicth",	boolean,M140,		0,	"1 second",	pmacLV}
-	{SOURCE,EMITTANCE-METTER,	V_HOME_DONE,	"Vertical low motor swicth",	boolean,M101,		0,	"1 second",	pmacLV}
-#	{SOURCE,EMITTANCE-METTER,	V_M_POSITION,	"Vertical motor position",	cts,	#1P,		0,	"1 second",	pmacLV}
+	{LNS-ISRC-010,PBI-EM,	VER-BRAKE,	"0: brake on, 1: brake off",	boolean,M33,		0,	"1 second",	pmacLV}
 }
 
-file set_bo_pmac.template
+file EMU_PMAC-SETBO.template
 {
-pattern	{P,	M,			NAME,			DESC,						VAL,	TIME,	CALC,	VARIABLE,	SPORT}
-	{SOURCE,EMITTANCE-METTER,	V_GO_HOME,		"Ask to motor to go home position",		0,	1,	A,	P103,		pmacLV}
-	{SOURCE,EMITTANCE-METTER,	V_GO_MAINTENANCE,	"Ask to motor to go maintenance position",	0,	1,	A,	P104,		pmacLV}
-	{SOURCE,EMITTANCE-METTER,	V_BRAKE,		"brake",					0,	1,	A,	M33,		pmacLV}
+pattern	{P,	M,			NAME,	DESC,	VAL,	TIME,	CALC,	VARIABLE,	SPORT}
+	{LNS-ISRC-010,PBI-EM,	VER-BRAKE, "brake", 0,	1,	A,	M33,		pmacLV}
 }
 
-#file set_value_pmac.template
-#{
-#pattern	{P,	M,			NAME,		DESC,						EGU,		DRVL,		DRVH,	CALC,	VAL,	ADEL,	MDEL,	PREC,	VARIABLE,	SPORT}
-#	{SOURCE,EMITTANCE-METTER,	V_ABS-POS,	"Absolute position, origin: park position",	"cts",		-796879,	0,	A,	0,	0,	0,	0,	"#1J",		pmacLV}
-#	{SOURCE,EMITTANCE-METTER,	V_VELOCITY,	"velocity 1:slow 2:normal 3:fast",		"cts/ms",	1,		3,	A,	2,	0,	0,	0,	"I122",		pmacLV}
-#}
 
diff --git a/db/EMU_CALCUL.template b/db/EMU_CALCUL.template
index 046aa2a..35da5d5 100644
--- a/db/EMU_CALCUL.template
+++ b/db/EMU_CALCUL.template
@@ -108,6 +108,7 @@ record(aSub, "$(DEVICE):CALC-FuncCalcConv") {
 ######### FUNCTION #######
 	field(SNAM, "FACTOR_CONVERSION")
 }
+
 ############################################
 ## Conversion factor for MRAD to V #########
 ############################################
@@ -118,8 +119,6 @@ record(ao, "$(DEVICE):CALC-FactMRADtoV")
     field(PREC, "4")
 }
 
-
-
 ############################################
 ## Conversion factor for V to MRAD##########
 ############################################
@@ -129,3 +128,66 @@ record(ao, "$(DEVICE):CALC-FactVtoMRAD")
     field(EGU, "mrad/V")
     field(PREC, "4")
 }
+
+###########################################################################################
+########################## CREATE THE ANGLE WAVEFORM ######################################
+###########################################################################################
+
+## Function that compute the coefficient between MRAD and VOLTAGE
+record(aSub, "$(DEVICE):CALC-BLDWFAngle") {
+######### INPUTS #########
+## FACTOR CONVERSION VtoMRAD
+  	field(FTA, "FLOAT")
+	field(NOA,1)
+	field(INPA,  "$(DEVICE):CALC-FactVtoMRAD")
+
+## Plate volatge 1 Waveform (PS1)
+  	field(FTB, "FLOAT")
+	field(NOB,$(NELM))
+	field(INPB,  "$(DAQPREFIX):$(DET2WF)")
+
+## Plate volatge 2 Waveform (PS2)
+  	field(FTC, "FLOAT")
+	field(NOC,$(NELM))
+	field(INPC,  "$(DAQPREFIX):$(DET3WF)")
+
+## Plate volatge 1 average (PS1)
+  	field(FTD, "FLOAT")
+	field(NOD,1)
+	field(INPD,  "$(DEVICE):$(DET2)-COMP")
+
+## Plate volatge 2 average (PS2)
+  	field(FTE, "FLOAT")
+	field(NOE, "1")
+	field(INPE, "$(DEVICE):$(DET3)-COMP")
+
+## Counter detector (cpt det)
+  	field(FTE, "LONG")
+	field(NOE, "1")
+	field(INPE, "$(DEVICE):$(SCAN_EF)-NORD_POS CPP")
+
+######### OUTPUTS #########
+## ANGLE Waveform converted in MRAD (to save)
+  	field(FTVA, "FLOAT")
+	field(NOVA, "$(NELM)")
+	field(OUTA, "$(DEVICE):CALC-ANGLEwf PP")   
+
+## ANGLE AVG value converted in VOLT 
+	field(FTVB, "FLOAT")
+	field(NOVB, "1")
+	field(OUTB, "$(DEVICE):CALC-ANGLE PP")  
+
+######### FUNCTION #######
+	field(SNAM, "ANGLE_CALCUL")
+}
+
+################ RESULTAT ANGLE ############## 
+## AVERAGE ANGLE
+record(ao, "$(DEVICE):CALC-ANGLE") {
+}
+
+## WAVEFORM ANGLE
+record(waveform, "$(DEVICE):CALC-ANGLEwf") {
+	field(FTVL, "FLOAT")
+  	field(NELM, "$(NELM)") 
+}
diff --git a/db/EMU_PMAC-CONSOLE.template b/db/EMU_PMAC-CONSOLE.template
new file mode 100644
index 0000000..a2a11dd
--- /dev/null
+++ b/db/EMU_PMAC-CONSOLE.template
@@ -0,0 +1,14 @@
+#DEBUG
+#sends ASCII string to pmac
+record(stringout, "$(P):$(M):PMAC-ASK") {
+  field(DESC, "sends ASCII string to pmac")
+  field(OUT, "$(P):$(M):PMAC-ANSWER CP")
+  field(FLNK, "$(P):$(M):PMAC-ANSWER")
+}
+#receives ASCII string from pmac
+record(stringin, "$(P):$(M):PMAC-ANSWER") {
+  field(DESC, "receives ASCII string from pmac")
+  field(DTYP, "stream")
+  field(INP, "@pmacVariables.proto sendString($(P):$(M):PMAC-ASK) $(SPORT)")
+}
+
diff --git a/db/get_value_pmac.template b/db/EMU_PMAC-GETBO.template
similarity index 100%
rename from db/get_value_pmac.template
rename to db/EMU_PMAC-GETBO.template
diff --git a/db/set_value_pmac.template b/db/EMU_PMAC-SETBO.template
similarity index 60%
rename from db/set_value_pmac.template
rename to db/EMU_PMAC-SETBO.template
index 698ed67..bc26759 100644
--- a/db/set_value_pmac.template
+++ b/db/EMU_PMAC-SETBO.template
@@ -1,15 +1,8 @@
 #set data to send to the Geo brick
-record(ao, "$(P)_$(M):$(NAME)_SET") {
+record(bo, "$(P)_$(M):$(NAME)_SET") {
   field(DESC, "$(DESC)")
-  field(EGU, "$(EGU)")
-  field(DRVL, "$(DRVL)")
-  field(DRVH, "$(DRVH)")
-  field(LOPR, "$(DRVL)")
-  field(HOPR, "$(DRVH)")
+  field(HIGH, "$(TIME)")
   field(VAL, "$(VAL)")
-  field(ADEL, "$(ADEL)")
-  field(MDEL, "$(MDEL)")
-  field(PREC, "$(PREC)")
 }
 #send the data to the Geo brick
 record(calcout, "$(P)_$(M):$(NAME)_WRITE") {
diff --git a/db/EMU_PROCESS.template b/db/EMU_PROCESS.template
index 3b94c90..3cbbb95 100644
--- a/db/EMU_PROCESS.template
+++ b/db/EMU_PROCESS.template
@@ -11,13 +11,16 @@ record(calcout, "$(DEVICE):PROC-VoltMax") {
   field(VAL, "0")
   field(INPA,"$(DEVICE):PROC-AngleMax-SP")
   field(INPB,"$(DEVICE):CALC-FactMRADtoV")
-  field(CALC, "(A*B)/2")
+  ### /1000 => conversion in 0/10V  ###
+  field(CALC, "(A*B)/2000")
+  field(PREC, "4")  
+  field(EGU,"kV")   
   field(OUT,"$(DEVICE):PROC-VoltMax-SP PP")
 }
 
 record(dfanout,"$(DEVICE):PROC-VoltMax-SP"){
-  field(OUTA,"$(DEVICE):$(SCAN_EF).P1SP PP")
-  field(OUTB,"$(DEVICE):$(SCAN_EF).P2EP PP")
+  field(OUTA,"$(DEVICE):$(SCAN_EF).P1EP PP")
+  field(OUTB,"$(DEVICE):$(SCAN_EF).P4SP PP")
 }
 
 #############################################
@@ -33,18 +36,22 @@ record(calcout, "$(DEVICE):PROC-VoltMin") {
   field(VAL, "0")
   field(INPA,"$(DEVICE):PROC-AngleMin-SP")
   field(INPB,"$(DEVICE):CALC-FactMRADtoV")
-  field(CALC, "(A*B)/2")
+  ### /1000 => conversion in 0/10V
+  field(CALC, "(A*B)/2000")
+  field(PREC, "4")  
+  field(EGU,"kV")   
   field(OUT,"$(DEVICE):PROC-VoltMin-SP PP")
 }
 
 record(dfanout,"$(DEVICE):PROC-VoltMin-SP"){
-  field(OUTA,"$(DEVICE):$(SCAN_EF).P1EP PP")
-  field(OUTB,"$(DEVICE):$(SCAN_EF).P2SP PP")
+  field(OUTA,"$(DEVICE):$(SCAN_EF).P1SP PP")
+  field(OUTB,"$(DEVICE):$(SCAN_EF).P4EP PP")
 }
 
 #############################################
 ############ ANGLE STP ######################
 #############################################
+
 record(calcout, "$(DEVICE):PROC-StepAngle") {
   field(INPA,"$(DEVICE):PROC-AngleMax-SP CPP")
   field(INPB,"$(DEVICE):PROC-AngleMin-SP CPP")
@@ -53,3 +60,12 @@ record(calcout, "$(DEVICE):PROC-StepAngle") {
   field(EGU, "mrad")
   field(PREC, "3")
 }
+
+#############################################
+############ SIMULATION #####################
+#############################################
+record(bo,"$(DEVICE):PROC-SIMU") {
+field(ZNAM,"HARD")
+field(ONAM,"SIMU")
+}
+
diff --git a/db/EMU_PS-SIM.template b/db/EMU_PS-SIM.template
deleted file mode 100644
index 9053f8e..0000000
--- a/db/EMU_PS-SIM.template
+++ /dev/null
@@ -1,15 +0,0 @@
-record(ao, "$(PREFIX):$(SIGNAL)-SP")
-{
-    field(FLNK, "$(PREFIX):$(SIGNAL)-RBV")
-    field(EGU, "kV")
-    field(DRVH, "10")
-    field(DRVL, "-10")
-    field(PREC, 2)
-}
-
-record(ai, "$(PREFIX):$(SIGNAL)-RBV")
-{
-    field(INP, "$(PREFIX):$(SIGNAL)-SP")
-    field(EGU, "kV")
-    field(PREC, 2)
-}
diff --git a/db/console.substitutions b/db/console.substitutions
deleted file mode 100644
index e246916..0000000
--- a/db/console.substitutions
+++ /dev/null
@@ -1,5 +0,0 @@
-file console.template
-{
-pattern	{P 	M 			SPORT}
-	{SOURCE	EMITTANCE-METTER 	GEOBRICK_ASYN}
-}
diff --git a/db/console.template b/db/console.template
deleted file mode 100644
index e3c0015..0000000
--- a/db/console.template
+++ /dev/null
@@ -1,14 +0,0 @@
-#DEBUG
-#sends ASCII string to pmac
-record(stringout, "$(P)_$(M):ASK") {
-  field(DESC, "sends ASCII string to pmac")
-  field(OUT, "$(P)_$(M):ANSWER CP")
-  field(FLNK, "$(P)_$(M):ANSWER")
-}
-#receives ASCII string from pmac
-record(stringin, "$(P)_$(M):ANSWER") {
-  field(DESC, "receives ASCII string from pmac")
-  field(DTYP, "stream")
-  field(INP, "@pmacVariables.proto sendString($(P)_$(M):ASK) $(SPORT)")
-}
-
diff --git a/db/get_value_pmac.substitutions b/db/get_value_pmac.substitutions
deleted file mode 100644
index c400faa..0000000
--- a/db/get_value_pmac.substitutions
+++ /dev/null
@@ -1,10 +0,0 @@
-file get_value_pmac.template
-{
-pattern	{P 	M 			NAME		DESC				EGU	VARIABLE	PREC	SCAN		SPORT}
-	{SOURCE	EMITTANCE-METTER 	V_BRAKE		"0: brake on, 1: brake off"	boolean	M33		0	".1 second"	GEOBRICK_ASYN}
-	{SOURCE	EMITTANCE-METTER 	V_SWITCH_H	"Vertical high motor swicth"	boolean	M121		0	".1 second"	GEOBRICK_ASYN}
-	{SOURCE	EMITTANCE-METTER 	V_SWITCH_L	"Vertical low motor swicth"	boolean	M122		0	".1 second"	GEOBRICK_ASYN}
-	{SOURCE	EMITTANCE-METTER 	V_M_IN_POSITION	"Vertical low motor swicth"	boolean	M140		0	".1 second"	GEOBRICK_ASYN}
-	{SOURCE	EMITTANCE-METTER 	V_HOME_DONE	"Vertical low motor swicth"	boolean	M101		0	".1 second"	GEOBRICK_ASYN}
-	{SOURCE	EMITTANCE-METTER 	V_M_POSITION	"Vertical motor position"	cts	#1P		0	".1 second"	GEOBRICK_ASYN}
-}
diff --git a/db/set_bo_pmac.substitutions b/db/set_bo_pmac.substitutions
deleted file mode 100644
index 443684c..0000000
--- a/db/set_bo_pmac.substitutions
+++ /dev/null
@@ -1,6 +0,0 @@
-file set_bo_pmac.template
-{
-pattern	{P 	M 			NAME			DESC						VAL	TIME	CALC	VARIABLE	SPORT}
-	{SOURCE	EMITTANCE-METTER 	V_GO_HOME		"Ask to motor to go home position"		0	1	A	P103		GEOBRICK_ASYN}
-	{SOURCE	EMITTANCE-METTER 	V_GO_MAINTENANCE	"Ask to motor to go maintenance position"	0	1	A	P104		GEOBRICK_ASYN}
-}
diff --git a/db/set_value_pmac.substitutions b/db/set_value_pmac.substitutions
deleted file mode 100644
index 0c59db9..0000000
--- a/db/set_value_pmac.substitutions
+++ /dev/null
@@ -1,6 +0,0 @@
-file set_value_pmac.template
-{
-pattern	{P 	M 			NAME			DESC						EGU		DRVL	DRVH	CALC	VAL	ADEL	MDEL	PREC	VARIABLE	SPORT}
-	{SOURCE	EMITTANCE-METTER 	V_ABS-POS		"Absolute position, origin: park position"	cts		-796879	0	A	0	0	0	0	#1J		GEOBRICK_ASYN}
-	{SOURCE	EMITTANCE-METTER 	V_VELOCITY		"velocity 1:slow 2:normal 3:fast"		cts/ms		1	3	A	2	0	0	0	I122		GEOBRICK_ASYN}
-}
diff --git a/opi/EMU.opi b/opi/EMU.opi
index 6d5b729..306cdb9 100644
--- a/opi/EMU.opi
+++ b/opi/EMU.opi
@@ -190,12 +190,12 @@ $(pv_value)</tooltip>
         </bg_gradient_color>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
-        <height>1078</height>
+        <height>1099</height>
         <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
+          <keep_wh_ratio>true</keep_wh_ratio>
         </scale_options>
         <visible>true</visible>
         <pv_name></pv_name>
@@ -215,9 +215,9 @@ $(pv_value)</tooltip>
           <color red="186" green="189" blue="182" />
         </background_color>
         <width>349</width>
-        <x>30</x>
+        <x>29</x>
         <name>Rounded Rectangle_5</name>
-        <y>39</y>
+        <y>12</y>
         <fill_level>0.0</fill_level>
         <foreground_color>
           <color red="255" green="0" blue="0" />
@@ -230,7 +230,7 @@ $(pv_value)</tooltip>
           <color red="128" green="0" blue="255" />
         </line_color>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Rectangle" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.RoundedRectangle" version="1.0.0">
         <border_style>0</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <line_width>0</line_width>
@@ -240,16 +240,17 @@ $(pv_value)</tooltip>
 $(pv_value)</tooltip>
         <rules />
         <enabled>true</enabled>
-        <wuid>4ad471b5:157e1276406:-7831</wuid>
+        <wuid>-16429ab9:158444d4181:-7ba7</wuid>
         <transparent>false</transparent>
         <pv_value />
         <alpha>255</alpha>
+        <corner_height>16</corner_height>
         <bg_gradient_color>
           <color red="255" green="255" blue="255" />
         </bg_gradient_color>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
-        <height>145</height>
+        <height>79</height>
         <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
@@ -263,8 +264,9 @@ $(pv_value)</tooltip>
           <color red="0" green="128" blue="255" />
         </border_color>
         <anti_alias>true</anti_alias>
+        <corner_width>16</corner_width>
         <line_style>0</line_style>
-        <widget_type>Rectangle</widget_type>
+        <widget_type>Rounded Rectangle</widget_type>
         <fg_gradient_color>
           <color red="255" green="255" blue="255" />
         </fg_gradient_color>
@@ -272,10 +274,10 @@ $(pv_value)</tooltip>
         <background_color>
           <color name="Container Border Grey" red="150" green="150" blue="150" />
         </background_color>
-        <width>319</width>
-        <x>732</x>
-        <name>Rectangle</name>
-        <y>636</y>
+        <width>350</width>
+        <x>29</x>
+        <name>Rounded Rectangle</name>
+        <y>1038</y>
         <fill_level>0.0</fill_level>
         <foreground_color>
           <color red="255" green="0" blue="0" />
@@ -288,7 +290,7 @@ $(pv_value)</tooltip>
           <color red="128" green="0" blue="255" />
         </line_color>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Rectangle" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.RoundedRectangle" version="1.0.0">
         <border_style>0</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <line_width>0</line_width>
@@ -298,16 +300,17 @@ $(pv_value)</tooltip>
 $(pv_value)</tooltip>
         <rules />
         <enabled>true</enabled>
-        <wuid>4ad471b5:157e1276406:-794d</wuid>
+        <wuid>-16429ab9:1582e68df9a:-4223</wuid>
         <transparent>false</transparent>
         <pv_value />
         <alpha>255</alpha>
+        <corner_height>16</corner_height>
         <bg_gradient_color>
           <color red="255" green="255" blue="255" />
         </bg_gradient_color>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
-        <height>92</height>
+        <height>1099</height>
         <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
@@ -321,19 +324,20 @@ $(pv_value)</tooltip>
           <color red="0" green="128" blue="255" />
         </border_color>
         <anti_alias>true</anti_alias>
+        <corner_width>16</corner_width>
         <line_style>0</line_style>
-        <widget_type>Rectangle</widget_type>
+        <widget_type>Rounded Rectangle</widget_type>
         <fg_gradient_color>
           <color red="255" green="255" blue="255" />
         </fg_gradient_color>
         <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
         <background_color>
-          <color name="Container Border Grey" red="150" green="150" blue="150" />
+          <color red="186" green="189" blue="182" />
         </background_color>
-        <width>319</width>
-        <x>1368</x>
-        <name>Rectangle</name>
-        <y>117</y>
+        <width>1261</width>
+        <x>414</x>
+        <name>Rounded Rectangle_5</name>
+        <y>18</y>
         <fill_level>0.0</fill_level>
         <foreground_color>
           <color red="255" green="0" blue="0" />
@@ -391,7 +395,7 @@ $(pv_value)</tooltip>
         <width>32</width>
         <x>336</x>
         <data_type>0</data_type>
-        <y>1060</y>
+        <y>1066</y>
         <foreground_color>
           <color red="192" green="192" blue="192" />
         </foreground_color>
@@ -400,47 +404,6 @@ $(pv_value)</tooltip>
         </font>
         <off_label>OFF</off_label>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
-        <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>true</enabled>
-        <wuid>1e771979:1565068c2e3:-4ac6</wuid>
-        <transparent>false</transparent>
-        <auto_size>false</auto_size>
-        <text>CONTROL</text>
-        <scripts />
-        <height>32</height>
-        <border_width>1</border_width>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>true</wrap_words>
-        <background_color>
-          <color name="SubPanel" red="176" green="218" blue="249" />
-        </background_color>
-        <width>349</width>
-        <x>30</x>
-        <name>Label_15</name>
-        <y>408</y>
-        <foreground_color>
-          <color red="0" green="0" blue="0" />
-        </foreground_color>
-        <actions hook="false" hook_all="false" />
-        <show_scrollbar>false</show_scrollbar>
-        <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
-      </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.polyline" version="1.0.0">
         <border_style>0</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
@@ -455,11 +418,11 @@ $(pv_value)</tooltip>
         <wuid>1e771979:1565068c2e3:-4a2d</wuid>
         <transparent>false</transparent>
         <points>
-          <point x="30" y="458" />
-          <point x="378" y="458" />
-          <point x="378" y="458" />
-          <point x="378" y="458" />
-          <point x="378" y="458" />
+          <point x="30" y="369" />
+          <point x="378" y="369" />
+          <point x="378" y="369" />
+          <point x="378" y="369" />
+          <point x="378" y="369" />
         </points>
         <fill_arrow>true</fill_arrow>
         <pv_value />
@@ -490,7 +453,7 @@ $(pv_value)</tooltip>
         <width>349</width>
         <x>30</x>
         <name>Polyline</name>
-        <y>458</y>
+        <y>369</y>
         <fill_level>0.0</fill_level>
         <foreground_color>
           <color red="255" green="0" blue="0" />
@@ -531,7 +494,7 @@ $(pv_value)</tooltip>
         <width>229</width>
         <x>96</x>
         <name>Label_156</name>
-        <y>449</y>
+        <y>360</y>
         <foreground_color>
           <color red="0" green="0" blue="0" />
         </foreground_color>
@@ -571,7 +534,7 @@ $(pv_value)</tooltip>
         <width>151</width>
         <x>42</x>
         <name>Label Orientation_7</name>
-        <y>488</y>
+        <y>402</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -627,7 +590,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>482</y>
+        <y>396</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -668,7 +631,7 @@ $(pv_value)</tooltip>
         <width>104</width>
         <x>71</x>
         <name>Label Orientation_7</name>
-        <y>530</y>
+        <y>444</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -724,7 +687,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>524</y>
+        <y>438</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -765,7 +728,7 @@ $(pv_value)</tooltip>
         <width>199</width>
         <x>34</x>
         <name>Label Orientation_7</name>
-        <y>657</y>
+        <y>571</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -807,7 +770,7 @@ $(pv_value)</tooltip>
         <width>100</width>
         <x>228</x>
         <name>channel_name</name>
-        <y>657</y>
+        <y>571</y>
         <foreground_color>
           <color red="0" green="0" blue="0" />
         </foreground_color>
@@ -830,11 +793,11 @@ $(pv_value)</tooltip>
         <wuid>1e771979:1565068c2e3:-33bf</wuid>
         <transparent>false</transparent>
         <points>
-          <point x="30" y="699" />
-          <point x="378" y="699" />
-          <point x="378" y="699" />
-          <point x="378" y="699" />
-          <point x="378" y="699" />
+          <point x="29" y="621" />
+          <point x="377" y="621" />
+          <point x="377" y="621" />
+          <point x="377" y="621" />
+          <point x="377" y="621" />
         </points>
         <fill_arrow>true</fill_arrow>
         <pv_value />
@@ -863,9 +826,9 @@ $(pv_value)</tooltip>
           <color name="Black" red="0" green="0" blue="0" />
         </background_color>
         <width>349</width>
-        <x>30</x>
+        <x>29</x>
         <name>Polyline</name>
-        <y>699</y>
+        <y>621</y>
         <fill_level>0.0</fill_level>
         <foreground_color>
           <color red="255" green="0" blue="0" />
@@ -884,7 +847,7 @@ $(pv_value)</tooltip>
         <wuid>1e771979:1565068c2e3:-33be</wuid>
         <transparent>false</transparent>
         <auto_size>false</auto_size>
-        <text>Angles</text>
+        <text>Angle</text>
         <scripts />
         <height>20</height>
         <border_width>1</border_width>
@@ -904,9 +867,9 @@ $(pv_value)</tooltip>
           <color name="panelArea" red="240" green="240" blue="240" />
         </background_color>
         <width>229</width>
-        <x>84</x>
+        <x>96</x>
         <name>Label_156</name>
-        <y>690</y>
+        <y>612</y>
         <foreground_color>
           <color red="0" green="0" blue="0" />
         </foreground_color>
@@ -946,7 +909,7 @@ $(pv_value)</tooltip>
         <width>199</width>
         <x>30</x>
         <name>Label Orientation_7</name>
-        <y>570</y>
+        <y>484</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -1002,7 +965,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>564</y>
+        <y>478</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -1043,7 +1006,7 @@ $(pv_value)</tooltip>
         <width>199</width>
         <x>30</x>
         <name>Label Orientation_7</name>
-        <y>615</y>
+        <y>529</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -1099,7 +1062,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>609</y>
+        <y>523</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -1140,7 +1103,7 @@ $(pv_value)</tooltip>
         <width>84</width>
         <x>109</x>
         <name>Label Orientation_2</name>
-        <y>811</y>
+        <y>739</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -1196,7 +1159,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>805</y>
+        <y>733</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -1237,12 +1200,12 @@ $(pv_value)</tooltip>
         <widget_type>Action Button</widget_type>
         <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
         <background_color>
-          <color name="IO Button" red="178" green="178" blue="178" />
+          <color name="Major" red="255" green="0" blue="0" />
         </background_color>
         <width>91</width>
         <x>48</x>
         <name>Abort Scan</name>
-        <y>1050</y>
+        <y>1056</y>
         <style>0</style>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
@@ -1294,9 +1257,9 @@ $(pv_value)</tooltip>
           <color name="IO Button" red="178" green="178" blue="178" />
         </background_color>
         <width>139</width>
-        <x>192</x>
+        <x>180</x>
         <name>Start Scan</name>
-        <y>1050</y>
+        <y>1056</y>
         <style>0</style>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
@@ -1361,7 +1324,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>888</y>
+        <y>816</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -1400,9 +1363,9 @@ $(pv_value)</tooltip>
           <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
         <width>71</width>
-        <x>133</x>
+        <x>96</x>
         <name>Label Orientation_2</name>
-        <y>894</y>
+        <y>822</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -1417,12 +1380,12 @@ $(pv_value)</tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <enabled>false</enabled>
-        <wuid>79429b6c:157dd491a6d:-7de6</wuid>
+        <wuid>1e771979:1565068c2e3:-31f4</wuid>
         <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>Nb Positions</text>
+        <text>MRAD  MIN</text>
         <scripts />
-        <height>20</height>
+        <height>25</height>
         <border_width>2</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
@@ -1439,10 +1402,10 @@ $(pv_value)</tooltip>
         <background_color>
           <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
-        <width>199</width>
-        <x>1350</x>
+        <width>101</width>
+        <x>83</x>
         <name>Label Orientation_7</name>
-        <y>174</y>
+        <y>693</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -1467,7 +1430,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:$(NAME_MTR)-NORD_POS</pv_name>
+        <pv_name>${PREFIX_SCAN}:$(PROC)-AngleMin-SP</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -1481,7 +1444,7 @@ $(pv_value)</tooltip>
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>79429b6c:157dd491a6d:-7de5</wuid>
+        <wuid>1e771979:1565068c2e3:-31f3</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -1497,11 +1460,11 @@ $(pv_value)</tooltip>
           <color name="TextBackground" red="70" green="70" blue="70" />
         </background_color>
         <width>100</width>
-        <x>1548</x>
-        <y>168</y>
+        <x>228</x>
+        <y>690</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
+          <color name="KeyboardEntry" red="0" green="255" blue="255" />
         </foreground_color>
         <minimum>-1.7976931348623157E308</minimum>
         <font>
@@ -1514,10 +1477,10 @@ $(pv_value)</tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <enabled>false</enabled>
-        <wuid>79429b6c:157dd491a6d:-7dd7</wuid>
+        <wuid>-cae44c:157dd221fed:-75d1</wuid>
         <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>Position</text>
+        <text>Step size</text>
         <scripts />
         <height>20</height>
         <border_width>2</border_width>
@@ -1536,10 +1499,10 @@ $(pv_value)</tooltip>
         <background_color>
           <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
-        <width>199</width>
-        <x>730</x>
-        <name>Label Orientation_7</name>
-        <y>738</y>
+        <width>144</width>
+        <x>60</x>
+        <name>Label Orientation_2</name>
+        <y>780</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -1564,7 +1527,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:$(NAME_PS)-NORD_POS</pv_name>
+        <pv_name>${PREFIX_SCAN}:${PROC}-StepAngle</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -1572,13 +1535,13 @@ $(pv_value)</tooltip>
         <precision_from_pv>true</precision_from_pv>
         <widget_type>Text Input</widget_type>
         <confirm_message></confirm_message>
-        <name>Text Input</name>
+        <name>Text Input_2</name>
         <style>0</style>
         <actions hook="false" hook_all="false" />
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>79429b6c:157dd491a6d:-7dd6</wuid>
+        <wuid>-cae44c:157dd221fed:-75d0</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -1594,11 +1557,11 @@ $(pv_value)</tooltip>
           <color name="TextBackground" red="70" green="70" blue="70" />
         </background_color>
         <width>100</width>
-        <x>912</x>
-        <y>732</y>
+        <x>228</x>
+        <y>774</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
+          <color name="KeyboardEntry" red="0" green="255" blue="255" />
         </foreground_color>
         <minimum>-1.7976931348623157E308</minimum>
         <font>
@@ -1611,12 +1574,12 @@ $(pv_value)</tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <enabled>false</enabled>
-        <wuid>79429b6c:157dd491a6d:-7c39</wuid>
+        <wuid>4ad471b5:157e1276406:-740b</wuid>
         <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>Position</text>
+        <text>MRAD MAX</text>
         <scripts />
-        <height>20</height>
+        <height>25</height>
         <border_width>2</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
@@ -1633,10 +1596,10 @@ $(pv_value)</tooltip>
         <background_color>
           <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
-        <width>199</width>
-        <x>1350</x>
-        <name>Label Orientation_7</name>
-        <y>135</y>
+        <width>99</width>
+        <x>82</x>
+        <name>Label Orientation_1</name>
+        <y>648</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -1661,7 +1624,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_MTR}:MTR1.RBV</pv_name>
+        <pv_name>${PREFIX_SCAN}:$(PROC)-AngleMax-SP</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -1675,7 +1638,7 @@ $(pv_value)</tooltip>
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>79429b6c:157dd491a6d:-7c38</wuid>
+        <wuid>4ad471b5:157e1276406:-740a</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -1691,11 +1654,11 @@ $(pv_value)</tooltip>
           <color name="TextBackground" red="70" green="70" blue="70" />
         </background_color>
         <width>100</width>
-        <x>1548</x>
-        <y>129</y>
+        <x>228</x>
+        <y>648</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
+          <color name="KeyboardEntry" red="0" green="255" blue="255" />
         </foreground_color>
         <minimum>-1.7976931348623157E308</minimum>
         <font>
@@ -1707,14 +1670,14 @@ $(pv_value)</tooltip>
         <tooltip></tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
-        <enabled>false</enabled>
-        <wuid>4ad471b5:157e1276406:-781e</wuid>
-        <transparent>true</transparent>
+        <enabled>true</enabled>
+        <wuid>-20a75393:15809f6e4ee:-700a</wuid>
+        <transparent>false</transparent>
         <auto_size>false</auto_size>
-        <text>PS Horizontal</text>
+        <text>CONFIGURATION</text>
         <scripts />
-        <height>20</height>
-        <border_width>2</border_width>
+        <height>32</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
@@ -1723,354 +1686,260 @@ $(pv_value)</tooltip>
         <visible>true</visible>
         <vertical_alignment>1</vertical_alignment>
         <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
+          <color red="0" green="128" blue="255" />
         </border_color>
         <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
+        <wrap_words>true</wrap_words>
         <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
+          <color name="SubPanel" red="176" green="218" blue="249" />
         </background_color>
-        <width>125</width>
-        <x>768</x>
-        <name>Label Orientation_7</name>
-        <y>654</y>
+        <width>349</width>
+        <x>30</x>
+        <name>Label_15</name>
+        <y>39</y>
         <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
+          <color red="0" green="0" blue="0" />
         </foreground_color>
         <actions hook="false" hook_all="false" />
+        <show_scrollbar>false</show_scrollbar>
         <font>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.intensityGraph" version="1.0.0">
+        <vertial_profile_y_pv_value />
+        <y_axis_show_minor_ticks>true</y_axis_show_minor_ticks>
         <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
-        <tooltip>$(pv_name)
-$(pv_value)</tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <pv_value />
-        <auto_size>false</auto_size>
-        <text></text>
-        <rotation_angle>0.0</rotation_angle>
-        <show_units>true</show_units>
-        <height>31</height>
-        <multiline_input>false</multiline_input>
+        <tooltip>$(pv_name)</tooltip>
+        <x_axis_show_minor_ticks>true</x_axis_show_minor_ticks>
+        <horizon_profile_x_pv_name></horizon_profile_x_pv_name>
+        <height>1027</height>
         <border_width>1</border_width>
-        <visible>true</visible>
-        <pv_name>$(PREFIX_PS)hor-SP</pv_name>
-        <selector_type>0</selector_type>
+        <graph_area_width>1125</graph_area_width>
+        <y_axis_scale_font>
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+        </y_axis_scale_font>
         <border_color>
           <color red="0" green="128" blue="255" />
         </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Input</widget_type>
-        <confirm_message></confirm_message>
-        <name>Text Input</name>
-        <style>0</style>
+        <x_axis_minimum>0.0</x_axis_minimum>
+        <y_axis_maximum>80.0</y_axis_maximum>
+        <pixel_info_pv_value />
+        <x_axis_maximum>-100.0</x_axis_maximum>
+        <vertial_profile_x_pv_value />
         <actions hook="false" hook_all="false" />
-        <border_style>3</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <border_style>0</border_style>
+        <rgb_mode>false</rgb_mode>
+        <crop_left>0</crop_left>
+        <x_axis_scale_font>
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+        </x_axis_scale_font>
+        <data_width>0</data_width>
         <enabled>true</enabled>
-        <wuid>4ad471b5:157e1276406:-781d</wuid>
-        <transparent>false</transparent>
-        <scripts />
+        <wuid>-16429ab9:1582e68df9a:-6ffb</wuid>
+        <y_axis_title_font>
+          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
+        </y_axis_title_font>
         <border_alarm_sensitive>false</border_alarm_sensitive>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <format_type>0</format_type>
-        <limits_from_pv>false</limits_from_pv>
+        <graph_area_height>967</graph_area_height>
+        <x_axis_visible>true</x_axis_visible>
+        <vertical_profile_x_pv_name></vertical_profile_x_pv_name>
+        <pixel_info_pv_name></pixel_info_pv_name>
+        <x_axis_axis_color>
+          <color red="0" green="0" blue="0" />
+        </x_axis_axis_color>
         <background_color>
-          <color name="TextBackground" red="70" green="70" blue="70" />
+          <color red="240" green="240" blue="240" />
         </background_color>
-        <width>100</width>
-        <x>912</x>
-        <y>648</y>
-        <maximum>1.7976931348623157E308</maximum>
-        <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
-        </foreground_color>
-        <minimum>-1.7976931348623157E308</minimum>
+        <x_axis_axis_title>mm</x_axis_axis_title>
+        <width>1235</width>
+        <x>422</x>
+        <y>84</y>
+        <maximum>5.0</maximum>
+        <data_height>0</data_height>
+        <minimum>0.0</minimum>
+        <crop_right>0</crop_right>
+        <crop_top>0</crop_top>
+        <roi_color>
+          <color red="0" green="255" blue="255" />
+        </roi_color>
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
         </font>
-      </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
-        <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>false</enabled>
-        <wuid>4ad471b5:157e1276406:-780f</wuid>
-        <transparent>true</transparent>
-        <auto_size>false</auto_size>
-        <text>PS Vertical</text>
+        <rules>
+          <rule name="DataHeight" prop_id="data_height" out_exp="true">
+            <exp bool_exp="pv0&gt;0">
+              <value>pv0</value>
+            </exp>
+            <pv trig="true">${PREFIX_SCAN}:$(NAME_PS).NPTS</pv>
+          </rule>
+          <rule name="DataWidth" prop_id="data_width" out_exp="true">
+            <exp bool_exp="pv0&gt;0">
+              <value>pv0</value>
+            </exp>
+            <pv trig="true">${PREFIX_SCAN}:$(NAME_MTR).NPTS</pv>
+          </rule>
+          <rule name="XMax" prop_id="x_axis_maximum" out_exp="true">
+            <exp bool_exp="pv0!=0">
+              <value>pv0</value>
+            </exp>
+            <pv trig="true">${PREFIX_SCAN}:$(NAME_MTR).P4SP</pv>
+          </rule>
+          <rule name="XMin" prop_id="x_axis_minimum" out_exp="true">
+            <exp bool_exp="pv0!=0">
+              <value>pv0</value>
+            </exp>
+            <pv trig="true">${PREFIX_SCAN}:$(NAME_MTR).P4EP</pv>
+          </rule>
+          <rule name="YMax" prop_id="y_axis_maximum" out_exp="true">
+            <exp bool_exp="pv0!=0">
+              <value>pv0</value>
+            </exp>
+            <pv trig="true">${PREFIX_SCAN}:$(PROC)-AngleMax-SP</pv>
+          </rule>
+          <rule name="YMin" prop_id="y_axis_minimum" out_exp="true">
+            <exp bool_exp="pv0!=0">
+              <value>pv0</value>
+            </exp>
+            <pv trig="true">${PREFIX_SCAN}:$(PROC)-AngleMin-SP</pv>
+          </rule>
+        </rules>
+        <horizon_profile_y_pv_value />
+        <roi_count>0</roi_count>
+        <pv_value />
+        <color_map>
+          <interpolate>true</interpolate>
+          <autoscale>true</autoscale>
+          <map>2</map>
+        </color_map>
+        <show_ramp>true</show_ramp>
+        <y_axis_axis_title>Deg</y_axis_axis_title>
+        <horizon_profile_y_pv_name></horizon_profile_y_pv_name>
+        <single_line_profiling>false</single_line_profiling>
+        <y_axis_minimum>-80.0</y_axis_minimum>
+        <visible>true</visible>
+        <vertical_profile_y_pv_name></vertical_profile_y_pv_name>
+        <x_axis_major_tick_step_hint>50</x_axis_major_tick_step_hint>
+        <pv_name>$(PREFIX_SCAN):BUFF-CURRENT</pv_name>
+        <widget_type>Intensity Graph</widget_type>
+        <name>Intensity Graph</name>
+        <y_axis_axis_color>
+          <color red="0" green="0" blue="0" />
+        </y_axis_axis_color>
+        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <y_axis_major_tick_step_hint>50</y_axis_major_tick_step_hint>
         <scripts />
-        <height>20</height>
-        <border_width>2</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
+          <keep_wh_ratio>true</keep_wh_ratio>
         </scale_options>
-        <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
-        <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
-        </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
-        <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
-        </background_color>
-        <width>127</width>
-        <x>766</x>
-        <name>Label Orientation_7</name>
-        <y>696</y>
+        <x_axis_title_font>
+          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
+        </x_axis_title_font>
+        <crop_bottom>0</crop_bottom>
+        <y_axis_visible>true</y_axis_visible>
+        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+        <horizon_profile_x_pv_value />
         <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
+          <color red="0" green="0" blue="0" />
         </foreground_color>
-        <actions hook="false" hook_all="false" />
-        <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.tank" version="1.0.0">
         <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
         <tooltip>$(pv_name)
 $(pv_value)</tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
         <rules />
+        <effect_3d>true</effect_3d>
+        <scale_font>
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+        </scale_font>
         <pv_value />
-        <auto_size>false</auto_size>
-        <text></text>
-        <rotation_angle>0.0</rotation_angle>
-        <show_units>true</show_units>
-        <height>31</height>
-        <multiline_input>false</multiline_input>
-        <border_width>1</border_width>
-        <visible>true</visible>
-        <pv_name>$(PREFIX_PS)ver-SP</pv_name>
-        <selector_type>0</selector_type>
+        <show_scale>true</show_scale>
+        <scale_format></scale_format>
+        <height>5</height>
+        <fill_color>
+          <color red="0" green="0" blue="255" />
+        </fill_color>
+        <border_width>1</border_width>
+        <visible>true</visible>
+        <pv_name></pv_name>
         <border_color>
           <color red="0" green="128" blue="255" />
         </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Input</widget_type>
-        <confirm_message></confirm_message>
-        <name>Text Input</name>
-        <style>0</style>
+        <widget_type>Tank</widget_type>
+        <name>Tank</name>
+        <show_hi>true</show_hi>
         <actions hook="false" hook_all="false" />
-        <border_style>3</border_style>
+        <show_lo>true</show_lo>
+        <border_style>0</border_style>
+        <show_lolo>true</show_lolo>
+        <show_minor_ticks>true</show_minor_ticks>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <show_markers>true</show_markers>
+        <color_hihi>
+          <color red="255" green="0" blue="0" />
+        </color_hihi>
+        <show_hihi>true</show_hihi>
+        <log_scale>false</log_scale>
         <enabled>true</enabled>
-        <wuid>4ad471b5:157e1276406:-780e</wuid>
-        <transparent>false</transparent>
+        <wuid>-16429ab9:1582e68df9a:-568c</wuid>
+        <level_hihi>90.0</level_hihi>
+        <color_hi>
+          <color red="255" green="128" blue="0" />
+        </color_hi>
+        <color_lo>
+          <color red="255" green="128" blue="0" />
+        </color_lo>
         <scripts />
-        <border_alarm_sensitive>false</border_alarm_sensitive>
+        <border_alarm_sensitive>true</border_alarm_sensitive>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
+        <fillcolor_alarm_sensitive>false</fillcolor_alarm_sensitive>
+        <color_fillbackground>
+          <color red="192" green="192" blue="192" />
+        </color_fillbackground>
+        <major_tick_step_hint>50</major_tick_step_hint>
+        <level_hi>80.0</level_hi>
+        <transparent_background>true</transparent_background>
+        <level_lo>20.0</level_lo>
         <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <format_type>0</format_type>
-        <limits_from_pv>false</limits_from_pv>
+        <limits_from_pv>true</limits_from_pv>
         <background_color>
-          <color name="TextBackground" red="70" green="70" blue="70" />
+          <color red="240" green="240" blue="240" />
         </background_color>
-        <width>100</width>
-        <x>912</x>
-        <y>690</y>
-        <maximum>1.7976931348623157E308</maximum>
+        <level_lolo>10.0</level_lolo>
+        <width>475</width>
+        <x>522</x>
+        <y>1008</y>
+        <maximum>100.0</maximum>
+        <color_lolo>
+          <color red="255" green="0" blue="0" />
+        </color_lolo>
         <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
+          <color red="0" green="0" blue="0" />
         </foreground_color>
-        <minimum>-1.7976931348623157E308</minimum>
+        <minimum>0.0</minimum>
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
-      </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.xyGraph" version="1.0.0">
-        <axis_1_scale_format></axis_1_scale_format>
-        <trace_2_x_axis_index>0</trace_2_x_axis_index>
-        <alarm_pulsing>false</alarm_pulsing>
-        <tooltip>$(trace_0_y_pv)
-$(trace_0_y_pv_value)</tooltip>
-        <trace_0_concatenate_data>true</trace_0_concatenate_data>
-        <trace_0_trace_type>0</trace_0_trace_type>
-        <border_width>1</border_width>
-        <trace_1_x_axis_index>0</trace_1_x_axis_index>
-        <border_style>0</border_style>
-        <axis_0_grid_color>
-          <color red="200" green="200" blue="200" />
-        </axis_0_grid_color>
-        <trace_0_name>$(trace_0_y_pv)</trace_0_name>
-        <trace_0_update_mode>0</trace_0_update_mode>
-        <trace_1_x_pv></trace_1_x_pv>
-        <wuid>4ad471b5:157e1276406:-7497</wuid>
-        <transparent>false</transparent>
-        <trace_1_update_mode>0</trace_1_update_mode>
-        <axis_0_title_font>
-          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
-        </axis_0_title_font>
-        <trace_2_update_mode>0</trace_2_update_mode>
-        <background_color>
-          <color red="240" green="240" blue="240" />
-        </background_color>
-        <x>528</x>
-        <y>39</y>
-        <trace_0_x_axis_index>0</trace_0_x_axis_index>
-        <axis_count>2</axis_count>
-        <trace_1_point_size>4</trace_1_point_size>
-        <trace_1_anti_alias>true</trace_1_anti_alias>
-        <pv_value />
-        <trace_0_buffer_size>5000</trace_0_buffer_size>
-        <trace_2_buffer_size>5000</trace_2_buffer_size>
-        <axis_1_maximum>100.0</axis_1_maximum>
-        <axis_0_scale_font>
-          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
-        </axis_0_scale_font>
-        <trigger_pv></trigger_pv>
-        <widget_type>XY Graph</widget_type>
-        <trace_2_line_width>1</trace_2_line_width>
-        <axis_1_axis_color>
-          <color red="0" green="0" blue="0" />
-        </axis_1_axis_color>
-        <axis_0_scale_format></axis_0_scale_format>
-        <axis_1_log_scale>false</axis_1_log_scale>
-        <title></title>
-        <trace_0_visible>true</trace_0_visible>
-        <trace_1_name>$(trace_1_y_pv)</trace_1_name>
-        <trace_1_y_pv_value />
-        <show_legend>true</show_legend>
-        <axis_0_axis_title>Primary X Axis (0)</axis_0_axis_title>
-        <axis_0_axis_color>
-          <color red="0" green="0" blue="0" />
-        </axis_0_axis_color>
-        <trace_2_update_delay>100</trace_2_update_delay>
-        <axis_0_dash_grid_line>true</axis_0_dash_grid_line>
-        <trace_0_point_style>0</trace_0_point_style>
-        <trace_1_point_style>0</trace_1_point_style>
-        <trace_0_line_width>1</trace_0_line_width>
-        <axis_0_time_format>0</axis_0_time_format>
-        <trace_count>3</trace_count>
-        <axis_1_show_grid>true</axis_1_show_grid>
-        <trace_2_trace_color>
-          <color red="33" green="179" blue="33" />
-        </trace_2_trace_color>
-        <axis_1_dash_grid_line>true</axis_1_dash_grid_line>
-        <trace_2_trace_type>0</trace_2_trace_type>
-        <show_toolbar>true</show_toolbar>
-        <axis_0_visible>true</axis_0_visible>
-        <axis_0_show_grid>true</axis_0_show_grid>
-        <trace_0_y_axis_index>1</trace_0_y_axis_index>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <trace_1_y_pv>SCANNINGDAQ:AI-CH1-DATA</trace_1_y_pv>
-        <trace_2_concatenate_data>true</trace_2_concatenate_data>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <trace_2_y_pv_value />
-        <trace_2_anti_alias>true</trace_2_anti_alias>
-        <axis_0_maximum>100.0</axis_0_maximum>
-        <trace_1_y_axis_index>1</trace_1_y_axis_index>
-        <trace_2_name>$(trace_2_y_pv)</trace_2_name>
-        <height>313</height>
-        <trace_2_visible>true</trace_2_visible>
-        <trigger_pv_value />
-        <axis_1_grid_color>
-          <color red="200" green="200" blue="200" />
-        </axis_1_grid_color>
-        <actions hook="false" hook_all="false" />
-        <trace_2_point_size>4</trace_2_point_size>
-        <axis_0_log_scale>false</axis_0_log_scale>
-        <trace_0_x_pv_value />
-        <axis_0_auto_scale_threshold>0.0</axis_0_auto_scale_threshold>
-        <rules />
-        <axis_1_visible>true</axis_1_visible>
-        <trace_0_update_delay>100</trace_0_update_delay>
-        <trace_1_concatenate_data>true</trace_1_concatenate_data>
-        <trace_1_trace_color>
-          <color red="242" green="26" blue="26" />
-        </trace_1_trace_color>
-        <pv_name></pv_name>
-        <name>XY Graph</name>
-        <trace_1_trace_type>0</trace_1_trace_type>
-        <axis_0_auto_scale>true</axis_0_auto_scale>
-        <axis_0_minimum>0.0</axis_0_minimum>
-        <trace_2_y_axis_index>1</trace_2_y_axis_index>
-        <trace_1_update_delay>100</trace_1_update_delay>
-        <axis_1_axis_title>Primary Y Axis (1)</axis_1_axis_title>
-        <trace_2_x_pv_value />
-        <axis_1_auto_scale>true</axis_1_auto_scale>
-        <trace_1_line_width>1</trace_1_line_width>
-        <trace_2_y_pv>SCANNINGDAQ:AI-CH3-DATA</trace_2_y_pv>
-        <trace_1_plot_mode>0</trace_1_plot_mode>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <trace_0_y_pv>SCANNINGDAQ:AI-CH0-DATA</trace_0_y_pv>
-        <trace_2_point_style>0</trace_2_point_style>
-        <trace_0_plot_mode>0</trace_0_plot_mode>
-        <enabled>true</enabled>
-        <trace_0_x_pv></trace_0_x_pv>
-        <axis_1_scale_font>
           <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
-        </axis_1_scale_font>
-        <axis_1_time_format>0</axis_1_time_format>
-        <border_alarm_sensitive>true</border_alarm_sensitive>
-        <show_plot_area_border>false</show_plot_area_border>
-        <width>829</width>
-        <trace_1_x_pv_value />
-        <axis_1_minimum>0.0</axis_1_minimum>
-        <title_font>
-          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
-        </title_font>
-        <trace_0_y_pv_value />
-        <trace_1_visible>true</trace_1_visible>
-        <plot_area_background_color>
-          <color red="255" green="255" blue="255" />
-        </plot_area_background_color>
-        <axis_1_title_font>
-          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
-        </axis_1_title_font>
-        <visible>true</visible>
-        <trace_1_buffer_size>5000</trace_1_buffer_size>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
-        <scripts />
-        <trace_0_point_size>4</trace_0_point_size>
-        <trace_0_trace_color>
-          <color red="21" green="21" blue="196" />
-        </trace_0_trace_color>
-        <trace_0_anti_alias>true</trace_0_anti_alias>
-        <axis_1_auto_scale_threshold>0.0</axis_1_auto_scale_threshold>
-        <trace_2_plot_mode>0</trace_2_plot_mode>
-        <trace_2_x_pv></trace_2_x_pv>
-        <foreground_color>
-          <color red="0" green="0" blue="255" />
-        </foreground_color>
+        </font>
       </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
         <border_style>0</border_style>
         <tooltip></tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
-        <enabled>false</enabled>
-        <wuid>1e771979:1565068c2e3:-31f4</wuid>
-        <transparent>true</transparent>
+        <enabled>true</enabled>
+        <wuid>-16429ab9:1582e68df9a:-4219</wuid>
+        <transparent>false</transparent>
         <auto_size>false</auto_size>
-        <text>MRAD  MIN</text>
+        <text>MEASURE</text>
         <scripts />
-        <height>25</height>
-        <border_width>2</border_width>
+        <height>32</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
@@ -2079,78 +1948,1379 @@ $(trace_0_y_pv_value)</tooltip>
         <visible>true</visible>
         <vertical_alignment>1</vertical_alignment>
         <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
+          <color red="0" green="128" blue="255" />
         </border_color>
         <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
+        <wrap_words>true</wrap_words>
         <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
+          <color name="SubPanel" red="176" green="218" blue="249" />
         </background_color>
-        <width>101</width>
-        <x>83</x>
-        <name>Label Orientation_7</name>
-        <y>765</y>
+        <width>1261</width>
+        <x>414</x>
+        <name>Label_15</name>
+        <y>39</y>
         <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
+          <color red="0" green="0" blue="0" />
         </foreground_color>
         <actions hook="false" hook_all="false" />
+        <show_scrollbar>false</show_scrollbar>
         <font>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.RoundedRectangle" version="1.0.0">
+        <border_style>0</border_style>
+        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <line_width>0</line_width>
+        <horizontal_fill>true</horizontal_fill>
         <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
         <tooltip>$(pv_name)
 $(pv_value)</tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
         <rules />
-        <pv_value />
-        <auto_size>false</auto_size>
-        <text></text>
-        <rotation_angle>0.0</rotation_angle>
-        <show_units>true</show_units>
-        <height>31</height>
-        <multiline_input>false</multiline_input>
-        <border_width>1</border_width>
-        <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:$(PROC)-AngleMin-SP</pv_name>
-        <selector_type>0</selector_type>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Input</widget_type>
-        <confirm_message></confirm_message>
-        <name>Text Input</name>
-        <style>0</style>
-        <actions hook="false" hook_all="false" />
-        <border_style>3</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>1e771979:1565068c2e3:-31f3</wuid>
+        <wuid>-16429ab9:1582e68df9a:-3a8f</wuid>
         <transparent>false</transparent>
+        <pv_value />
+        <alpha>255</alpha>
+        <corner_height>16</corner_height>
+        <bg_gradient_color>
+          <color red="255" green="255" blue="255" />
+        </bg_gradient_color>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
+        <height>1099</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <format_type>0</format_type>
-        <limits_from_pv>false</limits_from_pv>
-        <background_color>
-          <color name="TextBackground" red="70" green="70" blue="70" />
+        <visible>true</visible>
+        <pv_name></pv_name>
+        <gradient>false</gradient>
+        <border_color>
+          <color red="0" green="128" blue="255" />
+        </border_color>
+        <anti_alias>true</anti_alias>
+        <corner_width>16</corner_width>
+        <line_style>0</line_style>
+        <widget_type>Rounded Rectangle</widget_type>
+        <fg_gradient_color>
+          <color red="255" green="255" blue="255" />
+        </fg_gradient_color>
+        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+        <background_color>
+          <color red="186" green="189" blue="182" />
         </background_color>
-        <width>100</width>
-        <x>228</x>
-        <y>762</y>
-        <maximum>1.7976931348623157E308</maximum>
+        <width>739</width>
+        <x>1716</x>
+        <name>Rounded Rectangle_5</name>
+        <y>18</y>
+        <fill_level>0.0</fill_level>
         <foreground_color>
-          <color name="KeyboardEntry" red="0" green="255" blue="255" />
+          <color red="255" green="0" blue="0" />
         </foreground_color>
-        <minimum>-1.7976931348623157E308</minimum>
+        <actions hook="false" hook_all="false" />
+        <font>
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+        </font>
+        <line_color>
+          <color red="128" green="0" blue="255" />
+        </line_color>
+      </widget>
+      <widget typeId="org.csstudio.opibuilder.widgets.tab" version="1.0.0">
+        <active_tab>0</active_tab>
+        <tooltip></tooltip>
+        <height>996</height>
+        <border_width>1</border_width>
+        <border_color>
+          <color red="0" green="128" blue="255" />
+        </border_color>
+        <tab_0_foreground_color>
+          <color red="0" green="0" blue="0" />
+        </tab_0_foreground_color>
+        <actions hook="false" hook_all="false" />
+        <border_style>0</border_style>
+        <enabled>true</enabled>
+        <wuid>-16429ab9:1582e68df9a:-3a8b</wuid>
+        <background_color>
+          <color red="186" green="189" blue="182" />
+        </background_color>
+        <width>739</width>
+        <x>1716</x>
+        <horizontal_tabs>true</horizontal_tabs>
+        <y>103</y>
+        <rules />
+        <macros>
+          <include_parent_macros>true</include_parent_macros>
+        </macros>
+        <visible>true</visible>
+        <tab_0_background_color>
+          <color red="186" green="189" blue="182" />
+        </tab_0_background_color>
+        <widget_type>Tabbed Container</widget_type>
+        <name>Tabbed Container</name>
+        <minimum_tab_height>10</minimum_tab_height>
+        <tab_0_font>
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+        </tab_0_font>
+        <tab_0_title>Tab 0</tab_0_title>
+        <scripts />
+        <tab_count>1</tab_count>
+        <scale_options>
+          <width_scalable>true</width_scalable>
+          <height_scalable>true</height_scalable>
+          <keep_wh_ratio>false</keep_wh_ratio>
+        </scale_options>
+        <tab_0_icon_path></tab_0_icon_path>
+        <tab_0_enabled>true</tab_0_enabled>
+        <foreground_color>
+          <color red="192" green="192" blue="192" />
+        </foreground_color>
+        <widget typeId="org.csstudio.opibuilder.widgets.groupingContainer" version="1.0.0">
+          <border_style>0</border_style>
+          <tooltip></tooltip>
+          <rules />
+          <enabled>true</enabled>
+          <wuid>-16429ab9:1582e68df9a:-3a8a</wuid>
+          <transparent>true</transparent>
+          <lock_children>false</lock_children>
+          <scripts />
+          <height>961</height>
+          <border_width>1</border_width>
+          <scale_options>
+            <width_scalable>true</width_scalable>
+            <height_scalable>true</height_scalable>
+            <keep_wh_ratio>false</keep_wh_ratio>
+          </scale_options>
+          <macros>
+            <include_parent_macros>true</include_parent_macros>
+          </macros>
+          <visible>true</visible>
+          <border_color>
+            <color red="0" green="128" blue="255" />
+          </border_color>
+          <widget_type>Grouping Container</widget_type>
+          <background_color>
+            <color red="240" green="240" blue="240" />
+          </background_color>
+          <width>737</width>
+          <x>1</x>
+          <name>Tab 0</name>
+          <y>1</y>
+          <foreground_color>
+            <color red="192" green="192" blue="192" />
+          </foreground_color>
+          <actions hook="false" hook_all="false" />
+          <fc>false</fc>
+          <show_scrollbar>true</show_scrollbar>
+          <font>
+            <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+          </font>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>4ad471b5:157e1276406:-781e</wuid>
+            <transparent>true</transparent>
+            <auto_size>false</auto_size>
+            <text>PS Horizontal</text>
+            <scripts />
+            <height>20</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>false</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>125</width>
+            <x>26</x>
+            <name>Label Orientation_7</name>
+            <y>30</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+            <alarm_pulsing>false</alarm_pulsing>
+            <precision>0</precision>
+            <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <pv_value />
+            <auto_size>false</auto_size>
+            <text></text>
+            <rotation_angle>0.0</rotation_angle>
+            <show_units>true</show_units>
+            <height>31</height>
+            <multiline_input>false</multiline_input>
+            <border_width>1</border_width>
+            <visible>true</visible>
+            <pv_name>$(PREFIX_PS)hor-SP</pv_name>
+            <selector_type>0</selector_type>
+            <border_color>
+              <color red="0" green="128" blue="255" />
+            </border_color>
+            <precision_from_pv>true</precision_from_pv>
+            <widget_type>Text Input</widget_type>
+            <confirm_message></confirm_message>
+            <name>Text Input</name>
+            <style>0</style>
+            <actions hook="false" hook_all="false" />
+            <border_style>3</border_style>
+            <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+            <enabled>true</enabled>
+            <wuid>4ad471b5:157e1276406:-781d</wuid>
+            <transparent>false</transparent>
+            <scripts />
+            <border_alarm_sensitive>false</border_alarm_sensitive>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+            <format_type>0</format_type>
+            <limits_from_pv>false</limits_from_pv>
+            <background_color>
+              <color name="TextBackground" red="70" green="70" blue="70" />
+            </background_color>
+            <width>100</width>
+            <x>150</x>
+            <y>24</y>
+            <maximum>1.7976931348623157E308</maximum>
+            <foreground_color>
+              <color name="Green On" red="0" green="255" blue="0" />
+            </foreground_color>
+            <minimum>-1.7976931348623157E308</minimum>
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>4ad471b5:157e1276406:-780f</wuid>
+            <transparent>true</transparent>
+            <auto_size>false</auto_size>
+            <text>PS Vertical</text>
+            <scripts />
+            <height>20</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>false</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>127</width>
+            <x>18</x>
+            <name>Label Orientation_7</name>
+            <y>70</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+            <alarm_pulsing>false</alarm_pulsing>
+            <precision>0</precision>
+            <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <pv_value />
+            <auto_size>false</auto_size>
+            <text></text>
+            <rotation_angle>0.0</rotation_angle>
+            <show_units>true</show_units>
+            <height>31</height>
+            <multiline_input>false</multiline_input>
+            <border_width>1</border_width>
+            <visible>true</visible>
+            <pv_name>$(PREFIX_PS)ver-SP</pv_name>
+            <selector_type>0</selector_type>
+            <border_color>
+              <color red="0" green="128" blue="255" />
+            </border_color>
+            <precision_from_pv>true</precision_from_pv>
+            <widget_type>Text Input</widget_type>
+            <confirm_message></confirm_message>
+            <name>Text Input</name>
+            <style>0</style>
+            <actions hook="false" hook_all="false" />
+            <border_style>3</border_style>
+            <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+            <enabled>true</enabled>
+            <wuid>4ad471b5:157e1276406:-780e</wuid>
+            <transparent>false</transparent>
+            <scripts />
+            <border_alarm_sensitive>false</border_alarm_sensitive>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+            <format_type>0</format_type>
+            <limits_from_pv>false</limits_from_pv>
+            <background_color>
+              <color name="TextBackground" red="70" green="70" blue="70" />
+            </background_color>
+            <width>100</width>
+            <x>150</x>
+            <y>64</y>
+            <maximum>1.7976931348623157E308</maximum>
+            <foreground_color>
+              <color name="Green On" red="0" green="255" blue="0" />
+            </foreground_color>
+            <minimum>-1.7976931348623157E308</minimum>
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>79429b6c:157dd491a6d:-7dd7</wuid>
+            <transparent>true</transparent>
+            <auto_size>false</auto_size>
+            <text>Angle</text>
+            <scripts />
+            <height>20</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>false</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>109</width>
+            <x>42</x>
+            <name>Label Orientation_7</name>
+            <y>109</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+            <alarm_pulsing>false</alarm_pulsing>
+            <precision>0</precision>
+            <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <pv_value />
+            <auto_size>false</auto_size>
+            <text></text>
+            <rotation_angle>0.0</rotation_angle>
+            <show_units>true</show_units>
+            <height>31</height>
+            <multiline_input>false</multiline_input>
+            <border_width>1</border_width>
+            <visible>true</visible>
+            <pv_name>${PREFIX_SCAN}:$(NAME_PS)-NORD_POS</pv_name>
+            <selector_type>0</selector_type>
+            <border_color>
+              <color red="0" green="128" blue="255" />
+            </border_color>
+            <precision_from_pv>true</precision_from_pv>
+            <widget_type>Text Input</widget_type>
+            <confirm_message></confirm_message>
+            <name>Text Input</name>
+            <style>0</style>
+            <actions hook="false" hook_all="false" />
+            <border_style>3</border_style>
+            <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+            <enabled>true</enabled>
+            <wuid>79429b6c:157dd491a6d:-7dd6</wuid>
+            <transparent>false</transparent>
+            <scripts />
+            <border_alarm_sensitive>false</border_alarm_sensitive>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+            <format_type>0</format_type>
+            <limits_from_pv>false</limits_from_pv>
+            <background_color>
+              <color name="TextBackground" red="70" green="70" blue="70" />
+            </background_color>
+            <width>100</width>
+            <x>150</x>
+            <y>103</y>
+            <maximum>1.7976931348623157E308</maximum>
+            <foreground_color>
+              <color name="Green On" red="0" green="255" blue="0" />
+            </foreground_color>
+            <minimum>-1.7976931348623157E308</minimum>
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+            <alarm_pulsing>false</alarm_pulsing>
+            <precision>0</precision>
+            <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <pv_value />
+            <auto_size>false</auto_size>
+            <text></text>
+            <rotation_angle>0.0</rotation_angle>
+            <show_units>true</show_units>
+            <height>31</height>
+            <multiline_input>false</multiline_input>
+            <border_width>1</border_width>
+            <visible>true</visible>
+            <pv_name>${PREFIX_SCAN}:$(NAME_MTR)-NORD_POS</pv_name>
+            <selector_type>0</selector_type>
+            <border_color>
+              <color red="0" green="128" blue="255" />
+            </border_color>
+            <precision_from_pv>true</precision_from_pv>
+            <widget_type>Text Input</widget_type>
+            <confirm_message></confirm_message>
+            <name>Text Input_3</name>
+            <style>0</style>
+            <actions hook="false" hook_all="false" />
+            <border_style>3</border_style>
+            <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+            <enabled>true</enabled>
+            <wuid>-16429ab9:1582e68df9a:-6dec</wuid>
+            <transparent>false</transparent>
+            <scripts />
+            <border_alarm_sensitive>false</border_alarm_sensitive>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+            <format_type>0</format_type>
+            <limits_from_pv>false</limits_from_pv>
+            <background_color>
+              <color name="TextBackground" red="70" green="70" blue="70" />
+            </background_color>
+            <width>100</width>
+            <x>150</x>
+            <y>142</y>
+            <maximum>1.7976931348623157E308</maximum>
+            <foreground_color>
+              <color name="Green On" red="0" green="255" blue="0" />
+            </foreground_color>
+            <minimum>-1.7976931348623157E308</minimum>
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>1</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:1582e68df9a:-3c09</wuid>
+            <transparent>true</transparent>
+            <auto_size>false</auto_size>
+            <text>Pos</text>
+            <scripts />
+            <height>20</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>false</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>109</width>
+            <x>42</x>
+            <name>Label Orientation_1</name>
+            <y>148</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <font>
+              <fontdata fontName="Sans" height="10" style="1" />
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d84</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>HOMELS: Sate of the home limit switch.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>235</width>
+            <x>366</x>
+            <name>Label Template_6</name>
+            <y>91</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d80</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>HOME: If at home position.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>157</width>
+            <x>366</x>
+            <name>Label Template_10</name>
+            <y>175</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d81</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>SLIP_STALL: Slip/Stall detected (eg. fatal following error).</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>332</width>
+            <x>366</x>
+            <name>Label Template_9</name>
+            <y>154</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d7f</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>PRESENT: Encoder is present.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>181</width>
+            <x>366</x>
+            <name>Label Template_22</name>
+            <y>196</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d7e</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>PROBLEM: Driver stopped polling, or hardware problem.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>324</width>
+            <x>366</x>
+            <name>Label Template_23</name>
+            <y>217</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d83</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>Unused.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>48</width>
+            <x>366</x>
+            <name>Label Template_7</name>
+            <y>112</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d82</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>POSITION: Closed-loop position control is enabled.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>295</width>
+            <x>366</x>
+            <name>Label Template_8</name>
+            <y>133</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d7b</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>COMM_ERR: Controller communication error.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>263</width>
+            <x>366</x>
+            <name>Label Template_15</name>
+            <y>280</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d85</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>PLUS_LS: Plus limit switch has been hit.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>239</width>
+            <x>366</x>
+            <name>Label Template_5</name>
+            <y>70</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d79</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>HOMED: The motor has been homed.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>218</width>
+            <x>366</x>
+            <name>Label Template_17</name>
+            <y>322</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.bytemonitor" version="1.0.0">
+            <border_style>0</border_style>
+            <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+            <alarm_pulsing>false</alarm_pulsing>
+            <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+            <rules />
+            <effect_3d>true</effect_3d>
+            <enabled>true</enabled>
+            <wuid>-16429ab9:158444d4181:-6d87</wuid>
+            <on_color>
+              <color name="IO OK" red="0" green="255" blue="0" />
+            </on_color>
+            <horizontal>false</horizontal>
+            <pv_value />
+            <numBits>15</numBits>
+            <scripts />
+            <border_alarm_sensitive>true</border_alarm_sensitive>
+            <height>320</height>
+            <border_width>0</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <pv_name>PMAC:MTR1.MSTA</pv_name>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <bitReverse>true</bitReverse>
+            <label />
+            <widget_type>Byte Monitor</widget_type>
+            <off_color>
+              <color name="IO Grid" red="215" green="215" blue="215" />
+            </off_color>
+            <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <square_led>true</square_led>
+            <startBit>0</startBit>
+            <width>25</width>
+            <x>330</x>
+            <name>Byte Monitor Template</name>
+            <y>24</y>
+            <foreground_color>
+              <color name="IO InputPV Fg" red="0" green="32" blue="92" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d7a</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>MINUS_LS: Minus limit switch has been hit.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>255</width>
+            <x>366</x>
+            <name>Label Template_16</name>
+            <y>301</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d78</wuid>
+            <transparent>false</transparent>
+            <auto_size>false</auto_size>
+            <text>DIRECTION: Last raw direction; (Grey: Neg., Green: Pos.)</text>
+            <scripts />
+            <height>20</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Shape Fill" red="188" green="188" blue="188" />
+            </background_color>
+            <width>350</width>
+            <x>366</x>
+            <name>Label Template_45</name>
+            <y>28</y>
+            <foreground_color>
+              <color red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d7d</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>MOVING: Non-zero velocity present.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>210</width>
+            <x>366</x>
+            <name>Label Template_13</name>
+            <y>238</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d86</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>DONE: Motion is complete.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>159</width>
+            <x>366</x>
+            <name>Label Template_4</name>
+            <y>49</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+            <border_style>0</border_style>
+            <tooltip></tooltip>
+            <horizontal_alignment>0</horizontal_alignment>
+            <rules />
+            <enabled>false</enabled>
+            <wuid>-16429ab9:158444d4181:-6d7c</wuid>
+            <transparent>true</transparent>
+            <auto_size>true</auto_size>
+            <text>GAIN_SUPPORT: Motor supports closed-loop pos. control.</text>
+            <scripts />
+            <height>15</height>
+            <border_width>2</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <vertical_alignment>1</vertical_alignment>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <widget_type>Label</widget_type>
+            <wrap_words>true</wrap_words>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <width>340</width>
+            <x>366</x>
+            <name>Label Template_14</name>
+            <y>259</y>
+            <foreground_color>
+              <color name="IO Foreground" red="0" green="0" blue="0" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <show_scrollbar>false</show_scrollbar>
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.bytemonitor" version="1.0.0">
+            <border_style>0</border_style>
+            <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+            <alarm_pulsing>false</alarm_pulsing>
+            <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+            <rules />
+            <effect_3d>true</effect_3d>
+            <enabled>true</enabled>
+            <wuid>59fc39f9:158487e5950:-7990</wuid>
+            <on_color>
+              <color name="IO OK" red="0" green="255" blue="0" />
+            </on_color>
+            <horizontal>false</horizontal>
+            <pv_value />
+            <numBits>1</numBits>
+            <scripts />
+            <border_alarm_sensitive>true</border_alarm_sensitive>
+            <height>320</height>
+            <border_width>0</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <pv_name>PMAC:MTR1.MSTA</pv_name>
+            <border_color>
+              <color name="IO Border" red="215" green="215" blue="215" />
+            </border_color>
+            <bitReverse>true</bitReverse>
+            <label />
+            <widget_type>Byte Monitor</widget_type>
+            <off_color>
+              <color name="IO Grid" red="215" green="215" blue="215" />
+            </off_color>
+            <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+            <background_color>
+              <color name="IO Background" red="255" green="255" blue="205" />
+            </background_color>
+            <square_led>true</square_led>
+            <startBit>8</startBit>
+            <width>25</width>
+            <x>389</x>
+            <name>Byte Monitor Template</name>
+            <y>468</y>
+            <foreground_color>
+              <color name="IO InputPV Fg" red="0" green="32" blue="92" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <font>
+              <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+            </font>
+          </widget>
+          <widget typeId="org.csstudio.opibuilder.widgets.bytemonitor" version="1.0.0">
+            <border_style>0</border_style>
+            <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+            <alarm_pulsing>false</alarm_pulsing>
+            <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+            <rules />
+            <effect_3d>true</effect_3d>
+            <enabled>true</enabled>
+            <wuid>59fc39f9:158487e5950:-48dc</wuid>
+            <on_color>
+              <color red="0" green="255" blue="0" />
+            </on_color>
+            <horizontal>true</horizontal>
+            <pv_value />
+            <numBits>16</numBits>
+            <scripts />
+            <border_alarm_sensitive>true</border_alarm_sensitive>
+            <height>20</height>
+            <border_width>1</border_width>
+            <scale_options>
+              <width_scalable>true</width_scalable>
+              <height_scalable>true</height_scalable>
+              <keep_wh_ratio>false</keep_wh_ratio>
+            </scale_options>
+            <visible>true</visible>
+            <pv_name>PMAC:MTR1.MSTA</pv_name>
+            <border_color>
+              <color red="0" green="128" blue="255" />
+            </border_color>
+            <bitReverse>false</bitReverse>
+            <label />
+            <widget_type>Byte Monitor</widget_type>
+            <off_color>
+              <color red="0" green="100" blue="0" />
+            </off_color>
+            <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+            <background_color>
+              <color red="240" green="240" blue="240" />
+            </background_color>
+            <square_led>false</square_led>
+            <startBit>0</startBit>
+            <width>292</width>
+            <x>75</x>
+            <name>Byte Monitor</name>
+            <y>449</y>
+            <foreground_color>
+              <color red="192" green="192" blue="192" />
+            </foreground_color>
+            <actions hook="false" hook_all="false" />
+            <font>
+              <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+            </font>
+          </widget>
+        </widget>
+      </widget>
+      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+        <border_style>0</border_style>
+        <tooltip></tooltip>
+        <horizontal_alignment>1</horizontal_alignment>
+        <rules />
+        <enabled>true</enabled>
+        <wuid>-16429ab9:1582e68df9a:-3a7c</wuid>
+        <transparent>false</transparent>
+        <auto_size>false</auto_size>
+        <text>STATUT</text>
+        <scripts />
+        <height>32</height>
+        <border_width>1</border_width>
+        <scale_options>
+          <width_scalable>true</width_scalable>
+          <height_scalable>true</height_scalable>
+          <keep_wh_ratio>false</keep_wh_ratio>
+        </scale_options>
+        <visible>true</visible>
+        <vertical_alignment>1</vertical_alignment>
+        <border_color>
+          <color red="0" green="128" blue="255" />
+        </border_color>
+        <widget_type>Label</widget_type>
+        <wrap_words>true</wrap_words>
+        <background_color>
+          <color name="SubPanel" red="176" green="218" blue="249" />
+        </background_color>
+        <width>739</width>
+        <x>1716</x>
+        <name>Label_15</name>
+        <y>39</y>
+        <foreground_color>
+          <color red="0" green="0" blue="0" />
+        </foreground_color>
+        <actions hook="false" hook_all="false" />
+        <show_scrollbar>false</show_scrollbar>
         <font>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
@@ -2161,10 +3331,10 @@ $(pv_value)</tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <enabled>false</enabled>
-        <wuid>-cae44c:157dd221fed:-75d1</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6feb</wuid>
         <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>Step size</text>
+        <text>Energy (eV)</text>
         <scripts />
         <height>20</height>
         <border_width>2</border_width>
@@ -2183,10 +3353,10 @@ $(pv_value)</tooltip>
         <background_color>
           <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
-        <width>144</width>
-        <x>60</x>
-        <name>Label Orientation_2</name>
-        <y>852</y>
+        <width>151</width>
+        <x>42</x>
+        <name>Label Orientation_1</name>
+        <y>138</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -2211,7 +3381,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${PROC}-StepAngle</pv_name>
+        <pv_name>${PREFIX_SCAN}:${CALC}-Energy-SP</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -2219,13 +3389,13 @@ $(pv_value)</tooltip>
         <precision_from_pv>true</precision_from_pv>
         <widget_type>Text Input</widget_type>
         <confirm_message></confirm_message>
-        <name>Text Input_2</name>
+        <name>Text Input</name>
         <style>0</style>
         <actions hook="false" hook_all="false" />
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>-cae44c:157dd221fed:-75d0</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6fea</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -2242,7 +3412,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>846</y>
+        <y>132</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -2252,46 +3422,6 @@ $(pv_value)</tooltip>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
-        <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>false</enabled>
-        <wuid>4ad471b5:157e1276406:-740b</wuid>
-        <transparent>true</transparent>
-        <auto_size>false</auto_size>
-        <text>MRAD MAX</text>
-        <scripts />
-        <height>25</height>
-        <border_width>2</border_width>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
-        <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
-        </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
-        <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
-        </background_color>
-        <width>99</width>
-        <x>82</x>
-        <name>Label Orientation_1</name>
-        <y>720</y>
-        <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
-        </foreground_color>
-        <actions hook="false" hook_all="false" />
-        <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
-      </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
         <alarm_pulsing>false</alarm_pulsing>
         <precision>0</precision>
@@ -2308,7 +3438,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:$(PROC)-AngleMax-SP</pv_name>
+        <pv_name>${PREFIX_SCAN}:${CALC}-DistP-SP</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -2316,13 +3446,13 @@ $(pv_value)</tooltip>
         <precision_from_pv>true</precision_from_pv>
         <widget_type>Text Input</widget_type>
         <confirm_message></confirm_message>
-        <name>Text Input</name>
+        <name>Text Input_2</name>
         <style>0</style>
         <actions hook="false" hook_all="false" />
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>4ad471b5:157e1276406:-740a</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6fe8</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -2339,7 +3469,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>720</y>
+        <y>174</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -2349,249 +3479,92 @@ $(pv_value)</tooltip>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextUpdate" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
         <border_style>0</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
-        <alarm_pulsing>false</alarm_pulsing>
-        <precision>4</precision>
-        <tooltip>$(pv_name)
-$(pv_value)</tooltip>
-        <horizontal_alignment>0</horizontal_alignment>
+        <tooltip></tooltip>
+        <horizontal_alignment>1</horizontal_alignment>
         <rules />
-        <enabled>true</enabled>
-        <wuid>68a2b1f3:157e73a347e:-7d89</wuid>
-        <transparent>false</transparent>
-        <pv_value />
+        <enabled>false</enabled>
+        <wuid>-20a75393:15809f6e4ee:-6fe9</wuid>
+        <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>######</text>
-        <rotation_angle>0.0</rotation_angle>
+        <text>Distance betw. Plates</text>
         <scripts />
-        <border_alarm_sensitive>true</border_alarm_sensitive>
-        <show_units>true</show_units>
         <height>20</height>
-        <border_width>1</border_width>
+        <border_width>2</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
         <visible>true</visible>
-        <pv_name>SCAN:DET1-COMP</pv_name>
         <vertical_alignment>1</vertical_alignment>
         <border_color>
-          <color red="0" green="128" blue="255" />
+          <color name="IO Border" red="215" green="215" blue="215" />
         </border_color>
-        <precision_from_pv>false</precision_from_pv>
-        <widget_type>Text Update</widget_type>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+        <widget_type>Label</widget_type>
         <wrap_words>false</wrap_words>
-        <format_type>0</format_type>
         <background_color>
-          <color red="255" green="255" blue="255" />
+          <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
-        <width>100</width>
-        <x>891</x>
-        <name>Text Update</name>
-        <y>408</y>
+        <width>174</width>
+        <x>43</x>
+        <name>Label Orientation_2</name>
+        <y>180</y>
         <foreground_color>
-          <color red="0" green="0" blue="0" />
+          <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
         <actions hook="false" hook_all="false" />
         <font>
-          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+          <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextUpdate" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
         <border_style>0</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
-        <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
-        <tooltip>$(pv_name)
-$(pv_value)</tooltip>
-        <horizontal_alignment>0</horizontal_alignment>
+        <tooltip></tooltip>
+        <horizontal_alignment>1</horizontal_alignment>
         <rules />
-        <enabled>true</enabled>
-        <wuid>68a2b1f3:157e73a347e:-7d86</wuid>
-        <transparent>false</transparent>
-        <pv_value />
+        <enabled>false</enabled>
+        <wuid>-20a75393:15809f6e4ee:-6fe7</wuid>
+        <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>######</text>
-        <rotation_angle>0.0</rotation_angle>
+        <text>Plate lenght</text>
         <scripts />
-        <border_alarm_sensitive>true</border_alarm_sensitive>
-        <show_units>true</show_units>
         <height>20</height>
-        <border_width>1</border_width>
+        <border_width>2</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
         <visible>true</visible>
-        <pv_name></pv_name>
         <vertical_alignment>1</vertical_alignment>
         <border_color>
-          <color red="0" green="128" blue="255" />
+          <color name="IO Border" red="215" green="215" blue="215" />
         </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Update</widget_type>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+        <widget_type>Label</widget_type>
         <wrap_words>false</wrap_words>
-        <format_type>0</format_type>
         <background_color>
-          <color red="255" green="255" blue="255" />
+          <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
-        <width>100</width>
-        <x>893</x>
-        <name>Text Update_1</name>
-        <y>468</y>
+        <width>199</width>
+        <x>30</x>
+        <name>Label Orientation_3</name>
+        <y>220</y>
         <foreground_color>
-          <color red="0" green="0" blue="0" />
+          <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
         <actions hook="false" hook_all="false" />
         <font>
-          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+          <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextUpdate" version="1.0.0">
-        <border_style>0</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
         <alarm_pulsing>false</alarm_pulsing>
         <precision>0</precision>
         <tooltip>$(pv_name)
 $(pv_value)</tooltip>
-        <horizontal_alignment>0</horizontal_alignment>
-        <rules />
-        <enabled>true</enabled>
-        <wuid>68a2b1f3:157e73a347e:-7d83</wuid>
-        <transparent>false</transparent>
-        <pv_value />
-        <auto_size>false</auto_size>
-        <text>######</text>
-        <rotation_angle>0.0</rotation_angle>
-        <scripts />
-        <border_alarm_sensitive>true</border_alarm_sensitive>
-        <show_units>true</show_units>
-        <height>20</height>
-        <border_width>1</border_width>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <visible>true</visible>
-        <pv_name></pv_name>
-        <vertical_alignment>1</vertical_alignment>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Update</widget_type>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <wrap_words>false</wrap_words>
-        <format_type>0</format_type>
-        <background_color>
-          <color red="255" green="255" blue="255" />
-        </background_color>
-        <width>100</width>
-        <x>893</x>
-        <name>Text Update_2</name>
-        <y>517</y>
-        <foreground_color>
-          <color red="0" green="0" blue="0" />
-        </foreground_color>
-        <actions hook="false" hook_all="false" />
-        <font>
-          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
-        </font>
-      </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
-        <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-700a</wuid>
-        <transparent>false</transparent>
-        <auto_size>false</auto_size>
-        <text>CONFIGURATION</text>
-        <scripts />
-        <height>32</height>
-        <border_width>1</border_width>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>true</wrap_words>
-        <background_color>
-          <color name="SubPanel" red="176" green="218" blue="249" />
-        </background_color>
-        <width>349</width>
-        <x>30</x>
-        <name>Label_15</name>
-        <y>60</y>
-        <foreground_color>
-          <color red="0" green="0" blue="0" />
-        </foreground_color>
-        <actions hook="false" hook_all="false" />
-        <show_scrollbar>false</show_scrollbar>
-        <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
-      </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
-        <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6feb</wuid>
-        <transparent>true</transparent>
-        <auto_size>false</auto_size>
-        <text>Energy (eV)</text>
-        <scripts />
-        <height>20</height>
-        <border_width>2</border_width>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
-        <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
-        </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
-        <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
-        </background_color>
-        <width>151</width>
-        <x>42</x>
-        <name>Label Orientation_1</name>
-        <y>111</y>
-        <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
-        </foreground_color>
-        <actions hook="false" hook_all="false" />
-        <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
-      </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
-        <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
-        <tooltip>$(pv_name)
-$(pv_value)</tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
+        <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <pv_value />
         <auto_size>false</auto_size>
@@ -2602,7 +3575,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${CALC}-Energy-SP</pv_name>
+        <pv_name>${PREFIX_SCAN}:${CALC}-LenghP-SP</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -2610,13 +3583,13 @@ $(pv_value)</tooltip>
         <precision_from_pv>true</precision_from_pv>
         <widget_type>Text Input</widget_type>
         <confirm_message></confirm_message>
-        <name>Text Input</name>
+        <name>Text Input_3</name>
         <style>0</style>
         <actions hook="false" hook_all="false" />
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fea</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6fe6</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -2633,7 +3606,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>105</y>
+        <y>214</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -2643,46 +3616,6 @@ $(pv_value)</tooltip>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
-        <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fe9</wuid>
-        <transparent>true</transparent>
-        <auto_size>false</auto_size>
-        <text>Distance betw. Plates</text>
-        <scripts />
-        <height>20</height>
-        <border_width>2</border_width>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
-        <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
-        </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
-        <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
-        </background_color>
-        <width>174</width>
-        <x>43</x>
-        <name>Label Orientation_2</name>
-        <y>153</y>
-        <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
-        </foreground_color>
-        <actions hook="false" hook_all="false" />
-        <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
-      </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
         <alarm_pulsing>false</alarm_pulsing>
         <precision>0</precision>
@@ -2699,7 +3632,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${CALC}-DistP-SP</pv_name>
+        <pv_name>${PREFIX_SCAN}:${CALC}-FacLenghP-SP</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -2707,13 +3640,13 @@ $(pv_value)</tooltip>
         <precision_from_pv>true</precision_from_pv>
         <widget_type>Text Input</widget_type>
         <confirm_message></confirm_message>
-        <name>Text Input_2</name>
+        <name>Text Input_4</name>
         <style>0</style>
         <actions hook="false" hook_all="false" />
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fe8</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6fe4</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -2730,7 +3663,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>147</y>
+        <y>259</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -2746,10 +3679,10 @@ $(pv_value)</tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fe7</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6fe5</wuid>
         <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>Plate lenght</text>
+        <text>Face Plate lenght</text>
         <scripts />
         <height>20</height>
         <border_width>2</border_width>
@@ -2770,8 +3703,8 @@ $(pv_value)</tooltip>
         </background_color>
         <width>199</width>
         <x>30</x>
-        <name>Label Orientation_3</name>
-        <y>193</y>
+        <name>Label Orientation_4</name>
+        <y>265</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -2780,73 +3713,16 @@ $(pv_value)</tooltip>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
-        <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
-        <tooltip>$(pv_name)
-$(pv_value)</tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <pv_value />
-        <auto_size>false</auto_size>
-        <text></text>
-        <rotation_angle>0.0</rotation_angle>
-        <show_units>true</show_units>
-        <height>31</height>
-        <multiline_input>false</multiline_input>
-        <border_width>1</border_width>
-        <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${CALC}-LenghP-SP</pv_name>
-        <selector_type>0</selector_type>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Input</widget_type>
-        <confirm_message></confirm_message>
-        <name>Text Input_3</name>
-        <style>0</style>
-        <actions hook="false" hook_all="false" />
-        <border_style>3</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
-        <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fe6</wuid>
-        <transparent>false</transparent>
-        <scripts />
-        <border_alarm_sensitive>false</border_alarm_sensitive>
-        <scale_options>
-          <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
-        </scale_options>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <format_type>0</format_type>
-        <limits_from_pv>false</limits_from_pv>
-        <background_color>
-          <color name="TextBackground" red="70" green="70" blue="70" />
-        </background_color>
-        <width>100</width>
-        <x>228</x>
-        <y>187</y>
-        <maximum>1.7976931348623157E308</maximum>
-        <foreground_color>
-          <color name="KeyboardEntry" red="0" green="255" blue="255" />
-        </foreground_color>
-        <minimum>-1.7976931348623157E308</minimum>
-        <font>
-          <fontdata fontName="Sans" height="10" style="1" />
-        </font>
-      </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
         <border_style>0</border_style>
         <tooltip></tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fe5</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6fa3</wuid>
         <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>Face Plate lenght</text>
+        <text>Rear Plate lenght</text>
         <scripts />
         <height>20</height>
         <border_width>2</border_width>
@@ -2868,7 +3744,7 @@ $(pv_value)</tooltip>
         <width>199</width>
         <x>30</x>
         <name>Label Orientation_4</name>
-        <y>238</y>
+        <y>309</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -2893,7 +3769,7 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${CALC}-FacLenghP-SP</pv_name>
+        <pv_name>${PREFIX_SCAN}:${CALC}-RearLenghP-SP</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -2907,7 +3783,7 @@ $(pv_value)</tooltip>
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fe4</wuid>
+        <wuid>-20a75393:15809f6e4ee:-6fa2</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -2924,7 +3800,7 @@ $(pv_value)</tooltip>
         </background_color>
         <width>100</width>
         <x>228</x>
-        <y>232</y>
+        <y>303</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="KeyboardEntry" red="0" green="255" blue="255" />
@@ -2934,149 +3810,155 @@ $(pv_value)</tooltip>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.polyline" version="1.0.0">
         <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fa3</wuid>
-        <transparent>true</transparent>
-        <auto_size>false</auto_size>
-        <text>Rear Plate lenght</text>
+        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <line_width>1</line_width>
+        <horizontal_fill>true</horizontal_fill>
+        <alarm_pulsing>false</alarm_pulsing>
+        <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+        <arrows>0</arrows>
+        <rules />
+        <enabled>true</enabled>
+        <wuid>-16429ab9:1582e68df9a:-375a</wuid>
+        <transparent>false</transparent>
+        <points>
+          <point x="30" y="100" />
+          <point x="378" y="100" />
+          <point x="378" y="100" />
+          <point x="378" y="100" />
+          <point x="378" y="100" />
+        </points>
+        <fill_arrow>true</fill_arrow>
+        <pv_value />
+        <alpha>255</alpha>
+        <rotation_angle>0.0</rotation_angle>
         <scripts />
-        <height>20</height>
-        <border_width>2</border_width>
+        <border_alarm_sensitive>false</border_alarm_sensitive>
+        <height>1</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
+          <keep_wh_ratio>true</keep_wh_ratio>
         </scale_options>
         <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
+        <pv_name></pv_name>
         <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
+          <color name="Black" red="0" green="0" blue="0" />
         </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
+        <anti_alias>true</anti_alias>
+        <line_style>0</line_style>
+        <arrow_length>20</arrow_length>
+        <widget_type>Polyline</widget_type>
+        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
         <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
+          <color name="Black" red="0" green="0" blue="0" />
         </background_color>
-        <width>199</width>
+        <width>349</width>
         <x>30</x>
-        <name>Label Orientation_4</name>
-        <y>282</y>
+        <name>Polyline</name>
+        <y>100</y>
+        <fill_level>0.0</fill_level>
         <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
+          <color red="255" green="0" blue="0" />
         </foreground_color>
         <actions hook="false" hook_all="false" />
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
-        <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
-        <tooltip>$(pv_name)
-$(pv_value)</tooltip>
+      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+        <border_style>0</border_style>
+        <tooltip></tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
-        <pv_value />
-        <auto_size>false</auto_size>
-        <text></text>
-        <rotation_angle>0.0</rotation_angle>
-        <show_units>true</show_units>
-        <height>31</height>
-        <multiline_input>false</multiline_input>
-        <border_width>1</border_width>
-        <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${CALC}-RearLenghP-SP</pv_name>
-        <selector_type>0</selector_type>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Input</widget_type>
-        <confirm_message></confirm_message>
-        <name>Text Input_4</name>
-        <style>0</style>
-        <actions hook="false" hook_all="false" />
-        <border_style>3</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6fa2</wuid>
+        <wuid>-16429ab9:1582e68df9a:-3759</wuid>
         <transparent>false</transparent>
+        <auto_size>false</auto_size>
+        <text>Dimension</text>
         <scripts />
-        <border_alarm_sensitive>false</border_alarm_sensitive>
+        <height>20</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <format_type>0</format_type>
-        <limits_from_pv>false</limits_from_pv>
+        <visible>true</visible>
+        <vertical_alignment>1</vertical_alignment>
+        <border_color>
+          <color red="0" green="128" blue="255" />
+        </border_color>
+        <widget_type>Label</widget_type>
+        <wrap_words>false</wrap_words>
         <background_color>
-          <color name="TextBackground" red="70" green="70" blue="70" />
+          <color name="panelArea" red="240" green="240" blue="240" />
         </background_color>
-        <width>100</width>
-        <x>228</x>
-        <y>276</y>
-        <maximum>1.7976931348623157E308</maximum>
+        <width>229</width>
+        <x>96</x>
+        <name>Label_156</name>
+        <y>91</y>
         <foreground_color>
-          <color name="KeyboardEntry" red="0" green="255" blue="255" />
+          <color red="0" green="0" blue="0" />
         </foreground_color>
-        <minimum>-1.7976931348623157E308</minimum>
+        <actions hook="false" hook_all="false" />
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="OpenSans" height="10" style="1">Small Bold</opifont.name>
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Rectangle" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.polyline" version="1.0.0">
         <border_style>0</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
-        <line_width>0</line_width>
+        <line_width>1</line_width>
         <horizontal_fill>true</horizontal_fill>
         <alarm_pulsing>false</alarm_pulsing>
         <tooltip>$(pv_name)
 $(pv_value)</tooltip>
+        <arrows>0</arrows>
         <rules />
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6d9c</wuid>
+        <wuid>-16429ab9:1582e68df9a:-3733</wuid>
         <transparent>false</transparent>
+        <points>
+          <point x="29" y="873" />
+          <point x="377" y="873" />
+          <point x="377" y="873" />
+          <point x="377" y="873" />
+          <point x="377" y="873" />
+        </points>
+        <fill_arrow>true</fill_arrow>
         <pv_value />
         <alpha>255</alpha>
-        <bg_gradient_color>
-          <color red="255" green="255" blue="255" />
-        </bg_gradient_color>
+        <rotation_angle>0.0</rotation_angle>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
-        <height>79</height>
+        <height>1</height>
         <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
+          <keep_wh_ratio>true</keep_wh_ratio>
         </scale_options>
         <visible>true</visible>
         <pv_name></pv_name>
-        <gradient>false</gradient>
         <border_color>
-          <color red="0" green="128" blue="255" />
+          <color name="Black" red="0" green="0" blue="0" />
         </border_color>
         <anti_alias>true</anti_alias>
         <line_style>0</line_style>
-        <widget_type>Rectangle</widget_type>
-        <fg_gradient_color>
-          <color red="255" green="255" blue="255" />
-        </fg_gradient_color>
+        <arrow_length>20</arrow_length>
+        <widget_type>Polyline</widget_type>
         <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
         <background_color>
-          <color name="Container Border Grey" red="150" green="150" blue="150" />
+          <color name="Black" red="0" green="0" blue="0" />
         </background_color>
-        <width>320</width>
-        <x>48</x>
-        <name>Rectangle</name>
-        <y>318</y>
+        <width>349</width>
+        <x>29</x>
+        <name>Polyline</name>
+        <y>873</y>
         <fill_level>0.0</fill_level>
         <foreground_color>
           <color red="255" green="0" blue="0" />
@@ -3085,23 +3967,20 @@ $(pv_value)</tooltip>
         <font>
           <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
         </font>
-        <line_color>
-          <color red="128" green="0" blue="255" />
-        </line_color>
       </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
         <border_style>0</border_style>
         <tooltip></tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
-        <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6d9b</wuid>
-        <transparent>true</transparent>
+        <enabled>true</enabled>
+        <wuid>-16429ab9:1582e68df9a:-3732</wuid>
+        <transparent>false</transparent>
         <auto_size>false</auto_size>
-        <text>Coeff VOLT to MRAD</text>
+        <text>Motor</text>
         <scripts />
         <height>20</height>
-        <border_width>2</border_width>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
@@ -3110,28 +3989,28 @@ $(pv_value)</tooltip>
         <visible>true</visible>
         <vertical_alignment>1</vertical_alignment>
         <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
+          <color red="0" green="128" blue="255" />
         </border_color>
         <widget_type>Label</widget_type>
         <wrap_words>false</wrap_words>
         <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
+          <color name="panelArea" red="240" green="240" blue="240" />
         </background_color>
-        <width>199</width>
-        <x>30</x>
-        <name>Label Orientation_1</name>
-        <y>363</y>
+        <width>229</width>
+        <x>96</x>
+        <name>Label_156</name>
+        <y>864</y>
         <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
+          <color red="0" green="0" blue="0" />
         </foreground_color>
         <actions hook="false" hook_all="false" />
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="OpenSans" height="10" style="1">Small Bold</opifont.name>
         </font>
       </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
         <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
+        <precision>1</precision>
         <tooltip>$(pv_name)
 $(pv_value)</tooltip>
         <horizontal_alignment>1</horizontal_alignment>
@@ -3145,21 +4024,21 @@ $(pv_value)</tooltip>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:$(CALC)-FactVtoMRAD</pv_name>
+        <pv_name>PMAC:MTR1.VELO</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
         </border_color>
-        <precision_from_pv>true</precision_from_pv>
+        <precision_from_pv>false</precision_from_pv>
         <widget_type>Text Input</widget_type>
         <confirm_message></confirm_message>
-        <name>Text Input</name>
+        <name>Text Input_9</name>
         <style>0</style>
         <actions hook="false" hook_all="false" />
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6d9a</wuid>
+        <wuid>-16429ab9:1582e68df9a:-3717</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -3174,12 +4053,12 @@ $(pv_value)</tooltip>
         <background_color>
           <color name="TextBackground" red="70" green="70" blue="70" />
         </background_color>
-        <width>133</width>
+        <width>100</width>
         <x>228</x>
-        <y>357</y>
+        <y>900</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
+          <color name="KeyboardEntry" red="0" green="255" blue="255" />
         </foreground_color>
         <minimum>-1.7976931348623157E308</minimum>
         <font>
@@ -3192,10 +4071,10 @@ $(pv_value)</tooltip>
         <horizontal_alignment>1</horizontal_alignment>
         <rules />
         <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6d99</wuid>
+        <wuid>-16429ab9:1582e68df9a:-370d</wuid>
         <transparent>true</transparent>
         <auto_size>false</auto_size>
-        <text>Coeff MRAD to VOLT</text>
+        <text>Velocity</text>
         <scripts />
         <height>20</height>
         <border_width>2</border_width>
@@ -3214,10 +4093,10 @@ $(pv_value)</tooltip>
         <background_color>
           <color name="IO Background" red="255" green="255" blue="205" />
         </background_color>
-        <width>199</width>
-        <x>34</x>
-        <name>Label Orientation_2</name>
-        <y>330</y>
+        <width>86</width>
+        <x>98</x>
+        <name>Label Orientation_15</name>
+        <y>906</y>
         <foreground_color>
           <color name="IO Foreground" red="0" green="0" blue="0" />
         </foreground_color>
@@ -3226,109 +4105,116 @@ $(pv_value)</tooltip>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
-        <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
-        <tooltip>$(pv_name)
-$(pv_value)</tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <pv_value />
-        <auto_size>false</auto_size>
-        <text></text>
-        <rotation_angle>0.0</rotation_angle>
-        <show_units>true</show_units>
-        <height>31</height>
-        <multiline_input>false</multiline_input>
-        <border_width>1</border_width>
-        <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${CALC}-FactMRADtoV</pv_name>
-        <selector_type>0</selector_type>
-        <border_color>
-          <color red="0" green="128" blue="255" />
-        </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Input</widget_type>
-        <confirm_message></confirm_message>
-        <name>Text Input_2</name>
-        <style>0</style>
-        <actions hook="false" hook_all="false" />
-        <border_style>3</border_style>
+      <widget typeId="org.csstudio.opibuilder.widgets.ActionButton" version="2.0.0">
+        <toggle_button>false</toggle_button>
+        <border_style>0</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <alarm_pulsing>false</alarm_pulsing>
+        <tooltip>$(pv_name)</tooltip>
+        <push_action_index>0</push_action_index>
+        <rules>
+          <rule name="enable" prop_id="enabled" out_exp="false">
+            <exp bool_exp="pv0 == 1">
+              <value>false</value>
+            </exp>
+            <pv trig="true">$(P)_$(M):V_BRAKE_GET</pv>
+          </rule>
+        </rules>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6d98</wuid>
-        <transparent>false</transparent>
+        <wuid>-16429ab9:1582e68df9a:-3721</wuid>
+        <pv_value />
+        <text>GO!</text>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
+        <height>36</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
+        <image></image>
+        <visible>true</visible>
+        <pv_name></pv_name>
+        <border_color>
+          <color name="Blue" red="0" green="128" blue="255" />
+        </border_color>
+        <widget_type>Action Button</widget_type>
         <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <format_type>0</format_type>
-        <limits_from_pv>false</limits_from_pv>
         <background_color>
-          <color name="TextBackground" red="70" green="70" blue="70" />
+          <color name="Button Grey" red="180" green="180" blue="180" />
         </background_color>
-        <width>133</width>
-        <x>228</x>
-        <y>324</y>
-        <maximum>1.7976931348623157E308</maximum>
+        <width>97</width>
+        <x>229</x>
+        <name>Action Button_1</name>
+        <y>942</y>
+        <style>0</style>
         <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
+          <color name="Black" red="0" green="0" blue="0" />
         </foreground_color>
-        <minimum>-1.7976931348623157E308</minimum>
+        <actions hook="false" hook_all="false">
+          <action type="WRITE_PV">
+            <pv_name>PMAC:MTR1-HOMCMD</pv_name>
+            <value>1</value>
+            <timeout>10</timeout>
+            <confirm_message></confirm_message>
+            <description></description>
+          </action>
+        </actions>
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Rectangle" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.polyline" version="1.0.0">
         <border_style>0</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
-        <line_width>0</line_width>
+        <line_width>5</line_width>
         <horizontal_fill>true</horizontal_fill>
         <alarm_pulsing>false</alarm_pulsing>
         <tooltip>$(pv_name)
 $(pv_value)</tooltip>
+        <arrows>0</arrows>
         <rules />
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6b7a</wuid>
+        <wuid>-16429ab9:1582e68df9a:-363a</wuid>
         <transparent>false</transparent>
+        <points>
+          <point x="29" y="1038" />
+          <point x="377" y="1038" />
+          <point x="377" y="1038" />
+          <point x="377" y="1038" />
+          <point x="377" y="1038" />
+        </points>
+        <fill_arrow>true</fill_arrow>
         <pv_value />
         <alpha>255</alpha>
-        <bg_gradient_color>
-          <color red="255" green="255" blue="255" />
-        </bg_gradient_color>
+        <rotation_angle>0.0</rotation_angle>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
-        <height>79</height>
+        <height>1</height>
         <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
+          <keep_wh_ratio>true</keep_wh_ratio>
         </scale_options>
         <visible>true</visible>
         <pv_name></pv_name>
-        <gradient>false</gradient>
         <border_color>
-          <color red="0" green="128" blue="255" />
+          <color name="Black" red="0" green="0" blue="0" />
         </border_color>
         <anti_alias>true</anti_alias>
         <line_style>0</line_style>
-        <widget_type>Rectangle</widget_type>
-        <fg_gradient_color>
-          <color red="255" green="255" blue="255" />
-        </fg_gradient_color>
+        <arrow_length>20</arrow_length>
+        <widget_type>Polyline</widget_type>
         <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
         <background_color>
-          <color name="Container Border Grey" red="150" green="150" blue="150" />
+          <color name="Black" red="0" green="0" blue="0" />
         </background_color>
-        <width>289</width>
-        <x>48</x>
-        <name>Rectangle</name>
-        <y>930</y>
+        <width>349</width>
+        <x>29</x>
+        <name>Polyline</name>
+        <y>1038</y>
         <fill_level>0.0</fill_level>
         <foreground_color>
           <color red="255" green="0" blue="0" />
@@ -3337,48 +4223,65 @@ $(pv_value)</tooltip>
         <font>
           <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
         </font>
-        <line_color>
-          <color red="128" green="0" blue="255" />
-        </line_color>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.ActionButton" version="2.0.0">
+        <toggle_button>false</toggle_button>
         <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
-        <rules />
-        <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6b79</wuid>
-        <transparent>true</transparent>
-        <auto_size>false</auto_size>
-        <text>VOLTAGE Max</text>
+        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <alarm_pulsing>false</alarm_pulsing>
+        <tooltip>$(pv_name)</tooltip>
+        <push_action_index>0</push_action_index>
+        <rules>
+          <rule name="enable" prop_id="enabled" out_exp="false">
+            <exp bool_exp="pv0 == 1">
+              <value>false</value>
+            </exp>
+            <pv trig="true">$(P)_$(M):V_BRAKE_GET</pv>
+          </rule>
+        </rules>
+        <enabled>true</enabled>
+        <wuid>-16429ab9:158444d4181:-720b</wuid>
+        <pv_value />
+        <text>Reset</text>
         <scripts />
-        <height>20</height>
-        <border_width>2</border_width>
+        <border_alarm_sensitive>false</border_alarm_sensitive>
+        <height>36</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
+        <image></image>
         <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
+        <pv_name></pv_name>
         <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
+          <color name="Blue" red="0" green="128" blue="255" />
         </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
+        <widget_type>Action Button</widget_type>
+        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
         <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
+          <color name="Button Grey" red="180" green="180" blue="180" />
         </background_color>
-        <width>199</width>
-        <x>30</x>
-        <name>Label Orientation_1</name>
-        <y>975</y>
+        <width>98</width>
+        <x>229</x>
+        <name>Action Button_1</name>
+        <y>993</y>
+        <style>0</style>
         <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
+          <color name="Black" red="0" green="0" blue="0" />
         </foreground_color>
-        <actions hook="false" hook_all="false" />
+        <actions hook="false" hook_all="false">
+          <action type="WRITE_PV">
+            <pv_name>PMAC:MT1-HOMCMD</pv_name>
+            <value>1</value>
+            <timeout>10</timeout>
+            <confirm_message></confirm_message>
+            <description></description>
+          </action>
+        </actions>
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
         </font>
       </widget>
       <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
@@ -3393,11 +4296,11 @@ $(pv_value)</tooltip>
         <text></text>
         <rotation_angle>0.0</rotation_angle>
         <show_units>true</show_units>
-        <height>31</height>
+        <height>22</height>
         <multiline_input>false</multiline_input>
         <border_width>1</border_width>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${PROC}-VoltMin</pv_name>
+        <pv_name>PMAC:MTR1.RBV</pv_name>
         <selector_type>0</selector_type>
         <border_color>
           <color red="0" green="128" blue="255" />
@@ -3405,13 +4308,13 @@ $(pv_value)</tooltip>
         <precision_from_pv>true</precision_from_pv>
         <widget_type>Text Input</widget_type>
         <confirm_message></confirm_message>
-        <name>Text Input</name>
+        <name>Text Input_9</name>
         <style>0</style>
         <actions hook="false" hook_all="false" />
         <border_style>3</border_style>
         <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6b78</wuid>
+        <wuid>-16429ab9:158444d4181:-628c</wuid>
         <transparent>false</transparent>
         <scripts />
         <border_alarm_sensitive>false</border_alarm_sensitive>
@@ -3427,8 +4330,8 @@ $(pv_value)</tooltip>
           <color name="TextBackground" red="70" green="70" blue="70" />
         </background_color>
         <width>100</width>
-        <x>228</x>
-        <y>969</y>
+        <x>912</x>
+        <y>1089</y>
         <maximum>1.7976931348623157E308</maximum>
         <foreground_color>
           <color name="Green On" red="0" green="255" blue="0" />
@@ -3438,101 +4341,154 @@ $(pv_value)</tooltip>
           <fontdata fontName="Sans" height="10" style="1" />
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.combo" version="1.0.0">
         <border_style>0</border_style>
-        <tooltip></tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
+        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <alarm_pulsing>false</alarm_pulsing>
+        <tooltip>$(pv_name)
+$(pv_value)</tooltip>
         <rules />
-        <enabled>false</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6b77</wuid>
-        <transparent>true</transparent>
-        <auto_size>false</auto_size>
-        <text>VOLTAGE Min</text>
+        <enabled>true</enabled>
+        <wuid>59fc39f9:158487e5950:-5c74</wuid>
+        <pv_value />
         <scripts />
-        <height>20</height>
-        <border_width>2</border_width>
+        <border_alarm_sensitive>true</border_alarm_sensitive>
+        <height>24</height>
+        <border_width>0</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
-          <height_scalable>true</height_scalable>
-          <keep_wh_ratio>false</keep_wh_ratio>
+          <height_scalable>false</height_scalable>
+          <keep_wh_ratio>true</keep_wh_ratio>
         </scale_options>
+        <items_from_pv>true</items_from_pv>
         <visible>true</visible>
-        <vertical_alignment>1</vertical_alignment>
+        <pv_name>PMAC:MTR1-HOMCPTFLAG</pv_name>
         <border_color>
-          <color name="IO Border" red="215" green="215" blue="215" />
+          <color red="215" green="215" blue="215" />
         </border_color>
-        <widget_type>Label</widget_type>
-        <wrap_words>false</wrap_words>
+        <widget_type>Combo</widget_type>
+        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
         <background_color>
-          <color name="IO Background" red="255" green="255" blue="205" />
+          <color red="178" green="178" blue="178" />
         </background_color>
-        <width>199</width>
-        <x>34</x>
-        <name>Label Orientation_2</name>
-        <y>942</y>
+        <width>103</width>
+        <x>48</x>
+        <name>Combo</name>
+        <y>948</y>
         <foreground_color>
-          <color name="IO Foreground" red="0" green="0" blue="0" />
+          <color red="0" green="0" blue="0" />
         </foreground_color>
         <actions hook="false" hook_all="false" />
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
         </font>
       </widget>
-      <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+      <widget typeId="org.csstudio.opibuilder.widgets.polyline" version="1.0.0">
+        <border_style>0</border_style>
+        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <line_width>5</line_width>
+        <horizontal_fill>true</horizontal_fill>
         <alarm_pulsing>false</alarm_pulsing>
-        <precision>0</precision>
         <tooltip>$(pv_name)
 $(pv_value)</tooltip>
-        <horizontal_alignment>1</horizontal_alignment>
+        <arrows>2</arrows>
         <rules />
+        <enabled>true</enabled>
+        <wuid>59fc39f9:158487e5950:-555c</wuid>
+        <transparent>false</transparent>
+        <points>
+          <point x="166" y="959" />
+          <point x="183" y="959" />
+          <point x="183" y="959" />
+          <point x="223" y="959" />
+        </points>
+        <fill_arrow>true</fill_arrow>
         <pv_value />
-        <auto_size>false</auto_size>
-        <text></text>
+        <alpha>255</alpha>
         <rotation_angle>0.0</rotation_angle>
-        <show_units>true</show_units>
-        <height>31</height>
-        <multiline_input>false</multiline_input>
+        <scripts />
+        <border_alarm_sensitive>false</border_alarm_sensitive>
+        <height>1</height>
         <border_width>1</border_width>
+        <scale_options>
+          <width_scalable>true</width_scalable>
+          <height_scalable>true</height_scalable>
+          <keep_wh_ratio>true</keep_wh_ratio>
+        </scale_options>
         <visible>true</visible>
-        <pv_name>${PREFIX_SCAN}:${PROC}-VoltMax</pv_name>
-        <selector_type>0</selector_type>
+        <pv_name></pv_name>
         <border_color>
           <color red="0" green="128" blue="255" />
         </border_color>
-        <precision_from_pv>true</precision_from_pv>
-        <widget_type>Text Input</widget_type>
-        <confirm_message></confirm_message>
-        <name>Text Input_2</name>
-        <style>0</style>
+        <anti_alias>true</anti_alias>
+        <line_style>0</line_style>
+        <arrow_length>20</arrow_length>
+        <widget_type>Polyline</widget_type>
+        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+        <background_color>
+          <color red="0" green="0" blue="0" />
+        </background_color>
+        <width>58</width>
+        <x>166</x>
+        <name>Polyline_5</name>
+        <y>959</y>
+        <fill_level>0.0</fill_level>
+        <foreground_color>
+          <color red="255" green="0" blue="0" />
+        </foreground_color>
         <actions hook="false" hook_all="false" />
-        <border_style>3</border_style>
-        <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+        <font>
+          <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+        </font>
+      </widget>
+      <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+        <border_style>0</border_style>
+        <tooltip></tooltip>
+        <horizontal_alignment>1</horizontal_alignment>
+        <rules>
+          <rule name="Visible" prop_id="visible" out_exp="false">
+            <exp bool_exp="pv0==1">
+              <value>true</value>
+            </exp>
+            <exp bool_exp="pv0==0">
+              <value>false</value>
+            </exp>
+            <pv trig="true">PMAC:MTR1.MOVN</pv>
+          </rule>
+        </rules>
         <enabled>true</enabled>
-        <wuid>-20a75393:15809f6e4ee:-6b76</wuid>
-        <transparent>false</transparent>
+        <wuid>59fc39f9:158487e5950:-4c5d</wuid>
+        <transparent>true</transparent>
+        <auto_size>false</auto_size>
+        <text>MOTOR IS MOVING ...</text>
         <scripts />
-        <border_alarm_sensitive>false</border_alarm_sensitive>
+        <height>20</height>
+        <border_width>1</border_width>
         <scale_options>
           <width_scalable>true</width_scalable>
           <height_scalable>true</height_scalable>
           <keep_wh_ratio>false</keep_wh_ratio>
         </scale_options>
-        <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
-        <format_type>0</format_type>
-        <limits_from_pv>false</limits_from_pv>
+        <visible>true</visible>
+        <vertical_alignment>1</vertical_alignment>
+        <border_color>
+          <color red="0" green="128" blue="255" />
+        </border_color>
+        <widget_type>Label</widget_type>
+        <wrap_words>false</wrap_words>
         <background_color>
-          <color name="TextBackground" red="70" green="70" blue="70" />
+          <color red="255" green="255" blue="255" />
         </background_color>
-        <width>100</width>
-        <x>228</x>
-        <y>936</y>
-        <maximum>1.7976931348623157E308</maximum>
+        <width>181</width>
+        <x>720</x>
+        <name>Label</name>
+        <y>1090</y>
         <foreground_color>
-          <color name="Green On" red="0" green="255" blue="0" />
+          <color name="Major" red="255" green="0" blue="0" />
         </foreground_color>
-        <minimum>-1.7976931348623157E308</minimum>
+        <actions hook="false" hook_all="false" />
         <font>
-          <fontdata fontName="Sans" height="10" style="1" />
+          <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
         </font>
       </widget>
     </widget>
@@ -7422,7 +8378,7 @@ $(pv_value)</tooltip>
     <background_color>
       <color name="IO Background" red="255" green="255" blue="205" />
     </background_color>
-    <width>145</width>
+    <width>115</width>
     <x>666</x>
     <name>Label Orientation_7</name>
     <y>30</y>
@@ -7479,7 +8435,7 @@ $(pv_value)</tooltip>
     <background_color>
       <color name="Black" red="0" green="0" blue="0" />
     </background_color>
-    <width>352</width>
+    <width>322</width>
     <x>780</x>
     <y>27</y>
     <maximum>1.7976931348623157E308</maximum>
@@ -7491,6 +8447,168 @@ $(pv_value)</tooltip>
       <opifont.name fontName="OpenSans" height="10" style="1">Small Bold</opifont.name>
     </font>
   </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.xyGraph" version="1.0.0">
+    <axis_1_scale_format></axis_1_scale_format>
+    <trace_2_x_axis_index>0</trace_2_x_axis_index>
+    <alarm_pulsing>false</alarm_pulsing>
+    <tooltip>$(trace_0_y_pv)
+$(trace_0_y_pv_value)</tooltip>
+    <trace_0_concatenate_data>false</trace_0_concatenate_data>
+    <trace_0_trace_type>0</trace_0_trace_type>
+    <border_width>1</border_width>
+    <trace_1_x_axis_index>0</trace_1_x_axis_index>
+    <border_style>0</border_style>
+    <axis_0_grid_color>
+      <color red="200" green="200" blue="200" />
+    </axis_0_grid_color>
+    <trace_0_name>$(trace_0_y_pv)</trace_0_name>
+    <trace_0_update_mode>0</trace_0_update_mode>
+    <trace_1_x_pv></trace_1_x_pv>
+    <wuid>4ad471b5:157e1276406:-7497</wuid>
+    <transparent>false</transparent>
+    <trace_1_update_mode>0</trace_1_update_mode>
+    <axis_0_title_font>
+      <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
+    </axis_0_title_font>
+    <trace_2_update_mode>0</trace_2_update_mode>
+    <background_color>
+      <color red="240" green="240" blue="240" />
+    </background_color>
+    <x>2652</x>
+    <y>930</y>
+    <trace_0_x_axis_index>0</trace_0_x_axis_index>
+    <axis_count>2</axis_count>
+    <trace_1_point_size>4</trace_1_point_size>
+    <trace_1_anti_alias>true</trace_1_anti_alias>
+    <pv_value />
+    <trace_0_buffer_size>5000</trace_0_buffer_size>
+    <trace_2_buffer_size>5000</trace_2_buffer_size>
+    <axis_1_maximum>100.0</axis_1_maximum>
+    <axis_0_scale_font>
+      <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+    </axis_0_scale_font>
+    <trigger_pv></trigger_pv>
+    <widget_type>XY Graph</widget_type>
+    <trace_2_line_width>1</trace_2_line_width>
+    <axis_1_axis_color>
+      <color red="0" green="0" blue="0" />
+    </axis_1_axis_color>
+    <axis_0_scale_format></axis_0_scale_format>
+    <axis_1_log_scale>false</axis_1_log_scale>
+    <title></title>
+    <trace_0_visible>true</trace_0_visible>
+    <trace_1_name>$(trace_1_y_pv)</trace_1_name>
+    <trace_1_y_pv_value />
+    <show_legend>true</show_legend>
+    <axis_0_axis_title>Primary X Axis (0)</axis_0_axis_title>
+    <axis_0_axis_color>
+      <color red="0" green="0" blue="0" />
+    </axis_0_axis_color>
+    <trace_2_update_delay>100</trace_2_update_delay>
+    <axis_0_dash_grid_line>true</axis_0_dash_grid_line>
+    <trace_0_point_style>0</trace_0_point_style>
+    <trace_1_point_style>0</trace_1_point_style>
+    <trace_0_line_width>1</trace_0_line_width>
+    <axis_0_time_format>0</axis_0_time_format>
+    <trace_count>3</trace_count>
+    <axis_1_show_grid>true</axis_1_show_grid>
+    <trace_2_trace_color>
+      <color red="33" green="179" blue="33" />
+    </trace_2_trace_color>
+    <axis_1_dash_grid_line>true</axis_1_dash_grid_line>
+    <trace_2_trace_type>0</trace_2_trace_type>
+    <show_toolbar>true</show_toolbar>
+    <axis_0_visible>true</axis_0_visible>
+    <axis_0_show_grid>true</axis_0_show_grid>
+    <trace_0_y_axis_index>1</trace_0_y_axis_index>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <trace_1_y_pv>SCANNINGDAQ:AI-CH1-DATA</trace_1_y_pv>
+    <trace_2_concatenate_data>false</trace_2_concatenate_data>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <trace_2_y_pv_value />
+    <trace_2_anti_alias>true</trace_2_anti_alias>
+    <axis_0_maximum>100.0</axis_0_maximum>
+    <trace_1_y_axis_index>1</trace_1_y_axis_index>
+    <trace_2_name>$(trace_2_y_pv)</trace_2_name>
+    <height>244</height>
+    <trace_2_visible>true</trace_2_visible>
+    <trigger_pv_value />
+    <axis_1_grid_color>
+      <color red="200" green="200" blue="200" />
+    </axis_1_grid_color>
+    <actions hook="false" hook_all="false" />
+    <trace_2_point_size>4</trace_2_point_size>
+    <axis_0_log_scale>false</axis_0_log_scale>
+    <trace_0_x_pv_value />
+    <axis_0_auto_scale_threshold>0.0</axis_0_auto_scale_threshold>
+    <rules />
+    <axis_1_visible>true</axis_1_visible>
+    <trace_0_update_delay>100</trace_0_update_delay>
+    <trace_1_concatenate_data>false</trace_1_concatenate_data>
+    <trace_1_trace_color>
+      <color red="242" green="26" blue="26" />
+    </trace_1_trace_color>
+    <pv_name></pv_name>
+    <name>XY Graph</name>
+    <trace_1_trace_type>0</trace_1_trace_type>
+    <axis_0_auto_scale>true</axis_0_auto_scale>
+    <axis_0_minimum>0.0</axis_0_minimum>
+    <trace_2_y_axis_index>1</trace_2_y_axis_index>
+    <trace_1_update_delay>100</trace_1_update_delay>
+    <axis_1_axis_title>Primary Y Axis (1)</axis_1_axis_title>
+    <trace_2_x_pv_value />
+    <axis_1_auto_scale>true</axis_1_auto_scale>
+    <trace_1_line_width>1</trace_1_line_width>
+    <trace_2_y_pv>SCANNINGDAQ:AI-CH2-DATA</trace_2_y_pv>
+    <trace_1_plot_mode>0</trace_1_plot_mode>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <trace_0_y_pv>SCANNINGDAQ:AI-CH0-DATA</trace_0_y_pv>
+    <trace_2_point_style>0</trace_2_point_style>
+    <trace_0_plot_mode>0</trace_0_plot_mode>
+    <enabled>true</enabled>
+    <trace_0_x_pv></trace_0_x_pv>
+    <axis_1_scale_font>
+      <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+    </axis_1_scale_font>
+    <axis_1_time_format>0</axis_1_time_format>
+    <border_alarm_sensitive>true</border_alarm_sensitive>
+    <show_plot_area_border>false</show_plot_area_border>
+    <width>352</width>
+    <trace_1_x_pv_value />
+    <axis_1_minimum>0.0</axis_1_minimum>
+    <title_font>
+      <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
+    </title_font>
+    <trace_0_y_pv_value />
+    <trace_1_visible>true</trace_1_visible>
+    <plot_area_background_color>
+      <color red="255" green="255" blue="255" />
+    </plot_area_background_color>
+    <axis_1_title_font>
+      <opifont.name fontName="Cantarell" height="11" style="1">Default Bold</opifont.name>
+    </axis_1_title_font>
+    <visible>true</visible>
+    <trace_1_buffer_size>5000</trace_1_buffer_size>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <scripts />
+    <trace_0_point_size>4</trace_0_point_size>
+    <trace_0_trace_color>
+      <color red="21" green="21" blue="196" />
+    </trace_0_trace_color>
+    <trace_0_anti_alias>true</trace_0_anti_alias>
+    <axis_1_auto_scale_threshold>0.0</axis_1_auto_scale_threshold>
+    <trace_2_plot_mode>0</trace_2_plot_mode>
+    <trace_2_x_pv></trace_2_x_pv>
+    <foreground_color>
+      <color red="0" green="0" blue="255" />
+    </foreground_color>
+  </widget>
   <widget typeId="org.csstudio.opibuilder.widgets.tab" version="1.0.0">
     <active_tab>0</active_tab>
     <tooltip></tooltip>
@@ -7526,9 +8644,9 @@ $(pv_value)</tooltip>
       <color name="Container Border Grey" red="150" green="150" blue="150" />
     </background_color>
     <width>450</width>
-    <x>1213</x>
+    <x>2712</x>
     <horizontal_tabs>true</horizontal_tabs>
-    <y>581</y>
+    <y>486</y>
     <rules />
     <macros>
       <include_parent_macros>true</include_parent_macros>
@@ -8816,4 +9934,775 @@ $(pv_value)</tooltip>
       </widget>
     </widget>
   </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <enabled>false</enabled>
+    <wuid>-16429ab9:1582e68df9a:-3768</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>Coeff MRAD to VOLT</text>
+    <scripts />
+    <height>20</height>
+    <border_width>2</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <width>199</width>
+    <x>2698</x>
+    <name>Label Orientation_2</name>
+    <y>132</y>
+    <foreground_color>
+      <color name="IO Foreground" red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <enabled>false</enabled>
+    <wuid>-16429ab9:1582e68df9a:-3767</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>Coeff VOLT to MRAD</text>
+    <scripts />
+    <height>20</height>
+    <border_width>2</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <width>199</width>
+    <x>2694</x>
+    <name>Label Orientation_12</name>
+    <y>165</y>
+    <foreground_color>
+      <color name="IO Foreground" red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+    <alarm_pulsing>false</alarm_pulsing>
+    <precision>0</precision>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <pv_value />
+    <auto_size>false</auto_size>
+    <text></text>
+    <rotation_angle>0.0</rotation_angle>
+    <show_units>true</show_units>
+    <height>31</height>
+    <multiline_input>false</multiline_input>
+    <border_width>1</border_width>
+    <visible>true</visible>
+    <pv_name>${PREFIX_SCAN}:$(CALC)-FactVtoMRAD</pv_name>
+    <selector_type>0</selector_type>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <precision_from_pv>true</precision_from_pv>
+    <widget_type>Text Input</widget_type>
+    <confirm_message></confirm_message>
+    <name>Text Input_5</name>
+    <style>0</style>
+    <actions hook="false" hook_all="false" />
+    <border_style>3</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <enabled>true</enabled>
+    <wuid>-16429ab9:1582e68df9a:-3766</wuid>
+    <transparent>false</transparent>
+    <scripts />
+    <border_alarm_sensitive>false</border_alarm_sensitive>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <format_type>0</format_type>
+    <limits_from_pv>false</limits_from_pv>
+    <background_color>
+      <color name="TextBackground" red="70" green="70" blue="70" />
+    </background_color>
+    <width>133</width>
+    <x>2892</x>
+    <y>159</y>
+    <maximum>1.7976931348623157E308</maximum>
+    <foreground_color>
+      <color name="Green On" red="0" green="255" blue="0" />
+    </foreground_color>
+    <minimum>-1.7976931348623157E308</minimum>
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+    <alarm_pulsing>false</alarm_pulsing>
+    <precision>0</precision>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <pv_value />
+    <auto_size>false</auto_size>
+    <text></text>
+    <rotation_angle>0.0</rotation_angle>
+    <show_units>true</show_units>
+    <height>31</height>
+    <multiline_input>false</multiline_input>
+    <border_width>1</border_width>
+    <visible>true</visible>
+    <pv_name>${PREFIX_SCAN}:${CALC}-FactMRADtoV</pv_name>
+    <selector_type>0</selector_type>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <precision_from_pv>true</precision_from_pv>
+    <widget_type>Text Input</widget_type>
+    <confirm_message></confirm_message>
+    <name>Text Input_2</name>
+    <style>0</style>
+    <actions hook="false" hook_all="false" />
+    <border_style>3</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <enabled>true</enabled>
+    <wuid>-16429ab9:1582e68df9a:-3765</wuid>
+    <transparent>false</transparent>
+    <scripts />
+    <border_alarm_sensitive>false</border_alarm_sensitive>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <format_type>0</format_type>
+    <limits_from_pv>false</limits_from_pv>
+    <background_color>
+      <color name="TextBackground" red="70" green="70" blue="70" />
+    </background_color>
+    <width>133</width>
+    <x>2892</x>
+    <y>126</y>
+    <maximum>1.7976931348623157E308</maximum>
+    <foreground_color>
+      <color name="Green On" red="0" green="255" blue="0" />
+    </foreground_color>
+    <minimum>-1.7976931348623157E308</minimum>
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Rectangle" version="1.0.0">
+    <border_style>0</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <line_width>0</line_width>
+    <horizontal_fill>true</horizontal_fill>
+    <alarm_pulsing>false</alarm_pulsing>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <rules />
+    <enabled>true</enabled>
+    <wuid>-16429ab9:1582e68df9a:-3742</wuid>
+    <transparent>false</transparent>
+    <pv_value />
+    <alpha>255</alpha>
+    <bg_gradient_color>
+      <color red="255" green="255" blue="255" />
+    </bg_gradient_color>
+    <scripts />
+    <border_alarm_sensitive>false</border_alarm_sensitive>
+    <height>79</height>
+    <border_width>1</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <pv_name></pv_name>
+    <gradient>false</gradient>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <anti_alias>true</anti_alias>
+    <line_style>0</line_style>
+    <widget_type>Rectangle</widget_type>
+    <fg_gradient_color>
+      <color red="255" green="255" blue="255" />
+    </fg_gradient_color>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <background_color>
+      <color name="Container Border Grey" red="150" green="150" blue="150" />
+    </background_color>
+    <width>289</width>
+    <x>2832</x>
+    <name>Rectangle</name>
+    <y>264</y>
+    <fill_level>0.0</fill_level>
+    <foreground_color>
+      <color red="255" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+    </font>
+    <line_color>
+      <color red="128" green="0" blue="255" />
+    </line_color>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <enabled>false</enabled>
+    <wuid>-16429ab9:1582e68df9a:-3741</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>VOLTAGE Max</text>
+    <scripts />
+    <height>20</height>
+    <border_width>2</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <width>199</width>
+    <x>2814</x>
+    <name>Label Orientation_13</name>
+    <y>309</y>
+    <foreground_color>
+      <color name="IO Foreground" red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+    <alarm_pulsing>false</alarm_pulsing>
+    <precision>0</precision>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <pv_value />
+    <auto_size>false</auto_size>
+    <text></text>
+    <rotation_angle>0.0</rotation_angle>
+    <show_units>true</show_units>
+    <height>31</height>
+    <multiline_input>false</multiline_input>
+    <border_width>1</border_width>
+    <visible>true</visible>
+    <pv_name>${PREFIX_SCAN}:${PROC}-VoltMin</pv_name>
+    <selector_type>0</selector_type>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <precision_from_pv>true</precision_from_pv>
+    <widget_type>Text Input</widget_type>
+    <confirm_message></confirm_message>
+    <name>Text Input_7</name>
+    <style>0</style>
+    <actions hook="false" hook_all="false" />
+    <border_style>3</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <enabled>true</enabled>
+    <wuid>-16429ab9:1582e68df9a:-3740</wuid>
+    <transparent>false</transparent>
+    <scripts />
+    <border_alarm_sensitive>false</border_alarm_sensitive>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <format_type>0</format_type>
+    <limits_from_pv>false</limits_from_pv>
+    <background_color>
+      <color name="TextBackground" red="70" green="70" blue="70" />
+    </background_color>
+    <width>100</width>
+    <x>3012</x>
+    <y>303</y>
+    <maximum>1.7976931348623157E308</maximum>
+    <foreground_color>
+      <color name="Green On" red="0" green="255" blue="0" />
+    </foreground_color>
+    <minimum>-1.7976931348623157E308</minimum>
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <enabled>false</enabled>
+    <wuid>-16429ab9:1582e68df9a:-373f</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>VOLTAGE Min</text>
+    <scripts />
+    <height>20</height>
+    <border_width>2</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <width>199</width>
+    <x>2818</x>
+    <name>Label Orientation_14</name>
+    <y>276</y>
+    <foreground_color>
+      <color name="IO Foreground" red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.TextInput" version="2.0.0">
+    <alarm_pulsing>false</alarm_pulsing>
+    <precision>0</precision>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <pv_value />
+    <auto_size>false</auto_size>
+    <text></text>
+    <rotation_angle>0.0</rotation_angle>
+    <show_units>true</show_units>
+    <height>31</height>
+    <multiline_input>false</multiline_input>
+    <border_width>1</border_width>
+    <visible>true</visible>
+    <pv_name>${PREFIX_SCAN}:${PROC}-VoltMax</pv_name>
+    <selector_type>0</selector_type>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <precision_from_pv>true</precision_from_pv>
+    <widget_type>Text Input</widget_type>
+    <confirm_message></confirm_message>
+    <name>Text Input_8</name>
+    <style>0</style>
+    <actions hook="false" hook_all="false" />
+    <border_style>3</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <enabled>true</enabled>
+    <wuid>-16429ab9:1582e68df9a:-373e</wuid>
+    <transparent>false</transparent>
+    <scripts />
+    <border_alarm_sensitive>false</border_alarm_sensitive>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <format_type>0</format_type>
+    <limits_from_pv>false</limits_from_pv>
+    <background_color>
+      <color name="TextBackground" red="70" green="70" blue="70" />
+    </background_color>
+    <width>100</width>
+    <x>3012</x>
+    <y>270</y>
+    <maximum>1.7976931348623157E308</maximum>
+    <foreground_color>
+      <color name="Green On" red="0" green="255" blue="0" />
+    </foreground_color>
+    <minimum>-1.7976931348623157E308</minimum>
+    <font>
+      <fontdata fontName="Sans" height="10" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.checkbox" version="1.0.0">
+    <border_style>0</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <alarm_pulsing>false</alarm_pulsing>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <rules />
+    <bit>0</bit>
+    <enabled>true</enabled>
+    <wuid>-16429ab9:1582e68df9a:-6254</wuid>
+    <selected_color>
+      <color red="77" green="77" blue="77" />
+    </selected_color>
+    <pv_value />
+    <auto_size>false</auto_size>
+    <scripts />
+    <border_alarm_sensitive>true</border_alarm_sensitive>
+    <height>20</height>
+    <border_width>1</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>false</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <pv_name>${PREFIX_SCAN}:PROC-SIMU</pv_name>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <label></label>
+    <widget_type>Check Box</widget_type>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <background_color>
+      <color red="240" green="240" blue="240" />
+    </background_color>
+    <width>33</width>
+    <x>1156</x>
+    <name>Check Box</name>
+    <y>30</y>
+    <foreground_color>
+      <color red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <opifont.name fontName="Cantarell" height="11" style="0">Default</opifont.name>
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules />
+    <enabled>true</enabled>
+    <wuid>-16429ab9:1582e68df9a:-6258</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>Simulation</text>
+    <scripts />
+    <height>20</height>
+    <border_width>1</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color red="255" green="255" blue="255" />
+    </background_color>
+    <width>80</width>
+    <x>1188</x>
+    <name>Label</name>
+    <y>30</y>
+    <foreground_color>
+      <color red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <opifont.name fontName="OpenSans" height="10" style="1">Small Bold</opifont.name>
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>1</horizontal_alignment>
+    <rules>
+      <rule name="Visible" prop_id="visible" out_exp="false">
+        <exp bool_exp="pv0==1">
+          <value>true</value>
+        </exp>
+        <exp bool_exp="pv0==0">
+          <value>false</value>
+        </exp>
+        <pv trig="true">${PREFIX_SCAN}:PROC-SIMU</pv>
+      </rule>
+    </rules>
+    <enabled>true</enabled>
+    <wuid>-16429ab9:158444d4181:-7960</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>SIMULATION</text>
+    <scripts />
+    <height>45</height>
+    <border_width>1</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color red="0" green="128" blue="255" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color red="255" green="255" blue="255" />
+    </background_color>
+    <width>411</width>
+    <x>1200</x>
+    <name>Label_163</name>
+    <y>88</y>
+    <foreground_color>
+      <color name="Major" red="255" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <fontdata fontName="Cantarell" height="26" style="1" />
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.LED" version="1.0.0">
+    <alarm_pulsing>false</alarm_pulsing>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <rules />
+    <effect_3d>true</effect_3d>
+    <bit>0</bit>
+    <pv_value />
+    <height>20</height>
+    <border_width>0</border_width>
+    <visible>true</visible>
+    <pv_name>$(PREFIX):$(MTR).MOVN</pv_name>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>LED</widget_type>
+    <name>LED Template_3</name>
+    <actions hook="false" hook_all="false" />
+    <show_boolean_label>true</show_boolean_label>
+    <border_style>0</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <enabled>true</enabled>
+    <wuid>59fc39f9:158487e5950:-4cbb</wuid>
+    <on_color>
+      <color name="IO OK" red="0" green="255" blue="0" />
+    </on_color>
+    <scripts />
+    <border_alarm_sensitive>false</border_alarm_sensitive>
+    <on_label></on_label>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>true</keep_wh_ratio>
+    </scale_options>
+    <off_color>
+      <color name="IO PV OFF" red="77" green="77" blue="77" />
+    </off_color>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <square_led>true</square_led>
+    <width>20</width>
+    <x>1962</x>
+    <data_type>0</data_type>
+    <y>522</y>
+    <foreground_color>
+      <color name="IO InputPV Fg" red="0" green="32" blue="92" />
+    </foreground_color>
+    <font>
+      <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+    </font>
+    <off_label></off_label>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.LED" version="1.0.0">
+    <alarm_pulsing>false</alarm_pulsing>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
+    <rules />
+    <effect_3d>true</effect_3d>
+    <bit>0</bit>
+    <pv_value />
+    <height>20</height>
+    <border_width>2</border_width>
+    <visible>true</visible>
+    <pv_name>$(PREFIX):$(MTR).DMOV</pv_name>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>LED</widget_type>
+    <name>LED Template_2</name>
+    <actions hook="false" hook_all="false" />
+    <show_boolean_label>true</show_boolean_label>
+    <border_style>0</border_style>
+    <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
+    <enabled>true</enabled>
+    <wuid>59fc39f9:158487e5950:-4cba</wuid>
+    <on_color>
+      <color red="0" green="255" blue="0" />
+    </on_color>
+    <scripts />
+    <border_alarm_sensitive>false</border_alarm_sensitive>
+    <on_label></on_label>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>true</keep_wh_ratio>
+    </scale_options>
+    <off_color>
+      <color red="77" green="77" blue="77" />
+    </off_color>
+    <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <square_led>true</square_led>
+    <width>20</width>
+    <x>1962</x>
+    <data_type>0</data_type>
+    <y>492</y>
+    <foreground_color>
+      <color name="IO InputPV Fg" red="0" green="32" blue="92" />
+    </foreground_color>
+    <font>
+      <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+    </font>
+    <off_label></off_label>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>0</horizontal_alignment>
+    <rules />
+    <enabled>false</enabled>
+    <wuid>59fc39f9:158487e5950:-4cb9</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>Done moving</text>
+    <scripts />
+    <height>20</height>
+    <border_width>2</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <width>80</width>
+    <x>1758</x>
+    <name>Label Orientation_1</name>
+    <y>492</y>
+    <foreground_color>
+      <color name="IO Foreground" red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+    </font>
+  </widget>
+  <widget typeId="org.csstudio.opibuilder.widgets.Label" version="1.0.0">
+    <border_style>0</border_style>
+    <tooltip></tooltip>
+    <horizontal_alignment>0</horizontal_alignment>
+    <rules />
+    <enabled>false</enabled>
+    <wuid>59fc39f9:158487e5950:-4cb8</wuid>
+    <transparent>true</transparent>
+    <auto_size>false</auto_size>
+    <text>Moving</text>
+    <scripts />
+    <height>20</height>
+    <border_width>2</border_width>
+    <scale_options>
+      <width_scalable>true</width_scalable>
+      <height_scalable>true</height_scalable>
+      <keep_wh_ratio>false</keep_wh_ratio>
+    </scale_options>
+    <visible>true</visible>
+    <vertical_alignment>1</vertical_alignment>
+    <border_color>
+      <color name="IO Border" red="215" green="215" blue="215" />
+    </border_color>
+    <widget_type>Label</widget_type>
+    <wrap_words>false</wrap_words>
+    <background_color>
+      <color name="IO Background" red="255" green="255" blue="205" />
+    </background_color>
+    <width>80</width>
+    <x>1758</x>
+    <name>Label Orientation_16</name>
+    <y>522</y>
+    <foreground_color>
+      <color name="IO Foreground" red="0" green="0" blue="0" />
+    </foreground_color>
+    <actions hook="false" hook_all="false" />
+    <font>
+      <opifont.name fontName="arial" height="10" style="0">IO Normal</opifont.name>
+    </font>
+  </widget>
 </display>
\ No newline at end of file
diff --git a/src/EMU_CALCULS.c b/src/EMU_CALCULS.c
index 931e81a..46a450c 100644
--- a/src/EMU_CALCULS.c
+++ b/src/EMU_CALCULS.c
@@ -28,3 +28,92 @@ static int FACTOR_CONVERSION(aSubRecord *precord) {
 }
 /* Note the function must be registered at the end. */
 epicsRegisterFunction(FACTOR_CONVERSION);
+
+
+/*
+* This function calculates the X' (ANGLE) and convert the result WF an SCALARE value(s) in MRAD
+*/
+static int ANGLE_CALCUL(aSubRecord *precord) {
+
+    float FACT_VtoMRAD = *(float *)precord->a;   // Factor conversion V to MRAD
+    float *WF_PS1 = (float *)precord->b;   // Waveform PS1 (VOLT)
+    float *WF_PS2 = (float *)precord->c;   // Waveform PS2 (VOLT)
+    float AVG_PS1 = *(float *)precord->d;   // PS1 average (VOLT)
+    float AVG_PS2 = *(float *)precord->e;  // PS2 average(VOLT)
+    int nelm = precord->nova;
+    float *pOutA=(float*)(precord->vala);
+    int i;
+    float val1;
+    float val2;
+
+    /* WAVEFORM : Calcul WF_PS1-WF_PS2, and convert the resukt MRAD */
+    for (i = 0; i < nelm; ++i)
+    {
+    *pOutA=((*WF_PS1 - *WF_PS2)* FACT_VtoMRAD)*1000;     // *1000 : to reconvert in mrad
+    pOutA++;
+    WF_PS1++;
+    WF_PS2++;
+    }
+
+    /* SCALARE : Calcul AVG_PS1-AVG_PS2, and Convert he result in MRAD*/
+    *(float *) precord->valb=((AVG_PS1- AVG_PS2)*FACT_VtoMRAD)*1000;     // *1000 : to reconvert in mrad
+
+  return 0;
+}
+/* Note the function must be registered at the end. */
+epicsRegisterFunction(ANGLE_CALCUL);
+
+
+/*
+* This function allows to create the complete waveform for X' (ANGLE) and Y(CURRENT)
+*/
+static int CREATE_TAB(aSubRecord *precord) {
+
+    float *ptr_WF = (float *)precord->a;   // datas to add
+    float *ptr_WF_REENT = (float *)precord->b;   // Waveform reentrance
+    long mtr_cpt = *(long *)precord->c;   //Motor compter
+    long nbAngle = *(long *)precord->d;   // Nb Angle
+    long nbPosition = *(long *)precord->e;  // Nb position
+    int nelmComp = precord->nova;
+    int nelm = precord->novb;
+    float *ptr_WF_OUT=(float*)(precord->vala);
+    int i;
+    int cpt_for=0.0;
+    float val1;
+    float val2;
+
+    /***** REFILL old DATA ******/
+    if(mtr_cpt>1)
+    {
+      cpt_for=mtr_cpt*nbAngle;
+    
+      for (i = 0 ; i < cpt_for; ++i)
+        {
+        *ptr_WF_OUT=*ptr_WF_REENT;
+        ptr_WF_OUT++;
+        ptr_WF_REENT++;
+        }
+    }
+
+    /***** FILL new DATA ******/
+    if(mtr_cpt>0)
+    {
+      cpt_for=(mtr_cpt-1);
+      ptr_WF_OUT=(float*)(precord->vala);
+      ptr_WF_OUT=ptr_WF_OUT+cpt_for;
+
+      ptr_WF = (float *)precord->a;
+
+      /*DATA from the COMPRESS waveform */
+      for (i = 0 ; i < nbAngle; ++i)
+        {
+        *ptr_WF_OUT=*ptr_WF;
+        ptr_WF_OUT=ptr_WF_OUT+nbAngle;
+        ptr_WF++;
+        }
+    }
+
+  return 0;
+}
+/* Note the function must be registered at the end. */
+epicsRegisterFunction(CREATE_TAB);
diff --git a/startup/EMU.cmd b/startup/EMU.cmd
index 0e6ed21..1e7ffca 100644
--- a/startup/EMU.cmd
+++ b/startup/EMU.cmd
@@ -4,10 +4,11 @@ require singlemotion
 require mrfsample
 require pev
 require EMU,jfdenis
+require ecat2db,0.3.2
 
 ### MACROS ###
 # PMAC common macros3       ) 
-epicsEnvSet("PMACPREFIX", "PMAC"  )
+epicsEnvSet("PMACPREFIX", "PMAC")
 epicsEnvSet("PMACPORT",   "pmacLV")
 epicsEnvSet("MOTOR_PORT", "pmac1" )
 epicsEnvSet("NB_AXES", "1" )
@@ -70,7 +71,7 @@ epicsEnvSet("SCAN_POINTS_SLIT", "100"    )
 epicsEnvSet(EPICS_CA_MAX_ARRAY_BYTES, 400000000)
 
 # Connection to PMAC and setup for $(NUM_MOTORS) motors
-pmacAsynIPConfigure($(PMACPORT), "192.6.94.2:1025")
+pmacAsynIPConfigure($(PMACPORT), "10.2.139.237:1025")
 pmacCreateController($(MOTOR_PORT), $(PMACPORT), 0, $(NB_AXES), 50, 300)
 pmacCreateAxis($(MOTOR_PORT), $(AXIS_NO1))
 
@@ -98,8 +99,6 @@ dbLoadRecords(IFCDAQAIChannelGroup.template, "PREFIX=$(DAQPREFIX),CH_GRP_ID=AI")
 dbLoadRecords(IFCDAQAIChannel.template,      "PREFIX=$(DAQPREFIX),CH_GRP_ID=AI,CH_ID=CH0, NELM=$(DAQBUFSIZE)")
 dbLoadRecords(IFCDAQAIChannel.template,      "PREFIX=$(DAQPREFIX),CH_GRP_ID=AI,CH_ID=CH1, NELM=$(DAQBUFSIZE)")
 dbLoadRecords(IFCDAQAIChannel.template,      "PREFIX=$(DAQPREFIX),CH_GRP_ID=AI,CH_ID=CH2, NELM=$(DAQBUFSIZE)")
-dbLoadRecords(IFCDAQAIChannel.template,      "PREFIX=${DAQPREFIX},CH_GRP_ID=AI,CH_ID=CH3, NELM=$(DAQBUFSIZE)")
-
 
 #
 # Load Single motions records
@@ -121,17 +120,21 @@ dbLoadRecords("motorStatus.template", "PREFIX=$(PMACPREFIX),MOTOR_NAME=$(MOTOR_N
 # Homing procedure records
 #
 
-#dbLoadRecords("motorHoming.template", "PREFIX=$(PMACPREFIX),MOTOR_NAME=$(MOTOR_NAME1),ASYN_PORT=$(PMACPORT),AXIS_NO=$(AXIS_NO1),PREC=$(PREC),EGU=$(EGU)")
+dbLoadRecords("motorHoming.template", "PREFIX=$(PMACPREFIX),MOTOR_NAME=$(MOTOR_NAME1),ASYN_PORT=$(PMACPORT),AXIS_NO=$(AXIS_NO1),PREC=$(PREC),EGU=$(EGU)")
 
-dbLoadRecords("EMU.db", "DEVICE=$(SCANPREFIX), SCAN_SLIT=$(SCAN_SLIT), SCAN_EF=$(SCAN_EF), MTRREC=$(PMACPREFIX):$(MOTOR_NAME1), MAX_POINTS_EF=$(SCAN_POINTS_EF), MAX_POINTS_SLIT=$(SCAN_POINTS_SLIT), DAQNDSPREFIX=$(DAQPREFIX), DAQBUFSIZE=$(DAQBUFSIZE), DET1WF=AI-CH0-DATA, DET2WF=AI-CH1-DATA, DET3WF=AI-CH2-DATA, TR_TL=$(SYS)-$(EVR):Pul0-Ena-Sel, TR_TLTSEL=$(SYS)-$(EVR):Event-$(EVR_PUL0_EVENT)-SP.TIME, PSU_SP=LNS-ISRC-010:PBI-EM:HVhor-SP, PSU_RBV=LNS-ISRC-010:PBI-EM:HVhor-RBV, PSU2_SP=LNS-ISRC-010:PBI-EM:HVver-SP, PSU2_RBV=LNS-ISRC-010:PBI-EM:HVver-RBV")
+dbLoadRecords("EMU.db", "DEVICE=$(SCANPREFIX), SCAN_SLIT=$(SCAN_SLIT), SCAN_EF=$(SCAN_EF),MTRREC=$(PMACPREFIX):$(MOTOR_NAME1), MAX_POINTS_EF=$(SCAN_POINTS_EF), MAX_POINTS_SLIT=$(SCAN_POINTS_SLIT), DAQNDSPREFIX=$(DAQPREFIX), DAQBUFSIZE=$(DAQBUFSIZE), DET1WF=AI-CH0-DATA, DET2WF=AI-CH1-DATA, DET3WF=AI-CH2-DATA, TR_TL=$(SYS)-$(EVR):Pul0-Ena-Sel, TR_TLTSEL=$(SYS)-$(EVR):Event-$(EVR_PUL0_EVENT)-SP.TIME, PSU_SP=LNS-ISRC-010:PBI-EM:HVhor-SP, PSU_RBV=LNS-ISRC-010:PBI-EM:HVhor-SP, PSU2_SP=LNS-ISRC-010:PBI-EM:HVver-SP, PSU2_RBV=LNS-ISRC-010:PBI-EM:HVver-SP")
 
 #
-# Simulated PSU
-dbLoadRecords (EMU_PS-SIM.template, "PREFIX=LNS-ISRC-010:PBI-EM, SIGNAL=HVhor")
-dbLoadRecords (EMU_PS-SIM.template, "PREFIX=LNS-ISRC-010:PBI-EM, SIGNAL=HVver")
+# Init ETHERCAT module
+ecat2configure(0,500,1,1)
+
 
+#############################################################################
+######################### iocInit ###########################################
+#############################################################################
 iocInit
 
+
 seq motorHoming "PREFIX=$(PMACPREFIX),MOTOR_NAME=$(MOTOR_NAME1)"
 
 
@@ -188,4 +191,21 @@ dbpf $(SYS)-$(EVR):FrontOut0-Ena-SP      1
 
 #dbpf $(SYS)-$(EVR):Time-I.TSE -2
 
+### Setup reasonable values for sscan record ###
+# Initialize Motor positioners
+dbpf $(SCANPREFIX):$(SCAN_SLIT).P4SP -10
+dbpf $(SCANPREFIX):$(SCAN_SLIT).P4EP -20
+dbpf $(SCANPREFIX):$(SCAN_SLIT).P2SP 1
+dbpf $(SCANPREFIX):$(SCAN_SLIT).P2EP 1
+dbpf $(SCANPREFIX):$(SCAN_SLIT).NPTS 11
+
+# Initialize Power supply positioners
+dbpf SCAN:PROC-AngleMax-SP 80
+dbpf SCAN:PROC-AngleMin-SP -80
+dbpf $(SCANPREFIX):$(SCAN_EF).NPTS 11
+dbpf $(SCANPREFIX):$(SCAN_EF).PDLY 0.5
+
+
+
+seq RampCurrent "PREFIX_PS=LNS-ISRC-010:PBI-EM,CONS_PS2=HVhor-SP,DEVICE=SCAN,SCAN_SLIT=$(SCAN_SLIT)"
 
-- 
GitLab