Date: 07.03.2012
File: PRO1_10E.1
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Almacenamiento de datos: Bloques de datos (DBs)
Date: 07.03.2012
File: PRO1_10E.2
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Marcas
PIQ
PII
Área de almacenamiento
Bloques de datos
DBx
DBy
DBz
.
. .
I/O Área
L Pila
Date: 07.03.2012
File: PRO1_10E.3
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Bloques de datos (DB)
Función
FC10
Función
FC20
Bloque de
Función
FB1
OB1
Bloque de datos
Global
DB20
Disponible para cualquier función
Bloque de
instancia
DB5
DB de instancia para FB 1
Date: 07.03.2012
File: PRO1_10E.4
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Tipos de datos STEP 7
BOOL 1 1 ó 0
BYTE 8 B#16#A9
WORD 16 W#16#12AF
DWORD 32 DW#16#ADAC1EF5
CHAR 8 ' w '
S5TIME 16 S5T#5s_200ms
INT 16 123
DINT 32 65539
REAL 32 1.2 или 34.5E-12
TIME 32 T#2D_1H_3M_45S_12MS
DATE 16 D#1993-01-20
TIME_OF_DAY 32 TOD#12:23:45.12
Tipo Longitud (Bits) Ejemplo
Date: 07.03.2012
File: PRO1_10E.5
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Crear un bloque de datos
Date: 07.03.2012
File: PRO1_10E.6
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Editar un bloque de datos globales
Date: 07.03.2012
File: PRO1_10E.7
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Acceso a los bloques de datos
0
7
8 Bits
Byte0 DBB 0
Byte1 DBW 0
Byte 8191
DBD 8188
DBW 8190
DBB 8191
Byte2
DBD 0
Byte3
DBX 4.1
Date: 07.03.2012
File: PRO1_10E.8
SIMATIC S7
Siemens AG 1999. All rights reserved.
Information and Training Center
Knowledge for Automation
Llamado a bloque de datos DB
OB 1
L DB4 DBW2 DB 4
T DB4 DBW 2 DB 4
FC 1
DB 4
CALL FC 1
T DB4DBW 4
DB 5
L DB5DBB6
DB 5
L DB5DBW 0
T DB5DBW 8
CALL FC 2
FC 2
DB 5
DB 6
L DB6DBB6
DB 2
T DB2.DBB 0
DB 2
L DB2DBW 4
FB 1
CALL FB1, DB1
???
!

8 bloques de datos

  • 1.
    Date: 07.03.2012 File: PRO1_10E.1 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Almacenamiento de datos: Bloques de datos (DBs)
  • 2.
    Date: 07.03.2012 File: PRO1_10E.2 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Marcas PIQ PII Área de almacenamiento Bloques de datos DBx DBy DBz . . . I/O Área L Pila
  • 3.
    Date: 07.03.2012 File: PRO1_10E.3 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Bloques de datos (DB) Función FC10 Función FC20 Bloque de Función FB1 OB1 Bloque de datos Global DB20 Disponible para cualquier función Bloque de instancia DB5 DB de instancia para FB 1
  • 4.
    Date: 07.03.2012 File: PRO1_10E.4 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Tipos de datos STEP 7 BOOL 1 1 ó 0 BYTE 8 B#16#A9 WORD 16 W#16#12AF DWORD 32 DW#16#ADAC1EF5 CHAR 8 ' w ' S5TIME 16 S5T#5s_200ms INT 16 123 DINT 32 65539 REAL 32 1.2 или 34.5E-12 TIME 32 T#2D_1H_3M_45S_12MS DATE 16 D#1993-01-20 TIME_OF_DAY 32 TOD#12:23:45.12 Tipo Longitud (Bits) Ejemplo
  • 5.
    Date: 07.03.2012 File: PRO1_10E.5 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Crear un bloque de datos
  • 6.
    Date: 07.03.2012 File: PRO1_10E.6 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Editar un bloque de datos globales
  • 7.
    Date: 07.03.2012 File: PRO1_10E.7 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Acceso a los bloques de datos 0 7 8 Bits Byte0 DBB 0 Byte1 DBW 0 Byte 8191 DBD 8188 DBW 8190 DBB 8191 Byte2 DBD 0 Byte3 DBX 4.1
  • 8.
    Date: 07.03.2012 File: PRO1_10E.8 SIMATICS7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Llamado a bloque de datos DB OB 1 L DB4 DBW2 DB 4 T DB4 DBW 2 DB 4 FC 1 DB 4 CALL FC 1 T DB4DBW 4 DB 5 L DB5DBB6 DB 5 L DB5DBW 0 T DB5DBW 8 CALL FC 2 FC 2 DB 5 DB 6 L DB6DBB6 DB 2 T DB2.DBB 0 DB 2 L DB2DBW 4 FB 1 CALL FB1, DB1 ??? !