<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">>>>the operator inputs an
      I_target value and then selects to start regulation, the I_target
      value will be stored as Last_I_sent<br>
      <br>
      Perhaps I am missing the code where start regulation triggers
      where Last_I_Sent is made equal to I_target.<br>
      <br>
      Mike<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      On 9/28/2018 3:02 PM, Amanda Hoebel wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:662426473.30430128.1538161322591.JavaMail.zimbra@jlab.org">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div style="font-family: arial, helvetica, sans-serif; font-size:
        12pt; color: #000000">
        <div>If the operator inputs an I_target value and then selects
          to start regulation, the I_target value will be stored as
          Last_I_sent (on the function block diagram). On the ladder
          logic, I_coarse is basically being compared to I_target, since
          I_target and Last_I_sent would be the same value. The program
          would still work with the PSU starting from zero.<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <hr id="zwchr" data-marker="__DIVIDER__">
        <div data-marker="__HEADERS__"><b>From: </b>"Mike Fowler"
          <a class="moz-txt-link-rfc2396E" href="mailto:fowler@jlab.org"><fowler@jlab.org></a><br>
          <b>To: </b>"dsg-hallc controls"
          <a class="moz-txt-link-rfc2396E" href="mailto:dsg-hallc_controls@jlab.org"><dsg-hallc_controls@jlab.org></a><br>
          <b>Sent: </b>Friday, September 28, 2018 2:28:11 PM<br>
          <b>Subject: </b>Re: [Dsg-hallc_controls] Quadrupole field
          regulation<br>
        </div>
        <div><br>
        </div>
        <div data-marker="__QUOTED_TEXT__">
          <div class="moz-cite-prefix">Condition one: PSU starting from
            zero<br>
            <br>
            Operator>  Inputs an I_target and I_MOL value.<br>
            PLC> Checks I_target if in limits, sets the MPS_Wa_Value<br>
            Operator> Start regulation<br>
            PLC> Compares analog I_coarse to Last_I_Sent which is
            assumed to be zero.<br>
                        If I_coarse > Last_I_Sent the code sends
            MPS_Wa_Value to PSU.   Note: analog I_coarse value could be
            non zero and the MOL value is not sent.<br>
            PLC> Waits for I_coarse to be equal to MOL value +/-1%.
            Was the MOL value ever sent?<br>
            <br>
            Mike<br>
            <br>
            <br>
            <br>
            <br>
            <br>
            On 9/28/2018 2:00 PM, Amanda Hoebel wrote:<br>
          </div>
          <blockquote
            cite="mid:1519482268.29539666.1538157629217.JavaMail.zimbra@jlab.org">
            <div style="font-family: arial, helvetica, sans-serif;
              font-size: 12pt; color: #000000">
              <div>The operator would input an I_target and I_MOL value,
                then select to start regulation.<br>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <hr id="zwchr">
              <div><b>From: </b>"Mike Fowler" <a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:fowler@jlab.org" target="_blank"
                  moz-do-not-send="true"><fowler@jlab.org></a><br>
                <b>To: </b>"dsg-hallc controls" <a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:dsg-hallc_controls@jlab.org"
                  target="_blank" moz-do-not-send="true"><dsg-hallc_controls@jlab.org></a><br>
                <b>Sent: </b>Friday, September 28, 2018 1:54:31 PM<br>
                <b>Subject: </b>Re: [Dsg-hallc_controls] Quadrupole
                field regulation<br>
              </div>
              <div><br>
              </div>
              <div>
                <div class="moz-cite-prefix"><br>
                  Hi,<br>
                  <br>
                  What is the sequence of inputs from the operator?<br>
                  <br>
                  Mike<br>
                  <br>
                  <br>
                  <br>
                  On 9/28/2018 1:30 PM, Amanda Hoebel wrote:<br>
                </div>
                <blockquote
                  cite="mid:1323893506.29082462.1538155802191.JavaMail.zimbra@jlab.org">
                  <div style="font-family: arial, helvetica, sans-serif;
                    font-size: 12pt; color: #000000">
                    <div>
                      <div style="font-family: arial, helvetica,
                        sans-serif; font-size: 12pt; color: #000000">
                        <div>Hi Mike,<br>
                        </div>
                        <br>
                        <div>I have some questions/comments (in blue) on
                          some of your comments for the current loop
                          regulation.<br>
                        </div>
                        <br>
                        <div>4. If the analog signal I_coarse is less
                          than the Last_I_Sent by even a small fraction
                          the MOL value is used.<br>
                        </div>
                        <div><span style="color: rgb(0, 0, 255);">Yes,
                            as the PSU would be ramping up, even if it's
                            by a small amount. This would only occur if
                            someone were to set an I_target/Last_I_Sent
                            value that was very close to what the power
                            supply was already at. If that is not the
                            correct method, what should be done instead?</span><br>
                        </div>
                        <br>
                        <div>7. Consider this:<br style="">
                          If I_coarse is equal to Last_I_Sent +/- a few
                          amps<br style="">
                              true, MPS is at setpoint<br style="">
                              false, The MPS is still ramping, something
                          happened, or the MPS tripped and the
                          Last_I_Sent was not updated. (Interlock?)<br
                            style="">
                                      or the window is too small.
                          Determine what to do.</div>
                        <div><span style="color: rgb(0, 0, 255);">I am
                            unsure of what you are suggesting. I will
                            implement a condition where the loop stops
                            if there is an interlock (as per comment #1)
                            and can add a case where the program
                            continues to the next rung if the PSU_Ready
                            is True, in the event that the window is too
                            small. Any other problem that could arise
                            seems like it would be related to the PSU
                            itself, not the program. The program does
                            not ramp the PSU and stop ramp only if the
                            current falls within the window. The PSU
                            will stop at the set point given (no runaway
                            condition possible).</span><br>
                        </div>
                        <br>
                        <div>8. Compare Q1_I_Target to Last_I_Sent to
                          determine ramp direction instead of the analog
                          I_coarse.</div>
                        <div><span style="color: rgb(0, 0, 255);">Q1_I_Target
                            and Last_I_Sent cannot be compared for ramp
                            direction, as they will be the same value as
                            each other on the ladder logic when the
                            regulation routine is enabled.</span><br>
                        </div>
                        <div><span style="color: rgb(0, 0, 255);"><br>
                          </span></div>
                        <div><span style="color: rgb(0, 0, 0);">Regards,<br>
                          </span></div>
                        <div><span style="color: rgb(0, 0, 0);">Amanda<br>
                          </span></div>
                        <br>
                        <hr id="zwchr">
                        <div><b>From: </b>"Amanda Hoebel" <a
                            class="moz-txt-link-rfc2396E"
                            href="mailto:amandah@jlab.org"
                            target="_blank" moz-do-not-send="true"><amandah@jlab.org></a><br>
                          <b>Sent: </b>Wednesday, September 26, 2018
                          10:04:46 AM<br>
                          <b>Subject: </b>Re: [Dsg-hallc_controls]
                          Quadrupole field regulation<br>
                        </div>
                        <br>
                        <div>
                          <div style="font-family: arial, helvetica,
                            sans-serif; font-size: 12pt; color: #000000">
                            <div>
                              <div style="font-family: arial, helvetica,
                                sans-serif; font-size: 12pt; color:
                                #000000"><br>
                                <hr id="zwchr">
                                <div><b>From: </b>"Mike Fowler" <a
                                    class="moz-txt-link-rfc2396E"
                                    href="mailto:fowler@jlab.org"
                                    target="_blank"
                                    moz-do-not-send="true"><fowler@jlab.org></a><br>
                                  <b>To: </b>"dsg-hallc controls" <a
                                    class="moz-txt-link-rfc2396E"
                                    href="mailto:dsg-hallc_controls@jlab.org"
                                    target="_blank"
                                    moz-do-not-send="true"><dsg-hallc_controls@jlab.org></a><br>
                                  <b>Sent: </b>Tuesday, September 25,
                                  2018 10:37:25 AM<br>
                                  <b>Subject: </b>Re:
                                  [Dsg-hallc_controls] Quadrupole field
                                  regulation<br>
                                </div>
                                <br>
                                <div>
                                  <div class="moz-cite-prefix">Hi,<br>
                                    <br>
                                    Comments.<br>
                                    <br>
                                    The ability to manually input a
                                    current and send it without a MOL
                                    value has been removed. <br>
                                    Must be included.<br>
                                    <br>
                                    Cheers,<br>
                                    Mike<br>
                                    <br>
                                    <br>
                                    <br>
                                    On 9/20/2018 9:12 AM, Amanda Hoebel
                                    wrote:<br>
                                  </div>
                                  <blockquote
                                    cite="mid:59817053.2238488.1537449142333.JavaMail.zimbra@jlab.org">
                                    <div style="font-family: arial,
                                      helvetica, sans-serif; font-size:
                                      12pt; color: #000000">
                                      <div>Hi Mike,<br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>I have attached pdfs of the
                                        field regulation routine for HMS
                                        Q1.  If this is correct I will
                                        make the routines for HMS Q2 and
                                        Q3, and for the quads in SHMS.<br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>Regards,<br>
                                      </div>
                                      <div>Amanda<br>
                                      </div>
                                    </div>
                                    <br>
                                    <fieldset
                                      class="mimeAttachmentHeader"></fieldset>
                                    <br>
                                    <pre>_______________________________________________
Dsg-hallc_controls mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dsg-hallc_controls@jlab.org" target="_blank" moz-do-not-send="true">Dsg-hallc_controls@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls" target="_blank" moz-do-not-send="true">https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls</a>
</pre>
                                  </blockquote>
                                  <p><br>
                                  </p>
                                  <br>
_______________________________________________<br>
                                  Dsg-hallc_controls mailing list<br>
                                  <a class="moz-txt-link-abbreviated"
                                    href="mailto:Dsg-hallc_controls@jlab.org"
                                    target="_blank"
                                    moz-do-not-send="true">Dsg-hallc_controls@jlab.org</a><br>
                                  <a class="moz-txt-link-freetext"
                                    href="https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls"
                                    target="_blank"
                                    moz-do-not-send="true">https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls</a><br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  <br>
                  <fieldset class="mimeAttachmentHeader"></fieldset>
                  <br>
                  <pre>_______________________________________________
Dsg-hallc_controls mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dsg-hallc_controls@jlab.org" target="_blank" moz-do-not-send="true">Dsg-hallc_controls@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls" target="_blank" moz-do-not-send="true">https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls</a>
</pre>
                </blockquote>
                <p><br>
                </p>
                <br>
                _______________________________________________<br>
                Dsg-hallc_controls mailing list<br>
                <a class="moz-txt-link-abbreviated"
                  href="mailto:Dsg-hallc_controls@jlab.org"
                  target="_blank" moz-do-not-send="true">Dsg-hallc_controls@jlab.org</a><br>
                <a class="moz-txt-link-freetext"
                  href="https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls"
                  target="_blank" moz-do-not-send="true">https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls</a><br>
              </div>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre>_______________________________________________
Dsg-hallc_controls mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dsg-hallc_controls@jlab.org" target="_blank" moz-do-not-send="true">Dsg-hallc_controls@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls" target="_blank" moz-do-not-send="true">https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls</a>
</pre>
          </blockquote>
          <p><br>
          </p>
          <br>
          _______________________________________________<br>
          Dsg-hallc_controls mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:Dsg-hallc_controls@jlab.org">Dsg-hallc_controls@jlab.org</a><br>
          <a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls">https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls</a><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Dsg-hallc_controls mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dsg-hallc_controls@jlab.org">Dsg-hallc_controls@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls">https://mailman.jlab.org/mailman/listinfo/dsg-hallc_controls</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>