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

The text of a manual · part 18 of 25

Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual: A - Results/Configuration Data Overview

Pages 142 to 145 of 202, from Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual

The original document is the PDF (723 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.

For the Allen-Bradley 5370-CVIM

Page 142

Appendix

A

Results/Configuration Data Overview Introduction

This appendix provides an overview of the word and bit addresses of data stored in memory if you are communicating with the CVIM through the REMOTE I/O, Backplane, or RS–232 port. Also provided is an explanation of how the CVIM stores fractional data.

Overview

Table A.1 provides an overview of shared memory. Detailed descriptions of each word and bit functions can be found in the other appendices:

• Appendix B • Appendix C • Appendix D, Discrete Results Bits, Numerical Results Data, Configuration Data Block Name

Backplane Word # Backplane Word # XSD13i*

Handshake

0

N/A

Reserved

1

N/A

Discrete I/O Outputs (Host Command Block)

2 to 9

O:20 to O:27

Reserved

10 to 15

N/A

Discrete I/O Inputs (TS1) (Tool Inspection Results)

16 to 23

I:20 to I:27

Results Block 1 (TS1)

24 to 87

0 to 63

Results Block 2 (TS1)

88 to 151

0 to 63

Results Block 3 (TS1)

152 to 215

0 to 63

Results Block 4 (TS1)

216 to 279

0 to 63

Discrete I/O Inputs (TS2) (Tool Inspection Results)

280 to 287

I:20 to I:27

Results Block 1 (TS2)

288 to 351

0 to 63

Results Block 2 (TS2)

352 to 415

0 to 63

Results Block 3 (TS2)

416 to 479

0 to 63

Results Block 4 (TS2)

480 to 543

0 to 63

Reserved

544 to 1022

0 to 63

Interrupt Control Word

1023

N/A

Configuration and Templates

Not Applicable

Not Applicable

A–1

Page 143

Appendix A Results/Configuration Data Overview

Fractional Notation

Inspections which produce results that are fractional are represented using two words (32 bits). The first 16 bits are the integer portion and the second 16 bits are the fractional portion:

WORD N

WORD N + 1

Bit: 31 30 . . . 17 16

15 14 . . . 1 0

Integer

Fraction

The integer portion of the value is interpreted as a standard 16 bit signed integer where each bit is equal to: Integer Bit Value 2(n) Where n is the bit number. Bits in the fractional portion of the value are interpreted as: Fractional Bit Value 2(n–16) Where n is the bit number. For example: bit 15 in the fractional portion of the value is equal to 1/2: 2(15–16) = 2(–1) = 1/2

A–2

Page 144

Appendix A Results/Configuration Data Overview

We have provided the following chart to assist you: Figure A.1 Fractional Notation

Bit # 15

14

13

12 11

10

9

8 7

6 5 4 3

2 1

0 1/65536 1/32768 1/16384 1/8192 1/4096 1/2048 1/1024 1/512 1/256 1/128 1/64 1/32 1/16 1/8 1/4 1/2

For example: 0000000000000011.0100000000000000 = 3.25 Note: For a sample PLC program which converts 16 point 16 values to floating point values, refer to Chapter 4.

32 Bit Integer Format

The CVIM stores some of the data as a 32 bit integer. The first byte contains bits 16 through 31 of the integer and the next byte contains bits 0 through 15 of the integer.

WORD N Bit: 31 30 . . . 17 16

WORD N + 1 5 14 . . . 1 0

For Example: 0000000000000010 0000000000000000 = 217 = 131,072

A–3

Page 145

Appendix A Results/Configuration Data Overview

Template Blocks

A–4

The template blocks (part of configuration memory) contain previously learned image templates, not on-line configuration parameters. Word 1, bits 8-15 (third byte sent using RS-232 port) of the first template block indicate the total number of template blocks in the configuration. You must always upload or download all of the template blocks as a unit. You cannot archive only a part of the template blocks. When uploading templates from the CVIM, the program should read the first template block and check word 1, bits 8-15 (third byte sent using RS-232) to determine the number of template blocks to follow. The number of blocks remaining is then 1 less than the total number of template blocks. When downloading templates to the CVIM, the program must send all template blocks. Bits 8-15 of word 1 determine the number of blocks to send.