Programmable Logic Controllers
Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
Question
Book Icon
Chapter 10, Problem 4P
Program Plan Intro

EQU instruction:

  • The Equal (EQU) instruction is used to test whether the given two values are equal or not.
  • If the given two values such as Source A and Source B are equal then, the instruction is logically true. Otherwise, the given instruction is logically false.

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.

Given:

The instructions used in the given data compare program are the input instructions, which are used to compare two different numerical data values and it compares the words stored in the data to take decisions.

Explanation of Solution

b.

Status of switch S1:

No, it is not required that the switch S1 must be closed to change the numeric value stored in “S...

Explanation of Solution

c.

Numbers to be set on the thumbwheel:

The thumbwheel switch is required to be set on with the Binary Coded Decimal (BCD) value “004” in order to turn on the pilot light.

Explanation:

The given ladder logic diagram has been modified as shown below:

Blurred answer
Students have asked these similar questions
3. What instruction should be executed to ensure that the carry flag is in the set state ? the reset state?
Computer Science - Assembly language code: Q1. A) A microprocessor is wired into a sensing control circuit so that the memory locations 42 and 43 each contain the values 0 or 1. Memory location 50 is connected to a light switch. When the value in 50 is 1 the light is on and when it is 0 the light is off. Write a program to switch on the light on when the values in locations 42 and 43 are both 1, and to switch off the light when the values in locations 42 and 43 are both 0. Only use the ARM assembly language instructions, MOV, JMP and JNZ. Assume that the MOV instruction updates the flags with the status register.
As a programmer, you need to design a forward-reverse motor system. When a switch 1 is pressed, the motor will run forward and when a switch 2 is pressed, the motor will run reverse. Use PORT A as input and PORT B as output in PIC16F/18F. Build a suitable program that will fulfill the requirement.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L