The text of a manual · part 19 of 25
Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual: B - Discrete IIO Results Bits (Host Input & Output Bits), pages 146 to 154
Pages 146 to 154 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 146
Appendix
A–B
B
Discrete IIO Results Bits (Host Input & Output Bits) Introduction
This appendix lists the function of both the discrete bit inputs and outputs. These bits can be accessed through the Remote I/O port and Pyramid Integrator backplane. You cannot manipulate these bits through the RS–232 ports (A or B) but you can perform many of their functions.
Discrete Bit Inputs
With each inspection that the CVIM module performs, individual bits are set. There are 128 bits that can be set as inputs to a host device. These bits (part of the inspection results) indicate:
• Configuration faults. • Module Busy flag. • Missed Trigger flags. • Results Valid flags. • Inspection Tool Pass/Fail/Warning flags Note: If you are using the Remote I/O link, the bits for inspection tool pass/warning/fail apply to either toolset 1 or toolset 2. You select which toolset by setting bits 4 and 5 in word 3 of the discrete output bits. Note: For your convenience, we have provided bit numbers for both a PLC (octal) and Pyramid Integrator (decimal). Note to PLC–2 Users: When you use any PLC–2 family processor with the CVIM node adapter, you should understand the operation of the PLC Block Transfer Done bits for Read and Write instructions. PLC–2 family processors use the input image table for these bits all other PLCs can specify integer files for this function. This means that a PLC–2 user must use proper programming techniques to avoid confusion between the following bits:
• CVIM discrete I/O input word 0, bit 6 (data valid toolset #1) and bit 7 (data valid toolset #2).
• PLC–2 family input image table word 0, bit 6 (BTW done bit) and bit 7 (BTR done bit). Table B.1 lists the discrete bit inputs.
B–1
Page 147
Appendix B Discrete Bit Results
Discrete Bit Inputs (cont’d)
Table B.1 Discrete Bit Inputs
Word#
PI Backplane
Toolset 1
Toolset 2
16
280
Bit#
RS–232 and Remote I/O
0
D E C I M A L
O C T A L
PI
PLC
0
0
Definition
Usage
Notes
Configuration error bit is set after any invalid configuration or template block write to the CVIM. This flag is also set after validation errors.
Not Used
16
280
0
1
1
Configuration Error
0 = No Error 1 = Error
16
280
0
2
2
Mastership Flag
0 = Not Master 1 = Master
The device which reads this bit as 1 is the host. Not applicable for RS–232 communications.
16
280
0
3
3
Module Busy
0 = Not Busy 1 = Busy
Module Busy bit is set during the SETUP mode and during a download (sending configurations to the CVIM or reading/writing templates).
16
280
0
4
4
Trigger 1 NAK
0 = OK 1 = Trigger 1 Missed
16
280
0
5
5
Trigger 2 NAK
0 = OK 1 = Trigger 2 Missed
16
280
0
6
6
Toolset 1 Data Valid
0 = Not Valid 1 = Results Valid
Data Valid bit is reset when a user enters the SETUP mode. Refer to Chapter 3.
16
280
0
7
7
Toolset 2 Data Valid
0 = Not Valid 1 = Results Valid
Data Valid bit is reset when a user enters the SETUP mode. Refer to Chapter 3.
16
280
0
8
10
Reference Line 1 Flag
0 = Pass 1 = Failed
16
280
0
9
11
Reference Line 2 Flag
0 = Pass 1 = Failed
16
280
0
10
12
Reference Line 3 Flag
0 = Pass 1 = Failed
16
280
0
11
13
Reference Window 1 Flag
0 = Pass 1 = Failed
16
280
0
12
14
Reference Window 2 Flag
0 = Pass 1 = Failed
16
280
0
13
15
Reference Window 3 Flag
0 = Pass 1 = Failed
16
280
0
14
16
Light Probe Flag
0 = Pass 1 = Failed
16
280
0
15
17
Master Fault
0 = No Fault 1 = Fault
17
281
1
0
0
Window 1 Warning Flag
0 = Pass 1 = Failed
B–2
Master fault bit is set if any tool fails an inspection.
Page 148
Appendix B Discrete Bit Results
Table B.1 Discrete Bit Inputs Word#
PI Backplane
Bit#
RS–232 and Remote I/O
D E C I M A L
O C T A L
PI
PLC
Definition
Usage
Toolset 1
Toolset 2
17
281
1
1
1
Window 1 Fault Flag
0 = Pass 1 = Fail
17
281
1
2
2
Widow 2 Warning Flag
0 = Pass 1 = Fail
17
281
1
3
3
Window 2 Fault Flag
0 = Pass 1 = Fail
17
281
1
4
4
Window 3 Warning Flag
0 = Pass 1 = Fail
17
281
1
5
5
Window 3 Fault Flag
0 = Pass 1 = Fail
17
281
1
6
6
Window 4 Warning Flag
0 = Pass 1 = Fail
17
281
1
7
7
Window 4 Fault Flag
0 = Pass 1 = Fail
17
281
1
8
10
Window 5 Warning Flag
0 = Pass 1 = Fail
17
281
1
9
11
Window 5 Fault Flag
0 = Pass 1 = Failed
17
281
1
10
12
Window 6 Warning Flag
0 = Pass 1 = Failed
17
281
1
11
13
Window 6 Fault Flag
0 = Pass 1 = Failed
17
281
1
12
14
Window 7 Warning Flag
0 = Pass 1 = Failed
17
281
1
13
15
Window 7 Fault Flag
0 = Pass 1 = Failed
17
281
1
14
16
Window 8 Warning Flag
0 = Pass 1 = Failed
17
281
1
15
17
Window 8 Fault Flag
0 = Pass 1 = Failed
18
282
2
0
0
Window 9 Warning Flag
0 = Pass 1 = Failed
18
282
2
1
1
Window 9 Fault Flag
0 = Pass 1 = Failed
18
282
2
2
2
Window 10 Warning Flag
0 = Pass 1 = Failed
18
282
2
3
3
Window 10 Fault Flag
0 = Pass 1 = Failed
Notes
B–3
Page 149
Appendix B Discrete Bit Results
Discrete Bit Inputs (cont’d)
Table B.1 Discrete Bit Inputs
Word#
PI Backplane
Bit#
RS–232 and Remote I/O
D E C I M A L
O C T A L
PI
PLC
Definition
Usage
Toolset 1
Toolset 2
18
282
2
4
4
Widow 11 Warning Flag
0 = Pass 1 = Fail
18
282
2
5
5
Window 11 Fault Flag
0 = Pass 1 = Fail
18
282
2
6
6
Window 12 Warning Flag
0 = Pass 1 = Fail
18
282
2
7
7
Window 12 Fault Flag
0 = Pass 1 = Fail
18
282
2
8
10
Window 13 Warning Flag
0 = Pass 1 = Fail
18
282
2
9
11
Window 13 Fault Flag
0 = Pass 1 = Fail
18
282
2
10
12
Window 14 Warning Flag
0 = Pass 1 = Fail
18
282
2
11
13
Window 14 Fault Flag
0 = Pass 1 = Failed
18
282
2
12
14
Window 15 Warning Flag
0 = Pass 1 = Failed
18
282
2
13
15
Window 15 Fault Flag
0 = Pass 1 = Failed
18
282
2
14
16
Window 16 Warning Flag
0 = Pass 1 = Failed
18
282
2
15
17
Window 16 Fault Flag
0 = Pass 1 = Failed
19
283
3
0
0
Window 17 Warning Flag
0 = Pass 1 = Failed
19
283
3
1
1
Window 17 Fault Flag
0 = Pass 1 = Failed
19
283
3
2
2
Window 18 Warning Flag
0 = Pass 1 = Failed
19
283
3
3
3
Window 18 Fault Flag
0 = Pass 1 = Failed
19
283
3
4
4
Window 19 Warning Flag
0 = Pass 1 = Failed
19
283
3
5
5
Window 19 Fault Flag
0 = Pass 1 = Failed
19
283
3
6
6
Window 20 Warning Flag
0 = Pass 1 = Failed
B–4
Notes
Page 150
Appendix B Discrete Bit Results
Table B.1 Discrete Bit Inputs Word#
PI Backplane
Bit#
RS–232 and Remote I/O
D E C I M A L
O C T A L
PI
PLC
Definition
Usage
Toolset 1
Toolset 2
19
283
3
7
7
Widow 20 Fault Flag
0 = Pass 1 = Fail
19
283
3
8
10
Window 21 Warning Flag
0 = Pass 1 = Fail
19
283
3
9
11
Window 21 Fault Flag
0 = Pass 1 = Fail
19
283
3
10
12
Window 22 Warning Flag
0 = Pass 1 = Fail
19
283
3
11
13
Window 22 Fault Flag
0 = Pass 1 = Fail
19
283
3
12
14
Window 23 Warning Flag
0 = Pass 1 = Fail
19
283
3
13
15
Window 23 Fault Flag
0 = Pass 1 = Fail
19
283
3
14
16
Window 24 Warning Flag
0 = Pass 1 = Failed
19
283
3
15
17
Window 24 Fault Flag
0 = Pass 1 = Failed
20
284
4
0
0
Gage 1 Warning Flag
0 = Pass 1 = Failed
20
284
4
1
1
Gage 1 Fault Flag
0 = Pass 1 = Failed
20
284
4
2
2
Gage 2 Warning Flag
0 = Pass 1 = Failed
20
284
4
3
3
Gage 2 Fault Flag
0 = Pass 1 = Failed
20
284
4
4
4
Gage 3 Warning Flag
0 = Pass 1 = Failed
20
284
4
5
5
Gage 3 Fault Flag
0 = Pass 1 = Failed
20
284
4
6
6
Gage 4 Warning Flag
0 = Pass 1 = Failed
20
284
4
7
7
Gage 4 Fault Flag
0 = Pass 1 = Failed
20
284
4
8
10
Gage 5 Warning Flag
0 = Pass 1 = Failed
20
284
4
9
11
Gage 5 Fault Flag
0 = Pass 1 = Failed
Notes
B–5
Page 151
Appendix B Discrete Bit Results
Discrete Bit Inputs (cont’d)
Table B.1 Discrete Bit Inputs
Word#
PI Backplane
Bit#
RS–232 and Remote I/O
D E C I M A L
O C T A L
PI
PLC
Definition
Usage
Toolset 1
Toolset 2
20
284
4
10
12
Gage 6 Warning Flag
0 = Pass 1 = Fail
20
284
4
11
13
Gage 6 Fault Flag
0 = Pass 1 = Fail
20
284
4
12
14
Gage 7 Warning Flag
0 = Pass 1 = Fail
20
284
4
13
15
Gage 7 Fault Flag
0 = Pass 1 = Fail
20
284
4
14
16
Gage 8 Warning Flag
0 = Pass 1 = Fail
20
284
4
15
17
Gage 8 Fault Flag
0 = Pass 1 = Fail
21
285
5
0
0
Gage 9 Warning Flag
0 = Pass 1 = Failed
21
285
5
1
1
Gage 9 Fault Flag
0 = Pass 1 = Failed
21
285
5
2
2
Gage 10 Warning Flag
0 = Pass 1 = Failed
21
285
5
3
3
Gage 10 Fault Flag
0 = Pass 1 = Failed
21
285
5
4
4
Gage 11 Warning Flag
0 = Pass 1 = Failed
21
285
5
5
5
Gage 11 Fault Flag
0 = Pass 1 = Failed
21
285
5
6
6
Gage 12 Warning Flag
0 = Pass 1 = Failed
21
285
5
7
7
Gage 12 Fault Flag
0 = Pass 1 = Failed
21
285
5
8
10
Gage 13 Warning Flag
0 = Pass 1 = Failed
21
285
5
9
11
Gage 13 Fault Flag
0 = Pass 1 = Failed
21
285
5
10
12
Gage 14 Warning Flag
0 = Pass 1 = Failed
21
285
5
11
13
Gage 14 Fault Flag
0 = Pass 1 = Failed
21
285
5
12
14
Gage 15 Warning Flag
0 = Pass 1 = Failed
B–6
Notes
Page 152
Appendix B Discrete Bit Results
Table B.1 Discrete Bit Inputs Word#
PI Backplane
Bit#
RS–232 and Remote I/O
D E C I M A L
O C T A L
PI
PLC
Definition
Usage
Toolset 1
Toolset 2
21
285
5
13
15
Gage 15 Fault Flag
0 = Pass 1 = Fail
21
285
5
14
16
Gage 16 Warning Flag
0 = Pass 1 = Fail
21
285
5
15
17
Gage 16 Fault Flag
0 = Pass 1 = Fail
22
286
6
0
0
Gage 17 Warning Flag
0 = Pass 1 = Fail
22
286
6
1
1
Gage 17 Fault Flag
0 = Pass 1 = Fail
22
286
6
2
2
Gage 18 Warning Flag
0 = Pass 1 = Failed
22
286
6
2
2
Gage 18 Fault Flag
0 = Pass 1 = Failed
22
286
6
3
3
Gage 19 Warning Flag
0 = Pass 1 = Failed
22
286
6
4
4
Gage 19 Fault Flag
0 = Pass 1 = Failed
22
286
6
5
5
Gage 20 Warning Flag
0 = Pass 1 = Failed
22
286
6
7
7
Gage 20 Fault Flag
0 = Pass 1 = Failed
22
286
6
8
10
Gage 21 Warning Flag
0 = Pass 1 = Failed
22
286
6
9
11
Gage 21 Fault Flag
0 = Pass 1 = Failed
22
286
6
10
12
Gage 22 Warning Flag
0 = Pass 1 = Failed
22
286
6
11
13
Gage 22 Fault Flag
0 = Pass 1 = Failed
22
286
6
12
14
Gage 23 Warning Flag
0 = Pass 1 = Failed
22
286
6
13
15
Gage 23 Fault Flag
0 = Pass 1 = Failed
22
286
6
14
16
Gage 24 Warning Flag
0 = Pass 1 = Failed
22
286
6
15
17
Gage 24 Fault Flag
0 = Pass 1 = Failed
Notes
B–7
Page 153
Appendix B Discrete Bit Results
Discrete Bit Inputs (cont’d)
Table B.1 Discrete Bit Inputs
Word#
PI Backplane
Bit#
RS–232 and Remote I/O
D E C I M A L
O C T A L
PI
PLC
Definition
Usage
Toolset 1
Toolset 2
23
287
7
0
0
Gage 25 Warning Flag
0 = Pass 1 = Fail
23
287
7
1
1
Gage 25 Fault Flag
0 = Pass 1 = Fail
23
287
7
2
2
Gage 26 Warning Flag
0 = Pass 1 = Fail
23
287
7
3
3
Gage 26 Fault Flag
0 = Pass 1 = Fail
23
287
7
4
4
Gage 27 Warning Flag
0 = Pass 1 = Failed
23
287
7
5
5
Gage 27 Fault Flag
0 = Pass 1 = Failed
23
287
7
6
6
Gage 28 Warning Flag
0 = Pass 1 = Failed
23
287
7
7
7
Gage 28 Fault Flag
0 = Pass 1 = Failed
23
287
7
8
10
Gage 29 Warning Flag
0 = Pass 1 = Failed
23
287
7
9
11
Gage 29 Fault Flag
0 = Pass 1 = Failed
23
287
7
10
12
Gage 30 Warning Flag
0 = Pass 1 = Failed
23
287
7
11
13
Gage 30 Fault Flag
0 = Pass 1 = Failed
23
287
7
12
14
Gage 31 Warning Flag
0 = Pass 1 = Failed
23
287
7
13
15
Gage 31 Fault Flag
0 = Pass 1 = Failed
23
287
7
14
16
Gage 32 Warning Flag
0 = Pass 1 = Failed
23
287
7
15
17
Gage 32 Fault Flag
0 = Pass 1 = Failed
B–8
Notes
Page 154
Appendix B Discrete Bit Results
Discrete Bit Outputs
There are 128 bits that can be set as outputs from a host device to control the operation of the CVIM. These bits control:
• Monitor display. • Camera trigger. • Toolset selection. • I/O forcing. • Selection of operation after reject. • Memory storage location. RAM, EEPROM, RAM Card, or external host memory. Refer to Tables B.2 and B.3. Table B.2 only applies to Backplane communications. Table B.3 applies to both Backplane and Remote I/O communications. Table B.2 Backplane Handshake Bits Word # PI Backplane
RS–232 and Remote I/O
Bit # PI
0
N/A
0
Host Data Lock – Toolset #1
0 = CVIM May Write 1 = CVIM Write Inhibited
The backplane host should write to bit 0 to prevent the CVIM from modifying toolset 1 results data.
0
N/A
1
Host Data Lock – Toolset #2
0 = CVIM May Write 1 = CVIM Write Inhibited
The backplane host should write to bit 1 to prevent the CVIM from modifying Toolset 2 results data.
0
N/A
2
CVIM Data Lock – Toolset #1
0 = CVIM Not Writing 1 = CVIM Writing
The CVIM sets bit 2 while writing to Toolset 1. The bit will be set back to 0 after writing.
0
N/A
3
CVIM Data Lock – Toolset #2
0 = CVIM Not Writing 1 = CVIM Writing
The CVIM sets bit 3 while writing while writing to Toolset 2. The bit will be set back to 0 after writing.
0
N/A
4–15
Reserved
Definition
Usage
Notes
B–9