The text of a manual · part 22 of 25
Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual: C - Numerical Results Data, pages 172 to 179
Pages 172 to 179 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 172
Appendix C Numerical Results Data
Table C.3 Numerical Results Data – Results Block 3 Word # Bit #
Toolset 1
Toolset 2
RS–232 and Remote I/O
182
446
30
0 – 15
Reference Window #2 Theta (Integer)
16 . 16 value. Refer to Appendix A. Only if 2 or 3 features are enabled.
183
447
31
0 – 15
Reference Window #2 (Fraction)
Only if 2 or 3 features are enabled.
184
448
32
0
Reference Window #2X1/Y1 Pass/Fail Bit
0 = Pass 1 = Fail
Feature #1.
184
448
32
1
Reference Window #2X2/Y2 Pass/Fail Bit
0 = Pass 1 = Fail
Feature #2.
184
448
32
2
Reference Window #2X3/Y3 Pass/Fail Bit
0 = Pass 1 = Fail
Feature #3.
184
448
32
3
Combination Pass/Fail Bit
0 = Pass 1 = Fail
0 if all enabled features pass.
184
448
32
4 – 15
Not Used
PI Backplane
Definition
Usage
Notes
185
449
33
0 – 15
Score Reference Window #2, Feature #1
186
450
34
0 – 15
Score Reference Window #2, Feature #2
187
451
35
0 – 15
Score Reference Window #2, Feature #3
188
452
36
0 – 15
Reference Window #3X1 Position
Feature #1 16 bit integer.
189
453
37
0 – 15
Reference Window #3Y1 Position
Feature #1 16 bit integer.
190
454
38
0 – 15
Reference Window #3X2 Position
Feature #2 16 bit integer.
191
455
39
0 – 15
Reference Window #3Y2 Position
Feature #2 16 bit integer.
192
456
40
0 – 15
Reference Window #3X3 Position
Feature #3 16 bit integer.
193
457
41
0 – 15
Reference Window #3Y3 Position
Feature #3 16 bit integer.
C–9
Page 173
Appendix C Numerical Results Data
Results Block #3 (cont’d) Table C.3 Numerical Results Data – Results Block 3 Word # Bit #
Toolset 1
Toolset 2
RS–232 and Remote I/O
194
458
42
0 – 15
Reference Window #3X – Center
Centroid of enabled feature. 16 bit integer.
195
459
43
0 – 15
Reference Window #3Y – Center
Centroid of enabled feature. 16 bit integer.
196
460
44
0 – 15
Reference Window #3 Theta (Integer)
16 . 16 value. Refer to Appendix A. Only if 2 or 3 Features are enabled.
197
461
45
0 – 15
Reference Window #3 (Fraction)
Only if 2 or 3 Features are enabled.
198
462
46
0
Reference Window X1/Y1 Pass/Fail Bit
0 = Pass 1 = Fail
Feature #1 16 bit integer.
198
462
46
1
Reference Window X2/Y2 Pass/Fail Bit
0 = Pass 1 = Fail
Feature #2 16 bit integer.
198
462
46
2
Reference Window X3/Y3 Pass/Fail Bit
0 = Pass 1 = Fail
Feature #3 16 bit integer.
198
462
46
3
Combination Pass/Fail Bit
0 = Pass 1 = Fail
0 if all enabled tools pass.
198
462
46
4 – 15
Not Used
199
463
47
0 – 15
Score Reference Window #3, Feature #1
200
464
48
0 – 15
Score Reference Window #3, Feature #2
201
465
49
0 – 15
Score Reference Window #3, Feature #3
202 – 209
466 – 473
50 – 57
0 – 15
Reserved
210
474
58
0 – 15
Reserved
211
475
59
0 – 15
Task Missed Triggers
212
476
60
0 – 15
Task Masters Faults – Most Significant Word
PI Backplane
C–10
Definition
Usage
Notes
16 bit integer. 32 bit integer. Increments if at least 1 tool fails.
Page 174
Appendix C Numerical Results Data
Table C.3 Numerical Results Data – Results Block 3 Word # Bit #
Toolset 1
Toolset 2
RS–232 and Remote I/O
213
477
61
0 – 15
Task Master Faults – Least Significant Word
214
478
62
0 – 15
Task Triggers – Most Significant Word
215
479
63
0 – 15
Task Triggers – Least Significant Word
PI Backplane
Definition
Usage
Notes
32 bit integer. Refer to Appendix A.
C–11
Page 175
Appendix C Numerical Results Data
Results Block #4
The fourth results block may be formatted and read through any of the communications ports. This block has user defined contents. This block may contain up to 64 words of data; see Table C.4. Table C.4 Numerical Results Data – Results Block #4
Word #
Bit #
Function
0
0 – 15
Block Transfer Signature
1
0 – 15
Status
2 – 61
0 – 15
User Defined Inspection Results Data
62 – 63
0 – 15
Task Triggers (32 Bits)
Notes The contents of this word will be 0 if all of the requested data fits in the 64 word results block. Otherwise, the contents will be non–0.
Each type of result requires a specific number of words. Use the following as a guideline when setting up a programmable block transfer. Number of Words Module Status
1 Word
X/Y Reference Line
2 Words
Window
2 Words
Format 16 Bit Integer
(Object & Pixel)
32 Bit Integer
(Luminance)
16 Point 16
(Template)
32 Bit Integer
(Gradient)
32 Bit Integer
Brightness Probe
2 Words
16 Point 16
Reference Window
14 Words
16 Bit Integer and 16 Point 16
Gage
2 Words (Linear Measure)
16 Point 16
(Edge, Pixel, Object)
32 Bit Integer
X, Y Position
16 Point 16
If you request more results than will fit into 62 words, the CVIM will truncate the data and set an error bit in word 1. Note: Refer to discrete output word description (word 3) on Page 4 – 18 for information on how to send a programmable block format request to the CVIM. C–12
Page 176
Appendix C Numerical Results Data
Note: Words 2 through 5 select tools for Toolset 1. Words 6 through 9 select tools for Toolset 2. Note: Word 0, block signature and word 1 are not used. Use Table C.5 to set the contents of the programmable results block and statistics block. Table C.5 Programmable Results/Statistics Block Configuration 1771 Node Adapter Results or Statistics Word # Toolset 1
Word # Toolset 2
Bit #
2
6
0
2
6
2
6
2
RS–232 Results or Statistics Function
Byte # Toolset 1
Byte # Toolset 2
Bit #
Module Status (NA for statistics)
0
8
0
1
Light Probe
0
8
1
2
Reference Line 1 (NA for statistics)
0
8
2
6
3
Reference Line 2 (NA for statistics)
0
8
3
2
6
4
Reference Line 3 (NA for statistics)
0
8
4
2
6
5
Reference Window 1
0
8
5
2
6
6
Reference Window 2
0
8
6
2
6
7
Reference Window 3
0
8
7
2
6
8
Window 1
1
9
0
2
6
9
Window 2
1
9
1
2
6
10
Window 3
1
9
2
2
6
11
Window 4
1
9
3
2
6
12
Window 5
1
9
4
2
6
13
Window 6
1
9
5
2
6
14
Window 7
1
9
6
2
6
15
Window 8
1
9
7
3
7
0
Window 9
2
10
0
3
7
1
Window 10
2
10
1
3
7
2
Window 11
2
10
2
3
7
3
Window 12
2
10
3
3
7
4
Window 13
2
10
4
3
7
5
Window 14
2
10
5
3
7
6
Window 15
2
10
6
3
7
7
Window 16
2
10
7
3
7
8
Window 17
3
11
0
3
7
9
Window 18
3
11
1
3
7
10
Window 19
3
11
2
3
7
11
Window 20
3
11
3 C–13
Page 177
Appendix C Numerical Results Data
Results Block #4 (cont’d) Table C.5 Programmable Results/Statistics Block Configuration 1771 Node Adapter Results or Statistics Word # Toolset 1
Word # Toolset 2
Bit #
3
7
12
3
7
3
C–14
RS–232 Results or Statistics Function
Byte # Toolset 1
Byte # Toolset 2
Bit #
Window 21
3
11
4
13
Window 22
3
11
5
7
14
Window 23
3
11
6
3
7
15
Window 24
3
11
7
4
8
0
Gage 1
4
12
0
4
8
1
Gage 2
4
12
1
4
8
2
Gage 3
4
12
2
4
8
3
Gage 4
4
12
3
4
8
4
Gage 5
4
12
4
4
8
5
Gage 6
5
13
5
4
8
6
Gage 7
5
13
6
4
8
7
Gage 8
5
13
7
4
8
8
Gage 9
5
13
0
4
8
9
Gage 10
5
13
1
4
8
10
Gage 11
5
13
2
4
8
11
Gage 12
5
13
3
4
8
12
Gage 13
5
13
4
4
8
13
Gage 14
5
13
5
4
8
14
Gage 15
5
13
6
4
8
15
Gage 16
5
13
7
5
9
0
Gage 17
6
14
0
5
9
1
Gage 18
6
14
1
5
9
2
Gage 19
6
14
2
5
9
3
Gage 20
6
14
3
5
9
4
Gage 21
6
14
4
5
9
5
Gage 22
6
14
5
5
9
6
Gage 23
6
14
6
5
9
7
Gage 24
6
14
7
5
9
8
Gage 25
7
15
0
5
9
9
Gage 26
7
15
1
5
9
10
Gage 27
7
15
2
Page 178
Appendix C Numerical Results Data
Table C.5 Programmable Results/Statistics Block Configuration 1771 Node Adapter Results or Statistics Word # Toolset 1
Word # Toolset 2
Bit #
5
9
11
5
9
5
RS–232 Results or Statistics Function
Byte # Toolset 1
Byte # Toolset 2
Bit #
Gage 28
7
15
3
12
Gage 29
7
15
4
9
13
Gage 30
7
15
5
5
9
14
Gage 31
7
15
6
5
9
15
Gage 32
7
15
7
C–15
Page 179
Appendix C Numerical Results Data
Statistics Block
The Statistics Block can be formatted and read through any of the communications ports. The Statistics Block has user defined contents. This block may contain up to 64 words of data; see Table C.6. Table C.6 Statistics Block
Word #
Bit #
Function
0
0 – 15
Block Transfer Signature
1 – 63
0 – 15
User Defined Statistics Data
Notes
Each type of statistic requires a specific number of words. Use the following as a guideline when setting up a programmable block transfer. Block Signature Number of Samples Minimum and Maximum Window (Object and Pixel) Window (Luminance) Widow (Template) Brightness Probe Reference Window Gage (Linear Measure) Gage (Edge, Pixel, Object)
= 1 Word = 1 Word (2 Byte Integer) = 4 Bytes 32 Bit Integer 16 Point 16 32 Bit Integer 16 Point 16 16 Bit Integer & 16 Point 16 16 Point 16 32 Bit Integer
Average
= 4 Bytes (16 Point 16 for fixed point values)
Standard Deviation
= 4 Bytes (16 Point 16)
Each tool statistic consists of 18 bytes with the exception of reference windows which contain 18 bytes for each feature or a total of 54 bytes. The statistics block is transmitted as two hexadecimal characters for each byte. The total number of bytes including the block signature should not exceed 128 bytes.
C–16