Processors with Sub-Microsecond Response Times Control a Variety of I/O. *Adapted from PID Control with ADwin, by Doug Rathburn, Keithley Instruments

Similar documents
Process Gain and Loop Gain

Maxon Motor & Motor Controller Manual

Exam solutions FYS3240/

ANALOG-TO-DIGITAL (ADC) & DIGITAL-TO-ANALOG (DAC) CONVERTERS

Specification for a communicating Panelboard system to monitor, control and maintain LV electrical installations

Operating Instructions

Operating Instructions

TC 60 THERMOCOMPUTER TC 60. prog. start stop. Operating Instructions

Martel LC-110H Loop Calibrator and HART Communications/Diagnostics

RiverSurveyor S5/M9 & HydroSurveyor Second Generation Power & Communications Module (PCM) Jan 23, 2014

VM1AT-R1 INDUSTRIAL MICROCONTROLLER

Universal input/output controller

BV4115. RF Packet Transmitter. Product specification. February ByVac 2007 ByVac Page 1 of 5

Dry Contact Sensor

Lab 1 Load Cell Measurement System

Dry Contact Sensor. Communications cable - RJ-45 jack to sensor using UTP Cat 5 wire. Power source: powered by the unit. No additional power needed.

Damocles 2404i Manual

EE 311: Electrical Engineering Junior Lab Phase Locked Loop

Lab 1 Load Cell Measurement System (Jan 09/10)

Remote Control Learn Button Receiver Input Connections

PS 430 FOUR CHANNEL REMOTE SPEAKER STATION

Guide for ESP32-Sense Development Kit

idcv Isolated Digital Voltmeter User Manual

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 1.

This app uses callas pdftoolbox server as the imposition engine and consequently you have to have that program installed on your Switch server.

Electrical devices may only be mounted and connected by electrically skilled persons.

Hands-Free Music Tablet

LINE POWER SUPPLIES Low-Loss Supplies for Line Powered EnOcean Modules

D a i s y M o d e m s

3DPIXA System Requirements

ELEC 7250 VLSI TESTING. Term Paper. Analog Test Bus Standard

High Level Design Circuit CitEE. Irere Kwihangana Lauren Mahle Jaclyn Nord

SARAD GmbH Tel.: 0351 / Wiesbadener Straße 10 FAX: 0351 / Dresden Internet:

VIP-200. Point to Point Extension Configuration Quick Start Guide. Video over IP Extender and Matrix System

Dry Contact Sensor DCS15 User Manual

BENZINGER. obliged to precision BENZINGER PRÄZISIONSMASCHINEN TNI. Precise Fast Compact PRECI CNC-PRECISION- TURNING-MILLING CENTRE

3TX Transmitters for Measurement, Control & Datalogging of Ion Selective, ph & ORP, Dissolved Oxygen & Conductivity

Upgrading to PlanetPress Suite Version 5

HygroFlex HF4 Humidity Temperature Transmitters. User Guide

DesignCon A New Reference Design Development Environment for JPEG 2000 Applications

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

Altis Flight Manager. PC application for AerobTec devices. AerobTec Altis v3 User Manual 1

AIR CONDITIONER REMOTE CONTROLLER ILLUSTRATION CS406-R51E

A c r o s s t h e S k y l i n e

A c r o s s t h e S k y l i n e

RS232 Communication Between a Sunny Boy 2500U and a PC. Technical Note

Green House Monitoring and Controlling Using Android Mobile App

INTRODUCTION TO PLL DESIGN

E-Learning, DC drives DCS800 Hardware Options, part 1 Size D1 D4. ABB Group February 2, 2010 Slide 1 DCS800_HARDWARE_OPTIONS_01R0101

Simulation of Model Based System Design Using Real Time Windows

NATF CIP Requirement R1 Guideline

CATA Composer R2016 Fact Sheet. Add a New Dimension to Your Product Communications

GANTOM iq AND iqx USER GUIDE

JPS Interoperability Solutions SNV-12 Voter Executive Outline

Open Sesame. Grant Apodaca Jeffrey Bolin Eric Taba Richie Agpaoa Evin Sellin

.,Plc..d,~t l~ucjio PA300 DIGITAL BASS PROCESSOR USER'S MANUAL. 2 Why use the DIGITAL BASS PROCESSOR? 2 About the PWM Subsonic Filter

