[Dsg-hallb_magnets] Torus PLC Code

Brian Eng beng at jlab.org
Fri Feb 10 13:34:58 EST 2023


Jan 13th when I changed the current change logic on the Torus to be the same as the Solenoid to prevent flipping polarity.

The PLC code is also on GitHub so even if the PC disappeared it still exists.

________________________________
From: Stepan Stepanyan <stepanya at jlab.org>
Sent: Friday, February 10, 2023 1:23 PM
To: Brian Eng <beng at jlab.org>
Cc: Amrit Yegneswaran <yeg at jlab.org>; dsg-hallb_magnets at jlab.org <dsg-hallb_magnets at jlab.org>
Subject: Re: [Dsg-hallb_magnets] Torus PLC Code

When last local saved copy was done? Is there timestamp on that?

Stepan

On Feb 10, 2023, at 1:19 PM, Brian Eng <beng at jlab.org<mailto:beng at jlab.org>> wrote:

The MPS firmware is completely independent of the PLC.

Since the failure happened at ~10 PM its extremely unlikely someone would have reset it.
________________________________
From: Stepan Stepanyan <stepanya at jlab.org<mailto:stepanya at jlab.org>>
Sent: Friday, February 10, 2023 1:05 PM
To: Brian Eng <beng at jlab.org<mailto:beng at jlab.org>>
Cc: Amrit Yegneswaran <yeg at jlab.org<mailto:yeg at jlab.org>>; dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org> <dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org>>
Subject: Re: [Dsg-hallb_magnets] Torus PLC Code

Brian,

Did we had firmware on the torus power supply changed recently? Could it be that after the change someone restarted/rebooted the whole system with a different PLC code?

Thanks, Stepan

On Feb 10, 2023, at 12:59 PM, Brian Eng via Dsg-hallb_magnets <dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org>> wrote:

No clue, but the timestamps of 2020 and 1969! for the faults don't make any sense either.

So far I've only found 3 actual code differences (one is a missing tag, the other a disabled interlock [both already changed online], the other is a tag to potentially bypass the hardware timer [set to 0 in the old code so leaving it out for now]).
________________________________
From: Amrit Yegneswaran <yeg at jlab.org<mailto:yeg at jlab.org>>
Sent: Friday, February 10, 2023 12:08 PM
To: dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org> <dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org>>; Brian Eng <beng at jlab.org<mailto:beng at jlab.org>>
Subject: Re: Torus PLC Code

how did you guy's manage this?
was it maxwell's demon?
or a case of downloading without checking the version?
as always
baffled and lost at the frontier of science.
________________________________
From: Dsg-hallb_magnets <dsg-hallb_magnets-bounces at jlab.org<mailto:dsg-hallb_magnets-bounces at jlab.org>> on behalf of Brian Eng via Dsg-hallb_magnets <dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org>>
Sent: Friday, February 10, 2023 11:58 AM
To: dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org> <dsg-hallb_magnets at jlab.org<mailto:dsg-hallb_magnets at jlab.org>>
Subject: [Dsg-hallb_magnets] Torus PLC Code

After the major fault last night it appears that the code running on the PLC and the last local saved copy don't match up.

Normally we only upload from the PLC to the local computer, but the code that is/was on the PLC seems out of date.

I'm attaching a .zip file of the XML output from RSLogix so that the code can be compared.

Torus-current.L5X = what is running now.
Torus-previous.L5X = last local copy.

Could some others compare the files and see if there's any non-tag differences? Me manually looking through the ~9k differences in ~56k lines isn't optimal. I've attached a screenshot showing there are code differences and not just tag values.

Trying to avoid having to download the code to the PLC to prevent all the PIDs being reset.
_______________________________________________
Dsg-hallb_magnets mailing list
Dsg-hallb_magnets at jlab.org<mailto:Dsg-hallb_magnets at jlab.org>
https://mailman.jlab.org/mailman/listinfo/dsg-hallb_magnets

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/dsg-hallb_magnets/attachments/20230210/f0d87b58/attachment-0001.html>


More information about the Dsg-hallb_magnets mailing list