Hello all,
Long time lurker first time poster. I appreciate all the advice you guys provide. I've learned a lot. I am seeking an answer to a problem that has just begun to pop up.
I have four growth chambers at work. We conduct trials on plant pathogens and we use Micrologix 1100 PLCs to control the environment. The contractor that built these did a really terrible job and I began revising the code to get our chambers to work more effectively with tighter deadbands for Temp*C and Relative Humidity. I finished the programming a couple months ago and they have worked flawlessly.
Just this past week however a problem emerged with the real time clock. The lighting program that controls the day length in the chamber is not turning off/on the lights. There is a chance it is just affecting the whole program in general because the diurnal setpoints used to promote innoculation and establishment of plant pathogens on our experiments are also controlled by the RTC function. Many of the experiments right now are set to have the same day and night temp/RH setpoints so the lighting caused us to discover the problem first.
The problem so far as I can tell is the RTC stops advancing a few hours after I reset it in the function file. When I returned in the morning I took some screen shots. What you see in the images below are what are causing the lights to stop working. When I go live I see that the RTC hour and minute values do not have a value at all. They read 0. I will look up the values of the function file and the boolean value on the Disable bit status is 1 and none of the other fields have a value. I can reset the RTC very easily and it will work for half a day but when I come back the next day it is back to the same problem. There is no alarm getting triggered to indicate the battery is low. This is happening on only 2 of the four chambers and hadn't done anything like this for about 3 months so I really don't know where to go from here. I would appreciate any help you could provide.
*edit image explanation
RTCError-Rungs utilizing RTC values show a null value. Image is not the lighting program but the program that handles day and night modes
RTCFunctionFile-This is how the function file looks when I connect after the lighting program fails to turn on or off
RTCFunctionFileGood-This is the function file from a working chamber
Long time lurker first time poster. I appreciate all the advice you guys provide. I've learned a lot. I am seeking an answer to a problem that has just begun to pop up.
I have four growth chambers at work. We conduct trials on plant pathogens and we use Micrologix 1100 PLCs to control the environment. The contractor that built these did a really terrible job and I began revising the code to get our chambers to work more effectively with tighter deadbands for Temp*C and Relative Humidity. I finished the programming a couple months ago and they have worked flawlessly.
Just this past week however a problem emerged with the real time clock. The lighting program that controls the day length in the chamber is not turning off/on the lights. There is a chance it is just affecting the whole program in general because the diurnal setpoints used to promote innoculation and establishment of plant pathogens on our experiments are also controlled by the RTC function. Many of the experiments right now are set to have the same day and night temp/RH setpoints so the lighting caused us to discover the problem first.
The problem so far as I can tell is the RTC stops advancing a few hours after I reset it in the function file. When I returned in the morning I took some screen shots. What you see in the images below are what are causing the lights to stop working. When I go live I see that the RTC hour and minute values do not have a value at all. They read 0. I will look up the values of the function file and the boolean value on the Disable bit status is 1 and none of the other fields have a value. I can reset the RTC very easily and it will work for half a day but when I come back the next day it is back to the same problem. There is no alarm getting triggered to indicate the battery is low. This is happening on only 2 of the four chambers and hadn't done anything like this for about 3 months so I really don't know where to go from here. I would appreciate any help you could provide.
*edit image explanation
RTCError-Rungs utilizing RTC values show a null value. Image is not the lighting program but the program that handles day and night modes
RTCFunctionFile-This is how the function file looks when I connect after the lighting program fails to turn on or off
RTCFunctionFileGood-This is the function file from a working chamber
Last edited: