Rate of temperature rise/drop Siemens block

kemppioy

Member
Join Date
Oct 2005
Location
Dallas
Posts
72
Hello,

Does anyone know if there is a ready made function available in Siemens S7-300 series for rate of temperature rise/drop detection? I need to check a temperature to see if it rises or drops a certain amount within a certain amount of time.

Thanks

PK
 
As far as I'm aware there is no such function, however, I don't see why you would need one. Depending on exactly what you want to do, you're probably looking at between five and ten lines of code called in OB35.
 
Take a variable integer and read it into a table every X time.

Repeat every x time.

Compare the first reading to the second.

If the differ by more than Y amount, turn on an output to indicate the change has exceeded Y in X time.

You can use the stat area of a FB to store the data or you can send the data to DB.

You can also collect 10 or 100 readings in such a DB and still use the first two for your compare. The others would be available to use in other blocks and would create a history of the change.

I used the STAT area of the FB and only keep 3 readings in this example.

FB19 VAR RATE DIFF.jpg
 

Attachments

  • FB19 DIFF PER TIME.txt
    2 KB · Views: 19
orrrrrrrrrrr

It might be more usefull to take 10 readings , one every 10sec, and then compare the first to the 10th in my example.

The new data will fill the table and move down FIFO. So every 10 seconds you would be comparing what has happened over the last 100 seconds.

or minutes or hours..........etc.

the more readings you take the better resolution but it takes more memory.

you could also take the variable and move it to a memory location and add the differential number to it.

50 input + 5 diff check hi =55 in M1
50 input - 5 diff check lo =45 in M2

then wait your time period and move the variable into another memory location.

53 input to M3

Compare M3 to M2and M1 and set your alarm bit.

is M3 > M1 or < M2? then set M4.
is M3 < M1 and > M2? then reset M4.

repeat now the new variable level is written to "var input" and the compare goes into the next time period with a new reference.
 

Similar Topics

I need to calculate the rate of change of a temperature. Using AB SLC 5/04, and 1746-NT8. Thermocouple measures temperature in an air duct. I...
Replies
12
Views
10,558
Hi, The hardware is: Click Plc model # CO-O1DD1-O HMI model # S3ML-R magnetic-inductive flow meter model # FMM100-1001. I will set the flow meter...
Replies
4
Views
180
I have been looking to this and thought I'd ask for input from others before I take it in a wrong direction. The guy who used to set these up...
Replies
9
Views
414
How can I integrate my S7-300 Simatic with the IFM AS-i Master AC1335 and its slave IOs, such as 2411 and Airbox 2041, into Simatic Manager?
Replies
0
Views
128
Hi Guys, I want to connect my 1769-L36ERM to a different network domain, is it possible to do it using only the dual ports in the Controller? Or...
Replies
3
Views
241
Back
Top Bottom