Deviation Alarm

strebej

Member
Join Date
Sep 2002
Location
Neenah,WI
Posts
24
OK guy's and gal's
I need help with this one. I have 2 oxygen sensors. I need to set up an alarm if the signal between the two senors deviate more than 5%. I'm using a Siemens 315-2DP using Simatic S7 Software to program it with. I have a first out alarm programmed. I need help with choosing the right comparator block or blocks that will set an alarm bit that I can use in my alarm program.

Jim
 
Alarm comparator

Hi Strebej,

I've used exactly what you need, the code is as following:

L DBW 2 // Value 1
L DBW 8 // Value 2
-I //Subtract
SPP Pos //If diff. positive, don't invert.
INVI //otherwise invert
Pos: L DBW 10 // max allowable Diff.
>=I
= M187.6 // Diff. > max. allowable Diff.

The inverting part is needed when value 2 > value 1.

I am using the german programming package so the actual syntax might be different in the english version.

In my program i have a fixed value in DBW10, but You could also calculate 5% of your setpoint and transfer it into DBW10.

Hope this will work for you.
 
Thank you for your help but I still don't understand?.. Could you please show me this progam in Ladder Logic? I don't know how to program in "STL"
 
Range

Here is a ladder of a block I use to turn the output of the block on if the value is within the upper and lower limits, otherwise off.

Range.JPG


You can import this source code (AWL) if you want.

FUNCTION "Range_Real" : VOID
TITLE =Range_Real
VERSION : 0.0

VAR_INPUT
LowerLimit : REAL ;
UpperLimit : REAL ;
PV : REAL ;
END_VAR
BEGIN
NETWORK
TITLE =Find If PV Is Between Upper & Lower Values
A( ;
L #PV;
L #LowerLimit;
>=R ;
) ;
A( ;
L #PV;
L #UpperLimit;
<=R ;
) ;
SAVE ;
BEC ;
END_FUNCTION

 
Take value 1 and determine what 5% is equal too and place in a word file(1). Subtract value 2 from value 1 and place in another word(2), then compare the 2 words...ie if word 2 is greater than word 1 then set alarm.

This is a generic explanation but should be simple to implement.
 
Ive been pondering this for a while.

The first question is what is the process where you need redundant oxygen detectors?? Mostly curiosity and learning opportunity.

The other thought I have is what if both stray say 10% hi or low. They are within 5% of each other BUT erroneous.

Seems to me to set a tolerance of 2.5% (plus or minus) on each one.
IF they are that accurate
That way you get an alarm if one strays out of spec hi and one strays out of spec low with max difference of 5%.

Dan Bentler
 

Similar Topics

In my PLC I have all my formulas in Celsius, but at the HMI they can enter Celsius or Fahrenheit. The problem I am having is when I calculate my...
Replies
20
Views
4,911
Hello I am measuring the temperatur from 8 temperature sensors. They are all supposed to be within range of eachother but if one of them gets a...
Replies
13
Views
3,713
In Profinet (or Profibus) communication between S7-1500T (or Simotion) controller and S120 () drives, and when working with DSC (Dynamic Servo...
Replies
0
Views
587
I'm working with the Delta temperature controller DTB969RRE-D. It has four PID Settings: PB, Ti, Td and "Integral Deviation Value". Does anyone...
Replies
6
Views
2,155
Does anyone has an idea in what range the speed of a sensorless vector control driven motor will deviate from the real measured speed?
Replies
4
Views
2,383
Back
Top Bottom