Programmable Logic Controllers
Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
bartleby

Concept explainers

Question
Book Icon
Chapter 10, Problem 13RQ
Program Plan Intro

Data comparison instructions:

  • Data comparison instructions refer to input instructions.
  • It is used to compare two numerical data values and take decisions based on the program instructions.
  • It can also be used to check the numerical value pairs for determining if a rung is true.
  • The basic set of data comparison functions performed by PLCs are as follows:
    • Equal to (=)
    • Not equal to (!=)
    • Less than (<)
    • Greater than (>)
    • Less than or equal to(<=)
    • Greater than or equal to (>=)
  • The above given compare instructions are used to compare the values of source A and source B.

Terms used:

The following terms are used in the instruction.

  • Source A
    • Source A refers to the address of the first piece of data that is used in the instruction.
  • Source B:
    • Source B refers to the address of the second piece of data that is used in the instruction.

Explanation of Solution

b.

LESS THAN instruction:

  • The LESS THAN (LES) instruction is used to test whether the given value is less than the other value or not.
  • If the given value such as Source A is less than Source B, then the instruction is logically true. Otherwise, the given instruction is logically false.

Explanation:

In the given logic rung,

  • The output D is energized whenever input C is true...

Explanation of Solution

c.

GREATER THAN OR EQUAL instruction:

  • The GREATER THAN OR EQUAL (GEQ) instruction is used to test whether the given value is greater than or equal to the other value or not.
  • If the given value such as Source A is greater than or equal to Source B, then the instruction is logically true. Otherwise, the given instruction is logically false.

Explanation:

In the given logic rung,

  • The output F is energized whenever input E is true...

Blurred answer
Students have asked these similar questions
I need to develop and run a program that prompts the user to enter a positive integer n, and then calculate the value of n factorial n! = multiplication of all integers between 1 and n, and print the value n! on the screen. This is for C*.
I need to develop and run a C* program to sum up integers from 1 to 100, and print out the sum value on the screen. Can someone help please?
Given the schema below for the widgetshop, provide a schema diagram. Schema name Attributes Widget-schema Customer-schema (stocknum, manufacturer, description, weight, price, inventory) (custnum, name, address) Purchased-schema (custnum, stocknum, pdate) Requestedby-schema (stocknum, custnum) Newitem-schema (stocknum, manufacturer, description) Employee-schema (ssn, name, address, salary) You can remove the Newitem-schema (red).
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Text book image
Fundamentals of Information Systems
Computer Science
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
MIS
Computer Science
ISBN:9781337681919
Author:BIDGOLI
Publisher:Cengage
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage