Iris _

Pixsys Forum

everybody's effort for the same goal

PL260 PID COntroller Units

Post Reply
Pixsys tecnico 1
Moderatore
Posts: 1649
Joined: 29/10/2010, 10:09
Contact:

Re: PL260 PID Controller Units

Post by Pixsys tecnico 1 »

Hi,
I suggest you to use this simple model to calculate PB, Ti and Td:

1- starting in ON-OFF mode, choose a setpoint and power on resistance
2- when you reach the value, resistance will power off, but temperature will increase due to inertia. Check how many degrees the value continue to increase until it stabilize (and start decreasing). Put this "delta" moltiplyed by 1.3 to PB.
3- check also how much time temperature needs to stop increasing due to the inertia, put this value as TI.
4- TD is TI/4.

For example:
Setpoint 100°C
Resistance is ON until 100°C, then power OFF. Temperature increase until 110°C, the stabilize and start to decrease --> PB will be "(110°-100°) x 1.3"
Also check time: Temperature needs some time from 100°C (setpoint) to reach 110°C (peak) --> This is the TI.
TD is TI/4.

Keep in mind that PB, TI, TD have different units of measure in PlProg, so keep attention which value you put:


1- The proportional band and the dead band are expressed in numeric values equal to the setpoint and the process to regulate.
2- The integral time is expressed in the units of time in which the function PID is called (for instance, function PID
called every 1 second, integral time expressed in seconds).
3- The derived time is expressed with an additional decimal digit respect to the integral time.
HenryChind
Posts: 6
Joined: 03/02/2019, 19:08
Location: Sri Lanka
Contact:

PL260 PID COntroller Units

Post by HenryChind »

Hi Guys,

Can anyone kindly share a code example for PID controller for EV3 ?
I want to use it a a basis to a self balancing robot.

Many thanks,
Amit
Post Reply