Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 21 of 46

Pico GFX-70 Controllers User Manual: 4 - Wiring with Pico GFX-70, pages 171 to 180

Pages 171 to 180 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 171

Wiring with Pico GFX-70

4-61

Example: Copy of marker blocks, definition of marker ranges direct The content of marker bytes 10 to 19 is to be transferred to marker bytes 20 to 29. Parameters of BT01 function block: Source range: >I1 MB10 Destination range: >I2 MB20 Number of bytes: >NO 10

Source range

Value of source marker range (decimal)

Destination range

Value of destination marker range (decimal)

MB10

42

MB20

42

MB11

27

MB21

27

MB12

179

MB22

179

MB13

205

MB23

205

MB14

253

MB24

253

MB15

17

MB25

17

MB16

4

MB26

4

MB17

47

MB27

47

MB18

11

MB28

11

MB19

193

MB29

193

After a rising edge from 0 to 1 at coil BT01T_ the content of MB10 to MB19 is copied to the marker bytes MB20 to MB29. Example: Copying of marker blocks, definition of a marker range with offset The content of marker bytes MB15 to MB18 is to be copied to marker bytes MB65 to MB68.

Publication 1760-UM002B-EN-P - March 2005

Page 172

4-62

Wiring with Pico GFX-70

Parameters of BT01 function block: Source range: >I1 MB15 Destination range: >I2 64 Number of bytes: >NO 4 Marker MB01: 1

IMPORTANT

Destination range: Constant 64: Marker MB01 plus Offset: 1 + 64 = 65 →MB65.

Source range

Value of source marker range (decimal)

Destination range

Value of destination marker range (decimal)

MB15

68

MB65

68

MB16

189

MB66

189

MB17

203

MB67

203

MB18

3

MB68

3

After a rising edge from 0 to 1 at coil BT01T_ the content of MB15 to MB18 is copied to the marker bytes MB65 to MB68. Example: Copying of marker blocks, definition of a marker range in a different format. The value of marker byte MD60 to MD62 is to be copied to MW40 to MW45. Parameters of BT01 function block: Source range: >I1 MD60 Destination range: >I2 MW40 Number of bytes: >NO 12

IMPORTANT

Publication 1760-UM002B-EN-P - March 2005

The transfer is in byte format. 12 bytes are to be copied. The range MD60 to MD62 is 12 bytes. This is copied to the range MW40 to MW45.

Page 173

Wiring with Pico GFX-70

Comparison range Value of marker range 1 1 (decimal/binary)

Comparison range 2

Value of marker range 2 (decimal/binary)

MD60

866143319/ 0011001110100000 0100110001010111

MW40 (LSW)

19543/0011001110100000 0100110001010111

MD60

866143319/ 0011001110100000 0100110001010111

MW41 (MSW)

13216/0011001110100000 0100110001010111

MD61

173304101/0000101001010100 0110100100100101

MW42 (LSW)

26917/0000101001010100 0110100100100101

MD61

173304101/0000101001010100 0110100100100101

MB43 (MSW)

2644/0000101001010100 0110100100100101

MD62

982644150/ 0011101010010001 1111010110110110

MB44 (LSW)

62902/0011101010010001 1111010110110110

MD62

982644150/0011101010010001 1111010110110110

MB45 (MSW)

14993/0011101010010001 1111010110110110

4-63

After a rising edge from 0 to 1 at coil BT01T_ the values are copied to the appropriate range. Example: Copying of marker bytes, destination range violation error. The value of marker bytes MB81 to MB96 is to be transferred to MD93, MD94, MD95 and MD96. The length is 16 bytes. Parameters of BT01 function block: Source range: >I1 MB81 Destination range: >I2 MD93 Number of bytes: >NO 18

IMPORTANT

The transfer is in byte format. MD93 to MD96 is 16 bytes. 18 bytes were incorrectly defined as length.

The error message “Number of elements exceeds the destination range” is output. BT01E1 is 1. Example Comparison of marker blocks, range overlap error. 12 bytes are to be copied starting from MW60. MW64 is specified as destination address. Parameters of BT01 function block: Comparison range 1:>I1 MW60

Publication 1760-UM002B-EN-P - March 2005

Page 174

4-64

Wiring with Pico GFX-70

Comparison range 2:>I2 MW64 Number of bytes: >NO 12

IMPORTANT

The copy operation is in byte format. MW60 to MW64 is 8 bytes. The number of bytes is 12 bytes.

The error message “Both ranges overlap” is output. BC01E2 is 1. Example: Copying of marker bytes, invalid offset error. The value of marker word MW40 is to be copied to MW54 and subsequent marker words. The block length is specified by the value of the counter C 01QV. Parameters of BT01 function block: Comparison range 1:>I1 MW40 Comparison range 2:>I2 MW54 Number of bytes: >NO C 01QV

IMPORTANT

The value of C 01QV is 10042. This value is too big. The value at >NO can be between 1 and +383.

The message "The specified offset of the destination range is outside of the permissible range" is output. BT01E3 is 1.

Boolean Operations Pico GFX-70 provides 32 function blocks from BV01 to BV32 for Boolean operations with values. The following possibilities are provided by the Boolean sequence function block: • Masking out of particular bits from values, • Bit pattern recognition, • Bit pattern modification. A Boolean sequence function block is not wired in the circuit diagram. Publication 1760-UM002B-EN-P - March 2005

Page 175

