Siemens S7300 FB41 PID help

FB41 out is always zero

Hi,

I made a sample program for using FB41 in OB35 as PV_PER=PIW252 and PQW272, PV_FAC=1, PV_OFF=0 and PVPER_ON=1



Can anybody have an idea why it is so?
 
What are your other values?

Please post a SS of the DB used when online.
 
That is wonderful, but without knowing your other inputs/setpoints this will be a guessing game.

Most important:
cycle (and in which OB is your FB called)
SP
Man_ON
Gain
Ti
Td
Deadband
 
A 1s cycle seems wrong. What OB are you calling the block in?
We usually use 100ms cycle in combination with OB35 (100ms)

Your gain is tiny, making the error value very small.
No deadband declared, so it is likely 1 as initial value.
Your SP seems to be (close to) 0.

Maybe you can explain some more on what you are trying to do?

What is your analog input connected to? What expected value? As in real world value..
What is your analog output connected to?
 
Boneless,
Thanks for replying. I've fixed the problem by setting the I and D selection as 1 and then the PID block starts to run.
 
FB41 goes to zero

Hi everybody,

The function block FB41 output LMN_PER is going to zero regardless of PV_PER input.
Can anybody have a comment??

FB41_FAULT_1.jpg FB41_FAULT_2.jpg
 
Last edited:
You have a setpoint of 7*10^-44, thats:
0.00000000000000000000000000000000000000000007

Why should the output go up, when your setpoint is about zero, gain is positive and the process value above the setpoint?
 
I have given you several pointers, so far you seem to have followed about 0 off those. Check the comments above with your program and try again...
 
Forget about the FB41 for now. The most important part is understanding your system.
dPressure/dt=PressureRate=BulkModulusOfOil*Flow(t)/VolumeOfOilUnderCompression
The BulkModulusOfOil is about 200,000 psi.
Flow(t)=RatedFlow*Voltage(t)/10*sqrt((SupplyPressure-Pressure)/(2*RatedPressure))
Voltage(t) = Kp*(SetPointPressure-Pressure)

If there is no leakage in the system, and most test systems don't leak, then pressure is an integrating process. You can probably get by with just a P gain that is easy enough to do without the FB41. The problem is how fast will the pressure change each scan or 10 milliseconds. If the volume of oil being compressed is large then the rate of change will not be high. However, if you are testing short pieces of hose the volume of oil will be high and the pressure rates may be too fast for the PLC to handle.
 

Similar Topics

Hi to all, Our company does not usually use Siemens PLCs, but have a press with one in it. We are trying to change the IP address in our Simatic...
Replies
2
Views
1,070
First off, thanks for the patience with my post. Rookie to Siemens. I am trying to use a Retentive timer and it has to be around 24hours. Thus...
Replies
2
Views
1,886
Hi, Is there a simple way to do the following: I have an input from an RTU which is a Real value. The word order from the RTU is different to...
Replies
1
Views
1,168
Hi, I encounter a problem trying to get online to a CPU315, This CPU is part of a MPI network with multiple CPU including a CPU414, When I do...
Replies
2
Views
1,493
We are currently using a number of Rotork IQ valves on a project. The client has a requirement to send/ receive acyclic data from the PLC. This...
Replies
0
Views
1,839
Back
Top Bottom