EBK ACTIVITIES MANUAL FOR PROGRAMMABLE
EBK ACTIVITIES MANUAL FOR PROGRAMMABLE
5th Edition
ISBN: 8220102795983
Author: Petruzella
Publisher: YUZU
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
Send me the lexer and parser
Here is my code please draw a transition diagram and nfa on paper public class Lexer { private static final char EOF = 0; private static final int BUFFER_SIZE = 10; private Parser yyparser; // parent parser object private java.io.Reader reader; // input stream public int lineno; // line number public int column; // column // Double buffering implementation private char[] buffer1; private char[] buffer2; private boolean usingBuffer1; private int currentPos; private int bufferLength; private boolean endReached; // Keywords private static final String[] keywords = { "int", "print", "if", "else", "while", "void" }; public Lexer(java.io.Reader reader, Parser yyparser) throws Exception { this.reader = reader; this.yyparser = yyparser; this.lineno = 1; this.column = 0; // Initialize double buffering buffer1 = new char[BUFFER_SIZE]; buffer2 = new char[BUFFER_SIZE]; usingBuffer1 = true; currentPos = 0; bufferLength = 0; endReached = false; // Initial buffer fill fillBuffer(); } private…
If integer x is divisible by 3, can you prove that ceil(x/2) + floor(x/6) = floor(x/2) + ceil(x/6)
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