The most common failures are wire break, device failure or PLC input failure. In fact the rule of thumb is that any device that is required to stop the motor should be wired normally closed (NC), to make it “fail safe”. If Output Y is FALSE then it stays FALSE…. When both Input A and Input B are FALSE then the state of Output Y does not change. Remember Allen Bradley PLC’s use Latch and Unlatch symbols.
Let’s start with the Set (Latch) and Reset (Unlatch) logic. Ladder Logic Latch with SET & RESET Symbols A great example of a device that can provide a momentary pulse to a PLC input is a push button. The inputs that set and reset the latch are usually momentary pulses. Latching in a PLC requires at least one input to set the latch (Input A), one input to reset the latch (Input B) and one output to store the latch state (Output Y). Sometimes it just comes to personal preference. Simple applications requiring a latch are well suited to use latching logic.īut when it comes to more complex applications the use of Set (Latch) and Reset (Unlatch) symbols may be required. The disadvantage is that there is some inflexibility in programming because latching logic requires all the symbols to be on the same rung and may even overflow to the next rung. The advantage of latching logic is that troubleshooting is easier because the symbols used are all in the same rung. Quite often hold in logic is referred to as hold in logic. The disadvantage is that debugging can become more difficult because the Set (Latch) and Reset (Unlatch) symbols may be scattered throughout the program.
Advantages include flexibility in programming because the Set (Latch) and Reset (Unlatch) symbols do not need to be in the same rung. These instructions simulate the function of an electromechanical latching relay. In an Allen Bradley PLC they are called Latch and Unlatch instructions. When we use the term latching in a PLC it refers to changing the state of an output to TRUE, holding the state of that output TRUE until certain conditions occur, then returning the state of the output back to FASLE. Latching is one of the most important pieces of ladder logic programming that you’ll ever use. Let’s take a look at some very simple, but extremely important ladder logic programming examples… Latching in a PLC So by creating ladder logic programming examples we can speed up or overall programming time.Ĭonstructing a program is then a simple matter of grabbing the appropriate ladder logic programming examples and connecting them in an orderly fashion. Experience tells us that once a piece of ladder logic is created that accomplished a specific task it can be re-used in other areas of the program and in other applications as well.