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

GUIDE STUDENT PROCESS CONTROL

122-28176

Manufacturer Part Number
122-28176
Description
GUIDE STUDENT PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-28176

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Propeller Education (PE) 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 122-28176