14.08.2013 Views

snap ethernet-based i/o units protocols and programming guide

snap ethernet-based i/o units protocols and programming guide

snap ethernet-based i/o units protocols and programming guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using PID Loops<br />

What is a PID?<br />

CHAPTER 2: OVERVIEW OF PROGRAMMING<br />

A proportional integral derivative (PID) control system (often referred to as a PID loop) monitors<br />

an input or process variable, compares the variable’s current value to a desired value (a setpoint),<br />

<strong>and</strong> calculates an output to correct error between the setpoint <strong>and</strong> the variable. Because the<br />

calculation is complex, it is done by a mathematical formula that is adjusted (tuned) for each PID<br />

loop. The mathematical formulas vary, but all PID systems share these fundamental concepts:<br />

They evaluate an input or process variable against its setpoint.<br />

They control an output to correct the variable.<br />

The controller output consists of proportional, integral, <strong>and</strong> derivative calculations.<br />

The effect of proportional, integral, <strong>and</strong> derivative calculations is modified by<br />

user-determined P, I, <strong>and</strong> D constants.<br />

The P, I, <strong>and</strong> D constants need to be tuned for each system.<br />

For more information about PID loops, see Opto 22 form #1410, Tutorial: PID with SNAP Ultimate<br />

I/O Systems.<br />

PID Loops on SNAP Ethernet-<strong>based</strong> I/O Units<br />

Analog/digital SNAP Ultimate <strong>and</strong> SNAP Ethernet I/O <strong>units</strong> provide 16 PID loops per I/O unit.<br />

(SNAP Simple I/O <strong>units</strong> do not have PID capability.) The simplest way to use these PIDs is with<br />

ioControl, which provides easy-to-use configuration <strong>and</strong> tuning tools. For more information, see<br />

Opto 22 form #1300, the ioControl User’s Guide.<br />

However, if you are not using ioControl, it is possible to configure <strong>and</strong> tune PIDs through the<br />

brain’s memory map. Memory map addresses start on page 103.<br />

You can configure each of the 16 PID loops with unique settings for a large number of<br />

parameters. For a simple PID loop, you must configure at least the following:<br />

Input (the process variable being monitored)<br />

Setpoint (the desired value)<br />

Output (the I/O point that effects change in the system)<br />

Scan time (how often the input is sampled)<br />

PID algorithm used (four algorithms are available; see “Algorithm Choices,” below.<br />

You can also configure the following parameters:<br />

Valid range for input<br />

Upper <strong>and</strong> lower clamps for output<br />

Minimum <strong>and</strong> maximum change for output<br />

SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!