Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 13

LATCH - UNLATCH

Output Latch (OTL): The OTL instruction sets (latch)


the data bit.

Output Unlatch (OTU): The OTU instruction deletes


(unlatch) the data bit.

Another function which is often available is the


ability to set and reset an internal relay. The set
instruction causes the relay to self-hold, i.e. latch. It
then remains in that condition until the reset
instruction is received. The LATCH coil is switched
on when power is supplied to it and remains set 1until
it is UNLATCH. The UNLATCH coil is reset to the
UTMATAMOROS SEP - DEC´2022
off state when power is supplied to it and remains off
I:1/0 I:1/0
O:2/0

I:1/1
I:1/1
O:2/0 O:2/0

When input I:1/0 is true, energizes the output O:2/0 and


Latch “stay on”. The bit will stay latched on until the
switch or pushbutton connected to input I:1/1 is closed.
Once the second switch is closed, it will make the rung
conditions true and cause the bit to unlatch or de-energize.

2
UTMATAMOROS SEP - DEC´2022
COUNTERS.
Counters are provided as built-in elements in PLCs and
allow the number of occurrences of input signals to be
counted. This might be where items have to be counted as
they pass along a conveyor belt, or the number of
revolutions of a shaft, or perhaps the number of people
passing through a door.

A counter is a computation function that allows the


counting of events or impulses. The account can be
programmed progressively (ascending) or regressive
(descending).

A counter is set to some preset number value and, when3


this value of input pulses has been received, it will operate
UTMATAMOROS SEP - DEC´2022
its contacts. Thus normally open contacts would be
There are two types of counter, though PLCs may not
include both types. These are down-counters and up-
counters. Down-counters count down from the preset
value to zero, i.e. events are subtracted from the set
value. When the counter reaches the zero value, its
contacts change state.

Most PLCs offer down counting. Up-counters count


from zero up to the preset value, i.e. events are added
until the number reaches the preset value. When the
counter reaches the set value, its contacts change state.

4
UTMATAMOROS SEP - DEC´2022
Different PLC manufacturers deal with counters in
slightly different ways. Some count down (CTD), or
up (CTU), and reset and treat the counter as though it
is a relay coil and so a rung output. In this way,
counters can be considered to consist of two basic
elements: one relay coil to count input pulses and one
to reset the counter, the associated contacts of the
counter being used in other rungs.

When the value of the accumulated


reaches the preset value the status bit
DN takes the value of 1. 5
UTMATAMOROS SEP - DEC´2022
If the value of the accumulator exceeds the value of 32767,
the overflow (OV) bit of the counter is set to 1.

If, on the contrary, the value of the accumulator passes


through a value lower than -32768, the status bit under
flow (UN) will take the value of 1.
6
UTMATAMOROS SEP - DEC´2022
7
UTMATAMOROS SEP - DEC´2022
PRACTICE #4. TIMERS
1. With the help of the simulator, represent the function
for each of the timers, that activates or deactivates its
DN output (Green Lamp) after 30 sec.

For each coil EN and TT have to be activated showing


a lamp in their output.

2. Draw the diagrams.

8
UTMATAMOROS SEP - DEC´2022
PRACTICE #6. TIMERS
1. Activate PB1 to enable TOF timer, which will turn on
the RTO timer after 1 minute and this will activate the
TON timer that will energize a Red Lamp after 90
seconds of activating PB1.

2. Draw the diagrams.

9
UTMATAMOROS SEP - DEC´2022
PRACTICE #6. DOOR SIMULATION

• When you press OPEN, the automatic door will open


and stop when it is completely open.

• When you press CLOSE, the door will close and stop
when it is completely closed.

• If the STOP button is pressed, the door will stop


immediately, whether it is opening or closing when the
STOP is activated. The AJAR light will turn on.

• If the door is fully open it will turn on the OPEN light


and if it is completely closed the SHUT light will turn10
on.
UTMATAMOROS SEP - DEC´2022
PRACTICE #7. DOOR SIMULATION

• When you press OPEN, the automatic door will open and
stop when it is completely open.

• When you press CLOSE, the door will begin to close


after 10 seconds of activating the CLOSE button and will
stop when it is completely closed. It will open after 2
minutes, without the need to press any button.

• If the STOP button is pressed, the door will stop


immediately, whether it is opening or closing when the
STOP is activated. The AJAR light will turn on.

• If the door is fully open it will turn on the OPEN light and11
if it is completely
UTMATAMOROS closed the SHUT light will turn on.
SEP - DEC´2022
Diseñar el siguiente planteamiento usando el simulador LogixPro:

•El estacionamiento de la universidad cuenta con un


estacionamiento posterior que cuenta con 50 cajones o lugares para
vehículos de sus estudiantes. Para mantener un control del acceso,
los alumnos idearon un proyecto para señalizar la entrada y salida
de vehículos, además de marcar si hay lugares disponibles o si el
estacionamiento está lleno.

• Mientras el estacionamiento tenga lugares disponibles, el acceso


al estacionamiento se abrirá; si por el contrario, si el
estacionamiento está lleno, no se abrirá el acceso al
estacionamiento a menos que algún vehículo que está adentro vaya
a salir.

•Si el estacionamiento está vacío o cuente con espacios


disponibles, la salida O:2/0 estará energizando una Lámpara Verde.
Conforme un vehículo entre, por el acceso del estacionamiento, el
contador incrementa su conteo o si sale, se decrementa.  Si 12el
estacionamiento
UTMATAMOROS está lleno, la salida O:2/1 estará activando la
SEP - DEC´2022

Lámpara Roja.
•Al presionar OPEN, el portón automático se abrirá y
se detendrá al estar completamente abierto.
•Al presionar CLOSE, el portón se empezara a
cerrarse después de 10 segundos de activado el botón
CLOSE y se detendrá al estar completamente cerrado.
Se abrirá después de 2 minutos, sin necesidad de
presionar ningún botón.
•Si se presiona el botón STOP el portón se detendrá
inmediatamente, ya sea si está abriendo o cerrando en
el momento de activar el STOP. Se encenderá la luz
AJAR.
•Si el portón está completamente abierto encenderá la
luz OPEN y si está completamente cerrado se
encenderá la luz SHUT. 13
UTMATAMOROS SEP - DEC´2022

You might also like