The text of a manual · part 4 of 25
Bulletin 5370 CVIM Configurable Vision Input Module Communications Manual: 3 - Using Local I/O, pages 20 to 28
Pages 20 to 28 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 20
Chapter
A–B
3
Using Local I/O Chapter Objectives
The objectives of this chapter are to help you plan:
• The number of discrete output lines (up to 14) that your application will • • • •
Equipment Connections require. The function that each output line will perform in your application. The assignment of analysis tool “results” to output lines. The assignment of status signals to output lines. The electrical and mechanical connections of the trigger (input) and output lines to your production equipment.
The local I/O consists of:
• I/O Interface Box (Catalog No. 2801–N21, –N27) • I/O Board (Catalog No. 1771–JMB) • User specified I/O modules (plug into I/O board)
• Communications Cable (Catalog No. 2801–NC17) As shown in Figure 3.1, the communications cable (Catalog No. 2801–NC17) is connected to the MODULE I/O port on the front of the CVIM module and the connector on the I/O Interface box. The I/O board connector slides into the connector slot on the I/O Interface Box. Figure 3.1 Local I/O Equipment Connections
A
3–1
Page 21
Chapter 3 Using Local I/O
Planning Output Line Assignments
This section provides a planning sheet that you can use to lay out the function and tool assignments for output lines. The term “function assignment” refers to the type of signal information that you want an output line to carry to your production equipment. The term “tool assignment” refers to the tool(s) that you assign to an output line. Note: Tools can be assigned only to output lines that you have assigned a “results” function. These output lines will carry the “pass/fail” results signals from the tools during each inspection. The next section, Planning Output Line Connections, provides electrical and timing diagrams and data. You will need to use these diagrams to correctly identify and connect the output lines to your production equipment.
Using the Output Line Planning Sheet
The Output Line Planning Sheet is a form on which you can lay out your plans for each output line. On this form you can account for:
• The 14 output lines. • The six output line functions. • The 64 gages and their warning and fault outputs. • The 48 windows and their warning and fault outputs. • The 6 reference tools and their “pass/fail” outputs. • The light probe with its separate red, green, and blue warning and fault outputs.
3–2
Page 22
Chapter 3 Using Local I/O
Here is an example of how an Output Line Planning Sheet could be filled out: Example CVIM Module Output Line Planning Sheet Output Line Functions and Tool Assignments Reference Tool
Light Probe
Line
Win.
Cam.
Rng.
1
1
1
A
W
Results
1
A
F
Results
2
1
W
1
F
2
W
2
F
Line No.
Output Line Function
Tool Set No.
No.
Rng.
No.
Rng.
No.
Rng.
No.
Rng.
1
Results
1
1
W
2
W
1
W
2
W
″
″
″
3
W
4
W
2
Results
1
1
F
2
F
1
F
2
F
″
″
″
3
F
4
F
3
Results
1
4
Results
5 6 ″
″
″
7
Strobe
1
8
Trig. NAK
1
9
Master Fault
1
10
Data Valid
1 NA
11
Module Busy
12
Not Used
13
Not Used
14
Not Used
Gage
Window
The entries for the output lines have the following meanings:
• Output Line 1: The Results function is assigned to line 1. The Warning Range results (W) for gages 1–4 and windows 1 and 2 of toolset #1 are assigned to output line 1.
• Output Line 2: The Results function is assigned to line 2. The Fault Range results (F) for gages 1–4 and windows 1 and 2 of toolset #1 are assigned to output line 2.
• Output Line 3: The Results function is assigned to line 3. The “pass/fail” results for reference line 1 of toolset #1 and reference window 1 are assigned to line 3.
• Output Line 4: The Results function is assigned to line 4. The Warning Range result from the camera A light probe is assigned to line 4. Camera A is assigned to toolset #1. 3–3
Page 23
Chapter 3 Using Local I/O
Using the Output Line Planning Sheet (cont’d)
• Output Line 5: The Results function is assigned to line 5. The Fault Range result from camera A probe is assigned to line 5.
• Output Line 6: The Results function is assigned to line 6. The Warning and Fault Range results for gages 1 and 2 of toolset #2 are assigned to line 6.
• Output Line 7: The Strobe function for toolset #1 is assigned to line 7. • Output Line 8: The Trigger NAK function for toolset #1 is assigned to line 8.
• Output Line 9: The Master Fault function for toolset #1 is assigned to line 9.
• Output Line 10: The Data Valid function for toolset #1 is assigned to line 10.
• Output Line 11: The Module Busy function is assigned to line 11. (Note that this function does not relate to a toolset).
• Output Lines 12–14: These lines are not used. Note: Output lines 1–6 are assigned the Results function. These lines will carry “pass/fail” results from the analysis tools to your production equipment. Lines 7–11 are assigned other functions. Lines 12–14 are not used. Here is a brief explanation of the signal functions that you can assign to the output lines:
• Module Busy: This signal goes high when the CVIM system enters the configuration mode and during a configuration download operation. Module Busy goes low when the system enters the run mode (whether or not triggers are present). You can assign the Module Busy function to only one output line. Note: When configurations are being downloaded to the CVIM module, the module busy signal at the JMB board is not active. Note: All of the remaining signal functions (except Strobe, Module Busy, and Trigger NAKs) can be configured to produce a pulse whose duration depends on the number of milliseconds that you assign to the Duration/1 or Duration/2 parameter. (The ‘‘1’’ and ‘‘2’’ designate toolset #1 and toolset #2).
• 1/Results: This signal occurs when the results of a tool inspection exceed the warning and/or fault limits. (The tool must be assigned to an output line that has already been assigned the Results function.) 3–4
Page 24
Chapter 3 Using Local I/O
You can assign the Results signal function to any unassigned output line. As noted above, the 1/Results signal function must be assigned to an output line before any tool can be assigned to that line. Thus, if you wanted inspection results from Ref. Line # 2 to be assigned to output line #10, you would first have to assign the Results signal function to output line #10. Note: You can assign the inspection results from any tool in toolset #1 to an output line to which you have already assigned the 1/Results signal function.
• 1/Data Valid: This signal occurs when the CVIM system has completed an inspection using toolset #1. 1/Data Valid signals (the “data”) are stable on all output lines assigned to the 1/Results signal function. 1/Data Valid goes low during the next inspection. Note: 1/Data Valid does not indicate whether an inspection has passed or failed. That is the task of the output lines assigned to the 1/Results signal function. You can assign the 1/Data Valid function to only one output line.
• 1/Trigger NAK: This signal occurs when the CVIM system receives a trigger input signal for toolset #1, but cannot process that trigger. The signal goes low upon the next “accepted trigger”. You can assign the 1/Trigger NAK function to only one output line.
• 1/Master Fault: This signal occurs when any (one or more) analysis tools in the CVIM system detects a Fail condition. You can assign the 1/Master Fault function to only one output line.
• 1/Strobe: This signal is used to trigger the strobe flash unit (if used). The signal occurs within 1 ms after the CVIM system receives a trigger input signal. You can assign the 1/Strobe function to only one output.
• 1/Duration (n)ms: From 1msec to 2000msec. This value determines the pulse duration, in milliseconds of all pulse–type signals. A setting of zero means the signal will remain in its present state until updated by a subsequent inspection. Note: The output duration may vary if subsequent inspections occur before the specified output duration has elapsed. In your application, the function and tool assignment(s) for each output line will of course depend on the specific requirements of your production equipment. You will find a full–page, blank copy of the planning sheet on the last page of this chapter. We suggest that you do not mark that page, but use it instead as a copy master, and use the copies to prepare your output line plans. 3–5
Page 25
Chapter 3 Using Local I/O
Using the Output Line Planning Sheet (cont’d)
Keep in mind that a completed planning sheet can serve also as a record of your output line usage. You may find it desirable to store your filled–out planning sheets in a file folder or loose leaf binder.
Using Output Signal Timing Data
To make proper use of the signal data available to the output lines, you must first understand the timing relationships that exist between the trigger input signal (which starts each inspection cycle) and the output signals. Knowing these signal timing relationships enables you to accurately synchronize the inspection cycles with your production equipment. Timing charts (Figures 3.2, 3.3, and 3.4) show the timing relationships in various circumstances. Figure 3.2 shows the relationship between the trigger leading edge and the Strobe, Data Valid, and Results signals, where the last three appear as pulses whose duration you determine during configuration. Figure 3.2 Timing Diagram, Pulsed I/O MODULE BUSY Min. trigger ≈ 2ms* Trigger (Input)
Trigger pulse #1
Trigger pulse #2
Max. lag ≈ 1ms STROBE
DATA VALID
RESULTS
*
*
Min. strobe ≈ 1ms You can select a pulse width of 1 to 2000ms
**
DATA VALID will always pulse high when inspection processing is complete.
**
RESULTS signal will pulse high if an analysis tool range limit is exceeded.
** Minimum acquisition time: 17ms for 256x256 and 512x256 Res; 34 ms for 512x512 res. *** Analysis time (variable).
3–6
Page 26
Chapter 3 Using Local I/O
Using Output Signal Timing Data (cont’d)
In Figure 3.3, trigger pulse #2 occurs before the CVIM module has finished processing the inspection cycle started by trigger pulse #1. Figure 3.3 Timing Diagram, Trigger #2 During Data Valid, Pulsed I/O DATA VALID will always pulse high when inspection processing is complete
MODULE BUSY
Min. trigger ≈ 2ms* Trigger (Input)
Trigger pulse #1
Trigger pulse #2
Max. lag ≈ 1ms
Trigger pulse #3
Min. Strobe ≈ 1ms
STROBE
For Trigger #1 For Trigger #2 DATA VALID
RESULTS
**
*** You can select a pulse width of 1 to 2000 ms
*
**
For Trigger #3
***
** Minimum acquisition time: 17ms for 256x256 and 512x256 Res; 34 ms for 512x512 res. *** Analysis time (variable). ****RESULTS will pulse high if an analysis tool range is exceeded.
3–7
Page 27
Chapter 3 Using Local I/O
Using Output Signal Timing Data (cont’d)
Whenever these signals go high, they will go low again at the end of the specified pulse duration (1 to 2000ms). Note: The Local I/O Module Busy is high only during system configuration. In Figure 3.4, the Data Valid, and Results signals appear as changes in signal levels. This will occur if, during system configuration, you select a pulse “duration” of 0 (zero) milliseconds. Data Valid will stay high until the leading edge of the next valid trigger signal (Trigger Pulse #2). Results stay in their current state until the leading edge of the next Trigger pulse, then change depending upon the results. Figure 3.4 Timing Diagram, Non–Pulsed I/O
MODULE BUSY
Trigger (Input)
Trigger pulse #1
Trigger pulse #2
STROBE
** * DATA VALID
*
**
DATA VALID will go high when inspection processing is complete, and will go low with the leading edge of the next valid trigger.
RESULTS
*
**
RESULTS signal will go high if an analysis tool range limit is exceeded.
Minimum acquisition time: 17ms for 256x256 Res.; 34ms for 512x512 Res. Analysis time. ** * * * Data Valid (and results) will be sent for a minimum of 15 msec when 0 pulse length is selected.
*
3–8
Page 28
Chapter 3 Using Local I/O
In Figure 3.5, trigger pulse #2 occurs before the CVIM system is finished processing the inspection cycle started by trigger pulse #1. This causes the Trigger NAK signal to go high. Trigger NAK will stay high until leading edge of the next valid trigger pulse (trigger pulse #3). Figure 3.5 Timing Diagram– Missed Trigger
MODULE BUSY
Trigger (Input)
Trigger pulse #1
Trigger pulse #2
Trigger pulse #3
TRIGGER NAK goes high because trigger 2 cannot be processed. (Trigger 1 processing is not yet complete.)
TRIGGER NAK
TRIGGER NAK goes low because trigger 3 can be processed. (Trigger 1 processing is now complete.)
STROBE
DATA VALID
RESULTS
*
**
*Min. processing time: 17ms, 256x256 Res. 17ms, 512x256 Res. 34ms, 512x512 Res. **Analysis time.
Results stay in their current state, hihg or low.
3–9