Enabling the Bluetooth Low Energy Direct Test Mode (DTM) with BlueNRG-MS

LED wdali MC Switch Input Modul Set - User Manual

IntesisBox PA-RC-KNX-1i v1.2

Insertion Loss (db)

Rectifiers convert DC to AC. Inverters convert AC to DC.

Damocles 1208 MANUAL. Damocles Damocles 1208 Manual. Input status LED indicators. Inputs Not connected

Application Note AN-2097 Evaluation Kit for the S7500 CW Tunable Laser

LED DALI MC+ Switch Input Module - User Manual

NanoScan v2 Readme Version 2.7. Change log. v2.7 - Added information for new product Pyro/9/5-MIR.

CM5530 GENERAL DESCRIPTION APPLICATIONS TYPICAL APPLICATION CIRCU. Rev.1.0 0

SolarEdge. Immersion Heater Controller Installation Guide. For Europe, APAC & South Africa Version 1.6

Puget Sound Company Overview. Purpose of the Project. Solution Overview

Sci. Technol. Arts Res. J., Oct-Dec 2015, 4(4):

Internship opportunities

IntesisBox IS-IR-KNX-1i v1.0. User's Manual Issue Date: 06/2017 r1.0 eng

The demand for a successful flaw analysis is that the test equipment produces no distortion on the echos no noise. I _... I i.j J...

Application for Drive Technology

GE Multilin 369 LV & MV Motor Management Relay Specifications

INSTALLATION INSTRUCTIONS

VLBA Electronics Memo No. 737

DXF2DAT 3.0 Professional Designed Computing Systems 848 W. Borton Road Essexville, Michigan 48732

START UPS DO NOT HAVE TO BE DIFFICULT

Omni-Bus Interface Translator Rev 2. Reference Manual

INSTALLATION INSTRUCTIONS

TROUBLESHOOTING GUIDE

Security Exercise 12

SENSOR AND MEASUREMENT TECHNOLOGY

Application Note. Lock-in Milliohmmeter

MUELLER CO. MAGIC BOX IN-SERVICE POLYETHYLENE INSERTION MACHINE

Instructions Lemon Rx DSMX-Compatible 7-Channel Full-Range Integrated Telemetry Receiver Full Range with Diversity Antenna and PPM

HygroFlex HF4 Humidity Temperature Transmitters. User Guide

Nordic ID AR82 User Guide Version 1.2 NORDIC ID AR82 USER GUIDE

Super ABC Plug-in kit for Pacman or Ms Pacman

IntesisBox TO-RC-KNX-1i v1.3

Developed By: Firefighter Alex Chapin August 2017

APPLICATION NOTE Sales & Application DEWESoft Slovenia

Figure 1: A Battleship game by Pogo

Models 7008, 7034, 7035, 7035R & 7041 Planar Blind-Mate Connectors, dc to 40.0 GHz

SISTEMA ELEVATÓRIO ETV 460A

LCN Remote Control. Perfection. High-End Building Management. Remote Control

AF4000 MOD-1 OEM Production Line Troubleshooting Guide

Gurley Series 8X60 Angle Encoder. Very High Resolution - Industrial Ruggedness

Creating HyperLynx DDRx Memory Controller Timing Model

Implementation Of 12V To 330V Boost Converter With Closed Loop Control Using Push Pull Topology

Transcription:

