PIDE cv output at last value at switch on

pauly

Member
Join Date
May 2002
Location
South Wales,U.k
Posts
244
I am using the PIDE function in Logix 5000 for a presure control application and if the power is cycled to the PLC the customer wants the control output to the valve on power up to be the same as it was previously. When the PLC is switched off and back on and the SP and PV are equal, the output from the PIDE CV is zero. Does anybody have an idea how I can maybe initialise the output or prevent the PIDE function resetting to zero on power up?
 
Save your variables, especially the CV, to non-volitile memory. Add a new rung with the First Scan bit S:1/15. Use the First Pass bit to:
1. Upon power-up and the first scan of the PLC, set the PID to Manual mode,
2. Restore the saved variables to the PID function.
3. Make sure to copy the old CV value to the PID Setpoint.
4. At some later timer after pressure has stabilized, do a "bumpless transfer" and switch the PID back to Auto mode, if needed.
 
Last edited:
Basically everything is non-volatile. The memory locations are reset based on their usage, that is which instructions they are used in and whether AB has decided that these usages should be initialized. For example, if TestBit is declared as a BOOL and use in an OTE instruction it will be reset. But if TestBit is used as an OTL it will not be reset. The CV of a PIDE is obviously one of the values AB thought needed to be initialized .

So, as as Lancie1 says, create a tag of the appropriate data type and keep it updated with the CV of the PIDE. Then do as he indicates on a first scan of the plc. You will get your old value back.

Keith
 
I am sure Keith is correct about S:FS. I did not think about it being different in Logix 5000. If the PID works the same as in RSLogix 500, when you switch a PID to Manual Mode, the Setpoint (SP) becomes the CV output. So you need to make sure that the Setpoint is set to be equivalent to the Old CV, otherwise in Manual mode the PID will change the CV to match the Setpoint.

If you don't switch to Manual, the Auto mode will try to adjust the output based on setpoint and the error signal. If power has been off, this usually results in a change to the Control Variable, the condition you are trying to avoid.
 
Last edited:

Similar Topics

we have PIDE configured in L71 Control Logix controller, at times its observed that PIDE output changes to 100% without any change in PV or SP. we...
Replies
3
Views
1,280
Hi all, I am trying to get a pide block to give an output when supplied with variable scaled analog input. I have looked through numerous posts on...
Replies
4
Views
2,272
Hello, I have a enhanced PID funning in a function block on a Compactlogic L35 processor. it is running to a pressure SP but if the current gets...
Replies
18
Views
4,852
Hello all, we have an homogenizing oven with three zones, 2 burners in each zone, a soak (smaller) and a main (large). during ramp to the air...
Replies
5
Views
112
Greetings ... someone sent me a request for some student handsouts that I developed ... turns out that I had this hosted on my business website...
Replies
0
Views
138
Back
Top Bottom