s7-300 analog 'rate of change'

cjd1965

Lifetime Supporting Member
Join Date
Apr 2007
Location
UK
Posts
1,659
Hi
I have a need to measure a scaled analog inputs 'rate of change' against time.
I was considering using a timed interupt block and using a 'holding register' to keep the value of the previous check, then simply subtracting the difference of the actual value and the holding register and dividing it by the interupts time interval.

Does anyone think it may be better to average these over say 5 interupts to get a more accurate figure?

I am measuring the 'flow' of a powder onto a belt sat on a 4-20mA loadcell and need to approximate Kg/Minute
 
I was considering using a timed interupt block and using a 'holding register' to keep the value of the previous check, then simply subtracting the difference of the actual value and the holding register and dividing it by the interupts time interval.

Does anyone think it may be better to average these over say 5 interupts to get a more accurate figure?

Hi there,
What you have said is way to go.Accuracy at a given time will increase if the sampling interval is small. So averaging out 5 interrupts wont give you the more accurate figure.
 

Similar Topics

I have a client who has asked for a pop-up for each of their analogs, which will display the alarm values. The values displayed in the pop-up...
Replies
5
Views
2,532
hi i am using s7-300(CPU 313c). when i try to use FC106 unscale function, i can change IN manually but there is no effect on OUT. i wrote PQW752...
Replies
4
Views
1,598
Hi guys, I have CPU S7-300-313C ( Cat No - 6ES7-313-5BE00-0AB0) DI24/DO16 and AI5/AO2. when I am trying to configure and use the AO channel PQW...
Replies
4
Views
2,561
I am a student. I can program PLC using LAD language using digital IO. But, I want to program using analog IO also. We have analog IO module with...
Replies
2
Views
2,068
Hi All I am using 2 x analog cards on my rack and they are described as 12bit cards in there title. The manual suggests that the resolution can...
Replies
6
Views
2,030
Back
Top Bottom