PID Cntrl with ADwin Prcessrs with Sub-Micrsecnd Respnse Times Cntrl a Variety f I/O CHESTERLAND OH March 9, 2015 *Adapted frm PID Cntrl with ADwin, by Dug Rathburn, Keithley Instruments By Terry Nagy, Cmputer Aided Slutins, LLC. Intrductin One f the mst cmmn autmatic cntrl methds is the Prprtinal-plus-Integral-and-Derivative (PID) cntrller. Industrial cntrllers utilizing this technique are used fr cntrlling prcesses like thse fund in chemical plants, thse fr temperature cntrl, fr certain autmtive applicatins, etc. The purpse f a cntrller is t cmpensate fr the effects f disturbances n prcess variables and t frce a prcess variable t track a desired set pint. While these cntrllers can be built using analg circuits, implementing them using a digital cntrller prvides greater flexibility in adjusting the cntrl algrithm and in fine-tuning the cntrller settings. The PID cntrller measures the utput f the prcess and calculates the difference (errr) between what is measured and the set pint. If an errr exists, the cntrller adjusts its utput t alter the prcess t bring it clser t the desired pint, thus minimizing the errr. Each time an errr is calculated, the cntrller must decide hw much t alter the prcess. If the cntrller is t aggressive (underdamped), it may cause the prcess t becme unstable and scillate. If cntrl is nt aggressive enugh (ver-damped), the system may require t much time t recver r nt recver at all. The respnse characteristics f the cntrller are determined by the PID cnstants prvided t the cntrller. The Prprtinal, Integral, and Derivative cnstants are used t calculate what the utput shuld be relative t the measured errr. The Prprtinal cnstant represents the area in which the cntrller is actually cntrlling the prcess and determines the band f peratin. It represents a cnstant that is multiplied by the errr. While the prprtin represents a cnstant multiplier f the errr, as the errr gets small, the effect f the prprtin term als gets small. Simply increasing the magnitude f the prprtin factr can lead t instability. The Integral prtin crrects fr the ffset between the set pint and the prcess variable by autmatically resetting r shifting the prprtining band. The integral accumulates the small cnstant errr ver time and frces the system twards the set pint.

The Derivative cnstant determines the rate at which the cntrller reacts t large changes in the prcess variable. Implementing a Digital PID Cntrller The architecture f the ADwin prduct family f data acquisitin and cntrl systems makes it well-suited fr PID applicatins. In a Windws-based envirnment, respnse times can vary dramatically depending n what ther applicatins are running n the PC. In fact it s nt uncmmn t see up t 50 msec. respnse times which is ften unacceptable fr maintaining the level f cntrl required in industrial r research prcess cntrl. ADwin systems cme with their wn DSP prcessrs with sub-micrsecnd respnse times that cntrl a variety f I/O. The I/O includes ADCs (analgt-digital cnverters), DACs (digital-t-analg cnverters), digital inputs, and digital utputs. Analg r digital inputs mnitr the prcess, and the prcessr calculates the errr between prcess utput and the set pint. A new utput level fr either analg r digital utput is calculated t cntrl the prcess. ADCs fr the ADwin prducts can be either 12- r 16-bit, while the digital inputs are either TTL, quadrature encder, PWM, r up/dwn cunters. The ADwin-PRO als has thermcuple and PTD input mdules. Fr highly-ptimized cnditins, the ADwin hardware is capable f acquiring data at a rate f up t 1MHz, and input signals can be measured n bth analg and digital inputs. The ADwin-GOLD has tw ADCs fr measuring tw channels simultaneusly and can be multiplexed acrss 16 inputs. The Pr- Ain-F family f analg input mdules are well-suited fr synchrnized sampling. Each channel has a dedicated A/D t allw fr parallel measurements, and the measurements can als be simultaneusly triggered acrss multiple input mdules. Once the prcess is cmpiled nt the ADwin micrprcessr and running, the prcess will run as lng as it is cnnected t the pwer supply. The perating system n the hst PC can crash, but as lng as the ADwin system is pwered, the prcess will cntinue t execute. Therefre, the ADwin system s prcesses run independently frm the lad f the PC prcessr. This cntinuus executin makes ADwin the ideal slutin fr fault-intlerant systems r where reliance n the hst PC s perating system is

impssible. The ADwin-Gld and ADwin-Pr prducts als have bt lader ptins that allw them t be pre-prgrammed t run n pwer-up withut the need f a PC. Flw cntrl is a very cmmn use fr PID cntrllers. This applicatin invlves cntrlling hw much fluid r gas is flwing thrugh a pipe with a valve. This vlume is mnitred and then cntrlled with the PID. The cntrl steps are summarized here: 1. Values fr the desired flw and PID cnstants are passed t the ADwin prcessr. 2. The flw sensr is measured using ne ADwin analg input channel. 3. The differential between what has been measured and the new set pint is calculated. 4. The errr is added t all previus errr terms that have been calculated. 5. The sum f errrs is cmpared t the limit f the valve. If the sum is t large r small, the sum is capped t crrespnd t a wide pen r clsed valve. 6. The new psitin fr the valve is calculated and then changed with ne analg utput channel n the ADwin. 7. Return t Step 2 t cntinue the algrithm. Available Input Types: Analg (12 & 16-bit) Digital Thermcuple RTD Cunter/Encder Quadrature PWM

