How can i implement the logic

jcp

Member
Join Date
Feb 2010
Location
Multan
Posts
369
Hi experts;
I use GE 90-30 series CPU352. I want to do the following task and need to guidlines how i achive?
I have a input data 0 to 11700.
I want 0 to 11345 the counts are 32000 that is 20mA. At this point means 11346 the counts to start decay/reduce and at 11520 the counts should be 16000 and at 11700 it becomes 0 counts. I attached a curve with it which i want to implement.
Regards

CURVE1.JPG
 
Hi;
what about the 0 to 11345. Actually this is the frequency.
I want that 0 to 11345 Hz it gives me 32000 counts when it reaches 11345 then the counts decay to zero at 11700 Hz. And the most important point is that at 11520 Hz it gives me 16000 counts.
Regards
 
Hi;
I read the articles/post which you mentioned. But i am stuck please guide me how i implement the logic which give me a values according to the curve1.jpg which i attached. I explain again
1. User set the counts at 11520 Hz.
2. 172 minus from 11520 we get 11348. Now frequency less than 11348 gives me 320000 counts that is 20 mA.
3. 172 plus in 11520 we get 11692. Now we want at 11692 the counts is 0 i.e 4 mA.
4. but it is very necessary that at 11520 we must get those numbers which user set like 20000 or may be 190000.
5. I read the articles/post it shows the linear perlationship but here the graph shows
0 to 11348 straight line then slope decrease to zero.
Please help me
Regards
 
If "data" is less than 11345, "counts" = 32000
If "data" is greater than 13345, scale the value to "counts" to be 32000 @ 13345 and zero @ 11700
 
Hi;
I read the articles/post which you mentioned. But i am stuck please guide me how i implement the logic which give me a values according to the curve1.jpg which i attached. I explain again
1. User set the counts at 11520 Hz.
2. 172 minus from 11520 we get 11348. Now frequency less than 11348 gives me 320000 counts that is 20 mA.
3. 172 plus in 11520 we get 11692. Now we want at 11692 the counts is 0 i.e 4 mA.
4. but it is very necessary that at 11520 we must get those numbers which user set like 20000 or may be 190000.
5. I read the articles/post it shows the linear perlationship but here the graph shows
0 to 11348 straight line then slope decrease to zero.
Please help me
Regards

In "counts" the 11692hz will not be "0" to show 4mA, it would be 6400 to show it on a scale of 6400-32000(4mA-20mA)
 
Hi;
what about the 0 to 11345. Actually this is the frequency.
I want that 0 to 11345 Hz it gives me 32000 counts when it reaches 11345 then the counts decay to zero at 11700 Hz. And the most important point is that at 11520 Hz it gives me 16000 counts.
Regards

11520 is the middle of the range you want to monitor/control?
Using the counts in a 0-3200- range will be like using a 0mA-20mA analog device. I would suggest that you only scale the portion that needs to be looked at/controlled. it would seem tht the actual range you want is 11348-11692 with 11520 being you middle point.đź“š
 
Hi;
I used the ALG223 analog module. I configure it as 4 to 20 mA and give me 0 to 32000 counts. If i set 0 to 20 mA then it gives me same counts but the diffrence is 0 counts=4 and in second case 0 counts=0 mA.
Regards
 
Hi;
I used the ALG223 analog module. I configure it as 4 to 20 mA and give me 0 to 32000 counts. If i set 0 to 20 mA then it gives me same counts but the diffrence is 0 counts=4 and in second case 0 counts=0 mA.
Regards

Do you actually have a 4-20 device that measure frequency?
 

Similar Topics

Hello guys, Just wondering if someone can help me please I have a timer when gets enable I move .acc value of that timer to another tag to store...
Replies
4
Views
1,664
Hello every body: Recently, I am programming a filler machine for customer, But there is one expected from customer really give me a issue about...
Replies
0
Views
1,305
Hello everybody! Can you help me with this problem: I have hypothetically 9 Digital Inputs from the Transmitter: - 3 Indicates Healhy or Faulty(...
Replies
5
Views
4,212
respected sir,i want ur help,, i got 4 floor model of an elevator,,,with 4 cabinet-call push buttons on each floor,,the problem i m facing is,,,i...
Replies
13
Views
5,221
Let's say I have an inverter fed three phase induction motor drive where in the braking phase (when the motor operates in a generator mode) the...
Replies
2
Views
132
Back
Top Bottom