Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

PLC Chapter-8 Programming Counters

Download as pdf or txt
Download as pdf or txt
You are on page 1of 63

MECH 1500

Chapter 8
3.1

Counter Instructions
MECH 1500

Programmed counters
serve the same Actuating
lever

function as
mechanical counters.

Every time the actuating lever is moved over, the


counter adds one number.

Resetting to zero is done with a pushbutton located


on the side of the unit.
MECH 1500

Electronic counters
can count up, count
down, or be
combined to count
up and down.

Although the majority of counters used in industry


are up-counters, numerous applications require the
implementation of down-counters or of
combination up/down-counters.
MECH 1500

All PLC manufacturers offer some form of


counter instruction.

One common counter application is keeping track of


the number of items moving past a given point.
MECH 1500

PLC counter instructions are similar to timers


except that they do not operate on an internal
clock but are dependent on external or program
sources for counting
Type of
counter Counter address
rd
XXX
Generic coil-
formatted
up-counter } —= PR: YYY
AC: 000
instruction. Increments
counter by 1
for each Praset courier Accumulated
false-to-true counter value
bi value
transition.
MECH 1500

The counter reset instruction must be used in


conjunction with the counter instruction.

The counter reset


coil is given the
same address as the I; Cr)—
I PR: YYY
counter that itis to Count AC: 000
rung
reset.
XXX ==

Up-counters are
always reset to zero. Reset
MECH 1500

Generic block-formatted counter.

All PLC counters operate, or count, on the leading


edge or off-to-on transition of the input condition.

Input
module
Count
1[ line Type of
{eceeee
JL counter Output
line ( —
Preset value
r
hs

L Reset Accumulated
line value
MECH 1500

PLC counters can be programmed to count up to


a preset value or to count down to a preset value.

| The up-counter is
—— Counter—up incremented by 1 each time
| 10 Counter Hn
EL value the rung containing the
a I} counter Is energized.
On

Accumulated = Preset = | Output
Off


Parts Counter—down
The down-counter | me
decrements by 1 each | J L
|
value

time the rung containing > <5


the counter is energized. on
Accumulated = Preset = | Output
Off
3.2

Up-Counter
MECH 1500

The up-counter is used to count false-to-true


transitions of an input instruction and then
trigger an event after a required number of
counts or transitions.

-CTU
—| COUNT-UP COUNTER Cu—
Counter p:
Preset : : ©N
Accumulated P

The up-counter output instruction will


increment its accumulated value by 1 each
time the counted event occurs.
MECH 1500

SL.C 500 Up-Counter program


L1 Inputs Ladder logic program Outputs L2
=i
1 -CTU
Rung 1 ] [ COUNT-UP COUNTER
PB1 (Count) Counter Cs5:1
PB1 (Count) Preset 7
Accumulated 0
&—0O © I:1/0 S——
C5:1/DN
Rung 2 ] [
PB2 (Reset) Counter done bit Red PL

* i's in kn 10H 0:2/1


Rung 3 |= = Jm—
Counter done bit Green PL

rn C5:1
Rung 4 ] [ (RES)—
PB2 (Reset)
MECH 1500

SLC 500 Up-Counter timing diagram

Accumulated
value
MECH 1500

Simulated Up-Counter program


MECH 1500

The Allen-Bradley SLC 500 counter file is file 5.


File type Counter number

Preset value

> Accumulated value

Counter Table
/CU J/CD /DN /OV JUN J/UA .PRE .ACC
C5:0 0 0 0 0 0 0 0 0
C5:1 0 0 0 0 0 0 0 0
C5:2 0 0 0 0 0 0 0 0
C5:3 0 8 © Bb 8 B 50 0
C5H:4 0 0 0 0 0 0 0 0
C5:5 0 0 0 0 0 0 0 0

Address | C5:3 Table: | C5: Counter ||


Count-Up Count-Down Done (DN) bit - is
(CU) enable (CD) enable bit true (1) whenever
bit - is true - is true (1) the accumulated
(1) whenever whenever the value is equal to or
the count-up count-down oreater than the
counter counter preset value of the
instruction is instruction is counter, for either
true. true. the count-up or the
count-down
counter.
PCO TE . xX
00 CD JOM JOW AUN PRE ACC |
C50 0 0 0 0 0 0 0
C1
ws J we |

we |

| C5:2
Rw

Rw
J

Ch3
we

we

ws

ws

C54
J

C55
Lon J

Los J

Lo

Lo

Radix | [ | Table CH: Counter -) =

Address |CF:3 Sumbol |


MECH 1500

Overflow (OV)
Underflow (UN) bitis - true
bit is - true (1)
when the counter counts
whenever
below -32.768. The counter
the counter
will wrap around to +132,767
counts past its
and continue counting down
maximum
toward 0.
value, 32,767.
On the next
count, the Conor Tane fr
counter will » : EL 6) 2 i ay EAE Ce 4]

