bgscott
Member
I am very new to plc programming and i am looking for help for a program I am writing to remotely turn on/off an air compressor. I currently have a program written that uses a timer to time an output off after a three second delay. the timer is started by a normally closed contact off of an input, when the input goes low I need the machine to shut off after three seconds. Currently to turn on my output I have a rung of logic that has (timer not equal to zero) anded to (timer is less than 3 seconds) this is ored to a normally open contact that pulls in with the input. so the normally open contact holds the output closed until the contact opens, then the timer starts timeing and the first rung described above locks in the output for three extra seconds and then the output goes off. the problem is there is sometimes a "flap" of the contact caused by it taking one extra scan to read that the timer is not zero (I assume). what is the correct way to time off an output to get rid of this momentary change of state??