Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
6 operaciones numericas
1. Date: 07.03.2012
File: PRO1_07E.1
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Operaciones numéricas
CMP ==I
IN1
IN2
IW0
IW2
M0.0 Q 9.7
T4
S_ODT
TV
S Q
BCD
BI
R
I0.7
I0.5
S5T#35s
Q8.5
MW0
QW12
4. Date: 07.03.2012
File: PRO1_07E.4
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Carga y transferencia de datos (1)
MOVE
EN
IN
OUT
ENO
MB5
5
FBD
L +5
T MB5
STL
MOVE
EN
OUT
ENO
MB5
LAD
IN
5
5. Date: 07.03.2012
File: PRO1_07E.5
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Carga y trasferencia de datos (2)
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
:
:
L W#16#CAFE
L W#16#AFFE
:
:
:
X X X X X X X X
C A F E
A F F E
Contenido
ACCU2
Contenido
ACCU1
Programa
Y Y Y Y Y Y Y Y
X X X X X X X X
0 0 0 0 C A F E
6. Date: 07.03.2012
File: PRO1_07E.6
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Carga y transferencia de datos (3)
31 23 15 7 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 MB0
31 23 15 7 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 MB1
MB0
31 23 15 7 0
MB3
MB2
MB0 MB1
Carga
L MB 0
Programa
T AD 4
QD 4
QW 4
QB 4
Transf.
Contenido ACCU1
L MW 0
L MD 0
T AW 4
T AB 4
7. Date: 07.03.2012
File: PRO1_07E.7
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Temporizadores: ON Delay (SD) – retardo a la conexión
LAD
T4
S_ODT
TV
S Q
BCD
BI
R
E0.7
E0.5
S5T#35s
A8.5
MW0
AW12
FBD
S_ODT
TV
Q
BI
R
E0.7
E0.5
S5T#35s
MW0
AW12
T4
BCD
=
A8.5
S
STL
A E0.7
L S5T#35s
SD T4
A E0.5
R T4
L T4
T MW0
LC T4
T AW12
A T4
= A8.5
Ejemplo
S
R
Temporizador
Q
8. Date: 07.03.2012
File: PRO1_07E.8
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Temporizador: Stored ON Delay (SS) – retardo a la conexión con memoria
STL
U E0.7
L S5T#35s
SS T4
U E0.5
R T4
L T4
T MW0
LC T4
T AW12
U T4
= A8.5
LAD
T4
S_ODTS
TV
S Q
BCD
BI
R
E0.7
E0.5
S5T#35s
A8.5
MW0
AW12
FBD
S_ODTS
TV
Q
BI
R
E0.7
E0.5
S5T#35s
MW0
AW12
T4
BCD
=
A8.5
S
Ejemplo
S
R
Temporizador
Q
9. Date: 07.03.2012
File: PRO1_07E.9
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Temporizador: OFF Delay (SF) – retardo a la desconexión
STL
U E0.7
L S5T#35s
SF T4
U E0.5
R T4
L T4
T MW0
LC T4
T AW12
U T4
= A8.5
LAD
T4
S_OFFDT
TV
S Q
BCD
BI
R
E0.7
E0.5
S5T#35s
A8.5
MW0
AW12
FBD
S_OFFDT
TV
Q
BI
R
E0.7
E0.5
S5T#35s
MW0
AW12
T4
BCD
=
A8.5
S
Ejemplo
S
R
Temporizador
Q
10. Date: 07.03.2012
File: PRO1_07E.10
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Temporizador: Pulse (SP) - Impulso
FBD
S_PULSE
TV
Q
BI
R
E0.7
E0.5
S5T#35s
MW0
AW12
T4
BCD
=
A8.5
S
S
R
Temporizador
Q
Ejemplo
STL
U E0.7
L S5T#35s
SP T4
U E0.5
R T4
L T4
T MW0
LC T4
T AW12
U T4
= A8.5
MW0
LAD
T4
S_PULSE
TV
S Q
BCD
BI
R
E0.7
E0.5
S5T#35s
A8.5
AW12
11. Date: 07.03.2012
File: PRO1_07E.11
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Temporizador: Extended Pulse (SE) – Impulso prolongado
LAD
T4
S_PEXT
TV
S Q
BCD
BI
R
E0.7
E0.5
S5T#35s
A8.5
MW0
AW12
FBD
S_PEXT
TV
Q
BI
R
E0.7
E0.5
S5T#35s
MW0
AW12
T4
BCD
=
A8.5
S
S
R
Temporizador
Q
Ejemplo
STL
U E0.7
L S5T#35s
SE T4
U E0.5
R T4
L T4
T MW0
LC T4
T AW12
U T4
= A8.5
12. Date: 07.03.2012
File: PRO1_07E.12
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Temporizador: Comandos asociados
E0.0 T4
SD
S5T#5s
T4 A 8.0
E0.1 T4
R
Network 1:
Network 2:
Network 3:
LAD
& SD
T4
E0.0
S5T#5s
& =
A 8.0
T4
&
E0.1
TV
R
T4
FBD
U E0.0
L S5T#5s
SD T4
U T4
= A 8.0
U E0.1
R T4
STL
13. Date: 07.03.2012
File: PRO1_07E.13
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Ejercicio
T4
S_PEXT
S
TV
R
BI
BCD
Q
I 0.7
S5T#5s
I 0.5 Q 8.0
I 0.7
I 0.5
Q8.0
T4
S_PULSE
S
TV
R
BI
BCD
Q
I 0.7
S5T#5s
I 0.5 Q 8.0
I 0.7
I 0.5
Q8.0
5s
T4
S_ODT
S
TV
R
BI
BCD
Q
I 0.7
S5T#5s
I 0.5 Q 8.0
I 0.7
I 0.5
Q8.0
T4
S_ODTS
S
TV
R
BI
BCD
Q
I 0.7
S5T#5s
I 0.5 Q 8.0
I 0.7
I 0.5
Q8.0
I 0.7
I 0.5
Q8.0
T4
S_OFFDT
S
TV
R
BI
BCD
Q
I 0.7
S5T#5s
I 0.5 Q 8.0
14. Date: 07.03.2012
File: PRO1_07E.14
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Contadores en STEP 7
STL
U E0.4
CU C5
U E0.5
CD C5
U E0.3
L C#20
S C5
U E0.7
R C5
L C5
T MW4
LC C5
T QW12
U C5
= A8.3
LAD FBD
Q
E 0.4
E 0.5
CU
E 0.7
C#20
S_CUD
CD
S
E 0.3
PV
R
A 8.3
CV
CV_BCD
MW 4
AW 12
C5
Q E 0.4
E 0.5
CU
E 0.7
C#20
S_CUD
CD
S
E 0.3
PV
R
A 8.3
CV
CV_BCD
MW 4
AW 12
C5
=
Q
15. Date: 07.03.2012
File: PRO1_07E.15
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Contadores: Comandos asociados
STL
U E0.0
L C#20
S C5
U E0.1
CU C5
U E0.2
CD C5
U C5
= A 4.0
LAD
E0.0 C5
SC
C#20
Network 1:
C5
Network 2:
E0.1
CU
Network 3:
E0.2 C5
CD
Network 4:
C5 A 4.0
FBD
SC
C5
E0.0
C#20 CV
CU
C5
E0.1
CD
C5
E0.2
=
A 4.0
C5
16. Date: 07.03.2012
File: PRO1_07E.16
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Contadores: Esquema
CU
CD
S
R
Q
Count
5
4
3
2
1
0
17. Date: 07.03.2012
File: PRO1_07E.17
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Ejercicio: Programa de llenadora
(Conteo de botella y tiempo de llenado)
A 0.1 Marcha adelante
A 0.2 Marcha atrás
Sensor de
botellas E0.6
E 0.0 =
E 0.1 =
Botón Start (Normalmente abierto)
Botón Stop (Normalmente cerrado)
Operación ON/OFF
E 0.4 = Botón marcha adelante
(Normal abierto)
Botón marcha atrás
(Normal abierto)
E 0.5 =
M
A 0.0= Indicación maquina
(encendida/apagada)
E0.2 Parada Emergencia (Normalmente Cerrado)
E0.3 Guarda Motor (Normalmente Cerrado)
E0.7 Selector Manual/Auto (0/1)
A 0.3= Válvula llenado
18. Date: 07.03.2012
File: PRO1_07E.18
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Operaciones de conversión BCD <-> Integer
IN
BCD_I
EN
ENO
OUT
IN
IW4
MW20
IN
I_BCD
EN
ENO
OUT
IN
MW10
QW12
FBD
L IW4
BTI
T MW20
L MW10
ITB
T QW12
STL
IN
BCD_I
EN ENO
OUT
IN
IW4 MW20
I_BCD
IN
EN ENO
OUT
MW10 QW12
LAD
19. Date: 07.03.2012
File: PRO1_07E.19
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Operaciones de conversión, I -> DI -> REAL
AWL
L MW12
ITD
DTR
T MD26
IN
I_DI
EN
ENO
OUT
IN
MW12
MD14
IN
DI_R
EN
ENO
OUT
IN
MD14
MD26
F
B
D
LAD
IN
DI_R
EN ENO
OUT
MD14 MD26
IN
IN
I_DI
EN ENO
OUT
MW12 MD14
IN
20. Date: 07.03.2012
File: PRO1_07E.20
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Operaciones de comparación
STL
U M0.0
U (
L IW0
L IW2
==I
)
= A9.7
LAD
CMP ==I
IN1
IN2
EW0
EW2
M0.0 Q 9.7
FBD
IN1
IN2
M0.0
EW0
EW2
&
=
A9.7
CMP ==I
21. Date: 07.03.2012
File: PRO1_07E.21
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
LAD FBD STL
Funciones matemáticas básicas
Resta
Multip.
Division
Suma
L MW4
L MW10
+ I
T MW6
MW10
ADD_I
IN2
EN ENO
OUT
IN1
MW4
MW6 MW10
ADD_I
IN2
EN
ENO
OUT
IN1
MW4
MW6
SUB_I
IN2
EN ENO
IN1
MW5
MW11 MW7
OUT MW11
SUB_I
IN2
EN
ENO
OUT
IN1
MW5
MW7
L MW5
L MW11
- I
T MW7
MD6
MD12
MUL_R
EN ENO
IN1
MD66
IN2 MD12
MUL_R
IN2
EN
ENO
OUT
IN1
MD6
MD66
L MD6
L MD12
* R
T MD66
MD40
MD4
EN ENO
IN1
IN2 MD32
OUT
DIV_R
MD4
DIV_R
IN2
EN
ENO
OUT
IN1
MD40
MD32
L MD40
L MD4
/ R
T MD32
22. Date: 07.03.2012
File: PRO1_07E.22
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Ejercicio: Rampa Aceleración
Un operador controla la velocidad de un motor con un pedal,
mientras lo mantiene presionado la velocidad del motor debe
incrementar en una rampa de aceleración de 1 Hz por segundo
hasta los 60 Hz, igualmente si suelta el pedal la velocidad del
motor debe decrementar en una rampa de desaceleración de 1 Hz
por segundo hasta los 0 Hz:
Pedal: E0.0
Velocidad del motor MD40