130-28176 Parallax Inc, 130-28176 Datasheet - Page 267

KIT PARTS PROCESS CONTROL

130-28176

Manufacturer Part Number
130-28176
Description
KIT PARTS PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 130-28176

Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
' -----[ Title ]-----------------------------------------------------------
' Process Control - PIDEval.BS2
' Demonstrated P, I and D evaluations with StampPlot
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
SetPoint
Photoval
Error
Prop
IntegSample VAR
Integ
LastError
Deriv
ErrorChange VAR
Total
SignBit
Counter
Samples
Delay
Enter, save and run the program PIDEval.bs2 and close the Debug Terminal.
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
CON
Word
Word
Word
Word
Word
Word
Word
Word
Word
Word
Bit
Byte
Byte
100
' Setpoint value
' Value of photo RC
' Caclulated Error
' Calculated proportional output
' Sample Integral value (Edt)
' Calculated total integral value (SumEdt)
' Last error for deriv calcs
' Calculated derivative output (dE/dt)
' Change in error for deriv calcs (dE)
' Total output
' Holds sign for math
' Count of samples
' Number of samples per evaluation
' Delay to obtain approx times between evaluations

Related parts for 130-28176