Barry Kirk
Lifetime Supporting Member
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?
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?