Siemens Simatic SM331 Getting Started page 58

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

Advertisement

NETWORK
TITLE = Conversion
// Conversion of the channel's raw data into current values (mA)
CALL FC
1 (
Raw
Current
CALL FC
1 (
Raw
Current
CALL FC
1 (
Raw
Current
NETWORK
TITLE = Reset hardware interrupt
// Even though the hardware interrupt was reset by the hardware upon termi-
nating OB40,
// the value of the hardware interrupt must be reset manually
U
M
200.0;
SPBN
lbl0;
L
MW
100;
SSI
4;
T
MW
100;
lbl0: NOP
0;
NETWORK
TITLE = The End
BE
;
END_ORGANIZATION_BLOCK
ORGANIZATION_BLOCK OB 40
TITLE = "Hardware Interrupt"
// Processing OB40_POINT_ADDR (L8 to L11)
//
//L8 High limit value exceeded
//L9 Low limit value exceeded
VERSION : 1.0
VAR_TEMP
OB40_EV_CLASS : BYTE ;
(Event class 1)
56
:= DB1.DBW
:= DB2.DBD
:= DB1.DBW
:= DB2.DBD
:= DB1.DBW
:= DB2.DBD
//Bits 0-3 = 1 (Coming event), Bits 4-7 = 1
Getting Started SM331 AI 8x12bit Part1: 4-20mA
0,
0);
4,
4);
6,
8);
A5E00253410

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents