Page 1
SNAP PID MODULE USER’S GUIDE Form 1263-030703—July, 2003 43044 Business Park Drive Temecula CA 92590-3614 • • Phone: 800-321-OPTO (6786) or 951-695-3000 Fax: 800-832-OPTO (6786) or 951-695-2712 www.opto22.com Product Support Services 800-TEK-OPTO (835-6786) or 951-695-3080 Fax: 951-695-3017 Email: support@opto22.com Web: support.opto22.com This datasheet has been downloaded from http://www.digchip.com at this...
Page 2
Opto 22 warrants all of its products to be free from defects in material or workmanship for 30 months from the manufacturing date code. This warranty is limited to the original cost of the unit only and does not cover installation, labor, or any other contingent costs.
Table of Contents Introduction ..........................1 SNAP-PID-V Applications....................1 Inputs and Outputs ......................2 Software Support ......................2 What’s in this Guide?......................2 For Help ...........................2 Quick Start..........................3 Check Brain Compatibility ....................3 Determining Firmware Version ................4 Install the Module ......................4 Attach Input and Output Wiring..................5 Apply Power to the Rack ....................6...
Page 4
SNAP PID Module Access.....................16 SNAP PID Module Reference ....................17 PID Velocity Algorithm ....................17 PID Control Word......................17 Defining a PID Control Word..................18 Control Word Bits....................18 PID Variables .........................20 Variables Requiring Calculation................20 Variables Not Requiring Calculation..............22 Read-Only Variables....................23 Status Flag Word......................24 Reading a Status Flag ....................24 Status Flag Bits ......................24 Binary/Hexadecimal Conversion Chart .................25 Specifications ........................26...
SNAP-PID-V Applications Typical applications for the SNAP-PID-V module include temperature, pressure-level, flow, and process control. The SNAP-PID-V is ideal for remote installations or other environments where communication links are subject to interruption. Since PID calculations run locally on the I/O module independent of a controller, brain, or other processor, PID loop control can continue even if the communication link to the I/O system is broken.
To learn more about the SNAP Ethernet brain used with the SNAP PID module, see Opto 22 form 1112, the SNAP Ethernet Brain User’s Guide. This document can be downloaded from the Opto 22 Web site at www.opto22.com.
Ethernet brain, which must be located on the same rack as the PID module(s). NOTE: If you have an older SNAP Ethernet brain that uses firmware prior to version 3.0.2.0, contact Opto 22 Product Support for assistance with firmware requirements for PID module support.
The kernel should be version 3.0.2.0 or higher. Install the Module SNAP-PID-V modules can be installed in any position on an Opto 22 B-series mounting rack. Do not install more than twelve SNAP-PID-V modules on the same rack. NOTE: SNAP PID modules draw considerably more power than a standard SNAP analog or digital module.
QUICK START Attach Input and Output Wiring 1. (Optional) If you want to use PID setpoint and process variable analog inputs from external sources with the SNAP PID module, follow the wiring diagram shown on page 6 to connect PID setpoint inputs to Channel 0 and process variable inputs to Channel 1. Analog inputs share a common reference and are not isolated from each other.
QUICK START See the following wiring diagram for connection details. Apply Power to the Rack When you apply power to the rack, the top two LEDs on the SNAP-PID-V blink once. See “LED Indicators” on page 28 for more information on LED functions.
• If you want to iteratively tune a PID loop, use OptoENET PID Module Tuner. This software includes graphing features and is available free-of-charge from the Opto 22 Web site. See “Using OptoENET PID Module Tuner Software” on page 8 for instructions.
OptoENET PID Module Tuner is an Opto 22 software application for Microsoft Windows that works with the SNAP Ethernet brain to set PID values and other parameters for a SNAP-PID-V module. The primary use of this software is to graph PID values against time, providing visual feedback for tuning the PID loop that the module controls.
The following steps outline how to use OptoENET PID Module Tuner software to tune a PID loop controlled by a SNAP PID module. Each step is described in more detail in the following sections. For complete descriptions of SNAP-PID-V module variables and other parameters shown in OptoENET PID Module Tuner, see “SNAP PID Module Reference”...
Values associated with the module you selected should appear, and the connection status indicator in the lower right-hand corner of the window turns green. If a SNAP-PID-V module is not installed in the rack position you select, the value fields will display zero values.
Page 15
USING OPTOENET PID MODULE TUNER SOFTWARE The OptoENET PID Module Tuner Options window appears: 2. In the Limits section, enter setpoint, process variable, and output limit values. 3. In the Configuration section, enter PID loop base time and scan time values. If needed for your PID control application, also enter values for TPO period, filter exponential, output slew, and output deadband.
The Connection Status indicator in the lower right-hand corner of the window turns green, and the Trend chart starts graphing process variable, setpoint, and output values. 2. Click Auto Mode to start running PID calculations on the SNAP-PID-V module. The PID calculation status indicator in the lower right-hand corner of the window turns green.
USING OPTOENET PID MODULE TUNER SOFTWARE The Debug window appears. Step 4—Optimize PID Loop 1. Observe the graphed process variable (input), setpoint, and output values on the chart. 2. To see the coordinate values for a point on the graph, just click on that point. Coordinate values appear near the cursor.
Do not click Manual Mode before disconnecting the Ethernet link and closing OptoENET PID Module Tuner. This will stop the PID calculations that are running on the SNAP-PID-V module, and your PID loop will no longer be controlled by the PID module. Saving PID Values to a Log File You can use OptoENET PID Module Tuner to create a log file that contains process variable, setpoint, output, and other PID values.
USING THE SNAP PID MODULE WITH OPTOCONTROL Accessing PID Variables PID variables from the SNAP-PID-V are stored in the SNAP-B3000-ENET’s memory map, and can be accessed from OptoControl using the commands listed below. See Opto 22 form 725, the OptoControl Command Reference, for more information about these commands.
If you are having trouble establishing an Ethernet network connection with the SNAP Ethernet brain, refer to the Troubleshooting section in Opto 22 form # 1112, the SNAP Ethernet Brain User’s Guide. If Ethernet communications problems continue after you have tried the solutions in that guide, contact Opto 22 Product Support for assistance.
PID Control Word The SNAP-PID-V module’s control settings are configured by modifying a single hexadecimal control word. When using ioManager software you need to use the control word to configure the PID module. When using OptoENET PID Module Tuner, it isn’t necessary to enter a control word since control settings are made using the software’s user interface.
(external Sets an internal or external source for the process variable value. source) 0 = Process variable obtained from external analog source connected to SNAP-PID-V channel 1. 1 = Process variable obtained from internal value. SNAP PID Module User’s Guide...
Page 23
(not used) (not used) PID Mode (Manual/ Sets SNAP-PID-V module’s calculation mode (Auto/On or Off) Manual/Off). 0 = Manual mode (Off). The PID scan timer is stopped and reset. Any current PID calculations are cancelled, and all PID variables are reinitialized.
Variables Requiring Calculation If you use ioManager software to enter PID values and other settings for the SNAP-PID-V, you must calculate in advance the variables listed in the following table. When using OptoENET PID Module Tuner software, these calculations are done automatically.
Page 25
SNAP PID MODULE REFERENCE Variable Description Default To Modify, Use Mode... Tune, IntegRatio (IntegRatio) This variable sets the integral value used 4.000 Manual or (also called the for the PID module’s PID calculations using the Auto Integral Ratio) following formula: IntegRatio = Integral / Scantime Enter the integral and scantime values you want to use for your PID loop and then solve for IntegRatio.
SNAP PID MODULE REFERENCE Variables Not Requiring Calculation Values for the PID variables listed in the following table can be entered directly into ioManager software. It is not necessary to calculate these values in advance. Variable Description Default To Modify, Use Mode...
SNAP PID MODULE REFERENCE Variable Description Default To Modify, Use Mode... Process Hi Sets the Process Hi alarm. If the Process Variable input 27500 Manual or (also called PV High) is greater than the Process Hi alarm, the Process Hi Auto and Process Quality flags are set.
SNAP PID MODULE REFERENCE Variable Description Output Value Most recently calculated PID output value in raw counts. Scantime Countdown Time remaining until the next PID calculation is performed. Status Flag Word A status flag word indicates the state of certain PID module parameters. A status flag word is a single hexadecimal word, similar to a PID control word, that displays the state of status flag bits.
SNAP PID MODULE REFERENCE Flag Name and Description Setpoint Hi 1 = Setpoint input is above the Setpoint Hi limit and is clamped to that value for calculating PID output. In Auto Mode, this flag is checked when PID output is calculated. If setpoint input re-enters the normal range, the flag will clear at the next scan time.
SPECIFICATIONS Binary Data Corresponding Binary Data Corresponding Hex Value Hex Value 0100 1100 0101 1101 0110 1110 0111 1111 Specifications Scan time range (programmable) 100 ms to 1.8 hrs. (default = 10 sec.) Proportional range (gain) 0.000 to 255.996 (default = 1.000) Integral range 0.000 to 255.996 (default = 4.000) Derivative range...
SPECIFICATIONS Accuracy 0.1% of span Gain temperature coefficient 50 ppm / ° C Offset temperature coefficient 20 ppm / ° C Current Output Range 4 to 20 mA Span 16 mA Resolution 3.9 µA Output at powerup 4 mA (before initialization) ∆...
–30° to 85° C LED Indicators SNAP-PID-V Top View LED 1 on the SNAP-PID-V indicates PID calculation mode. When lit, the PID module is in Auto Mode and is calculating PID values. When not lit, the PID module is in Manual Mode and is not running PID calculations.
Need help?
Do you have a question about the SNAP-PID-V and is the answer not in the manual?
Questions and answers