fbpx
.st0{fill:#FFFFFF;}

Basic PLC course, examples

Programming the AND Logic Function using programming tables

 October 30, 2009

By  Jose Carlos Villajulca

The following example involves an AND function, so a lamp is required to turn on if and only if two buttons in the example are pressed. The implementation using the programming table is shown below in Table 8.3.

Table 8.3 Table of the switching on of a lamp using the AND function with momentary actuations

Table 8.3 Table of the lighting of a lamp using the AND function

If you look at Table 8.3 and compare it with Table 8.2, you can see that unlike Table 8.2, this one has two buttons, each connected to a different physical input of the PLC: E0 and E1; Therefore, we will assign them two different labels, “Button1” and “Button2,” which will appear in the “Label” field of the Inputs area. The lamp connection will be at physical output S.0 and it was assigned the label of “Lamp”.

Table 8.3 shows the input buttons and output actuator momentarily activated, so the corresponding boxes should be marked with an asterisk (*). There are now two conditions for turning on the lamp: one is that Button 1 is pressed, and the second is that Button 2 is pressed. Therefore, an asterisk (*) is placed in the input corresponding to E.0and another at the entrance corresponding to E1. If either of the two buttons is not pressed, the lamp will turn off, as exemplified in Figures 8.5, 8.6, 8.7 and 8.8.

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!

>