The text of a manual · part 7 of 14
SIMATIC TI560T/TI565T Technical Product Description: 3 TI565T, pages 54 to 62
Pages 54 to 62 of 122, from SIMATIC TI560T/TI565T Technical Product Description
The original document is the PDF (565 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Texas Instruments 500-5008 and Siemens 500-5008
Page 54
TI565T SF PROGRAMMING SET (continued) RETURN
The Return SF returns from a subroutine. If invoked from an SF program, the SF program is terminated.
PACK LOOP
The Pack Loop data packs loop data from a loop into contiguous blocks.
PACK ALARM
The Pack Analog Alarm SF packs Analog Alarm data from an analog alarm into contiguous blocks.
SIMATIC TI560T/TI565T Technical Product Description
TI565T
3-11
Page 55
3.8
SF Program Example Programming a Special Function (SF) in the TI565T begins with calling up the directory that lists the programs by title and number as shown in Figure 3-5.
SPECIAL FUNCTION PROGRAM DIRECTORY PROG
TITLE
1
YES
MTR CTRL
2
NO
3
YES
SFPGM
17 18
BURN #2 :
19
4 5
20 21
6
22
7 8
23 24
9
25
10 11
26 27
12
28
13
29
14
30
15 16
31 32
YES
VLV P34
Figure 3-5 Special Function Program Directory
3-12
TI565T
SIMATIC TI560T/TI565T Technical Product Description
Page 56
To program a Special Function, fill in a menu as shown in Figure 3-6.
SF PROGRAM # 5 TITLE = CONTINUE ON ERROR (YES/NO): PROGRAM TYPE (N,P,C,R) = ERROR STATUS ADD: CYCLE TIME (secs) =
BOILER 2 Y C V500 +0.5000
CALCULATE FLOW AND MASS FLOW RATE TO BOILER 2. GET SIGNAL, TAKE SQUARE ROOT, ADD CORRECTION AND SAVE.
0001 * 0002 * 0003 MATH
V200 := SQRT (WX100) + V250
0004 0005 0006 0007
THE CORRECT FLOWRATE IS NOW SAVED IN CUBIC FEET/MIN). CALL SUBROUTINE 2 TO CALCULATE MASS FLOWRATE FROM TEMP AND FLOWRATE SFSUB: 2 P1: V200 P2: V110 P3: V202 P4: P5:
* * * CALL
THE MASS FLOWRATE IS STORED IN LOCATION V202, IN (LBS/MIN) IF THERE IS A FLOWRATE MISMATCH WITH BOILER 1, SET FLAG. (V202–V102) > 150 0009 IF 0010 IMATH V100 := 1 0011 ELSE 0008 *
ELSE RESET FLAG 0012 * 0013 IMATH V100 := 0 ****END**** EXIT–F1 UP–F2 DOWN–F3 FIND–F4 EDIT–F5 INS–F6 DEL–F7
Figure 3-6 Special Function Program Example The error status can be designated as a single discrete bit or a group of three consecutive word locations. Specifying a bit for error status tells only that an error has occurred. With three words designated for error status, information relevant to the error can be found. The first word in the three word address will contain an error code that determines what type error was encountered. The second word will contain the number of the SF program or SF subroutine where the error was encountered. And the final word will contain the last fully executable line before encountering the error. Now, the error can be quickly identified and corrected.
SIMATIC TI560T/TI565T Technical Product Description
TI565T
3-13
Page 57
3.9
PID Loops The TI565T PID equation has available two operating modes which may be selected by the user for the best fit to the application. PID Algorithm Types
The output of the standard PID control rule is an actuator position which may be sent directly to a WY-output location and out to a standard valve or final control element. This form of the equation is thus known as the Position equation and is the implementation which should be used in most cases. The velocity form of the PID equation is provided as an option on the TI565T. It can be derived by taking the first derivative of the Position equation; and it then computes a CHANGE in valve position from one sample time to the next. The output of the Velocity form may be sent through blocks of time proportioning logic to produce timed pulses to move a motor-driven valve to a new position. A loop flag address can be configured to contain status information about the loop. For example, this address contains information that tells the ladder logic if the loop is in manual, auto, or cascade, or if the loop is in an alarm condition. A Ramp/Soak option is also available. This option allows automatic setpoint changing as a function of time. The user defines the setpoints and the ramp rates. A total of 256 steps are allowed per setpoint. Jog, Hold, and Restart options are also provided. There are status bits available in the Ramp/Soak menu to determine where you are at a given time in the Ramp/Soak routine. A derivative gain limiting algorithm is present to limit the derivative contributor to the gain expression. Since the coefficient of the derivative term in the PID difference equation is inversely proportional to the sample rate, when the sample rate is very small, noise disturbances to the process variable (PV) can cause the loop to over-react. Derivative gain limiting is a filter applied to the PV in the derivative term to limit this disturbance.
3-14
TI565T
SIMATIC TI560T/TI565T Technical Product Description
Page 58
A Special Function Program may be called from any loop to operate on the setpoint (SP) or the Process Variable (PV). The SF program will be called when the SP or PV is accessed; it does not necessarily have to operate on either. The SP is accessed each time the loop PID calculation is done as required by the sample rate. The PV is accessed every 200 msec (minimum) regardless of the operating mode of the loop. Here SFs can be used to scale incoming values or to change Process Variable or Setpoint values depending on the status of certain external conditions (e.g., thumbwheel switches). Temporary location T2 within the program indicates which option is running. A clamp setpoint limits option is available to prevent the setpoint from being changed by an operator interface. Loops can be operated in either manual, automatic, or cascade modes. Also, different combinations of PID control (e.g., P, P+I, P+I+D) are available by setting the coefficients not required to zero for gain and rate, or setting them to infinity for reset. Reset windup protection is inherent to the design of the TI565T even though it is not mentioned in the menu. A freeze bias option is provided that will freeze the bias when the output becomes greater than 100%. This operation is used to determine how the loop performs reset-windup protection. Normally, reset-windup protection is performed by back-calculating the bias term. With the freeze bias option “on”, the bias term is simply “frozen”. Therefore, the controller will not continue to instruct a valve to open past its effective limit, which would be 100% open. Process Variable alarms are available with four absolute limits, two deviation limits, a rate of change alarm, and a broken transmitter alarm. In addition, the deadband is selectable from 0.2% of span to 5.0% of span. A Lead/Lag Special Function allows the user to easily implement dynamic feed-forward control. The lead/lag function is discussed in the section under Special Functions. For details on the operation of the TI565T PID algorithm, see Appendix B.
SIMATIC TI560T/TI565T Technical Product Description
TI565T
3-15
Page 59
PID Loops (continued) PID Loop Entry
Programming a PID loop in a TI565T begins with a Loop Directory that identifies the loops by number and title. After selecting a loop to program, fill in a menu with the required information as shown in Figure 3-7. PID LOOP 64
TITLE:
POS/VEL PID ALGORITHM: POS LOOP VFLAG ADDRESS: NONE SAMPLE RATE (SECS): +1.00000 PROCESS VARIABLE ADDRESS: NONE PV RANGE: LOW= +0.00000 HIGH= +100.000 PV IS BIPOLAR: NO SQUARE ROOT OF PV: NO 20% OFFSET ON PV: YES LOOP OUTPUT ADDRESS: NONE OUTPUT IS BIPOLAR: NO 20% OFFSET ON OUTPUT: YES RAMP/SOAK PROGRAMMED: NO RAMP/SOAK FOR SP: NO
REMOTE SETPOINT: NONE CLAMP SP LIMITS: LOW:= +0.00000 HIGH= +0.00000 LOOP GAIN: RESET (INTEGRAL TIME): RATE (DERIVATIVE TIME): FREEZE BIAS:
DERIVATIVE GAIN LIMITING: NO LIMITING COEFFICIENT: +10.0000 SPECIAL CALCULATION ON: NONE SPECIAL FUNCTION: NONE LOCK SETPOINT: NO LOCK AUTO/MANUAL: NO LOCK CASCADE: NO ERROR OPERATION: NONE REVERSE ACTING: NO
S-MEMORY AVAILABLE: 384
ENABLED 565T
EXIT–F1
EDIT–F2
OFFLINE
COMMNT–F7 EN/DIS–F8
ALARM DEADBAND: +0.00000 MONITOR LOW-LOW/HI-HI: MONITOR LOW/HIGH: PV ALARMS: LOW-LOW = LOW = HIGH = HIGH-HIGH =
NO NO +0.00000 +0.00000 +100.000 +100.000
MONITOR DEVIATION: NO DEVIATION ALARM: YELLOW = +100.000 ORANGE = +100.000 MONITOR RATE OF CHANGE: NO RATE OF CHANGE ALARM: +0.00000 MONITOR BROKEN XMITTER: NO
S-MEMORY AVAILABLE: 384
ENABLED 565T
EXIT-F1
EDIT-F2
+1.00000 +INF +0.00000 NO
OFFLINE
COMMNT-F7 EN/DIS-F8
Figure 3-7 PID Loop Menu Example
3-16
TI565T
SIMATIC TI560T/TI565T Technical Product Description
Page 60
3.10
Analog Alarms The Analog Alarm function in the TI565T allows monitoring of analog data as if it were in a Loop. The alarm address is specified and the alarm setpoints are selected. Eight alarms are available: TI565T Analog Alarms
Alarm limits are configured in Engineering units. In addition, the PV alarms deadband is adjustable from 0.2% to 5% of the span. An option is also available to initiate a special function calculation. In this manner, the timing and scaling capabilities of the analog alarm algorithm can be used in conjunction with Special Function programming to create custom, PID-type control.
SIMATIC TI560T/TI565T Technical Product Description
TI565T
3-17
Page 61
Analog Alarms (continued) Analog Alarm Entry
Programming an analog alarm in a TI565T begins with an analog alarm directory which lists the Analog Alarms by number and title. After the analog alarm is selected for programming, the user provides the information to complete a menu as shown in Figure 3-8.
TITLE:
ANALOG ALARM #(1-128) PROCESS VARIABLE ADDRESS
..... XXXXXX .............. N
SQUARE ROOT OF PV PV RANGE
XXXXXXXX
.............. +2.00000
SAMPLE RATE (secs)
...................
HIGH =
ALARM FLAG ADDRESS:.......... PV IS BIPOLAR 20% OFFSET ON PV
XXXX ..........................N ..................N
+1.00000
LOW = +0.00000 SPECIAL FUNCTION
.................. N
SP VALUE OR REMOTE SP
........
SP VALUE
SFPGM NUMBER: VALUE OR ADDRESS:
..................XXXX +0.00000
+0.00000
CLAMP SETPOINT LIMITS: HIGH =
LOW = +0.00000 ALARM DEADBAND
................. = +0.00000
(ENGR. UNITS)
PV ALARMS
LOW-LOW = +0.00000
(ENGR. UNITS)
.................LOW = +0.00000
(ENGR. UNITS)
.................HIGH = +0.00000
(ENGR. UNITS)
..........HIGH-HIGH = +0.00000
(ENGR. UNITS)
.........
MONITOR L-L/H-H ALARM
........... N
DEVIATION ALARMS........ ........ MONITOR DEVIATION ALARMS RATE OF CHANGE ALARM
(ENGR. UNITS)
ORANGE= +0.00000
(ENGR. UNITS)
...............N
...... N ......... = +0.00000
MONITOR RATE OF CHANGE ALARM
MONITOR L/H ALARM
YELLOW= +0.00000
(ENGR. UNITS/MIN) MONITOR BROKEN
................. N
TRANSMITTER
......................N
ABORT-F1 UP-F2 DOWN-F3 ENTER-F4
Figure 3-8 Analog Alarm Menu
3-18
TI565T
SIMATIC TI560T/TI565T Technical Product Description
Page 62
3.11
TI565T Controller Component List The following list provides the part numbers for components required to assemble a TI565T controller to fit your application.
Part Number
Description
PPX:565T–1101
Basic TI565T System, 120/240 VAC. Consists of complete PPX:TI560T–1101 system described earlier, plus: 1 SF CPU Card (PPX:565–2120) w/64 Menu-Driven PID Loops, Special Function Programming and Subroutines, and 128 Menu-Driven Analog Alarms
PPX:565T–1102
Basic TI565T System, 24 VDC. Consists of complete PPX:TI560T–1102 system described earlier, plus: 1 SF CPU Card (PPX:565–2120) w/64 Menu-Driven PID Loops, Special Function Programming and Subroutines, and 128 Menu-Driven Analog Alarms
PPX:565–2120
SF CPU Card
SIMATIC TI560T/TI565T Technical Product Description
TI565T
3-19