Activities Manual For Programmable Logic Controllers
Activities Manual For Programmable Logic Controllers
5th Edition
ISBN: 9781259682476
Author: Frank Petruzella
Publisher: Mcgraw-hill Higher Education (us)
bartleby

Concept explainers

Question
Book Icon
Chapter 7, Problem 6RQ
Program Plan Intro

Programmable Logic Controller (PLC):

  • PLC is a specialized computer used in industrial segments to control machines and process.
  • PLC is program that consists of a set of instructions which resembles the controlling functions needed to perform specific tasks.
  • The function of PLC is similar to that of a relay and hence, in an industrial segment a relay is greatly replaced by a suitable PLC.
  • When compared to general Personal Computer (PC), a PLC is available in small and tiny sizes.
  • The basic architecture of a PLC consists of an input-output interface module and a small Central Processing Unit (CPU) that runs by controlling programming language.

Timer:

  • Timer is mainly used to keep an output ON for a specific length of time.
  • It provides a preset delay to the control actions.
  • In a timer, the output will be energized when the preset value becomes equal to the accumulated value.
  • Three different types of timers include Delay-OFF timer, Delay-ON timer and  Delay-ON-Retentive timer.

Explanation of Solution

b.

Resetting the accumulated count to zero:

  • The accumulated count of retentive timers can be reset to zero by using a separate reset signal.
  • This separate signal is known as Retentive Timer Reset (RES) instruction.
  • When RES is true, the accumulated value of the timer is reset to zero...

Blurred answer
Students have asked these similar questions
EX:[AE00]=fa50h number of ones =1111 1010 0101 0000 Physical address=4AE00h=4000h*10h+AE00h Mov ax,4000 Mov ds,ax; DS=4000h mov ds,4000 X Mov ax,[AE00] ; ax=[ae00]=FA50h Mov cx,10; 16 bit in decimal Mov bl,0 *: Ror ax,1 Jnc ** Inc bl **:Dec cx Jnz * ;LSB⇒CF Cf=1 ; it jump when CF=0, will not jump when CF=1 HW1: rewrite the above example use another way
EX2: Write a piece of assembly code that can count the number of ones in word stored at 4AE00h
Write a program that simulates a Magic 8 Ball, which is a fortune-telling toy that displays a random response to a yes or no question. In the student sample programs for this book, you will find a text file named 8_ball_responses.txt. The file contains 12 responses, such as “I don’t think so”, “Yes, of course!”, “I’m not sure”, and so forth. The program should read the responses from the file into a list. It should prompt the user to ask a question, then display one of the responses, randomly selected from the list. The program should repeat until the user is ready to quit. Contents of 8_ball_responses.txt:  Yes, of course! Without a doubt, yes. You can count on it. For sure! Ask me later. I'm not sure. I can't tell you right now. I'll tell you after my nap. No way! I don't think so. Without a doubt, no. The answer is clearly NO. (You can access the Computer Science Portal at www.pearsonhighered.com/gaddis.)
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
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
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
A+ Guide to Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole