Anda di halaman 1dari 3

THE BOOLEAN EMBASSY.

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


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< 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. Q3:0 LBL Alarmed Analog Value ALRM_VAR GRT Greater Than (A>B) Source A B16:0 L [C15:0.ACC]

0000

0001

0002

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

Page 1

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<

B16:0 U [C15:0.ACC]

Alarmed Analog Value ALRM_VAR LES Less Than (A<B) Source A

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

B16:1 L [C15:0.ACC]

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:1 U [C15:0.ACC]

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

Page 2

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 DN

Q3:0 JMP

0003

RET Return

0004

END

Page 3

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

Anda mungkin juga menyukai