The text of a manual · part 19 of 46
Pico GFX-70 Controllers User Manual: 4 - Wiring with Pico GFX-70, pages 151 to 160
Pages 151 to 160 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 151
Wiring with Pico GFX-70
4-41
Figure 4.25 Pico GFX-70 circuit diagram with analog value comparators I 01----A 01Q1-----------------[ Q 01 I 02--|-A 02Q1-----------------S Q 02 |-A 03Q1-----------------R Q 03
Parameter display and parameter set for analog value comparators: A 02 GT
+
>I1 >F1
A 02
Function block analog value comparator number 02
>F2
GT
Greater than mode
>OS
+
Appears in the parameter display
>I2
>HY
>I1
Comparison value 1
>F1
Gain factor for >I1 (>I1 = >F1 x value)
>I2
Comparison value 2
>F2
Gain factor for >I2 (>I2 = >F2 x value)
>OS
Offset for the value of >I1
>HY
Switching hysteresis for value >I2 (Value HY applies to positive and negative hysteresis.)
Inputs The function block inputs >I1, >F1, >I2, >F2, >OS and >HY 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
Publication 1760-UM002B-EN-P - March 2005
Page 152
4-42
Wiring with Pico GFX-70
Analog Value Comparator Operating Modes
Parameter
Function
GT
>I1 greater than >I2
EQ
>I1 equal to >I2
LT
>I1 less than >I2
Contacts A 01Q1 to A 32Q1
Memory Requirement of the Analog Value Comparator The analog value comparator function block requires 68 bytes of memory plus 4 bytes per constant on the function block inputs. Figure 4.26 Signal diagram of the analog value comparator
1
3 2 3 1
6 1 5
4 A
1. actual value on >I1 2. set point value on >I2 3. hysteresis on >HY 4. switching contact (make contact) 5. offset for value >I1
Publication 1760-UM002B-EN-P - March 2005
B
C
Page 153
Wiring with Pico GFX-70
4-43
6. actual value plus offset • Range A: Compare >I1 > >I2 – The actual value >I1 increases. – The contact switches when the actual reaches the set point value. – The actual value changes and falls below the value of the set point value minus the hysteresis. – The contact goes to the normal position. • Range B: Compare >I1 < >I2 – The actual value drops. – The contact switches if the actual reaches the set point value. – The actual value changes and rises above the value of the set point value plus hysteresis. – The contact goes to the normal position. • Range C: Compare >I1 > >I2 with offset – This example behaves as described in Range A. The offset value is added to the actual value. • Comparison >I1 = >I2 The contact switches on: – If the set point is exceeded with the actual value rising. – If the set point is undershot with the actual value decreasing. The contact switches off: – If the hysteresis limit is exceeded with the actual value rising. – If the hysteresis limit is undershot with the actual value decreasing.
Arithmetic Function Block Pico GFX-70 provides 32 arithmetic function blocks AR01 to AR32. The arithmetic function block is used for arithmetic operations. All four basic arithmetic operations are supported: • add • subtract • multiply • divide
Publication 1760-UM002B-EN-P - March 2005
Page 154
4-44
Wiring with Pico GFX-70
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
Actual Value …QV> The actual value …QV> can be assigned the following operands: • Markers MD, MW, MB • Analog output QA01 An arithmetic function block is not wired in the circuit diagram. Parameter display and parameter set for arithmetic function blocks: AR32 ADD
+
>I1 >I2
AR32
Arithmetic function block number 32
ADD
Addition mode
+
Appears in the parameter display
>I1
First value
>I2
Second value
QV>
Result of the addition
QV>
Only constants can be modified in the parameter display of a function block.
Publication 1760-UM002B-EN-P - March 2005
Page 155
Wiring with Pico GFX-70
4-45
Arithmetic Function Block Modes Parameter
Function
ADD
Addition of summand value >I1 plus summand >I2
SUB
Subtraction of minuend >I1 minus subtrahend >I2
MUL
Multiplication of factor >I1 by factor >I2
DIV
Division of dividend >I1 by divisor >I2
Value Range The function block operates in the integer range from -2147483648 to +2147483647. Behavior when value range is exceeded
• The function block sets the switching contact AR..CY to status 1. • The function block retains the value of the last valid operation. The value is zero when it is first called.
Displaying the Parameter Set in the PARAMETERS Menu • + Access enabled • - Access disabled
Contacts AR01CY to AR32CY: CARRY overflow bit, value on function block output greater than or less than the value range. AR01ZE to AR32ZE: ZERO zero bit, value on function block output is equal to zero.
Coils The arithmetic function block does not have any coils.
Memory Requirement of the Arithmetic Function Block The arithmetic function block requires 40 bytes of memory plus 4 bytes per constant on the function block inputs.
Addition 42 + 1000 = 1042 2147483647 + 1 = last valid value of this arithmetic operation, due to overflow (CARRY) AR..CY = Status 1 Publication 1760-UM002B-EN-P - March 2005
Page 156
4-46
Wiring with Pico GFX-70
-2048 +1000 = -1048
Subtraction 1134 - 42 =1092 -2147483648 - 3 = last valid value of this arithmetic operation, due to overflow (CARRY) AR..CY = Status 1 -4096 - 1000 = -5096 -4096 - (-1000) = -3096
Multiplication 12 x 12 = 144 1000042 x 2401 = last valid value of this arithmetic operation, due to overflow (CARRY) Correct value = 2401100842 AR..CY = Status 1 -1000 x 10 = -10000
Division 1024: 256 = 4 1024: 35 = 29 (the places after the decimal point are omitted.) 1024: 0 = last valid value of this arithmetic operation, due to overflow (CARRY) (mathematically correct: “Infinite”) AR..CY = Status 1 -1000: 10 = -100 1000: -10 = -100 -1000: (-10) = 100 10: 100 = 0
Publication 1760-UM002B-EN-P - March 2005
Page 157
Wiring with Pico GFX-70
4-47
Data Block Comparator Pico GFX-70 provides 32 function blocks BC01 to BC32 for comparing values of two consistent marker ranges. The comparison is in byte format. The following marker types can be compared: • MB • MW • MD
The function block is enabled in the circuit diagram. Figure 4.27 Pico GFX-70 circuit diagram with enabling of data block comparator function block I 05--------------------------[ BC27EN BC27E1-| BC27E2-| BC27E3-|----------------------[ M 48 BC27EQ-BC27EN-----------------[ M 49
Parameter display and parameter set for a data block comparator: BC27
+
>I1 >I2
BC27
Data block comparator function block number 27
+
Appears in the parameter display
>I1
Start of comparison range 1
>I2
Start of comparison range 2
>NO
Number of elements to be compared in bytes per range. Value range 1 to + 383
>NO
Only constants can be modified in the parameter display of a function block. According to the operands at the inputs >I1 and >I2 the following operating modes are possible:
Inputs The function block inputs >I1, >I2 and >NO can have the following operands:
Publication 1760-UM002B-EN-P - March 2005
Page 158
4-48
Wiring with Pico GFX-70
• 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 Specifying the marker range without offset
If MB, MW or MD markers are specified at both >I1 and >I2 the number of the markers is the start of comparison range 1 or 2. Specifying the marker range with offset
If you wish to work with an offset, specify one of the following variables at function block input >I1 or >I2: • Constant, • Actual value ..QV of a function block, • Analog input IA.., • Analog output QA.. The value at the input is taken as the offset to marker MB01.
Displaying the Parameter Set in the PARAMETERS Menu • + Access enabled • -: Access disabled
Contacts BC01E1 to BC32E1: the number of comparison elements exceeds one of the comparison ranges. BC01E2 to BC32E2: the two comparison ranges overlap. BC01E3 to BC32E3: the specified offset of the comparison ranges is outside of the permissible range.
Publication 1760-UM002B-EN-P - March 2005
Page 159
Wiring with Pico GFX-70
4-49
BC01EQ to BC32EQ: output of the comparison result. Only valid if the BC..EN enable has been triggered. Status 0 = Comparison ranges not equal Status 1 = Comparison ranges equal.
Coils BC01EN to BC32EN: Enable coil of the data block comparator function block.
Memory Requirement of the Data Block Comparator Function Block The data block comparator function block requires 48 bytes of memory plus 4 bytes per constant on the function block inputs.
Function of the Data Block Comparator Function Block The data block comparator function block compares two consistent data blocks. The comparison is active if the BC..EN (enable) is triggered.
IMPORTANT
No data blocks are compared if an error is present.
The error outputs E1, E2 and E3 are evaluated regardless of the status of the enable. Example: Comparison of marker blocks, definition of marker ranges direct Two marker blocks are to be compared. Block 1 starts at MB10, Block 2 at MB40. Each block is 10 bytes long. Parameters of BC01 function block: Comparison range 1:>I1 MB10 Comparison range 2:>I2 MB40 Number of bytes: >NO 10
Publication 1760-UM002B-EN-P - March 2005
Page 160
4-50
Wiring with Pico GFX-70
Comparison range Value of marker 1 range 1 (decimal)
Comparison range Value of marker 2 range 2 (decimal)
MB10
39
MB40
39
MB11
56
MB41
56
MB12
88
MB42
88
MB13
57
MB43
57
MB14
123
MB44
123
MB15
55
MB45
55
MB16
134
MB46
134
MB17
49
MB47
49
MB18
194
MB48
194
MB19
213
MB49
213
The comparison result of the function block BC01 is: BC01EQ = 1, the data block ranges have the same content. Example: Comparison of marker blocks, definition of a marker range with offset Two marker blocks are to be compared. Block 1 starts at MB15, Block 2 at MB65. Each block is 4 bytes long. Parameters of BC01 function block: Comparison range 1:>I1 MB15 Comparison range 2:>I2 64 Number of bytes:>NO 4 Marker MB01:1
IMPORTANT
Publication 1760-UM002B-EN-P - March 2005
Comparison range 2: Constant 64: MB01 plus Offset: 1 + 64 = 65 →MB65.