Você está na página 1de 6

Course T300, Engineering an 800xA System

Exercise 7.3 Analogue Measurements

TABLE OF CONTENTS
Exercise 7.3 Analogue Measurements........................................................................................................................................ 7.3-1
7.3.1 General Information....................................................................................................................................................... 7.3-3
7.3.1.1 Objectives................................................................................................................................................................ 7.3-3
7.3.2 Exercise Steps ................................................................................................................................................................ 7.3-3
7.3.2.1 Connect an analogue input reading the level in the vessel .................................................................................... 7.3-3
7.3.2.2 Add in program code for generating events ........................................................................................................... 7.3-4
7.3.2.3 Download the application ....................................................................................................................................... 7.3-4
7.3.2.4 Explore the diagnostic and maintenance facilities in online mode........................................................................ 7.3-5

7.3-1

Course T300, Engineering an 800xA System

7.3-2

Engineering an 800xA System

7.3.1 General Information


In this exercise we learn how to connect to analogue signals from the plant.

Exercise 7.3
V1

LH

LL

LT1

V2

7.3.1.1 Objectives
The objectives of this chapter are:

Connect an Analogue Input reading the level in the vessel in Area 1

Examine the RealIO Data type in more detail

Generate events for the High and Low level limits in the vessel.

Download and explore the diagnostic and maintenance facilities available in online mode.

7.3.2 Exercise Steps


7.3.2.1 Connect an analogue input reading the level in the vessel
1. Create a new global application (Tank1) variable of data type RealIO and
name it LT1_In.

7.3-3

Engineering an 800xA System


Exercise 7.3 Analogue Measurements

2. Assign this variable to the analogue input board and therefore to channel 1.
3. Examine the RealIO data type in more detail (browse through the structures
of this structured data type).

7.3.2.2 Add in program code for generating events


For generating events for high and low level limits we need a SignalInReal function
block. The SignalInReal includes 6 alarm/event settings (L,LL,LLL,H,HH,HHH). We
want to setup the L and H event to control the valves for filling and draining later on.
Please add to the application Tank1:
1. Create a new code page for the program Control1:
Code page name: Level
Language:
Function Block Diagram
Page comment: Tank Levels
2. On the code page Levels please create a new function block of type
SignalInReal (library: SignalLib 1.0/0). Please name the new function block
LT1.
3. Connect the vessel input variable LT1_In to the LT1 level function block
4. Create a local program variable LT1_Name (type: string[10]) for the Name
parameter of the function block. Later on (in one of the next exercises) this is
needed for the alarm source name. For the init value please set LT1 (the
name of the level transmitter) and connect the variable to the level function
block LT1.
5. We want to use the level L and H of the function block LT1 to control the
filling of the vessel.
Please open the parameter list of the function block LT1 and
enable the following levels for events:
Level
Parameter
Value
H
AEConfigH
2
L
AEConfigL
2
set priority for the following levels:
Level
Parameter
Value
H
AESevH
300
L
AESevL
300
6. All the levels are stored in the interaction variable of the SignalInReal. Please
connect this variable as well and use the name LT1_IPar for it.

7.3.2.3 Download the application


Please download the application Tank1 into the controller.

7.3-4

Engineering an 800xA System

7.3.2.4 Explore the diagnostic and maintenance facilities in online mode


1. Force the vessel input and set it to the value of 20.0
2. Open the interaction parameter LT1_IPar and set the low level (LevelL) to
the value of 10.0
3. Set the high level of LT1_IPar (LevelH) to the value of 30.0
4. Watch the states of the LT1 function block levels.
5. Set the vessel input to 5.0 and watch the levels of the LT1 function block.
6. Set the vessel input to 35.0 and watch levels of the LT1 function block.

7.3-5

Engineering an 800xA System


Exercise 7.3 Analogue Measurements

7.3-6

Você também pode gostar