Siemens SIMATIC SM331 Primeros Pasos página 76

Ocultar thumbs Ver también para SIMATIC SM331:
Tabla de contenido

Publicidad

T
T
R
m001:
NOP
END_ORGANIZATION_BLOCK
ORGANIZATION_BLOCK OB
TITLE
=
"Hardware Interrupt"
VERSION
: 0.1
VAR_TEMP
OB40_EV_CLASS :
(Event class 1)
OB40_STRT_INF :
OB40_PRIORITY :
OB40_OB_NUMBR :
OB40_RESERVED_1 :
OB40_IO_FLAG :
OB40_MDL_ADDR :
OB40_POINT_ADDR :
OB40_DATE_TIME :
END_VAR
BEGIN
NETWORK
TITLE
=
L
T
L
T
L
T
NOP
NOP
END_ORGANIZATION_BLOCK
ORGANIZATION_BLOCK OB
TITLE
=
"I/O Point Fault"
VERSION
: 0.1
VAR_TEMP
OB82_EV_CLASS :
Internal fault event
OB82_FLT_ID :
OB82_PRIORITY :
OB82_OB_NUMBR :
OB82_RESERVED_1 :
OB82_IO_FLAG :
OB82_MDL_ADDR :
OB82_MDL_DEFECT :
OB82_INT_FAULT :
OB82_EXT_FAULT :
OB82_PNT_INFO :
OB82_EXT_VOLTAGE :
OB82_FLD_CONNCTR :
OB82_NO_CONFIG :
OB82_CONFIG_ERR :
OB82_MDL_TYPE :
OB82_SUB_MDL_ERR :
OB82_COMM_FAULT :
OB82_MDL_STOP :
OB82_WTCH_DOG_FLT :
Getting Started SM331 AI 8x12bit, parte 2: Tensión y PT100
A5E00264163-01
MW
104;
MW
106;
M
200.0;
0;
40
BYTE
;
//Bits 0-3 = 1 (Coming event), Bits 4-7 = 1
BYTE
;
//16#41 (OB 40 has started)
BYTE
;
//Priority of OB Execution
BYTE
;
//40 (Organization block 40, OB40)
BYTE
;
//Reserved for system
BYTE
;
//16#54 (input module), 16#55 (output module)
WORD
;
//Base address of module initiating interrupt
DWORD
;
//Interrupt status of the module
DATE_AND_TIME
#OB40_IO_FLAG;
// OB40_IO_FLAG
MB
104;
//
#OB40_MDL_ADDR;
// OB40_MDL_ADDR
MW
106;
//
#OB40_POINT_ADDR;
// OB40_POINT_ADDR : LB8 = Rebase del
MD
100;
//
0;
// OB40_POINT_ADDR : LB9 = Rebase por defecto del
0;
//
82
BYTE
;
//16#39, Event class 3, Entering event state,
BYTE
;
//16#XX, Fault identifcation code
BYTE
;
//Priority of OB Execution
BYTE
;
//82 (Organization block 82, OB82)
BYTE
;
//Reserved for system
BYTE
;
//Input (01010100), Output (01010101)
WORD
;
//Base address of module with fault
BOOL
;
//Module defective
BOOL
;
//Internal fault
BOOL
;
//External fault
BOOL
;
//Point information
BOOL
;
//External voltage low
BOOL
;
//Field wiring connector missing
BOOL
;
//Module has no configuration data
BOOL
;
//Module has configuration error
BYTE
;
//Type of module
BOOL
;
//Sub-Module is missing or has error
BOOL
;
//Communication fault
BOOL
;
//Module is stopped
BOOL
;
;
//Date and time OB40 started
: 16#54 = Módulo de entrada
: 16#55 = Módulo de salida
: Dirección inicial del
módulo causante
límite superior
límite inferior
//Watch dog timer stopped module
74

Publicidad

Tabla de contenido
loading

Tabla de contenido