wrap around cz ooo 0 000


C51 1] 1] 1] 1] 1] 1] 1]

to -32.768 and Ean EEE EEN =~


=
= =
"
Radix: | | Table: C5: Counter
will continue
» i .

ress |Ch:3 Symbol

counting to 0.
MECH 1500

Update The preset value The


Accumulator (PRE) word - accumulated
(UA) bit- is used | [specifies the value value (ACC)
in conjunction that the counter word - is the
with an external must count to current count
high-speed before it changes based on the
counter. the state of the number of
done bit. times the rung
goes from false
to true.
heIEEa

/CU /CD /DN /OV U


coocoR a

€5:0 0
Oooo Oo

O0DOoO0D Oo
0
oo

J C3: 1 0
O0O0

|C5:2 0
oo

|C5:3 0
ODOC

| C5:4 0
oo

=o

|C5:5 0
Address | C5:3 Table:
| C5: Counter w|
wm
MECH 1500

SLC 500 up-counter instruction.

—CTU
— | COUNT-UP COUNTER CU)
Counter C5:0
Preset 10
Accumulated 0 —ON)

C5:0/CU
] [ Counter enable bit

C5:0/DN
] [ Counter done bit

C5:0/0V
] | Overflow status bit

C5:0 The reset instruction resets


—(RES)— the counter's accumulated
value back to zero.
MECH 1500

Timer/counter menu from the RSLogix toolbar.

K TON TOF | RTO cru | co RES HSC

|» [\ User £ Bit ) Timer/Counter

CTU (Count-Up) Increments the accumulated value at


each false-to-true transition and retains the accumulated
value when an off/on power cycle occurs.
CTD (Count-Down) Decrements the accumulated value
at each false-to-true transition and retains the
accumulated value when an on/off power cycle
occurs.
HSC (High-Speed Counter) Counts high-speed pulses
from a high-speed input.
MECH 1500

PLC counter program used to stop a motor from


running after 10 operations.
Inputs Ladder logic program Output

‘Stop Start C5:0/DN Motor


*+—Q | O— Stop [= [ f= CD
ho

Start kid Motor —(M)—}f—+


i ]
$—0 OoStart
a ‘Motor —CTU
rid [ COUNT-UP COUNTER ~~ HCU)—
Counter C5:0
SE O— Reset Preset 10 —(ON)
ee Accumulated 0

o) 1L {RES)—
MECH 1500

Simulated counter program used to stop a motor


from running after 10 operations.
=i ProS... .. O xX LAD 2: ou | a]
yO Simi 0:2/0
Bl 000 a
0:2 MOTOR

1
i

— CTU
Count Tp CU ————
0d Counter Ca'0
=

Preset 10 CDN D—
=

Fe Aconm 1]
i=
iJ
[Tn]
=i
ali
——
Fu
i
]
= |
[i
=

Radic [Decal +] Table: [C5 Counter v] Force: | &B)


Addess [05:0 Symbol |
MECH 1500

Can-counting program that uses three up-counters.


Ladder logic program

Parts
L1
—CTU
COUNT-UP COUNTER cv
Counter C51
Preset 10 —0Y
Accumulated 0

—CTU
COUNT-UP COUNTER
Counter Cs:2
Preset 32767
Accumulated 0

Packages
—CTU
COUNT-UP COUNTER
Counter C5:3
Preset 300
Accumulated 0
MECH 1500

Simulated can-counting program.


Lg 83.00
rer RE re REET l

PRO-5W

C51/DN B3:0/1
ou =i = Ej). —
CLOSE BOX
C51

B30
|
CLOSE BOX

1A cad
pi | —LF ES) 1 |

RESET-PB Total Cans