Wiring with Pico GFX-70

4-65

Parameter display and parameter set for Boolean sequence function block: BV27 AND

+

>I1 >I2

BV27

Boolean sequence function block number 27

AND

AND operation mode

+

Appears in the parameter display

>I1

First value

>I2

Second value

QV>

Result of the sequence

QV>

Only constants can be modified in the parameter display of a function block.

Operating Modes of the Boolean Sequence Function Block

Parameter

Function

AND

AND operation

OR

OR operation

XOR

Exclusive OR operation

NOT

Negation of the Boolean value of >I1

Publication 1760-UM002B-EN-P - March 2005

Page 176

4-66

Wiring with Pico GFX-70

Value Range 32-bit signed value

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

Displaying the Parameter Set in the PARAMETERS Menu • + Access enabled • -: Access disabled

Contacts BV01ZE to BV32ZE: ZERO zero bit, value on output function block is equal to zero

Coils The Boolean sequence function block does not have coils.

Memory Requirement for the Boolean Sequence Function Block The Boolean sequence function block requires 40 bytes of memory plus 4 bytes per constant on the function block inputs.

Publication 1760-UM002B-EN-P - March 2005

Page 177

Wiring with Pico GFX-70

4-67

Function of Boolean Sequence Function Block The function block creates the sequence depending on the operating mode.

IMPORTANT

If you sequence a negative value, e.g.: -10dec, the processor unit will form the two's complement of the amount. Example: -10dec = 10000000000000000000000000001010bin Two's complement = 11111111111111111111111111110110bin = FFFFFFF6hex Bit 32 is the signed bit and remains as 1.

AND Boolean Sequence

Value >I1:

13219dec = 0011001110100011bin

Value >I2:

57193dec = 1101111101101001bin

Result QV>:

4897dec = 0001001100100001bin

OR Boolean Sequence

Value >I1:

13219dec = 0011001110100011bin

Value >I2:

57193dec = 1101111101101001bin

Result QV>:

65515dec = 1111111111101011bin

XOR Boolean Sequence

Value >I1:

13219dec = 0011001110100011bin

Value >I2:

57193dec = 1101111101101001bin

Result QV>:

60618dec = 1110110011001010bin

NOT Boolean Sequence

Value >I1:

13219dec = 00000000000000000011001110100011bin

Publication 1760-UM002B-EN-P - March 2005

Page 178

4-68

Wiring with Pico GFX-70

Value >I2:

Omitted

Result QV>:

-13220dec = 11111111111111111100110001011100bin

The NOT sequence operates according to the following rules: >I1, positive value Negate value of >I1 and subtract 1: -|>I1| - 1 = >I2 >I1, Negative value

Value of >I1 and subtract 1: |>I1| - 1 = >I2

Counters Pico GFX-70 provides 32 up/down counters from C 01 to C 32. The counter relays allow you to count events. You can enter upper and lower threshold values as comparison values. The contacts will switch according to the actual value. To specify a start value, for example, counting from the value 1200, this can be implemented using a “C ..” counter. The “C..” counters are cycle time dependent.

Wiring of a Counter You integrate a counter into your circuit in the form of a contact and coil. The counter relay has different coils and contacts.

IMPORTANT

Publication 1760-UM002B-EN-P - March 2005

To prevent unpredictable switching states, use each coil of a relay once only in the circuit diagram.

Page 179

Wiring with Pico GFX-70

4-69

Figure 4.29 Pico GFX-70 circuit diagram with counter relay I 05---------------------------[ C 20C_ I 06---------------------------[ C 20RE I 07---------------------------[ C 20D_ I 08---------------------------[ C 20SE C 20OF-------------------------[ Q 01 C 20FB-------------------------[ Q 02 C 20ZE-------------------------[ Q 03 C 20CY-------------------------S M 42

Parameter Display and Parameter Set for the Counter Relay C 20

+

>SH >SL >SV QV>

C 20 Counter relay function block number 20 +

Appears in the parameter display

>SH

Upper set point

>SL

Lower set point

>SV

Defined actual value (Preset)

QV>

Actual value in RUN mode

In the parameter display of a counter relay you change set point values and/or the preset value and the enabling of the parameter display.

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 C .. CY to the status 1 and retains the value of the last valid operation.

IMPORTANT

The counter C counts every rising edge on the counter input. If the value range is exceeded, the switching contact C ..CY switches to status 1 for one cycle per rising edge detected.

Publication 1760-UM002B-EN-P - March 2005

Page 180

4-70

Wiring with Pico GFX-70

Inputs The function block inputs >SH, >SL and >SV 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

Displaying the Parameter Set in the PARAMETERS Menu • + Access enabled • - Access disabled

Contacts • C 010F to C 320F: Actual value ≥ upper set point • C 01FB to C 32FB: Actual value ≤Lower set point value • C 01ZE to C 32ZE: Actual value = zero • C 01CY to C 32CY: Value range exceeded

Coils • C 01C_ to C 32C_: counter coils, count with rising edge • C 01D_ to C 32D_: count direction definition, status 0 = count upwards, status 1 = count downwards • C 01RE to C 32RE: Reset actual value to zero • C 01SE to C 32SE: accept defined actual value with rising edge.

Memory Requirement of the Counter Relay The counter relay function block requires 52 bytes of memory plus 4 bytes per constant on the function block inputs. Publication 1760-UM002B-EN-P - March 2005