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

The text of a manual · part 20 of 46

Pico GFX-70 Controllers User Manual: 4 - Wiring with Pico GFX-70, pages 161 to 170

Pages 161 to 170 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 161

Wiring with Pico GFX-70

4-51

Comparison range Value of marker 1 range 1 (decimal)

Comparison range Value of marker 2 range 2 (decimal)

MB15

45

MB65

45

MB16

62

MB66

62

MB17

102

MB67

102

MB18

65

MB68

57

The comparison result of the function block BC01 is: BC01EQ = 0, the data block ranges do not have the same content. MB18 are MB68 not identical. Example: Comparison of marker blocks, definition of a marker range in a different format. Two marker blocks are to be compared. Block 1 starts at MB60, Block 2 at MD80. Each block is 6 bytes long. Parameters of BC01 function block: Comparison range 1:>I1 MB60 Comparison range 2:>I2 MD80 Number of bytes: >NO 6

IMPORTANT

The comparison is in byte format. MD80 has 4 bytes. Therefore the first two bytes of MD81 are also compared.

Publication 1760-UM002B-EN-P - March 2005

Page 162

4-52

Wiring with Pico GFX-70

Comparison range 1

Value of marker range 1 (decimal/binary)

Comparison range 2

Value of marker range 2 (decimal/binary)

MB60

45/

MD80 (Byte 1, LSB)

1097219629/

00101101 MB61

62/

01000001011001100011111000101101 MD80 (Byte 2)

1097219629/

00111110 MB62

102/

01000001011001100011111000101101 MD80 (Byte 3)

1097219629/

01100110 MB63

65/

01000001011001100011111000101101 MD80 (Byte 4, MSB)

01000001 MB64

173/

01000001011001100011111000101101 MD81 (Byte 1, LSB)

10101101 MB65

59/

1097219629/

15277/ 0011101110101101

MD81 (Byte 2)

00111011

15277/ 0000100010101101

The comparison result of the function block BC01 is: BC01EQ = 0, the data block ranges do not have the same content. MB65 and MD81 (Byte 2) are not identical. Example: Comparison of marker blocks, range violation error. Two marker blocks are to be compared. Block 1 starts at MD60, Block 2 at MD90. Each block is 30 bytes long. Parameters of BC01 function block: Comparison range 1:>I1 MD60 Comparison range 2:>I2 MD90 Number of bytes: >NO 30

IMPORTANT

Publication 1760-UM002B-EN-P - March 2005

The comparison is in byte format. MD90 to MD96 is 28 bytes. The number of bytes is 30 bytes.

Page 163

Wiring with Pico GFX-70

4-53

The error message “Number of comparison elements exceeds one of the comparison ranges” is output. BC01E1 is 1. Example Comparison of marker blocks, range overlap error. Two marker blocks are to be compared. Block 1 starts at MW60, Block 2 at MW64. Each block is 12 bytes long. Parameters of BC01 function block: Comparison range 1:>I1 MW60 Comparison range 2:>I2 MW64 Number of bytes: >NO 12

IMPORTANT

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

The error message “Comparison ranges overlap” is output. BC01E2 is 1. Example: Comparison of marker blocks, invalid offset error. Two marker blocks are to be compared. Block 1 starts at MW40, Block 2 at MW54. The block length is specified by the value of the counter C 01QV. Parameters of BC01 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 1024. This value is too big. The value at >NO can be between 1 and +383.

The message "The specified offset of the comparison ranges is outside of the permissible range" is output. BC01E3 is 1.

Publication 1760-UM002B-EN-P - March 2005

Page 164

4-54

Wiring with Pico GFX-70

