<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Hovanes and Nick,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Using the changes you all made to the PLC and IOC, I was able to get the status bits in EDM.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The Solenoid power supply screen and FDC chiller screen have been added to the epicsweb menu. With that, we have converted all 18 of the screens requested by Tim to WEDM.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If Hall D wants any other CSS screens converted to WEDM, let us know and we can make them.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Tyler<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Hovanes Egiyan <hovanes@jlab.org><br>
<b>Sent:</b> Tuesday, July 30, 2019 10:16 AM<br>
<b>To:</b> dsg-halld_plc@jlab.org <dsg-halld_plc@jlab.org>; Tyler Lemon <tlemon@jlab.org>; Hall D Controls <halld-controls@jlab.org><br>
<b>Subject:</b> Re: [Dsg-halld_plc] PVs to be added to IOC for display in WEDM</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p>Tyler, <br>
</p>
<p><br>
</p>
<p>Nick added an array of booleans for the status of solenoid MPS. It translates into two
<br>
</p>
<p>mbbiDirect EPICS records . <br>
</p>
<p><br>
</p>
<pre>HDOPS gluon02:~> caget -0b 'SOL:i:MPS_Status_Read_BOOL;0'
SOL:i:MPS_Status_Read_BOOL;0 1111000001
HDOPS gluon02:~> caget -0b 'SOL:i:MPS_Status_Read_BOOL;1'
SOL:i:MPS_Status_Read_BOOL;1 10101000
HDOPS gluon02:~>
</pre>
<p>The first one (";0") keep the lower 16 bits, the second one (";1") keep the higher bits.
<br>
</p>
<p>EDM should be able to display these with byte monitor widget.</p>
<p><br>
</p>
<p>Hovanes <br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">On 7/25/19 11:47 AM, Tyler Lemon wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello Hovanes,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
For the Solenoid Power supply screen, the PV "<span>SOL:a:MPS_Status_Read_DINT</span>" is the one being parsed in CSS for the status bits.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:calibri,arial,helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">When caget is used you get:</span><span style="font-family:calibri,arial,helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
"SOL:a:MPS_Status_Read_DINT 24 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1"</span><span><br>
</span><span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:calibri,arial,helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">EDM has a byte monitor that can handle
up to 16 bits. The array parsed in CSS is 24 elements, it would need to be split up into multiple PVs. On the Solenoid interlocks screen, the "MPS Interlock Sum" status is also pulled out of this array using a script. Since CSS is using scripts to get individual
status bits on multiple screens, it may be best to make 24 new, individual Boolean PVs for each status bit.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:calibri,arial,helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">Also, on the Solenoid Voltages screen,
the summed coil voltages below each coil graphic are obtained from a rule in CSS and cannot be displayed in EDM either. Four PVs will also need to be added to an IOC for the voltage sums.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:calibri,arial,helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">For the FDC chiller screen, the EDM
byte monitor may be able to use the existing PVs. I'll look at this this afternoon and let you know if anything needs to be added to an IOC.</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:calibri,arial,helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">Best regards,</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:calibri,arial,helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">Tyler</span><br>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Dsg-halld_plc mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Dsg-halld_plc@jlab.org">Dsg-halld_plc@jlab.org</a>
<a class="x_moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/dsg-halld_plc">https://mailman.jlab.org/mailman/listinfo/dsg-halld_plc</a>
</pre>
</blockquote>
</div>
</body>
</html>