![Page 1: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/1.jpg)
Temporizadores y Contadores 1
TEMPORIZADORES Y CONTADORES
(Ejemplos con STEP 5)
![Page 2: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/2.jpg)
Temporizadores y Contadores 2
TEMPORIZACIÓN-BLOQUES ESTÁNDAR NORMA IEC 1131-3
• IMPULSO (TP)
Sigue al flanco de subida instantáneamente durante un tiempo T
• RETARDO A LA CONEXIÓN (TON)
Sigue al flanco de subida después de un tiempo T
• RETARDO A LA DESCONEXIÓN (TOFF)
Sigue al flanco de bajada después de un tiempo T
![Page 3: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/3.jpg)
Temporizadores y Contadores 3
TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES
• Con / Sin MemoriaUn temporizador tiene memoria si, una vez activado, no depende de futuros valores (de desactivación) de la señal de disparo
• Redisparabilidad (Retriggerability)Un temporizador es ‘redisparable’ si, una vez activado, un nuevo flanco de activación en la señal de disparo provoca que reinicie la cuenta.
NO REDISPARABLESIN MEMORIA
![Page 4: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/4.jpg)
Temporizadores y Contadores 4
TEMPORIZACIÓN-BLOQUES ESTÁNDAR RESUMEN - IEC 1131-3
MEMORIA REDISPARABLE
TP SI NO
TON NO X
TOFF NO X
![Page 5: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/5.jpg)
Temporizadores y Contadores 5
TEMPORIZACIÓN-BLOQUES ESTÁNDAR TEMPORIZADOR DE PULSO (TP) - IEC 1131-3
TP
IN Q BOOLBOOL
PT ET TIMETIME
IN
ET
Q
PT
0
time time time
CON MEMORIA
UNRETRIGGERABLE
No ofrecido por Siemens
![Page 6: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/6.jpg)
Temporizadores y Contadores 6
TEMPORIZACIÓN-BLOQUES ESTÁNDAR TEMPORIZADOR DE CONEXIÓN (TON) - IEC 1131-3
IN
ET
Q
PT
0
TON
IN QBOOL
PT ET TIMETIME
time time
SIN MEMORIA BOOL
![Page 7: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/7.jpg)
Temporizadores y Contadores 7
SIN MEMORIA
TEMPORIZACIÓN-BLOQUES ESTÁNDAR TEMPORIZADOR DE DESCONEXIÓN (TOFF) - IEC 1131-3
IN
ET
Q
PT
0
time time
TOFF
IN QBOOL
PT ET TIMETIME
Por nivel BOOL
![Page 8: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/8.jpg)
Temporizadores y Contadores 8
TEMPORIZACIÓN-SIEMENS(S5-S7) CLASIFICACIÓN
TP TON TOFF
SI SV SE SS SA
Memoria X X X
Redisparable X X X
IVESAREGLA NEMOTÉCNICA
![Page 9: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/9.jpg)
Temporizadores y Contadores 9
TEMPORIZACIÓN-SIEMENS (S5) BLOQUE KOP / AWL
TX, TW, DU, DE 16 Bits
U E 2.0L KT 500.0SE T1 // Activa el temporizadorU E 2.2R T1 // Reset por nivelU T1= A 4.0 // Salida lógicaL T1 T MW10 // Salida DULC T1 T MW12 // Salida DE (BCD)
KT 500.0
T1
TW
R Q
DU
DE
E2.0
E2.2
MW10
MW12
SE
A 4.0
TX (1-127)
TW
R
Tiempo a contar
Señal de disparo
ResetQ Salida lógica
DU
DE
Salida analógica
Salida analógica (BCD)
Flanco
Constante de tiempo en STEP 5 KT X.Y
Todas las entradas provocan primera consulta
Base de tiempos 0-9 0-9 0-9
0 5 0 0
![Page 10: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/10.jpg)
Temporizadores y Contadores 10
TEMPORIZACIÓN-SIEMENS (S5) TEMPORIZADOR SI (TP)
IN
DU
Q
0time time
R
Activación del RESET por nivel
Memoria NORedisparo X
TW
![Page 11: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/11.jpg)
Temporizadores y Contadores 11
TEMPORIZACIÓN-SIEMENS (S5) TEMPORIZADOR SV (TP-impulso prolongado)
IN
DU
Q
0time time
R
Memoria SIRedisparo SI
time
MEMORIA REDISPARO
TW
![Page 12: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/12.jpg)
Temporizadores y Contadores 12
TEMPORIZACIÓN-SIEMENS (S5) TEMPORIZADOR SE (Tipo TON)
Memoria NORedisparo X
IN
DU
Q
time time
SIN MEMORIA
TW
![Page 13: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/13.jpg)
Temporizadores y Contadores 13
TEMPORIZACIÓN-SIEMENS (S5) TEMPORIZADOR SS (Tipo TON)
Memoria SI
Redisparo SI
IN
DU
Q
time time
R
Permanece a 1 hasta que se produzca un
reset por nivel !
MEMORIA
REDISPARABLE
TW
![Page 14: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/14.jpg)
Temporizadores y Contadores 14
TEMPORIZACIÓN-SIEMENS (S5) TEMPORIZADOR SA (Tipo TOFF)
IN
DU
Q
ttime time
MEMORIAMemoria SI
Redisparo SIREDISPARABLE
Se pone a 1 por nivel en la señal de arranque
TW
![Page 15: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/15.jpg)
Temporizadores y Contadores 15
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS
SV
KT 500.0M1.0
M1.0 T1
QTW
SA
KT 500.0M1.0
M1.0 T1
QTW
M1.05 5 5
5 5 5M1.0
Tiempo de ciclo
CON MEMORIA
NO NECESITA MEMORIA
![Page 16: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/16.jpg)
Temporizadores y Contadores 16
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS
SE
KT 500.0M1.0
M1.0 T1
QTW
M1.0
SE
KT 500.0
M1.0 T1
QTW
Tiempo de ciclo
5 5 5
M1.0
5 5 5M1.0
NO NECESITA MEMORIA
NO NECESITA MEMORIA
U M1.0
L KT 500.0
SE T1
UN T1
= M1.0
AWL?
![Page 17: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/17.jpg)
Temporizadores y Contadores 17
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS
UN M1.0
L KT 500.0
SV T1
U T1
= M 1.0
UN M1.0
= M1.1
A
UN M1.1
L KT 500.0
SE T1
U T1
= M 1.1
B
UN M1.1
L KT 500.0
SE T1
U T1
= M 1.1
UN M1.1
BEB
UN M1.2
= M1.2
BEB
UN M1.3
= M1.3
C
![Page 18: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/18.jpg)
Temporizadores y Contadores 18
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS (IEC 1131-3)
TON
TB=1sg3
TOFF
TB=1sg5
%Q1.0
TON
%Q1.0 3 5
Q1.0
NECESITA MEMORIA EL TON?
¡NO!
![Page 19: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/19.jpg)
Temporizadores y Contadores 19
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS
TP1
TB=1sg3
TP2
TB=1sg5
%Q1.0
TP1
%Q1.0
3 5
Q1.0
UN A 32.0
L KT300.0
SI T1
UN T1
L KT500.0
SI T2
U T2
= A 32.0
AWL?
Como empezar en nivel alto ?NECESITAN MEMORIA
TP1 y TP2? ¡NO!
![Page 20: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/20.jpg)
Temporizadores y Contadores 20
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS CON GRAFCETS
Temporizadores SE
U E1
L KT 500.0
SE T1
OB1
U E1
U T1
R E1
S E2
Etapa1 Etapa2
SALIDA1
2
T1/ X1 / 5s
k
T2 / X2 / 10s
11 1 :/ / 5 5Secumple segundos tras la actidesp vaciué ónT s s de de XX
11 1 :/ / 5 5Secumple segundos desdela activadur cióan nT s te de XX
Talto Tbajo
SALIDA
![Page 21: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/21.jpg)
Temporizadores y Contadores 21
TEMPORIZADORES-APLICACIONES EJEMPLO EN ACCIÓN CONDICIONADA
SALIDA (A1.0)1
T1/X1/5s (SE)
2
X1/3s (SE)
U E1L KT500.0SE T1
U E1U T1S E2R E1
…
SPA PB1
U E1L KT300.0SE T2
U E1UN T2= A 1.0
AWL SIEMENS S5
OB1 PB1 (COMB)
2T /
![Page 22: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/22.jpg)
Temporizadores y Contadores 22
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS CON GRAFCET
SALIDA (A1.0)3
4
T1/X3/5s
T2/X4/3s
3
1
2
S1
S2
PB1
OB1
OB1
U E1SPB PB1
U E1U S1S E2R E1R A1.0R Mflanco
...
SPA PB2
PB2: PARTE COMBINACIONALPB2
U E1U E3= A1.0
PB1
U E1UN MflancoS E3R E4
U E3L KT 500.0SE T1
U E3U T1S E4R E3
U E4L KT300.0SE T2
U E4U T2S E3R E4
U E1= Mflanco
¡ MOSTRAR EL ‘CERO’ AL TEMPORIZADOR T1 SI LA ETAPA 1 PUEDE VOLVER A ACTIVARSE !
ENCAPSULACIÓN
![Page 23: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/23.jpg)
Temporizadores y Contadores 23
TEMPORIZADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS SIN GRAFCETS
1
2
S1
S2
PB1
OB1U E1SPB PB1
U E1U S1S E2R E1R A1.0
…
UN A 1.0
L KT300.0
SI T1
UN T1
L KT500.0
SI T2
U T2
= A 1.0
TP
TB=1sg3
TP
TB=1sg5
%Q1.0
%Q1.0
%Q1.0
%Q1.0
¿HAY QUE MOSTRAR EL CERO?
OB1 PB1
Implementar con TON y TOFF
![Page 24: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/24.jpg)
Temporizadores y Contadores 24
TEMPORIZADORES-APLICACIONES SEMÁFORO
VERDE
AMARILLO
(0,5s OFF+1s ON)
1
2
T1/X1/10s
T2/X2/6,5s
1
ROJO3
T3/X3/20s
OB1PB2
PB2
PB1
OB1U E1L KT100.1sSE T1U T1U E1S E2R E1
U E2L KT650.0sSE T2U E2SPB PB1U T2U E2S E3R E2R AMBAR
U E3L KT200.1sSE T3U T3U E3S E1R E3
SPA PB2
PB1UN AMBARL KT50.0SI T4
UN T4L KT100.0SI T5
U T5= AMBAR
PB2U E1= VERDE
U E3= ROJO
AMBAR
0,5
1
Examen 2008
¿MOSTRAR EL CERO A LOS TEMPORIZADORES?
![Page 25: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/25.jpg)
Temporizadores y Contadores 25
CONTADORES-SIEMENS (S5) BLOQUE KOP
U E 2.0ZV Z1 // Señal de disparoU E 2.2R Z1 // Reset por nivelU Z1= A 1.0 // Salida lógicaL Z1 T MW10 // Salida DU
Z1
R Q
DUZVE 2.0
E 2.2
MW10
A 1.0
Z<1-127>
R
KZ
Resta
Q Salida lógica ( =0 falso )
DU
DE
ZR
SumaZV
SSeñal de carga
ZW (0-999)Reset
Salida analógica
Salida BCD
ZX, ZW, DU, DE 16 Bits
Carga el valor de contador cuando la
entrada pasa de 0 a 1
Cualquier entrada provoca primera
consulta
![Page 26: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/26.jpg)
Temporizadores y Contadores 26
TEMP./CONTADORES-APLICACIONES GENERACIÓN DE SEÑALES PERIÓDICAS
3 ciclos
1
2
PB1
OB1
OB1
U E1L KZ 4S Z1SPB PB1
U E1UN Z1S E2R E1
…
PB1
UN A 1.0L KT300.0SI T1
UN T1L KT200.0SI T2
U T2= A 1.0
UN A1.0ZR Z1
3
2
3 ciclos
Se empleará el flanco de bajada de la salida para disparar un contador decreciente
¿ENCAPSULACIÓN?¿LEGIBILIDAD? ¿MOSTRAR EL CERO?
![Page 27: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/27.jpg)
Temporizadores y Contadores 27
CONTADORES-APLICACIONES UN CONTADOR EN MAS DE UNA ETAPA
S1
1
2
GRAFCET DE PRODUCCIÓN
…
U E1ZR Z1
U E1U S1S E2R E1
U E2ZR Z1
U E2U S2S E3R E2…
C=C-1
C=C-1
S2
OB1
Cuenta a velocidad de ciclo!
PROBLEMA SIMILAR EN IMPLEMENTACIÓN DE ACCIONES CONTINUAS MEDIANTE ASIGNACIÓN ¿FUNCIONA?
![Page 28: TEMPORIZADORES Y CONTADORES (Ejemplos con STEP 5) - … · Temporizadores y Contadores 3 TEMPORIZACIÓN-BLOQUES ESTÁNDAR PROPIEDADES GENERALES • Con / Sin Memoria Un temporizador](https://reader031.vdocuments.pub/reader031/viewer/2022021518/5bd6a2ae09d3f238188baeed/html5/thumbnails/28.jpg)
Temporizadores y Contadores 28
EJERCICIOS DE PROGRAMACIÓN Detección de la entrada o salida de personas
Implementar un programa que utilice dos fotocélulas A y B para detectar la entrada o salida de personas del recinto para su posterior contaje
A B
EXTERIOR INTERIOR