C53
a Total Pakages
CU JD JON AV AN PRE ACC =
£50 no 0 0 0 05 0 |
no4
C51 oD 0 0 0 Ww 0 Ji
Lo? 1] 1} 0 0 0 2767 20
53 Bo 0 0 0 0 2
5:4 oo 0 0 0 0 0
£55 oo 0 0 0 0 0 hd
Radix «| Table [C5 Counter + | Eh
MECH 1500

A one-shot, or transitional, contact is often used


to automatically clear or reset a counter.

Internal One-shot
The one-shot can be i relay contact output

triggered from a EERE


It »ln
momentary signal =? Trigger
N\ \
or from a signal that input \

comes on and stays 1


\ da
on for some time. A
L | 95,
Internal
relay coil

It stays on for one scan only and then goes off.

It stays off until the trigger goes off, and then


comes on again.
MECH 1500

Some PLCs provide transitional contacts or


one-shot instructions.

The off-to-on transitional On


contact provides a one- —
shot pulse when the —i -
trigger signal makes a Se — —
Off ——
off-to-on transition.

The on-to-off transitional On

contact provides a one- N


shot pulse when the —I-
trigger signal makes a Symbol one
on-to-off transition. of —
MECH 1500

The Allen-Bradley SLC 500 one-shot rising


(OSR) instruction is an input instruction that
triggers an event to occur one time.

L1 Input OSR rung

B3:0/0 C5:1

ogo Ls

Tp.
—> if —
One PLC scan
MECH 1500

Up-counter with a programmed one-shot rising


(OSR) off-to-on transitional contact instruction.
Inputs Ladder logic program Qutput

B3:0/0 —CTU
L1 rs [—osr}— COUNT-UP COUNTER
Counter C5:0
Preset 50
Accumulated 0
MECH 1500

Simulated up-counter with a programmed


one-shot rising (OSR) contact instruction.
"<¥ ProSim Simulations

Process
@ run 0202 Silo Si
001
@n oom
@ FULL 0204
2 Ib
®)| stop C
woz
J —
3
mn,

SOLENOID VALVE yf ae hen


02 & Ll

oe 151413121110 9 8 7 6 5 4 3 2 1 0 «|p
| B30F 0 0 0 0 0 0 0 0 © 0 0 0 @ 0 0 0 |
{BX1/ oO 0 0 0 0 0 0 0 0 OO OO OO 0 OO 0 0
Fa | BEF O90 0 0 0 0 80 0 0 0 0 0 0 0 0
bo Bx 0 0 0 0 0 0 0 © 0 0 © O O 0 0 0
IB34f 0 0 O O O O O ©O © 0 OO @ OO 0 0
PROX SENSOR < {B25/ oO 0 0 0 0 0 0 0 ©O OO OO OO OO OO 0 0 hd
E103 SE —
MOTOR Rado: [Bina w| Table |B3 Bina -|
0:2/00 cen y EER |
MECH 1500

OSR instruction used to freeze rapidly displayed


LED values.
Inputs Output
L1 pg 0®
1:1/0 1 ®
rE r Baan — 10D
1 [osr] To BCD = 2 ®
Source T4:1.ACC 3 ®
Destination 06 4 pr
5
LA : 6 ®
[ — TON CE R35/0000
] L TIMER ON DELAY —EN)— 8 §
Timer T4:1 BG) 9 &
Time base 1.0 10 @
Preset 1000 "ne
Accumulated 0 i: :

14 ®
15 ®

Closing the momentary pushbutton PB (1:1/0) will


freeze and display the value at that point in time.
MECH 1500

Simulation of OSR instruction used to freeze


rapidly displayed LED values.

|| EE pr
| 1X = | ai f Ta— 1
poi]

1:1/0 B3:0:0 TOD


oo 4 FE [OR] To BCD
EEE
Source T4:1 ACC
1]
Drest 5]
0

I: TON
aon 1 E Timer Cm Delay EN
EE Timer T4:1
Tire Base 0.1 Ho
Preset 10000
> — Leman |

Timer Table x iN
/EM ATT /DM PRE ALC .
002 —| 140 0 0 0 0 0 END
1] 1] 1] 10000 1]
T4:2 0 0 0 0 0
MECH 1500

Alarm monitor program.


Inputs Ladder logic program Output
L1 T4:6 — TON L2
IE TIMER ON DELAY —EN)—
Timer T4:5
DN —{
Time base 1.0 oN)
Preset 1
Accumulated 0

