Thank you for the reply!
My application is currently using a SQL database. I have a conveyor line that is supposed to send a random box down a conveyor line. I am told that the database sends a random interval number, in this case its 50, that will dictate when the box is diverted. I'm looking at the program, and I have found the variable RandomInterval contained in a compare instruction. It currently reads zero. I know that the database has the number, but I am unsure where the disconnect lies. Whether it be with the database not sending the variable, the PLC not receiving the variable, or the variable i am looking at coincidentally has the same name as the database variable and they have nothing to do with eachother.