Calculating the PID Cnstants Calculating the cnstants that are used by the PID cntrller is the tpic f much science and research. Likewise many bks and methds exist fr tuning the cntrller t prvide the desired respnse. Mst methds prvide values fr each cnstant, but when the system is actually implemented, the system des nt functin prperly. In fact, even the best methds typically nly allw users t apprach the crrect cnstants, but fr ptimal peratin fr a specific cntrller and prcess variable, there is still an element f trial and errr. ADwin prducts easily allw fr this trial and errr. The prgramming language fr the ADwin family is ADbasic. The hardware and ADbasic allw yu t define integer and flating-pint variables that are stred in registers that can be accessed while ADwin is running. The I/O registers can be easily accessed by mst f tday s ppular prgramming envirnments such as TestPint, LabVIEW, Visual Basic, r C. The PID cnstants can then be passed t the apprpriate register lcatin and used by the ADwin prcessr during peratin. Als, imprtant prcess infrmatin can be read thrugh ne f the prgrams while ADwin is running. PID Lp Timing and Multiple Cntrllers The PID lp time is determined by hw many times per secnd the utput f the cntrller is updated. Fr a 1kHz lp, the inputs are measured and utputs changed fr the cntrller 1000 times per secnd. A general rule f thumb states that the PID cntrl lp shuld update twice as ften as the physical parameter (e.g. temperature, lever psitin, valve, etc.) Therefre if the time cnstant f this physical parameter is ne secnd, then the cntrl lp shuld be updated every 0.5 secnds. Typical industrial PID cntrllers update at 1kHz, while ther real-time cntrllers are generally capable f nly abut 5kHz. ADbasic enables quick and simple develpment f different cntrl structures in additin t the PID, but it is pssible t cnstruct a PID lp fr ADwin at 500kHz (100% CPU lad). As the cntrl lp speed is decreased, the lad n the CPU is als reduced. Therefre, a PID cntrl lp running at 50kHz culd require nly abut 10% f the ADwin CPU, and a 20kHz lp uses apprximately 4%.

Fr cntrl lps running at less than 500kHz, excess prcessr bandwidth is available t run multiple cntrllers n the same ADwin hardware. These multiple cntrllers culd be either cascaded r independent. The cntrllers can als run at different frequencies r cycle times. Equipment List: 1. PC running Windws (95/98/ME/NT/2000/XP/Windws 7) 2. ADwin real-time cntrl hardware 3. ADbasic real-time develpment envirnment 4. Custm wiring harness fr cnnecting t test setup Alternative Slutins The ADwin prduct family ffers many different frm factrs, prcessrs, and I/O in which t create the PID cntrller. The ADwin family includes: ADwin-Light-16 systems Plug-in bards and external Analg inputs and utputs (ne 12-bit A/D) expandable Digital I/O Optinal cunters PCI, USB r Ethernet cmmunicatin with the PC ADwin-GOLD Stand-alne, external system 16 analg inputs (16-bit @ 10ms & 12-bit @ 0.8ms) BNC cnnectins

2 analg utputs (16-bit) expandable 32 digital I/Os, in blck f 8 as input r utput Optinal cunter (event cunter, encder interface, perid cycle, PWM) Integrated USB r Ethernet cmmunicatin with the PC ADwin-PRO Industrial, mdular 19-inch system Up t 4 CPUs per system Mdular and expandable: 480 analg inputs (multiplexed r parallel) 120 analg utputs 480 digital I/Os Thermcuples, RTD, cunter, filters, islatin, etc. CAN-bus, Prfibus, RS-232, RS-485, RS-422 USB r Ethernet fr cmmunicatin with the PC In additin, the ADwin-Gld and ADwin-Pr can supprt up t 32Mbytes f RAM per prcessr and ptinal btlader. The btlader stres an ADbasic prcess(es) and begins running the prcess upn pwer-up. Therefre, nce the ADwin hardware is prgrammed, it can be used as a stand-alne slutin withut a PC.