Commit 08978a74 authored by Claes Sjofors's avatar Claes Sjofors

Plc PID and CompPID, integration variables changed to double for higher accuracy

parent 33f599a6
...@@ -260,10 +260,10 @@ void CompPID_Fo_exec( plc_sThread *tp, ...@@ -260,10 +260,10 @@ void CompPID_Fo_exec( plc_sThread *tp,
float bfold; float bfold;
float ddiff; float ddiff;
float derold; float derold;
float ut; double ut;
float dut; double dut;
float kd; float kd;
float absut; double absut;
float gain; float gain;
pwr_sClass_CompPID *co = (pwr_sClass_CompPID *) o->PlcConnectP; pwr_sClass_CompPID *co = (pwr_sClass_CompPID *) o->PlcConnectP;
......
This diff is collapsed.
...@@ -397,10 +397,10 @@ void pid_exec( ...@@ -397,10 +397,10 @@ void pid_exec(
float bfold; float bfold;
float ddiff; float ddiff;
float derold; float derold;
float ut; double ut;
float dut; double dut;
float kd; float kd;
float absut; double absut;
float gain; float gain;
/* Save old values */ /* Save old values */
......
...@@ -931,7 +931,7 @@ SObject pwrb:Class ...@@ -931,7 +931,7 @@ SObject pwrb:Class
!*/ !*/
Object OutWindup $Intern 54 Object OutWindup $Intern 54
Body SysBody Body SysBody
Attr TypeRef = "pwrb:Type-Float32" Attr TypeRef = "pwrb:Type-Float64"
Attr GraphName = "OutWindup" Attr GraphName = "OutWindup"
Attr Flags |= PWR_MASK_INVISIBLE Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE Attr Flags |= PWR_MASK_STATE
...@@ -943,7 +943,7 @@ SObject pwrb:Class ...@@ -943,7 +943,7 @@ SObject pwrb:Class
!*/ !*/
Object AbsOut $Intern 55 Object AbsOut $Intern 55
Body SysBody Body SysBody
Attr TypeRef = "pwrb:Type-Float32" Attr TypeRef = "pwrb:Type-Float64"
Attr GraphName = "AbsOut" Attr GraphName = "AbsOut"
Attr Flags |= PWR_MASK_INVISIBLE Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE Attr Flags |= PWR_MASK_STATE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment