Siemens Simatic SM331 Getting Started page 59

Ai 8x12 bit
Hide thumbs Also See for Simatic SM331:
Table of Contents

Advertisement

OB40_STRT_INF : BYTE ;
OB40_PRIORITY : BYTE ;
OB40_OB_NUMBR : BYTE ;
OB40_RESERVED_1 : BYTE ;
OB40_IO_FLAG : BYTE ; //16#54 (input module), 16#55 (output module)
OB40_MDL_ADDR : WORD ;
OB40_POINT_ADDR : DWORD ; //Interrupt status of the module
OB40_DATE_TIME : DATE_AND_TIME ;
END_VAR
BEGIN
NETWORK
TITLE = Sensor 1 (Channel 0): Low limit
U
L
9.0; // Channel 0 low limit
SPBNB L001;
L
W#16#1;
L
MW
100;
OW
;
T
MW
100;
L001: NOP
0;
NETWORK
TITLE = Sensor 1 (Channel 0): High limit
U
L
8.0; // Channel 0 high limit
SPBNB L002;
L
W#16#2;
L
MW
100;
OW
;
T
MW
100;
L002: NOP
0;
NETWORK
TITLE = Sensor 2 (Channel 2): Low limit
U
L
9.2; // Channel 2 low limit
SPBNB L003;
L
W#16#4;
L
MW
100;
OW
;
T
MW
100;
L003: NOP
0;
NETWORK
TITLE = Sensor 2 (Channel 2): High limit
57
//16#41 (OB 40 has started)
//Priority of OB Execution
//40 (Organization block 40, OB40)
//Reserved for system
//Base address of module initiating interrupt
//Date and time OB40 started
Getting Started SM331 AI 8x12bit Part1: 4-20mA
A5E00253410

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents