Examples of Some Ladder Logic Programming
Some examples of Ladder Logic Programming are :
Creating AND gate Ladder logic diagram
AND logic : Y=A.B (here A and B are the inputs, and Y is output)
Truth Table
Input (A) |
Input (B) |
Output (Y = A.B) |
---|---|---|
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
Here, NO switches are representing input 0, means no current is passing, and NC switch are representing input 1, which means current passing through the circuit. Each line in the diagram representing each combination from truth table. First line, where A=B=0, means no current is passing. As they are in series line(according to AND logic) no current will reach to the output module. Same for the other rungs, created from the truth table, to show each switch in series, and check if it’s matching the table or not.
Creating OR gate Ladder logic diagram
OR Gate logic : Y = (A+B)
Truth Table
Input (A) |
Input (B) |
Output (Y = A+B) |
---|---|---|
0 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
In a circuit OR gate represents parallel circuit, that’s why we have here places two switches in parallel. Others are same as discussed in previous example, NC switches(green) means current passing, which is denoted by 1, and NC switch(white) means no current passing, denoted by 0. Then check the output from the truth table.
Similarly we can create NAND gate, NOR gate, XOR gate etc. other logic gates using ladder logic diagram.
PLC Programming Ladder Logic
A PLC or Programmable Logic Controller is a special type of digital computer without a monitor and keyboard. This is basically used in industrial automation such as manufacturing, automotive, food and beverage, chemical processing, and more to automate systems. This tiny computer receives data through input and sends operating instructions as output.
As the name suggests, it’s a programable device. The main languages that are used to program a PLC are ‘Ladder Logic’ and ‘C’. Ladder Logic is the most used programming for PLCs.
Table of Content
- Ladder Logic
- Ladder Logic Structure
- Ladder Logic Components
- Description and Working
- Advantages an Disadvantages
- Applications
- Examples
Contact Us