Docsity

Up Counter-Digital Logic Design And Programming-Lecture Slides, Slides of Digital Logic Design and Programming

Toggle sidebar
bg1
Up Counter
An up counter (CTU) output instruction adds a count,
in increments of one, every time its referenced event
occurs.
In a control application, this counter turns a device
ON or OFF after reaching a certain count (i.e., the
preset value in the preset register).
Also, this counter can keep track of the number of
parts (e.g., filled bottles, machined parts, etc.) that
pass a certain point.
An up counter increases its accumulated value (the
count value in its accumulated register) each time
the up-count event makes an OFF-to-ON transition.
docsity.com
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Up Counter-Digital Logic Design And Programming-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!

Up Counter^ ^ An up counter (CTU) output instruction adds a count,in increments of one, every time its referenced eventoccurs.^ ^ In a control application, this counter turns a deviceON or OFF after reaching a certain count (i.e., thepreset value in the preset register).^ ^ Also, this counter can keep track of the number ofparts (e.g., filled bottles, machined parts, etc.) thatpass a certain point.^ ^ An up counter increases its accumulated value (thecount value in its accumulated register) each timethe up-count event makes an OFF-to-ON transition.

Up Counter^ ^ When^ the^ accumulated

value^ reaches^ the preset^ value,^ the^ counter

turns^ ON^ the output,^ finishes^ the^

count,^ and^ closes^ the contact^ associated^

with^ the^ referenced output.  After the counter reaches the preset value, iteither resets its accumulated register to zeroor^ continues^ its^ count

for^ each^ OFF-to-ON transition, depending on the controller.  In the latter case, a reset instruction is usedto clear the accumulated value.

Down Counter^ ^ Depending^ on^

the^ programmable

controller, the down counter will eitherstop^ counting^ down

at^ zero^ or^ at^ a

specified maximum negative value.  In a block format instruction, a downcount occurs every time the down inputof the counter transitions from OFF toON.

Counter Reset^ ^ A counter reset (CTR) output instruction resets upcounter^ and^ down^ counter

accumulated^ values^ to zero.  When^ programmed,^ a^

counter^ reset^ coil^ has^

the same^ reference^ address

as^ the^ corresponding up/down counter coils.  If the counter reset rung condition is TRUE, the resetinstruction will clear the referenced address.  The reset line in a block format counter instructionsets^ the^ accumulated^ count

to^ zero^ (accumulated register = 0).

Response Diagram^ ^ Horizontal^ axis^ is^

time^ and^ vertical^ axis

is logic state (0 or 1).  Time^ axis^ of^ the^ graphs

are^ synchronized resulting in a vertical line at any point on thegraph describing a point in time.  In real automation system, the two states arenormally^ represented

by^ voltages^ or^ other physical^ media^ like^

pneumatic^ pressure^

or height.

docsity.com

Example of Response Diagram