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,
float bfold;
float ddiff;
float derold;
float ut;
float dut;
double ut;
double dut;
float kd;
float absut;
double absut;
float gain;
pwr_sClass_CompPID *co = (pwr_sClass_CompPID *) o->PlcConnectP;
......
This diff is collapsed.
......@@ -397,10 +397,10 @@ void pid_exec(
float bfold;
float ddiff;
float derold;
float ut;
float dut;
double ut;
double dut;
float kd;
float absut;
double absut;
float gain;
/* Save old values */
......
......@@ -931,7 +931,7 @@ SObject pwrb:Class
!*/
Object OutWindup $Intern 54
Body SysBody
Attr TypeRef = "pwrb:Type-Float32"
Attr TypeRef = "pwrb:Type-Float64"
Attr GraphName = "OutWindup"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_STATE
......@@ -943,7 +943,7 @@ SObject pwrb:Class
!*/
Object AbsOut $Intern 55
Body SysBody
Attr TypeRef = "pwrb:Type-Float32"
Attr TypeRef = "pwrb:Type-Float64"
Attr GraphName = "AbsOut"
Attr Flags |= PWR_MASK_INVISIBLE
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