Content
# #laguna — 2025-12-24
**05:46 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766584008006219):** i can see a bunch of temporary code he put in while he was experimenting yesterday. this part of the code looks like a mess.
**05:47 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766584046474279):** trying to familiarize myself with what they were trying to do before you get onsite.
**05:55 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766584557844149):**
![[F0A4ZEZGV6K_image.png]]
**05:56 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766584584331819):** looks like he disabled the PID and was trying some code to increase or decrease the valve cmd by 2% every 10 seconds whether it was above or below setpoint
**07:14 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766589270215659):** We are off the hook for now. Jerry said it ran all night. It wasn't pretty but it ran. He would like us to continue with scada work with a priority on the flow totalizers.
**07:15 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589304419549):** ah! ok. i have train 4 in PID control right now and its looking a lot better i think
**07:15 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589315756189):** i can put it back to the original routine by swapping a bit
**07:15 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766589336880309):** I say if you have it running better let's leave it
**07:16 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589368574639):** i can feel the desperation in the code
**07:16 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589380016459):** their code
**07:16 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766589417845949):** Yeah Monty was not very happy yesterday.
**07:17 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589437046599):** i could see lots of experimenting
**07:17 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589442927849):** the tank level moves really fast
**07:21 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589688770569):** are they coming back out after the holidays to work on it more?
**07:21 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766589694120659):** Jerry likes that you got it back into PID mode. He says if you like train 4 then do the same to 3
**07:22 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589746960619):** ok.. i can do that.. and we can always swap it right back to how it was running last night..
**07:22 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589766637509):** im not sure if i know everything i need to know about the process.. there is a lot going on there
**07:24 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766589874168459):** Yeah I know. I don't know it all either. Jerry can help if we need. We don't have to do anything else, I just thought since you already improved 4 you could do the same to 3.
**07:24 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589899305529):** i do feel good about 4. but might want to watch it through a few cycles
**07:25 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766589933294059):** Jerry would like a separate account of any work we do or did to fix their code, if possible
**07:25 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766589951558189):** yeah i can do that.
**07:28 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766590124312999):** From Jerry
Another thing Monty pulled out of PID control is the process pumps (PMP-35-4, PMP-35-3)
**07:29 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766590167003319):** Jerry put them back into PID last night to get them to run
**07:29 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766590187101479):** hm. ok
**07:30 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766590249692489):**
![[F0A5BT4241K_img_20251224_073040.jpg]]
**07:38 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766590713567259):** valves have runaway position commands.. meaning its being told to open > 100%. currently at 112,000%
**07:38 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766590726316509):** causing deviation and fail to close alarms
**07:38 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766590733993909):** ill see if i can fix that too
**07:41 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766590897641419):**
![[F0A5JV3TVD2_image.png]]
**07:41 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766590907367249):** oh man.. train 3 is a mess.. he must have been getting tired and frustrated
**07:54 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766591684599469):** fixed all that nonsense.
**07:54 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766591699442179):** From Jerry
I lowered the production net flow setpoint from 850 gpm to 650 gpm on both trains.
**07:55 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766591703329129):** also changed the PV from an integer value to a real which will help the PID plan for upward or downward movement
**07:55 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766591732567159):** Beautiful
**07:57 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766591854526349):** both fill valves back on PID and feeling better
**08:06 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766592373228049):** Sweet
**08:15 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766592954363639):** even with the valve open 100% sometime it drops low level. either draining too fast or not enough feed GPM?
**08:16 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766592973655459):** ive only seen it happen once..
**08:17 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766593023149519):** ah likely because we're only running one feed pump? feed demand setpoint is greater than one pump can supply
**08:29 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766593755821339):** ok, it only went low that one time.. i wasnt staring at it much before, but it feels pretty good
**08:29 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766593773570919):** think we are good there for today?
**08:29 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766593799564529):** I think so boss
**08:30 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766593830495029):** Are you able to get the flow totalizers on SCADA today?
**08:30 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766593841577759):** for which meters?
**08:31 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766593869797419):** Production and wasting. I don't have the pid in front of me
**08:31 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766593895738679):**
![[F0A5967P26P_image.png]]
**08:31 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766593905540489):** think its these? 3820 and 3520?
**08:32 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766593945786009):** I think yes
**08:37 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766594239030219):**
![[F0A5UFXKQSD_image.png]]
**08:37 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766594241387759):** both reject flows are done
**08:37 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766594257667409):** still looking for totalizers for prod flows
**08:45 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766594702387709):**
![[F0A505XQSET_image.png]]
**08:45 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766594709588969):** ok.. took some more code updates. but it got it
**08:52 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595178423069):** Sweet!
**08:53 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595231716769):** PIDs looking good still?
**08:54 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595261468119):** I think so! Yeah!
**08:55 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595306818769):** Fabulous. Are you done for today?
**08:55 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595336741809):** If everyone feels good about where we’re at
**08:55 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595359110599):** Let me check in with Jerry
**08:58 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595508787179):** Sent Jerry a text
**08:59 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595593670959):** Can you generate an AI summary of our chat here for this project this far? I'd like to document what you've done.
**09:00 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595619933569):** Just for today?
**09:00 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595641287099):** All the work this far
**09:01 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595670814689):** Reviewed and analyzed existing PLC logic related to tank level and feed flow control following recent instability. Identified multiple sections of temporary and experimental code where PID control had been disabled and replaced with incremental valve command adjustments based on deviation from setpoint, resulting in unstable behavior and runaway valve commands exceeding 100%.
Restored PID control on Train 4 fill valve, verified proper operation, and observed improved stability over multiple cycles. Repeated the same corrections on Train 3, removing experimental logic, correcting valve output handling, and re-enabling PID control. Addressed runaway valve position commands that were causing deviation and fail-to-close alarms.
Converted level PVs from integer to real data types to improve PID responsiveness and control resolution. Coordinated with Kevin and Jerry regarding operational status, confirmed reduced production net flow setpoints, and ensured both trains were operating reliably under PID control.
Updated Code for Prod and Reject Totalizers.
**09:01 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595694444299):** That's for today
**09:01 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595707208609):** Other stuff is mostly scada updates and retagging
**09:01 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595718342409):** Can I put together a full summary tonight or tomorrow?
**09:02 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595749496729):** Sounds good.
**09:03 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595808210419):** Are you available if things go south?
**09:04 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766595854806039):** From Jerry
It looks much better. Thank you, I think it will be good for today.
**09:05 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766595901458739):** Sweet!
**09:08 [Kevin](https://slack.com/archives/C08JS6KDLBD/p1766596107858629):** Thank you Mason. Your talent really shined through this.
**09:09 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766596150471019):** Thanks Kevin
**14:44 [Mason Radke](https://slack.com/archives/C08JS6KDLBD/p1766616247789049):** i just took a peak, i think its looking pretty good