The text of a manual · part 24 of 46
Pico GFX-70 Controllers User Manual: 4 - Wiring with Pico GFX-70, pages 201 to 210
Pages 201 to 210 of 400, from Pico GFX-70 Controllers User Manual
The original document is the PDF (2.1 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 GFX-70 1760-DUB
Page 201
Wiring with Pico GFX-70
4-91
Figure 4.37 Pico GFX-70 circuit diagram with comparator CP32LT-------------------------S Q 01 CP32EQ-------------------------S Q 02 CP32GT------------------------|R Q 01 |R Q 02
Parameter display and parameter set for the comparator function block: CP02
+
>I1 >I2
CP02
Function block analog value comparator number 02
+
Appears in the parameter display
>I1
Comparison value 1
>I2
Comparison value 2
Inputs The function block inputs >I1 and >I2 can have the following operands: • Constants • Markers MD, MW, MB • Analog inputs IA01 to IA04 – IA01: terminal I7 – IA02: terminal I8 – IA03: terminal I11 – IA04: terminal I12 • Analog output QA01 • Actual value … QV> of another function block
Contacts • CP01LT to CP32LT, (less than) Contact (make contact) switches to status 1, if the value on >I1 is less than the value on >I2; >I1 < >I2. • CP01EQ to CP32EQ, (equal to) Contact (make contact) switches to status 1, if the value on >I1 is equal to the value on >I2; >I1 = I2. • CP01GT to CP32GT, (greater than)
Publication 1760-UM002B-EN-P - March 2005
Page 202
4-92
Wiring with Pico GFX-70
Contact (make contact) switches to status 1, if the value at >I1 is greater than the value at >I2; >I1 > I2.
Memory Requirement of the Counter Relay The comparator function block requires 32 bytes of memory plus 4 bytes per constant on the function block inputs.
Text Output Function Block The GFX device provides 32 function blocks that operate in a Pico Standard as text output function blocks. These function blocks work in the GFX device as contacts and coils in the same way as in a Pico Standard. In the GFX device, texts, actual value output and setpoint entry are implemented using the appropriate visualization elements.
IMPORTANT
The text function block was adopted from the Pico Standard so that the circuit diagram is compatible. This simplifies the processing of Pico Standard programs. Pico Standard programs with text function blocks can be loaded directly onto the Pico GFX-70, either from the memory module or from PicoSoft Pro. The contacts and coils are processed in the same way as in a Pico Standard. However, texts are not output. The function block requires the entire memory, even if no texts have been transferred.
IMPORTANT
Do not use the text function block on the GFX device. This will use up memory unnecessarily with unused functions.
Figure 4.38 Pico GFX-70 circuit diagram with a text output function block M 42---------------------------S D 01EN D 01Q1-------------------------S Q 02
Publication 1760-UM002B-EN-P - March 2005
Page 203
Wiring with Pico GFX-70
4-93
Contacts A contact has been assigned to the text output function block. D01Q1 to D32Q1, text function block is active.
Coils D01EN to D32EN, enable of the text function block
Memory Requirement of the Text Output Function Block The text output function block function block requires 160 bytes of memory. This is irrespective of the text size.
Data Function Block The data function block allows you to selectively save a value. Setpoint values for the function block can be saved in this manner. Figure 4.39 Pico GFX-70 circuit diagram with data function block: GT01Q1---------------------------[ DB16T DB16Q1---------------------------S D 02EN
Parameter display and parameter set for the data function block: DB16
+
>I1 QV>
DB16
Data block function block number 16
+
Appears in the parameter display
>I1
Input value
QV>
Actual value
Inputs The function block input >I1 can be assigned the following operands: • Constants • Markers MD, MW, MB • Analog inputs IA01 to IA04 – IA01: terminal I7 – IA02: terminal I8
Publication 1760-UM002B-EN-P - March 2005
Page 204
4-94
Wiring with Pico GFX-70
– IA03: terminal I11 – IA04: terminal I12 • Analog output QA01 • Actual value … QV> of another function block
Output The function block output QV> can be assigned the following operands: • Markers MD, MW, MB • Analog output QA01
Contacts DB01Q1 to DB32Q1 Contact (make contact) DB..Q1 switches to status 1 if the trigger signal is set to 1.
Coils DB01T_ to DB32T_, acceptance of the value at >I1 with a rising edge.
Memory Requirement of the Data Function Block The data block function block requires 36 bytes of memory plus 4 bytes per constant at the function block input.
Retention Data function blocks can be operated with retentive actual values. The quantity can be selected in the SYSTEM →RETENTION menu.
Publication 1760-UM002B-EN-P - March 2005
Page 205
Wiring with Pico GFX-70
4-95
Function of the Data Function Block Figure 4.40 Signal diagram of data function block
1
2
3
1: value at input >I1 2: trigger coil DB..T_ 3: value on DB..QV>
IMPORTANT
The value at input >I1 is only transferred with a rising trigger edge to an operand (e.g.: MD42, QA01) on output QV>. Output QV retains its value until it is overwritten.
PID Controller Pico GFX-70 provides 32 PID controllers DC01 to DC32. The PID controllers allow you to implement closed-loop control functions.
ATTENTION
A knowledge of closed-loop control is required to use the PID controllers. The control system must be familiar so that the PID controller can function correctly.
Publication 1760-UM002B-EN-P - March 2005
Page 206
4-96
Wiring with Pico GFX-70
IMPORTANT
Three separate manipulated variables can be output. One manipulated variable can be output via an analog output. Two manipulated variables can be processed via two pulse-width modulated outputs. It is therefore useful to run up to three closed-loop controllers per program simultaneously. Projects can be structured by selecting the controller number. Example: Project with 3 devices Program 1: Controller DC 10, 11 Program 2: Controller DC20, 21 and 22 Program 3: Controller DC30
Wiring a PID Controller You integrate a PID controller in your circuit as a contact and coil. Figure 4.41 Pico GFX-70 circuit diagram with PID controller M 51--------------------------|-[ DC02EN |-[ DC02EP |-[ DC02EI |-[ DC02ED M 52----------------------------[ DC02SE DC02LI--------------------------S M 96
Parameter Display and Parameter Set for PID Controller DC02 UNP
+
>I1 >I2
DC02
PID controller function block number 02
>TN
UNP
Unipolar mode
>TV
+
Appears in the parameter display
>TC
>I1
Setpoint of PID controller
>I2
Actual value of PID controller
>KP
Proportional gain Kp
>TN
Reset time Tn
>TV
Rate time Tv
>KP
>MV QV>
Publication 1760-UM002B-EN-P - March 2005
Page 207
Wiring with Pico GFX-70
>TC
Scan time
>MV
Manual manipulated variable
QV>
Manipulated variable
4-97
In the parameter display of a PID controller you set the operating mode, the setpoints and enable the parameter display.
Operating Modes of the PID Controller
Parameter
Manipulated variable is output as
UNP
Unipolar 12-bit value 0 to +4095
BIP
Bipolar 13-bit value (signed 12-bit value) -4096 to +4095
Inputs The function block inputs >I1, >I2, >KP, >TN, >TV, >TC and >MV can have the following operands: • Constants • Markers MD, MW, MB • Analog inputs IA01 to IA04 – IA01: terminal I7 – IA02: terminal I8 – IA03: terminal I11 – IA04: terminal I12 • Analog output QA01 • Actual value … QV> of another function block
Actual Value …QV> The actual value …QV> can be assigned the following operands: • Markers MD, MW, MB • Analog output QA01
Publication 1760-UM002B-EN-P - March 2005
Page 208
4-98
Wiring with Pico GFX-70
Value Range for Inputs and Outputs
Value range
Resolution/unit
>I1
Setpoint of PID controller
-32768 to +32767
>I2
Actual value of PID controller,
-32768 to +32767
>KP
Proportional gain Kp
0 to 65535 in -- /%
>TN
Reset time Tn
0 to 65535 in 100/ms
>TV
Rate time Tv
0 to 65535 in 100/ms
>TC
Scan time
0 to 65535 in 100/ms
>MV
Manual manipulated variable
-4096 to +4095
QV>
Manipulated variable
0 to 4095 (unipolar) -4096 to +4095 (bipolar)
Example:
Value at input
Value processed in the function block.
>KP
Proportional gain Kp
1500
15
>TN
Reset time Tn
250
25 s
>TV
Rate time Tv
200
20 s
>TC
Scan time
500
50 s
>MV
Manual manipulated variable 500
500
Displaying the Parameter Set in the PARAMETERS Menu • + Access enabled • - Access disabled
Contacts DC01LI to DC32LI, value range of the manipulated variable exceeded.
Coils • DC01EN to DC32EN: Enable PID controller; • DC01EP to DC32EP:Activate proportional component; • DC01EI to DC32EI:Activate integral component;
Publication 1760-UM002B-EN-P - March 2005
Page 209
Wiring with Pico GFX-70
4-99
• DC01ED to DC32ED:Activate the differential component; • DC01SE to DC32SE:Activate the manual manipulated variable
Memory Requirement of the PID Controller The PID controller function block requires 96 bytes of memory plus 4 bytes per constant on the function block input.
Function of the PID Controller Function Block The PID controller works on the basis of the PID algorithm. According to this, the manipulated variable Y(t) is the result of the calculation of the proportional component, an integral component and a differential component.
IMPORTANT
The PID controller must be enabled so that it can work. Coil DC..EN is active. If coil DC..EN is not active, the entire PID controller is deactivated and reset. The manipulated variable is set to zero. The corresponding coils for the P, I and D components must be active. Example: If only coils DC..EP and DC..EI are activated, the controller operates as a PI controller.
IMPORTANT
The device calculates the manipulated variable every time the scan time Tc has elapsed. If the scan time is zero, the manipulated variable is calculated every cycle.
Equation of PID controller: Y(t) = YP(t) + YI(t) + YD(t) Y(t) = calculated manipulated variable with scan time t YP(t) = Value of the proportional component of the manipulated variable with scan time t YI(t) = Value of the integral component of the manipulated variable with scan time t YD(t) = Value of the differential component of the manipulated variable with scan time t
Publication 1760-UM002B-EN-P - March 2005
Page 210
4-100
Wiring with Pico GFX-70
The proportional component in the PID controller
The proportional component YP is the product of the gain (Kp) and the control difference (e). The control difference is the difference between the setpoint (Xs) and the actual value (Xi) at a specified scan time. The equation used by the device for the proportional component is as follows: YP(t) = Kp x [Xs(t) - Xi(t)] Kp = proportional gain Xs(t) = Setpoint with scan time t Xi(t) = Actual value with scan time t The integral component in the PID controller
The integral component YI is proportional to the sum of the control difference over time. The equation used by the device for the integral component is as follows: YI(t) = Kp x Tc/Tn x [Xs(t) - Xi(t)] + YI (t-1) Kp = proportional gain Tc = Scan time Tn = Integration time (also known as reset time) Xs(t) = Setpoint with scan time t Xi(t) = Actual value with scan time t YI(t-1) = Value of the integral component of the manipulated variable with scan time t-1 The differential component in the PID controller
The differential component YD is proportional to the change in the control difference. So as to avoid step changes or jumps in the manipulated variable caused by the differential behavior when the setpoint is changed, the change of the actual value (the process variable) is calculated and not the change in the control difference. This is shown in the following equation: YD(t) = Kp x Tv/Tc x (Xi (t-1) - Xi(t) ) Kp = proportional gain Tc = Scan time Tv = Differential time of the control system (also called the rate time) Xi(t) = Actual value with scan time t Xi(t-1) = Actual value with scan time t - 1
Publication 1760-UM002B-EN-P - March 2005