Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
08978a74
Commit
08978a74
authored
Dec 30, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plc PID and CompPID, integration variables changed to double for higher accuracy
parent
33f599a6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
151 additions
and
145 deletions
+151
-145
bcomp/lib/rt/src/rt_plc_bcomp.c
bcomp/lib/rt/src/rt_plc_bcomp.c
+3
-3
bcomp/wbl/bcomp/src/basecomponent.wb_load
bcomp/wbl/bcomp/src/basecomponent.wb_load
+143
-137
src/lib/rt/src/rt_plc_pid.c
src/lib/rt/src/rt_plc_pid.c
+3
-3
src/wbl/pwrb/src/pwrb_c_pid.wb_load
src/wbl/pwrb/src/pwrb_c_pid.wb_load
+2
-2
No files found.
bcomp/lib/rt/src/rt_plc_bcomp.c
View file @
08978a74
...
@@ -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
;
...
...
bcomp/wbl/bcomp/src/basecomponent.wb_load
View file @
08978a74
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_plc_pid.c
View file @
08978a74
...
@@ -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 */
...
...
src/wbl/pwrb/src/pwrb_c_pid.wb_load
View file @
08978a74
...
@@ -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-Float
32
"
Attr TypeRef = "pwrb:Type-Float
64
"
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-Float
32
"
Attr TypeRef = "pwrb:Type-Float
64
"
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment