fbpx
.st0{fill:#FFFFFF;}

Basic PLC course, examples

Programming the OR Logic Function using programming tables

 November 5, 2009

By  Jose Carlos Villajulca

Next, we will see the OR function implemented with a lamp that must be on when one, the other, or both of the buttons controlling it are pressed. The table corresponding to this example is identified as Table 8.4.

As in the previous example, there will be two buttons connected to the physical inputs of the PLC: E0 (whose label is Button1) and E1 (whose label is Button2). The physical output S0 It will refer to the lamp and will be assigned the label with the same name.

Table 8.4 Table of the switching on of a lamp with the OR function and momentary activation.

Similarly, momentary actuation will be used, so a * will be marked in the box corresponding to output S0 to indicate that the lamp is on. There are now three ways to turn on the lamp: one is by pressing Button 1, the second is by pressing Button 2, or both. Therefore, a * is placed in the input corresponding to E0, another in the input corresponding to E1, and one in both. If either button is pressed, the lamp will turn on, as shown in Figures 8.13, 8.14, 8.15, and 8.16.

Figure 8.13 Resulting ladder from Table 8.4, with inputs E0 and E1 deactivated.


Figure 8.14 Resulting ladder from Table 8.4, with input E0 activated and E1 deactivated.


Figure 8.15 Resulting ladder from table 8.4, with input E0 deactivated and E1 activated.


Figure 8.16 Ladder resulting from table 8.4, with inputs E0 and E1 activated.

The result of Figures 8.13, 8.14, 8.15, and 8.16 on something physical is shown below through Figures 8.17, 8.18, 8.19, and 8.20 respectively.

Figure 8.17 Lamp turned off by the O (OR) condition resulting from Figure 8.13.

Figure 8.18 Lamp turned on by the O (OR) condition resulting from Figure 8.14.

Figure 8.19 Lamp turned on by the O (OR) condition resulting from Figure 8.15.

Figure 8.20 Lamp turned on by the O (OR) condition resulting from Figure 8.16.

Help us grow

Finally, if you are determined to learn Industrial Automation and advance your professional career, you may be interested in our Premium courses:

– Click to see all our courses at MyAutomationClass.com
- Course: «"Become a PLC expert in 60 days, from basic to pro"»
- Course: «"PID Controllers Master Class – 100% practical"»
- Course: «"How to create SCADA/HMI projects from scratch with InTouch"»
- Course: «"PID Tuning Ultimate: The Definitive Course for Tuning"»
- Course: «"Practical Process Modeling: Definitive Steps to Becoming an Expert"»
- Program: «"The Ultimate Process Control Formula" (All-inclusive: PID Control, Tuning, and Modeling)

If you have any questions, contact us via Facebook Messenger

Until next time. COMMENT AND SHARE! I'll be happy to answer your questions.



Image CTA - Comment

Jose Carlos Villajulca


I am a passionate Electronics Engineer specializing in Automation, Control, and Industrial Instrumentation. I love learning every day, and above all, sharing my knowledge with the world. If you have any suggestions for improving our website, please write to me at jvillajulca@instrumentacionycontrol.net

You might also be interested in...

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Sign up for our newsletter!

>