The text of a manual · part 19 of 70
SLC 500 Instruction Set Reference Manual, pages 181 to 190
Pages 181 to 190 of 694
The original document is the PDF (7.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1747-L514
Page 181
Proportional Integral Derivative Instruction
9-9
The deadband extends above and below the setpoint by the value entered. The deadband is entered at the zero crossing of the process variable and the setpoint. This means that the deadband is in effect only after the process variable enters the deadband and passes through the setpoint. The valid range is 0 to the scaled maximum, or 0 to 16,383 when no scaling exists.
Scaled Error Table 9.9 Scaled Error Parameter Tuning Parameter Descriptions Scaled Error
Address
Data Format
Range
Type
Word 15 word (INT)
-32,768 to +32,767 status
User Program Access read only
Scaled error is the difference between the process variable and the setpoint. The format of the difference (E = SP-PV or E = PV-SP) is determined by the control mode (CM) bit. See Control (CM) on page 9-10.
Auto / Manual (AM) Table 9.10 Automatic/Manual Parameter Tuning Parameter Descriptions
Address
Data Format Range Type
AM - Automatic/Manual Word 0, Bit 1 binary (bit)
0 or 1 control
User Program Access read/write
The auto/manual bit can be set or cleared by instructions in your ladder program. When off (0), it specifies automatic operation. When on (1), it specifies manual operation. In automatic operation, the instruction controls the control variable (CV). In manual operation, the user/control program controls the CV. During tuning, set this bit to manual.
TIP
Output limiting is also applied when in manual.
Publication 1747-RM001G-EN-P - November 2008
Page 182
9-10
Proportional Integral Derivative Instruction
Control (CM) Table 9.11 Control Mode Parameter Tuning Parameter Descriptions CM - Control Mode
Address
Data Format Range
Word 0, Bit 2 binary (bit)
0 or 1
Type control
User Program Access read/write
Control mode, or forward-/reverse-acting, toggles the values E=SP-PV and E=PV-SP. When set (1) - Forward acting (E=PV-SP) causes the control variable to increase when the process variable is greater than the setpoint. When cleared (0) - Reverse acting (E=SP-PV) causes the control variable to decrease when the process variable is greater than the setpoint.
Deadband (DB) Table 9.12 Deadband Parameter Tuning Parameter Descriptions DB - PV in Deadband
Address
Data Format Range
Word 0, Bit 8 binary (bit)
0 or 1
Type status
User Program Access read/write
This bit is set (1) when the process variable is within the zero-crossing deadband range.
Reset and Gain Enhancement Bit (RG) Table 9.13 Reset and Gain Parameter Tuning Parameter Descriptions RG - Reset and Gain Enhancement
Address
Data Format Range Type
Word 0, Bit binary (bit) 4
0 or 1 control
User Program Access read/write
When set (1), the reset and gain range enhancement bit (RG) causes the reset minute/repeat value (TI) and the gain multiplier (KC) to be divided by a factor of 10. That means a reset multiplier of 0.01 and a gain multiplier of 0.01. When clear (0), this bit allows the reset minutes/repeat value and the gain multiplier value to be evaluated with a reset multiplier of 0.1 and a gain multiplier of 0.1.
Publication 1747-RM001G-EN-P - November 2008
Page 183
Proportional Integral Derivative Instruction
9-11
Example with the RG bit set: The reset term (TI) of 1 indicates that the integral value of 0.01 minutes/repeat (0.6 seconds/repeat) is applied to the PID integral algorithm. The gain value (KC) of 1 indicates that the error is multiplied by 0.01 and applied to the PID algorithm. Example with the RG bit clear: The reset term (TI) of 1 indicates that the integral value of 0.1 minutes/repeat (6.0 seconds/repeat) is applied to the PID integral algorithm. The gain value (KC) of 1 indicates that the error is multiplied by 0.1 and applied to the PID algorithm.
TIP
The rate multiplier (TD) is not affected by this selection. Valid on SLC 5/03 and higher processors.
Setpoint Scaling (SC) Table 9.14 Setpoint Scaling Parameter Tuning Parameter Address Data Format Range Descriptions SC - Setpoint Scaling Word 0, Bit binary (bit) 0 or 1 5
Type control
User Program Access read/write
The SC bit is cleared when setpoint scaling values are specified.
Loop Update Time Too Fast (TF) Table 9.15 Loop Update Time Too Fast Parameter Tuning Parameter Address Data Format Range Descriptions TF - Loop Update Too Word 0, Bit 6 binary (bit) 0 or 1 Fast
Type status
User Program Access read/write
The TF bit is set by the PID algorithm if the loop update time specified cannot be achieved by the controller due to scan time limitations. If this bit is set, correct the problem by updating your PID loop at a slower rate or move the PID instruction to an STI interrupt routine. Reset and rate gains will be in error if the instruction operates with this bit set.
Publication 1747-RM001G-EN-P - November 2008
Page 184
9-12
Proportional Integral Derivative Instruction
Derivative Rate Action Bit (DA) Table 9.16 Derivative Rate Action Bit Parameter Tuning Parameter Descriptions
Address
DA - Derivative Action Bit Word 0, Bit 7
Data Format Range
Type binary (bit)
control
0 or 1
User Program Access read/write
When set (1), the derivative (rate) action (DA) bit causes the derivative (rate) calculation to be evaluated on the error instead of the process variable (PV). When clear (0), this bit allows the derivative (rate) calculation to be evaluated where the derivative is performed on the PV.
Output Alarm Upper Limit (UL) Table 9.17 Output Alarm Upper Limit Parameter Tuning Parameter Address Data Format Range Type Descriptions UL - Output Alarm Upper Word 0, Bit binary (bit) 0 or 1 status Limit 9
User Program Access read/write
The control variable upper limit alarm bit is set (1) when the calculated CV output exceeds the upper CV limit.
Output Alarm Lower Limit (LL) Table 9.18 Output alarm Lower Limit Parameter Tuning Parameter Address Data Format Range Type Descriptions LL - Output Alarm Lower Word 0, Bit binary (bit) 0 or 1 status Limit 10
User Program Access read/write
The control variable lower limit alarm bit is set (1) when the calculated CV output is less than the lower CV limit.
Publication 1747-RM001G-EN-P - November 2008
Page 185
Proportional Integral Derivative Instruction
9-13
Setpoint Out Of Range (SP) Table 9.19 Setpoint Out Of Range Parameter Tuning Parameter Descriptions
Address
Data Format Range Type
SP - Setpoint Out of Range Word 0, Bit binary (bit) 11
0 or 1 status
User Program Access read/write
This bit is set (1) when the setpoint: • exceeds the maximum scaled value, or • is less than the minimum scaled value.
PV Out Of Range (PV) Table 9.20 PV Out Of Range Parameter Tuning Parameter Address Descriptions PV - PV Out of Range Word 0, Bit 12
Data Format Range
Type binary (bit)
status
0 or 1
User Program Access read/write
The process variable out of range bit is set (1) when the unscaled process variable (PV): • exceeds 16,383, or • is less than zero.
PID Done (DN) Table 9.21 PID Done Parameter Tuning Parameter Address Descriptions DN - PID Done Word 0, Bit 13
Data Format Range
Type binary (bit)
status
0 or 1
User Program Access read only
The PID done bit is set (1) for one scan when the PID algorithm is computed. It resets automatically.
Publication 1747-RM001G-EN-P - November 2008
Page 186
9-14
Proportional Integral Derivative Instruction
PID Rational Approximation Bit (RA) Table 9.22 PID Rational Approximation Parameter Tuning Parameter Address Descriptions RA - Rational Word 0, Approximation Bit 14
Data Format Range
Type binary (bit)
control
0 or 1
User Program Access read/write
When the RA bit is set, rational approximation method is used for PID computation, resulting in a more accurate output.
PID Enable (EN) Table 9.23 PID Enable Parameter Tuning Parameter Address Descriptions EN - PID Enable Word 0, Bit 15
Data Format Range
Type binary (bit)
status
0 or 1
User Program Access read only
The PID enabled bit is set (1) whenever the PID instruction is enabled. It follows the rung state.
Integral Sum Table 9.24 Integral Sum Parameter Tuning Parameter Descriptions Integral Sum
Address
Data Format Range
Word 17 and 18 long word (32-bit INT)
1
This is the result of the integration---T
I
Publication 1747-RM001G-EN-P - November 2008
Type
User Program Access
-2,147,483,648 to status read/write 2,147,483,647
∫ E ( dt ) .
Page 187
Proportional Integral Derivative Instruction
Input Parameters
9-15
The table below shows the input parameter addresses, data formats, and types of user program access. See the indicated pages for descriptions of each parameter.
Table 9.25 Input Parameters Input Parameter Descriptions
Address
Range
Type
User Program For More Access Information
SP - Setpoint
Word 2
0 to 16383(2)
control read/write
9-15
SPV - Process Variable Scaled
Word 14
0 to 16383 status read only
9-16
SMAX - Maximum Setpoint (1)
Word 7
0 to 16383(3)
control read/write
9-16
SMIN - Minimum Setpoint
Word 8
0 to 16383(4)
control read/write
9-17
(1)
The SMAX must be greater than SMIN or the processor will fault with error code.
(2)
The range listed in the table is for when scaling is not enabled. With scaling, the range is from minimum scaled (SMIN) to maximum scaled (SMAX).
(3)
Maximum SP scaling range: SLC 5/02 is -16382 to +16383; SLC 5/03 and higher is -32767 to +32767.
(4)
Minimum SP scaling range: SLC 5/02 is -16383 to +16382; SLC 5/03 and higher is -32768 to +32766.
Setpoint (SP) Table 9.26 Setpoint Parameter Input Parameter Descriptions
Address
Data Format
Range
Type
User Program Access
SP - Setpoint
Word 2 word (INT)
0 to 16383(1)
control read/write
(1)
The range listed in the table is for when scaling is not enabled. With scaling, the range is from minimum scaled (SMIN) to maximum scaled (SMAX).
The SP (Setpoint) is the desired control point of the process variable.
Publication 1747-RM001G-EN-P - November 2008
Page 188
9-16
Proportional Integral Derivative Instruction
Scaled Process Variable (SPV) Table 9.27 Scaled Process Variable Parameter Input Parameter Descriptions
Address
Data Format
Range
Type
User Program Access
SPV - Scaled Process Variable
Word 14 word (INT)
0 to 16383 control read/write
The SPV (Scaled Process Variable) is the analog input variable. If scaling is enabled, the range is the minimum scaled value (SMIN) to maximum scaled value (SMAX). If the SPV is configured to be read in engineering units, then this parameter corresponds to the value of the process variable (PV) in engineering units.
Setpoint Maximum Scaled (SMAX) Table 9.28 Setpoint Maximum Scaled Parameter Input Parameter Descriptions
Address
Data Format
Range
Type
User Program Access
SMAX Maximum Scaled
Word 7 word (INT)
-32,767 to +32,767(1)
control read/write
(1)
SLC 5/02 valid range is -16382 to +16383.
If the SPV is read in engineering units, then the SMAX (Setpoint Maximum) parameter corresponds to the value of the setpoint in engineering units when the control input is at its maximum value.
Publication 1747-RM001G-EN-P - November 2008
Page 189
Proportional Integral Derivative Instruction
9-17
Setpoint Minimum Scaled (SMIN) Table 9.29 Setpoint Minimum Scaled Parameter Input Parameter Descriptions
Address
Data Range Format
Type
User Program Access
SMIN Minimum Scaled
Word 8 word (INT)
control read/write
(1)
-32,768 to +32,766(1)
SLC 5/02 valid range is -16383 to +16382.
If the SPV is read in engineering units, then the SMIN (Setpoint Minimum) parameter corresponds to the value of the setpoint in engineering units when the control input is at its minimum value.
TIP
SMIN - SMAX scaling allows you to work in engineering units. The deadband, error, and SPV are also displayed in engineering units. The process variable, PV, must be within the range of 0 to 16383. Use of SMIN - SMAX does not minimize PID PV resolution.
Publication 1747-RM001G-EN-P - November 2008
Page 190
9-18
Proportional Integral Derivative Instruction
The table below shows the output parameter addresses, data formats, and types of user program access. See the indicated pages for descriptions of each parameter.
Output Parameters
Table 9.30 Output Parameters Output Parameter Descriptions Address
Data Format Range
Type
User Program Access
For More Information
CV - Control Variable
User-defined word (INT)
0 to 16,383 control read/write
9-18
CV% - Output CV Percent
Word 16 word (INT)
0 to 100 control read
9-19
OL - Output Limiting Enable
Word 0, Bit 3 binary
1 = enabled control read/write
9-19
0 = disabled CVH - Output Maximum
Word 11 word (INT)
0 to 100% control read/write
9-20
CVL - Output Minimum
Word 12 word (INT)
0 to 100% control read/write
9-20
Control Variable (CV) Table 9.31 Control Variable Parameter Output Parameter Address Descriptions CV - Control Variable
Data Format
User-defined word (INT)
Range
Type
User Program Access
0 to 16,383 control read/write
The CV (Control Variable) is user-defined. See the ladder rung below.
∑
Publication 1747-RM001G-EN-P - November 2008
∑