Derivative - RSLOGIX5000

drawson

Member
Join Date
Aug 2005
Location
Calgary
Posts
92
I cannot see a derivative function built into RSLOGIX 5000 v16. I only see an integrator.

I wish to estimate the rate of change of a signal with respect to to time. It doesn't have to be perfect but the close the better. I have two approaches and would like to know which of the two approaches the experts here think would be best or maybe someone has a better approach altogether.

Method 1 >> Use a CPT instruction where

dS/dt = [S(current scan) - S(last scan)] / deltaT

where deltaT = period of the scheduled task

next rung would MOV S(current scan) to S(last scan)

** I'm not sure how repeatable the period of the a task and if the period is small a small error in the time could lead to a large error in the result.

Method 2 >> Use a CPT instruction where

dS/dt = [S(current scan) - S(last scan)] / [t(current scan) - t(last scan)

where t(current scan) = GSV.WALLCLOCKTIME.CURRNETVALUE

next rung would MOV S(current scan) to S(last scan)

next rung would MOV GSV.WALLCLOCK.TIME.CURRENTVALUE to t(last scan)

I hope my notation isn't confusing
 
There is Derivative (DERV) instruction RS5K, which is available as function block or Structure Text instruction.

PaulB
 

Similar Topics

So, I have a problem.. Maybe. I only had 3 test runs with the system so I'm not sure. It is a steam cooling system, and I thought it would be...
Replies
1
Views
2,101
This might seem like a dumb question however I can't see the difference and can't test it as I don't have an allen bradley PLC available. In the...
Replies
25
Views
10,495
Hi, I have a ControlLogix processor and I'm using RSLogix 5k V19. I am trying to find the derivative or the rate of change of a signal every...
Replies
6
Views
2,955
In my very limited experience with control loop tuning, I found the use of derivative to be a hindrance, and dialed in quarter decay with...
Replies
9
Views
4,595
Greetings to all, this series of posts is in response to a request from jvalle in this post in which he asked for a basic explanation of the...
Replies
20
Views
40,879
Back
Top Bottom