Triac weird behavior on Building Automation card

txrocks

Member
I have my building automation card on a water well controller where one of the triacs controls a relay that controls the pump relay. Control power to the relay is 24VAC, I have had this happen twice now where the RPI has done something weird and the triac goes closed and stays there. The first time it ocurred, I turned off the RPI on accident. It happened again overnight last night, the power may have blinked causing the RPI to restart ( I am ordering the UPS for it now) . Hopefully it did not kill the pump. I have a second set of contacts on the pressure switch and am going to run the relay control power through there as a failsafe.

Do you have any ideas ?

thanks!
 

alexburcea

Moderator
Staff member
Hi,

The Building automation card has no power backup, so if the power glitches, all the outputs return to the default state (off for triacs and 0V for 0-10V outputs). It is recommended that the software on the Raspberry to detect power losses and restore the outputs to the appropriate state.

Alex.
 

txrocks

Member
I'm going to do more investigation on this today. I think it's doing this in the time when the raspberry pi is not in a operational state, once the RPI boots up and open PLC is up and running it goes back to normal. I am using open PLC.
 

txrocks

Member
I tried to get it to repeat the problem today and could not get it to repeat. Unplugged the power suppy that feeds the RPI and the Sequent boards, waited 30 seconds and plugged back in. System restarted just like it should. Tried pushing the power button on the RPI, tried holding it down to see if I could make it angry. I tried all the above while it was in the middle of a run cycle, it just shut down and restarted once the RPI booted back up and OPLC started back up. It is weird that this has happened twice now where it freaks out and makes all the triac outputs true. I am powered from an official RPI 5 power supply. I could not get any other power supply to work without getting a low power alert on the RPI. The first time this happened I remember opening the cabinet and seeing all the output LED indicators on. The last time it did it overnight, I am just glad it did not kill the pump or break something. The 100PSI gauge was wrapped all the way around to the back side of the needle at 0.
 
Top