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
Q3: Design an asynchronous counter that divides the input clock signal by 5 then draw counter's logic circuit and its corresponding timing diagram for 10 clock pulses. Duar
With the aid of Table-1 in the back of this exam paper, answer the following: a- Design the control signal and for the memory write operation. b- Draw the logic diagram of the control signal derived in (a).
: Based on the logic circuit given in Figure 1. Design a shift register that displayed the input data on its output after 32 us. You can use any extra logic components when necessary. Data In Q7 (Data Out) SRG 8 Clock Q7 500 kHz Figure 1: Logic circuit for serial-in / serial-out shift register
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
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning