fbpx
.st0{fill:#FFFFFF;}

Advanced PLC Course

PLC Programming: Comparison Operation

 October 10, 2012

By  Jose Carlos Villajulca

These operations allow you to compare two variables or a variable with a numerical value. All these operations are conditional; that is, when the comparison condition is met, a binary signal will be activated. In some cases, the first variable must be a true variable, while the second can be either a variable or a constant.

The possible comparison operations are:

•Equality.
•Inequality.
•Less than.
•Less than or equal to.
•Greater than.
•Greater than or equal to.

The representation in the IEC 61131-3 standard is represented as follows:

Input operands can be of type BYTE, WORD, DWORD, INT, DINT, or REAL. The output operand will always be a variable of type BOOL.

Table 2 below shows the comparison operations used for the PLCs: Simatic, Telemecanique, and Allen Bradley.

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)

- Course: How to Learn Industrial Instrumentation, Easily (Complete)

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!

>