S7-1200 PID Compact Instruction Issues

Barry Kirk

Lifetime Supporting Member
Join Date
Mar 2007
Location
York, PA
Posts
61
I'm trying to use a PID_Compact Instruction in a S7-1200, but the Setpoint seems to be having no effect.

Currently I'm using Totally Integrated Automation Portal Version V11 SP2.

My PID Compact Instruction is in the Cyclic Interrupt Block OB200 with a cycle time of 200ms.

In Basic Settings the Controller type is General.

In the instruction itself in the ladder.

Setpoint is 50.0
Input is %MD206 it currently has a value of 10.0
Input_PER IS 16#0000, but I'm not using the PER
Manual Enable is False
ManualValue is 0.0
Reset is False
ScaledInput is showing 10.0
Output is showing -2.0
Output_PER and PWM are all blank
State is 3
Error is 16#0000_0000

In the configuration window...

Basic Settings

Controller type is General

Setpoint is showing 50.0
Input is showing 10.0
Output is showing -2.0

Under Advanced Settings

PID Parameters

Enable manual entry is checked when offline

Prop gain is 0.2
Integral action time is 0.0

All other values are 0.0

Controller structure is PI

Any case changing the value of the input changes the value of the output just as if the Setpoint was 0.0

However, the Setpoint is 50.0 and in fact no matter what I change the Setpoint to, the output is completely unaffected.

Anybody know why the PID would be ignoring the Setpoint?
 
Hi

Hi,

I've had the same problem as you today.
Integral time may not be 0 !!!!!

Try it, you'll see that this is the problem.

Kind Regards,
Gerry

I'm trying to use a PID_Compact Instruction in a S7-1200, but the Setpoint seems to be having no effect.

Currently I'm using Totally Integrated Automation Portal Version V11 SP2.

My PID Compact Instruction is in the Cyclic Interrupt Block OB200 with a cycle time of 200ms.

In Basic Settings the Controller type is General.

In the instruction itself in the ladder.

Setpoint is 50.0
Input is %MD206 it currently has a value of 10.0
Input_PER IS 16#0000, but I'm not using the PER
Manual Enable is False
ManualValue is 0.0
Reset is False
ScaledInput is showing 10.0
Output is showing -2.0
Output_PER and PWM are all blank
State is 3
Error is 16#0000_0000

In the configuration window...

Basic Settings

Controller type is General

Setpoint is showing 50.0
Input is showing 10.0
Output is showing -2.0

Under Advanced Settings

PID Parameters

Enable manual entry is checked when offline

Prop gain is 0.2
Integral action time is 0.0

All other values are 0.0

Controller structure is PI

Any case changing the value of the input changes the value of the output just as if the Setpoint was 0.0

However, the Setpoint is 50.0 and in fact no matter what I change the Setpoint to, the output is completely unaffected.

Anybody know why the PID would be ignoring the Setpoint?
 

Similar Topics

Dear All, I use PID Compact in PLC S7-1200 to control Motorized Valve (Danfoss) has Analong input 0-20mA this PID work for example for three, day...
Replies
4
Views
1,903
I am totally new to this 1200 plc system, some one have simpel exampel how this block pid compact work. The sensor is a analog sensor that...
Replies
1
Views
9,377
Hello all, I have set up a PID loop which works fine except it is a bit slow during the startup. I wish that it would reach near the setpoint...
Replies
1
Views
1,832
how can i use pid+pwm to control brightness of the ac light
Replies
4
Views
2,241
Hello everyone, this is my tutorial for using PID function on S7-1200. Hope you guy like it. https://www.youtube.com/watch?v=INB6_7SqeOg
Replies
0
Views
1,636
Back
Top Bottom