You are on page 1of 3

THE BOOLEAN EMBASSY.

RSS
LAD 3 - ANLG_ALARM --- Total Rungs in File = 5

0000

This subroutine compares a process variable to 8 alarm setpoints. Before calling this routine the setpoints are loaded into F14:[0-7}, the
process variable into F14:8 and the alarm deadband into F14:9. On program exit bits B16:0/{0-7} will indicate that the PV is above the
corresponding setpoint, bits B16:1/{0-7} indicate that the PV is below the corresponding setpoint. First add and subtract deadband values
to the tank level.
Analog Value for
Alarming Plus Alarm
Deadband
SBR
ADD
Subroutine
Add
Source A
F14:9
0.0<
Source B
F14:8
0.0<
Dest
F13:0
0.0<
Analog Value for
Alarming Minus Alarm
Deadband
SUB
Subtract
Source A
F14:9
0.0<
Source B
F14:8
0.0<
Dest
F13:1
0.0<

0001

Reset the C15:0.ACC, the Iteration Counter Accumulator Value on the first program scan or when the subroutine has been scanned the
required number of times.
Iteration
First Pass
Counter
S2:1
C15:0
RES
15
Iteration
Counter Done
Bit
C15:0
DN
Iterate this rung to test all alarm conditions.

0002

Q3:0
LBL

Alarmed Analog Value


ALRM_VAR
GRT
Greater Than (A>B)
Source A

F14:9
0.0<
Source B F14:[C15:0.ACC]
0.0<

Page 1

B16:0
L
[C15:0.ACC]

Tuesday, January 30, 2001 - 14:26:58

THE BOOLEAN EMBASSY.RSS


LAD 3 - ANLG_ALARM --- Total Rungs in File = 5

Analog Value for


Alarming Plus Alarm
Deadband
LEQ
Less Than or Eql (A<=B)
Source A
F13:0
0.0<
Source B F14:[C15:0.ACC]
0.0<

Alarmed Analog Value


ALRM_VAR
LES
Less Than (A<B)
Source A

F14:9
0.0<
Source B F14:[C15:0.ACC]
0.0<

Analog Value for


Alarming Minus Alarm
Deadband
GEQ
Grtr Than or Eql (A>=B)
Source A
F13:1
0.0<
Source B F14:[C15:0.ACC]
0.0<

B16:0
U
[C15:0.ACC]

B16:1
L
[C15:0.ACC]

B16:1
U
[C15:0.ACC]

Iteration
Counter Count
Up Enable Bit
C15:0
U
CU
Iteration
Counter
CTU
Count Up
Counter
Preset
Accum

Page 2

CU
C15:0
8<
8<

DN

Tuesday, January 30, 2001 - 14:26:59

THE BOOLEAN EMBASSY.RSS


LAD 3 - ANLG_ALARM --- Total Rungs in File = 5

Iteration
Counter Done
Bit
C15:0

Q3:0
JMP

DN

0003

0004

Page 3

RET
Return

END

Tuesday, January 30, 2001 - 14:26:59

You might also like