T4:5 TON
1L
1L hig OM DELAY a
GEN )
DN © —{(DN
Time base 1.0 i; ),
Preset 1
Accumulated 0

i Es a
][ COUNT-UP COUNTER cu)—
OFF ON Counter C5:1 BN)
i Preset 1 Q
mi i= Accumulated i]
—0
‘tn
Le
RE

Fi
ho
=T

DN
=

C5:1 Fs
fl 1[
L JL
DM

ss C51
MECH 1500

Simulated alarm monitor program.

—_=e
TON il
Timer On Delay —EN3—— ©
Timer T4:5
Time Base 0.1 {DH}
Preset 10
Aeomm a 1]

TON
Timer On Delay EN ——
Timer T4:6
Time Base 0.1 (DN)
Preset 10
Acomumn 1]

CTO
Count Up CUT
Counter Zh
Preset 1 HH DH —
Aomam 1]

22m
elTe
LIGHT

Za
{RES —

|
3.3

Down-Counter
MECH 1500

A down-counter will count down or decrement by


1 each time the counted event occurs.
Inputs Ladder logic program Output

ppy Count

ubDC

PR: 003

AC: 000

| Generic up/down
li counter program.

Normally the down-counter is used in conjunction with


the up-counter to form an up/down-counter.
MECH 1500

Up/down counter program counting diagram.

Counter
accumulated
value
MECH 1500

Parking garage counter program.

Ladder logic program

Preset
Accumulated

Cc
Preset
Accumulated
MECH 1500

Simulated parking garage counter program.

Pr = Eva) ET =r
i i | i |

CTU
aoo Count Tp CE
Commer 451
Preset 14 — Oil
doom 1]
| 1:1
o [I
ETi
| 1:15 CTD
5 aa - C Count Doan — CD)
So —T SAT Counter C51
| | Preset 15 DH —
[= gal 03 | Deomim 1]

* oH |-& [HE
o [IH |-& CATION
ooz 1 E
a o [HE |
sal 07 |
1/2
jo > [HE |e EE 003 JE
o [iE |e EE REBET
= Counter lable
[> © : AUD DM AW AUN PRE ACC
004 EHD
<o il © Kill CRD 0 0 0 0 0 0 0 (END
gl i2 oH ] 0 0 I I oo 15 0
| 1 | rE. [nl Nn m] m] m] m] In
MECH 1500

Count-down counter instruction used as part of


the SLC 500 controller instruction set.

—CTD Counter Table

6)
COUNT-DOWN COUNTER /CU /CD /DN /OV JUN JUA .PRE .ACC
C5:0 0 0 0 0 0 0 0 0
Counter C5:0
(5:1 0 0 0 0 0 0 0 0

me
Preset 10 (5:2 0 0 0 0 0 0 0 0
Accumulated 0 5:3 0 0 0 0 0 0 0 0
C5:4 0 0 0 0 0 0 0 0
5:5 0 0 0 0 0 0 © 0

C5:0/CD | Address | Table: | C5: Counter =| |


| | Counter enable bit

Counter done bit The information to be


C5:0/UN entered into the
Underflow status bit instruction is the
C5:0 The reset instruction resets same as for the
—(RES)— the counter's accumulated
value back to zero. count-up instruction.
MECH 1500

Up/down-counter program.
Ladder logic program Outputs

— CTU
COUNT-UP COUNTER
C52

Accumulated

— CTD
COUNT-DOWN COUNTER
Counter AoE
Preset 10
Accumulated 0
MECH 1500

Simulated up/down-counter program.

1:11:10 CTU
=k int Up HF Lp,TE
PE1-Input A Conmter ch
Prasat 10 — DH —
Domum i]

I-11 CTD
oot - E Count Donen L— CD)
PBI-InpLt B
Counter ch
Preset 10 DN —
A oman |

CHCl 2:20
ooz Si A
aE for CRE od

ChH2ICD 22
ooz =) fl :
PLE
TY

CA2I0MN C2
ood HE
Pl FF EO fod

- CRES)—
1142 ch
004
MECH 1500

Program that provides continuous monitoring of


items In process.

Photoelectric
sensor

Material
Photoelectric processing system
sensor

Out-feed
(finished parts)

= The accumulated count of


Boba the counter continuously
indicates the number of
in-process parts.
MECH 1500

Program that provides continuous monitoring of


items in process.

Ladder logic program

—CTU
COUNT-UP COUNTER

COUNT-DOWN COUNTER
Counter C5:1
Preset 50
Accumulated 0
MECH 1500