Data Block Transfer Pico GFX-70 is provided with 32 function blocks BT01 to BT32 for transferring values from one marker range (Copy data). The marker ranges can be overwritten with a particular value (data initial is at ion). The following marker types can be transferred and overwritten: • MB, • MW, • MD. The function block is enabled in the circuit diagram. Figure 4.28 Pico GFX-70 circuit diagram with enabling of transfer data block function block I 05--------------------------[ BT07T_ BT07E1-| BT07E2-| BT07E3-|-----------------------[ M 42

Parameter display and parameter set for a data block transfer function block: BT07 INI

+

>I1 >I2

BT07

Data block transfer function block number 07

INI

INI mode, initialize marker ranges

+

Appears in the parameter display

>I1

Source range start

>I2

Destination range start

>NO

Number of elements to be written in bytes per range. Value range 1 to + 383

>NO

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

Publication 1760-UM002B-EN-P - March 2005

Page 165

Wiring with Pico GFX-70

4-55

Operating Modes of the Transfer Data Block Function Block

Parameter

Function

INI

Initialize marker ranges

CPY

Copy marker ranges

Inputs The function block inputs >I1, >I2 and >NO 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 Specifying the marker range without offset

If MB, MW or MD markers are specified both at >I1 and at >I2, the number of markers defines the source or destination range. Specifying a 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

Publication 1760-UM002B-EN-P - March 2005

Page 166

4-56

Wiring with Pico GFX-70

Contacts BT01E1 to BT32E1: the number of marker bytes exceeds the source or destination range. BT01E2 to BT32E2: source and destination range overlap. Only valid for CPY mode, copy marker ranges. BT01E3 to BT32E3: the specified offset is invalid.

Coils BT01T_ to BT32T_: trigger coil of the transfer data block function block.

Memory Requirement of the Transfer Data Block Function Block The transfer data block function block requires 48 bytes of memory plus 4 bytes per constant at the function block inputs.

Function of the Transfer Data Block Function Block The transfer data block comparator function block has two operating modes.

IMPORTANT

No data blocks are initialized or copied if an error occurs.

Anti-aliasing INI marker ranges

There is one source range and one destination range. The source range is specified at >I1. The length of the source range is one byte. The destination range is specified at >I2. The length of the destination range is specified by the number of bytes at the >NO input. The content of the source range is transferred to the marker bytes in the destination range. The function block executes the transfer if there is a rising edge from 0 to 1 at the BT..T_ (Trigger) coil. The error outputs E1, E2 and E3 are evaluated regardless of the status of the trigger.

Publication 1760-UM002B-EN-P - March 2005

Page 167

Wiring with Pico GFX-70

4-57

Example: Initializing marker blocks, specifying marker ranges directly The value of marker byte 10 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

123

MB20

123

MB21

123

MB22

123

MB23

123

MB24

123

MB25

123

MB26

123

MB27

123

MB28

123

MB29

123

After a rising edge from 0 to 1 at coil BT01T_ the value 123 is present in the marker bytes MB20 to MB29. Example: Initial is at ion of marker blocks, definition of a range with offset The content of marker byte MB15 is to be transferred to marker bytes MB65 to MB68.

Publication 1760-UM002B-EN-P - March 2005

Page 168

4-58

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

45

MB65

45

MB66

45

MB67

45

MB68

45

After a rising edge from 0 to 1 at coil BT01T_ the value 45 is present in the marker bytes MB65 to MB68. Example: Initial is at ion of marker blocks, definition of a range in a different format. The value of marker byte MB60 is to be transferred to MD80 and MD81. Parameters of BT01 function block: Source range: >I1 MB60 Destination range: >I2 MD80 Number of bytes:> >NO 8

IMPORTANT

Publication 1760-UM002B-EN-P - March 2005

The transfer is in byte format. MD80 has 4 bytes and MD81 has 4 bytes, which means that <NO has the value 8.

Page 169

Wiring with Pico GFX-70

Comparison range 1

Value of marker range 1 (decimal/binary)

Comparison range 2

Value of marker range 2 (decimal/binary)

MB60

45/

MD80 (Byte 1, LSB)

757935405/ 00101101001011010010110100101101

00101101

MD80 (Byte 2)

757935405/ 00101101001011010010110100101101

MD80 (Byte 3)

757935405/ 00101101001011010010110100101101

MD80 (Byte 4, MSB)

757935405/ 00101101001011010010110100101101

MD81 (Byte 1, LSB)

757935405/ 00101101001011010010110100101101

MD81 (Byte 2)

757935405/ 00101101001011010010110100101101

MD81 (Byte 3)

757935405/ 00101100010110110010110100101101

MD81 (Byte 4, MSB)

757935405/ 00101101001011010010110100101101

4-59

After a rising edge from 0 to 1 at coil BT01T_ the value 757935405 is present in the marker double words MD80 and MD81. Example: Transfer of marker byte, range violation error. The value of marker byte MB96 is to be transferred to MD93, MD94, MD95 and MD96. The length is 16 bytes. Parameters of BT01 function block: Source range: >I1 MD96 Destination range: >I2 MD93 Number of bytes: >NO 18

Publication 1760-UM002B-EN-P - March 2005

Page 170

4-60

Wiring with Pico GFX-70

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: Transfer of marker bytes, invalid offset error. The value of marker byte MB40 is to be transferred to MW54 and subsequent marker words. The block length is specified by the value of the counter C 01QV. Parameters of BC01 function block: Comparison range 1:>I1 MB40 Comparison range 2:>I2 MW54 Number of bytes: >NO C 01QV

IMPORTANT

The value of C 01QV is 788. 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. CPY mode, copy marker ranges

There is one source range and one destination range. The source range is specified at >I1. The destination range is specified at >I2. The length of the source and destination range is specified by the number of bytes at the >NO input. The content of the source range is copied to the marker bytes in the destination range. The function block executes the copy operation if there is a rising edge from 0 to 1 at the BT..T_ (Trigger) coil. The error outputs E1, E2 and E3 are evaluated regardless of the status of the trigger.

Publication 1760-UM002B-EN-P - March 2005