The text of a manual · part 10 of 47
Bulletin 2803 VIM Vision Input Module User Manual: 5 - Connection and Power-up, pages 88 to 94
Pages 88 to 94 of 404, from Bulletin 2803 VIM Vision Input Module User Manual
The original document is the PDF (26 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 2803-VIM2
Page 88
Chapter 5-28 lnahtor
5
LEDs
Connection and Power-up
SWG TRIGGER - This LED goes ON when a trigger request is made from the swingarm. It remains ON as long as the input is held high.
(continued)
Note: This LED does not indicate trigger requests from the master host (either PLC or serial host). BUSY - This LED goes ON when the module is actively performing an inspection. This LED is yellow and goes OFF when the inspection cycle is complete and when the Trigger input is reset. Also, this LED is on during software download operations and configuration setup. DECISION-The Decision LED goes ON when a reject decision is delivered. It remains on until an accept decision is made. The output is valid only when the Busy LED is OFF and Busy output is low.
Typical Inspection Handshake Sequence
The handshake sequence for triggering an inspection (upon which the PLC or serial host communications can be based, for example) is as follows (see Figure 5.22):
1) The master host sets the Trigger bit (PLC master host) or issues a command (serial master host) to initiate an inspection cycle (see Figure 5.22).
2)
The host (if PLC master host) monitors the Busy output bit, and waits for the Busy bit to go high, indicating the VIM2 module has begun the inspection.
3) The VIM2 module receives the Trigger signal or command, and responds by setting the Busy bit. Then the VIM2 module begins the inspection of the image. 4) The host receives the Busy signal (the PLC, if master host, responds by clearing the Trigger bit). The host waits for the Busy bit to go low. 5) The VIM2 module completes the inspection. Since the host Trigger is now low (if PLC is master host), the VIM2 module places the Decision output to the appropriate level (either low (accept) or high (reject)>. Then the VIM2 module sets the Busy bit to low to indicate the Decision bit is properly set, and that the VIM2 module is ready for the next inspection. 6)
When the host sees the Busy bit go low, it reads the Decision bit for the accept/reject result of the inspection.
Page 89
Chapter
Connection and Power-up 5
Typica/ hpection Handshake Sequence (continued)
5-29
7) (Optional) -If a PLC is used, the PLC can perform a block transfer read the results block (after having set the discrete bits necessary to specify the read request). If a serial host is used, it can send a “read results” command. The host then uses the results to make more complex decisions or to make process control updates. (Note: Neither host device - PLC or serial host -has to be the master host in order for it to read results). 8) The inspection cycle is complete. begin.
The next cycle can now
Figure 5.22 VIM2 Module Handshake Cycles Handshake sequence with shot-t trigger (50 psec minimum) 1 ms i
Trigger input
I
:
I
Busy output Decision output
0.1 ms
.. . . .. . . . . . .. . . . . . . . . . . . . . . . . . . . 1
Handshake sequence with long trigger
I!,
Trigger input
Busy output Decision output 0.1 ms
. .. . . . . . .. . . . . . . . . . .. . . . . . . . ..s.....f.. I_); +0.1 ms
Inspection
Cycle Time
Inspection Cycle Time” is the elapsed time from the trigger until the inspection is complete. The inspection cycle time depends upon the configuration setup, the controller, and the image. At a minimum, it takes 1/6Oth of a second to receive and process a new image from the camera.
Page 90
Chapter 5-30
Inspection
Cycle Time (con timed)
5
Connection and Power- up
The module typically can capture an image from the camera and analyze it in less time than it takes for the next workpiece to advance into position on the production line. The following section provides timing information which may help you in high-speed situations where the inspection cycle time is critical. The fastest VIM2 module cycle time attainable is achieved using TRIGGER, BUSY, and DECISION signals via the swingarm. With all four (4) windows enabled and anchored and all line gages and math tools disabled, the inspection cycle time is 1/60th of a second. Enabling the X-gage and Y-gage and floating the four (4) windows in X and Y results in a cycle time of approximately 1/15th of a second. Employing filtering to eliminate transitions of length 1 pixel for both the X-gage and Y-gage does not change this number appreciably unless there are many white to black and black to white transitions along these gages. Inspection cycle times increase as more line gages are enabled, as the lengths of the line gages are increased, as math tools are enabled, and/or as statistics are computed. See Figure 5.23 for example inspection times. In the worst case (without using math tools, or computing statistics), enabling and floating all four (4) windows, enabling all twenty-two (22) line gages as 128 pixels in length, floated in X and Y and using Filter Selection 2 results in a cycle time of approximately l/6-1/4th second. When you must know precisely what the cycle time is with your particular configuration, the best way to obtain that information is to measure it directly. This may be done by connecting an oscilloscope to the TRIGGER and BUSY terminals on the VIM2 module’s swingarm. Trigger the scope scan with the rising edge of the TRIGGER signal. Measure the time from this trigger until the BUSY signal drops. This is the inspection cycle time. Make sure to measure it under a variety of image conditions - this may affect the cycle time somewhat.
Page 91
Chapter
5
Connection and Power- up 5-3 7
Inspection Cycle Time (continued) Figure 5.23 InsDection Cvcle Times . Inspection Rate With All Windows Active, Swingarm Trigger Activated And No Block Transfers to PK. SPEED Inspect/Cycles Per Second
BESTCASE) FASTEST
WORST SLOWEST
60 30 30 30 30 20 15 12 10 8 CASE) 4
(3)
XY Position Compensation
Lighting Compensation
(1) N N N
(4) N Y N Y Y Y Y Y Y Y Y y (6) Y Y Y Y Y Y
Strobe Light Ena bled
N N Y Y Y N Y Y Y Y Y
# of “Standard” Line Gages
(2)
0 0 0 0 4 4 4 10 16 22 22(S)
(1) At least 1 window has XY float option. (2) “STANDARD” line gage is about tscreen length -64 pixels long, medium (I-PIXEL FILTER) filter option and simple image. The two X and Y source-of-float gagesare not included in number. (3) Case only applies to continuous inspections. (4) Mode 2 Lighting Compensation: FULL IMAGE threshold adjust. No compensation or Mode 1 (Immediate Brightness Compensation) causes no speed penalty. (5) General worst case (SLOWEST). All lines maximum length, heavy (2PIXEL FILTER) filter option and complex (VERY BUSY) image. (6) No XY floating windows allowed. All 4 line gages are XY-floating. Note: The use of math tools, to the degree they are used, and/or collecting statistics in the learn mode, will impact cycle times.
Page 92
Connection and Power-up
Chapter 5
5-32
Up the Powerin V/M 9 Systern
After you have completed the installation procedures, and all the components are connected together, you can connect power to the system in order to check the power-up indicators, and prepare for the next chapter, “Quick Start An Introduction to the User Interface.” Follow these steps in powering up the VIM2 module: 1. Plug the power cord for the video monitor into the AC outlet. 2. Set the monitor POWER switch to ON. 3. Connect the external camera power supply to AC power. 4. Plug the VIM2 system power cord into the AC outlet. 5. Turn the POWER switch on the rack power supply to ON. Successful Power Up Indications Upon completing the above steps, look for the indications listed below for a successful VIM2 module powerup: 1. Three VIM2 module LEDs go ON - the CPU FA ULT, CONFIG FAULT, and POWER LEDs. 2. Next, the AC& ERROR and BUSY LEDs go ON. 3. The CPU FAULT, CONFIG FAULT, and AC& ERROR LEDs go OFF. 4. The video monitor sequentially displays the four window / threshold images, then displays a thresholded video image from the camera. 5. The BUSY LED goes OFF. 6. If the LEDs and monitor follow this sequence of indications, the powerup is successful; continue on to Chapter 6, for an introduction to the user interface. Note: The first time you power up a new VIM2 module, the CONFIG FAULT and BUSY LEDs stay ON at the end of the powerup sequence (this is because the VIM2 modules comes from the factory without a stored configuration). To clear the CONFIG FAULT and BUSY indications, place the VIM2 module in setup mode using the light pen and monitor (see Chapter 61, or download a configuration from the PLC (see Chapter 14) or from the serial host (see Chapter 15). Power Up Failure Indications If the CPU FA ULT LED remains ON after powerup, the power up sequence failed, indicating a malfunction. Try turning the rack power supply switch OFF, then switching it back to ON. If this fails to bring about a successful powerup sequence, the VIM2 module must be replaced.
Page 93
Chapter
(continued)
WIM2 Powerup Host Check Sequence
5
Connection and Power-up 5-33
Power Up Failure Indications (continued) If, after powerup, the CPU FAULT, CONFIG FAULT, and POWER LEDs remain on, check the UO Chassis configuration plug (see page 5-5 for plug placement guidelines).
When the VIM2 module is powered up, regardless of the master host selection (PLC, serial, or no master host - see Chapter 7) it first conducts a number of self-diagnostic tests. The VIM2 module also checks the two configurations stored in the EEPROM; if both are valid, the selected Starting Configuration is downloaded from EEPROM to RAM to become the working configuration. The VIM2 module then checks to see if a host is present. If no PLC host is present, and the PLC is the master host, the VIM2 module reverts to operation in the standalone mode. If a PLC is present, then the VIM2 module begins operation in run mode, unless the Unlock bit is asserted (see Chapter 14). If the serial line has been selected as the master host, the VIM2 module waits for five seconds for a command from the serial host after the diagnostics are complete. If a command from the serial host is not received within five seconds, the VIM2 will automatically be “unlocked,” and the VIM2 module will go to standby* mode. The selection of serial line as the master host is maintained by the VIM2 module. If a command from the serial host is received within five seconds, the VIM2 module will be locked and will go to run mode (unless the command is the Unlock command, in which case the VIM2 module goes to standby* mode). *Note: Standby mode is an interim mode of the VIM2 module which occurs upon leaving run mode, and before entering setup mode. When the VIM2 module is in standby mode, the title banner is displayed on the monitor. The VIM2 module enters standby mode when: l
The VIM2 module, in run mode, is unlocked by the master host.
l
The VIM2 module is in setup mode and a master host is present, and you exit setup mode by picking the Run icon.
l
The VIM2 module is in run mode and operating as a standalone unit, and you pick the monitor screen once with the light pen.
Page 94
Chapter 5-34
5
Connection and Power-up
(This page intentionally left blank)