PID Control FB41

duckie112

Member
Join Date
Mar 2012
Location
In a cardboard box
Posts
46
Hi, I'm pretty new in the world of PID controls with a PLC but I searched a bit on google and know a bit of it but the problem I got is that whatever I do the LMN of FB41 wont get a output at all also I tried the LMN_PER but that didn't work also. The hardware what I have is this:
CPU-315-2-DP
2 I/O simulation modules (currently not used in this project)
a Hitachi EH-RIO profibus module with the AI and AO
and a simple potmeter to simulate the AI wich works fine.
I scale the input with the FC105 Scale block.
The parameters I have for FB41 in OB35 100mS:
Cycle : 100mS
SP_INT : MD* (setting these value with a variable table)
PV_IN : My scaled AI input
DEADB_W : 0.0
LMN_HLM : 100.0
LMN_LLM : 0.0
LMN : MD* (unscaled to my AO)
This was the first settings I had but whenever I changed the input there wasnt any change at the output LMN.
I also tried it with the peripherie input and output directly from the AI and AO.
I also tried an example program wich I found on this forum but also the same problem, no LMN/LMN_PER output.
Also in Simulation mode it doesnt work on both projects.
 
Last edited:
Your configuration parameters looks ok.

have you downloaded the DB generated by the FB41 to the PLC?

I would suggest to re-download the DB after making any changes in the PID parameters.
 
The default value for MAN_ON is TRUE so this will be your problem. Make it FALSE. Here's my example working with P term only:

fb41.jpg
 
have you entered the gain ?
I tried it with and without.
Your configuration parameters looks ok.

have you downloaded the DB generated by the FB41 to the PLC?

I would suggest to re-download the DB after making any changes in the PID parameters.
Yes, I did redownload the DB after making changes.

The default value for MAN_ON is TRUE so this will be your problem. Make it FALSE. Here's my example working with P term only:
I'll try that. I didn't know that was the standard

Edit: I tried the sample you provided me but still no LMN output :(
Edit2: I do get an output on LMN now but it stays at the value of the LMN_HLM value no matter what I change it in. I'm using the same settings as you only different is that I'm using scaled values and LMN_HLM at 100.0 and LMN_LLM at 50.0
Edit 3: It fully works now :) It seems that S7 wasn't processing the values to the DB all the time so I edited the manual value to false in the DB itself and now it works. Thanks for your help all :)
 
Last edited:

Similar Topics

Hello, I have been researching and experimenting trying to setup a PID loop for 6 conveyors that I need to sync with speed. I am trying to...
Replies
3
Views
4,080
Hi All I am experimenting with a PID function (Step7), I want a pressure transducer to control an actuator to maintain a gas pressure in a tank...
Replies
0
Views
4,838
I have S7 1512C controler for controlling 48 PID temperature loop, the output is PWM. Please I need the best, most efficient way to write the...
Replies
13
Views
589
Hi all, I'm having trouble solving a problem I've been working on for several months, and thought you might like a stab at it. The machine runs...
Replies
22
Views
921
How can I connect PID Output to a valve. In ladder logic program is there any logic do I want to add between valve and PID? PV=SP What will be the...
Replies
7
Views
407
Back
Top Bottom