Post Reply 
Basic RPL question
02-25-2016, 07:53 PM
Post: #5
RE: Basic RPL question
I just tried in a first step to load the global values on the stack in the program and then assigning them to local variables then just put the local variables on the stack and it worked as expected.

<< KP KI KD
-> kp ki kd
<<
kp ki kd
>>
>>

I get the local variables on the stack.
Now I want to do some calculations.

So if I want to use kp ki kd in some calculation like kp + ki + kd should I use 'kp + ki + kd' eval or kp ki + kd + ?

Im working on a PID controller for controlling the temperature on my espresso machine and have already the solution but got the wierd idea to control it with my HP48GX or HP50GX since they have serial communication. I have already built the interface with serial communication to control the heater with pulswidth modulation and a teperature probe so I can interface anything to the controller using RS232.
The contorl loop is quite simple and does not require a fast controller so it should be possible with a HP calculator.
P = kp * err (set temp - acttemp) Proportional part
I = ki * Sumerr Integral part
D = kd * (oldtemp - acttemp) Derivative part

PID = P + I + D

then som adaptation math to output the pulsewidth value (0 - 100%).

If its possible I want to have the temperature curve and PWM output on a graph in the calculator as I have it now on a laptop wich is the controller for tuning the parameters at the moment.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Basic RPL question - Graan - 02-25-2016, 03:05 PM
RE: Basic RPL question - rprosperi - 02-25-2016, 03:19 PM
RE: Basic RPL question - David Hayden - 02-25-2016, 03:36 PM
RE: Basic RPL question - wojtek - 02-25-2016, 04:25 PM
RE: Basic RPL question - Graan - 02-25-2016 07:53 PM
RE: Basic RPL question - David Hayden - 02-25-2016, 08:32 PM
RE: Basic RPL question - wojtek - 02-25-2016, 08:48 PM
RE: Basic RPL question - Graan - 02-25-2016, 08:54 PM
RE: Basic RPL question - wojtek - 02-25-2016, 08:35 PM
RE: Basic RPL question - Graan - 02-28-2016, 09:56 AM
RE: Basic RPL question - wojtek - 02-28-2016, 10:14 AM
RE: Basic RPL question - Paul Dale - 02-28-2016, 10:13 AM
RE: Basic RPL question - Graan - 02-28-2016, 01:02 PM
RE: Basic RPL question - DavidM - 02-28-2016, 03:27 PM
RE: Basic RPL question - rprosperi - 02-28-2016, 06:13 PM
RE: Basic RPL question - Graan - 02-28-2016, 07:00 PM
RE: Basic RPL question - Han - 02-28-2016, 02:26 PM
RE: Basic RPL question - Graan - 02-28-2016, 03:22 PM
RE: Basic RPL question - Graan - 02-28-2016, 05:05 PM
RE: Basic RPL question - DavidM - 02-28-2016, 06:23 PM
RE: Basic RPL question - Tugdual - 02-28-2016, 10:01 PM
RE: Basic RPL question - David Hayden - 02-28-2016, 11:28 PM
RE: Basic RPL question - DavidM - 02-29-2016, 12:30 AM
RE: Basic RPL question - wojtek - 02-29-2016, 12:39 AM
RE: Basic RPL question - Claudio L. - 02-29-2016, 03:48 AM
RE: Basic RPL question - Han - 02-29-2016, 04:19 AM
RE: Basic RPL question - DavidM - 02-29-2016, 05:22 AM



User(s) browsing this thread: 1 Guest(s)