Simulated program that provides continuous


monitoring of items in process.

1-1/0
noo —] E

IN-FEED COUNT

E11
001 1 E
OUT-FEED COUNT

002
1142 C51
JE CRES)—
Con va
003 UD MON OV JUN PRE ACC | “END ™~—
C50 0 0 0 0 0 1] 1] i=
C51 0 0 0 n 1} 50 0
8.4

Cascading Counters
MECH 1500

Depending on the
application, it may be
necessary to count events
that exceed the maximum
number allowable per
counter instruction. One
way of accomplishing this
count is by
interconnecting, or
cascading, two counters.
MECH 1500

Counting beyond the maximum count program.

Inputs Ladder logic program Qutput |»

HE) 1E1EosAH conte COUNTER HE) Light—


of Counter C5:1
+—o o—PB1 Prasaal
Accumulated 0
Reset
button B3:0/0

—0
1 O PB2
losAl——
Eg
con
COUNT-UP SELES 60)—
Counter C5:0
Preset
Accumulated 0
MECH 1500

Simulated counting beyond the maximum count


program.
Cm = rn
g=1 |
[10 CED B3:.0:0 CTU
oo J E 1 E [OsR] Connt Up oie
_— sn Counter ca
Presst 10 DN 3—
Lomnm 0

B3:0/0 CTI
—]
OSF. }—— Count Up Bi
Counter Cal
Preset 10 DH —
Lcoamn 1]

Ca0DMN CHEVDMN 202m


01 qr
gm i i= iE ela
L.A
oH ed LIGHT

so o [HE
mi 18 lem
Ed RE 5:0
oo? HAE EE)
gl 02 a all 07 | BUTTD
— — [4
o [iE
13 © iE
[El (RES)
< [i | = olf 10 :

o [ i l] |-o [[EEEE Le C50


Au
oo
a0 DWN
0
AN
0
SUM
0
PRE
10
ACC
0 END 3]
| > HH | EE C51 0 0 0 0 0 10 0
MECH 1500

Cascading counters for extremely large counts.


Inputs
Ladder logic prog
ram Output

—CTU
COUNT-UP COUNTER
C51
Counter
Preset
0
Accumulated

— CTU
COUNT-UP COUNTER
C5:2
Counter
500
Preset
0
Accumulated
MECH 1500

Simulated program for extremely large counts.

ot iy —0:2 004 n I Count Tp (CU


Or o [I i 00 | Counter Ch
ae] [ { oo
Preset Lo): —( DNH —
© o [i i 01 |
so[HE |e E
el (0: | IE C5:1/DN CET
egal (4 | IE
ml ooz or Eo ut RES ~

soHE |e HE
so[HE |e BE
So | |
mem 111 C52
So IE 0: | 003 J E {RES
som |e m RESET-FB2
so5 le Ea C5:2/DN 0: 240
||
eal 11
I")
11]
004 == La
LIGHT
<> HA |e BE
joe | 00s [0 MCD ON OV JUN PRE ACC - CEND |
so a mm C5:0 0 0 0 0 0 0 0
wa — 0 0 0 0 0 5 0
>H [¢ EH EE 0 0 0 0 0 5 0
MECH 1500
Ladder logic program

RTO Seconds

000 RETENTIVE TIMER ON —(EN)—


Timer T4:0 —DN
Time base 1.0 )
Preset 60

T4:0DN __~1y
001 ] [ COUNT-UP COUNTER ~~ —(CU)—
Counter C5:0 ©N
Preset 60 ),
Accumulated 0
24-hour
: Hours
Tl —CTU =
clock 002 1 COUNT-UP COUNTER —(Cu)—
Counter C5:1 —(ON
program. Preset 24 )
Accumulated 0

T4:0/DN T4:0
003 i {1(RES)—

C5:0/DN C5:0
004 1 (RES)—
Is

C5: 1/DN c5:1


005 ((RES)—
MECH 1500

Simulated 24-hour clock program.


— "AD -
——=1 RTO
Fatentive Timer On EN)—
Tiwary T4:0
Time Base 0.1 H)-
Prasat 600
I/O Sim

0: T4:0/DN
[01 | 001 =N=

=
=
_ C5:0/DN 3 CTU
oo2 — F Count Up CU—
B=
Commter C51
Preset 24 | fy
[ 05 | Aecum 1]
TT
Hours: TT
{ 07 |
T4:0IDN T4:0
EB) | ooo 3 E (RES)
= Seconds
{10 | ie
ON/OFF Switch
iH C5 0/DN CED
3] 004 J E (RES)
Minutes
a
be

[15] ON/OFF Switch


CA 1DN C51
005 J E (RES)
Hours
4

OMIOFF Switch
WATT TT 1 Ll

Ladder logic program Outputs a.


=r Internal
‘Reset 83:00
=] fe 1L Fil

=
JL \ JS
Internal
B3:0/0
Internal 1L
B3:0/0 JL set
1C £ ™
JL LJ

Internal
B3:0/0 Trip

Internal
B3:0/0 Seconds

Monitoring the
— RTO
JE RETENTIVE TMERON [EN]
Timer T4:0 DOM

time of an
Time base 1.0 — )
Preset ty 60

event program.
T4:0/DN CTU

][ COUNT-UP COUNTER —(CU—


Counter C5:0 ( DN
Preset eo )
Accumulated 0

a _eTU Hours

1 COUNT-UP COUNTER ——{CUr—


Counter C51 DN
Presst 24 )
Accumulated ii]

T4aEN T4:0
1c {T
(RES ———

1 C5:0
I's
t (RES)——r
C5:1/DN Ch:1
1L
AAT TT Sis

— 1 Co Scans

Simulated
time of an
event T4: ODN
1 1
—_—T
=
Ldaank
os
Up
— -
I LEE
1

program.
C50DN =

aR
8.5

Incremental
Encoder-Counter
Applications
MECH 1500

The incremental
optical encoder
creates a series of
square waves as its
shaft is rotated.

Generated pulses

LLL
The encoder disk
interrupts the light as the
encoder shaft is rotated to
produce the square wave
output waveform.
MECH 1500

Cutting objects to a specified length.

Wood

Programmable
controller

The object is advanced for a specified distance and


measured by encoder pulses to determine the correct
length for cutting.
MECH 1500

Counter program used for length measurement.

10 counts per foot


—CTU
COUNT-UP COUNTER ~~ —(CUH
Counte C5:1
id 10 —0N
Accumulated 0

SE
(RES >)

Photoelectric
sensor
3.6

Combining Counter
and Timer Functions
MECH 1500
Inputs M2 M2 run time
L1
L[ TIMER ON DELAY
Tw
sige
T4:1 EY
ie MR 1.0
oD) M1 ( +|
ki:
Preset 2
Accumulated
0
rol
Em Eral E,
un
%O— |
M2
JL i
T4:1
1[

—: —~CTU ——
COUNT-UP COUNTER ~~ —
ag —(CU)
Eo C5:1
is OY
Accumulated =
MECH 1500
Ladder logic program

OL map ight Motor Outputs


ae 12
EN
‘Motor —(_ )}—¢

TonTIMER ON DELAY a0
5 min

—(EN——
Timer T40 (
Time base 1 oN)
Preset 300
Accumulated 0

1hr
—TON
TIMER ON DELAY —(EN—
Timer T4:1 (
Time base 1 oN)
Preset 3600
Accumulated 0

—CTU
COUNT-UP COUNTER ~~ —(CU—
Counter C50
Preset 6 ©N)
Accumulated 0

Mototor ks1[IT 6doe


fame
DN

lock-out Resse.
JL

program ia =

he
—l
TY

Ny
MECH 1500

Product flow rate program.

Ladder logic program

‘Start SW gE 1 min timer


L1 doa
1[ TIMER ON DELAY (EN)
Off On ON)
Timer T4:1
« 1.0
Time base
$0
by ul
oOStartSW Prasat Ee
Accumulated 0

Total

‘StatSW T4:1 Sensor je EE


1 WU ] [ —(cu)—
JL L rman UP il
DN :
Preset 0 ©N)
Accumulated 0

C5:1
m(RES)m—
MECH 1500

Timer driving a counter to produce an


extremely long time-delay period.
Ladder logic program

Input LA
if a
—TON
TIMER ON DELAY —(EN)—
Output

DN Timer T4:0
Time base 1.0 —0N)
Preset 10000
Accumulated 0

1 COUNT-UP COUNTER ~~ ——(CU)—


DN Counter C5:0 —
Preset 100 DN)
Accumulated 0

ud we
+ 6)
I'L

C5:0 Light
1 £
J \ )—

You might also like