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

The text of a manual · part 30 of 47

Bulletin 2803 VIM Vision Input Module User Manual: 13 - Run Modes and Archiving

Pages 257 to 270 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 257

Chapter

Chapter Objectives

!?w) Modes and

Archiving

Run Modes 13 and Archiving The objectives of this chapter are to show how to use the Main menu icons to select the VIM2 module’s run mode options, how to transfer configurations to and from EEPROM using the A rchiue menu icons, and how to exit the setup mode and begin operation in the run mode..

Using the Main and Archive menu icons, you can perform the following: Select arm mode: Select from four different arm modes, which allow you to halt operation upon reject, to freeze the image upon reject, to halt operation upon each inspection, or to continue normal operation upon reject. Select standard or learn mode: Select learn mode for trial inspections, to enable the VIM2 module to collect statistics based on results of each vision tool and probe. Or select standard mode to operate without collecting statistics. Reset statistics: Set all statistics to 0 (zero). Store and retrieve configurations from EEPROM: Use the Archive menu to store up to two different configurations in the VIM2 module’s EEPROM, or use a configuration already stored in EEPROM as the working configuration. You can also use a default configuration. Select start-up configuration: Select which of the two stored EEPROM configurations is used as the working configuration upon powerup of the VIM2 module. Begin run mode operation: Exit the setup mode and begin the inspection operation in the run mode.

Accessing the Main Menu Your Action Pick the OK icon on the Setup menu to access the Main menu.

To begin to set up the run mode parameters and/or archive configurations, access the Main menu as described below. Comments If the Setup menu is displayed, picking the OK icon accesses the Main menu (Note: If the title banner is displayed, pick any bright area on the monitor screen).

Setup Menu

OKkon v

Page 258

Chapter 73-2

Accessing the Main Menu

13

Run Modes and Archiving

Below are brief descriptions of each of the Main menu icons:

(continued) Main Menu

&a cl

Archive- Pick this icon to access the Archive menu. Use the Archive menu to store your configuration as one of two EEPROM configurations. Or load a stored configuration from EEPROM as the working configuration. Or load the default configuration as the working configuration.

IaI I,z

Setup -Pick this icon to access the Setup menu. Use the Setup menu and subsequent menus to perform the majority of the VIM2 configuration tasks. Powerup Configuration - Pick this icon to select which of the two stored EEPROM configurations will be used as the working configuration upon powerup. This icon, when picked, toggles between configuration 1 and configuration 2.

D5l -- -ml

Standard/Learn -Pick this icon to select whether the VIM2 module will run in standard mode or in learn mode (in learn mode, the VIM2 module collects a number of different statistics for each vision tool and probe). This icon, when picked, toggles between the standard mode icon (the factory) and the learn mode icon (the open booh).

IGO

Arm Mode - Pick this icon to select the diagnostic mode. This icon, when picked, cycles through the four different arm mode icons - GO on reject, freeze on reject, halt on reject, and halt on each inspection.

IA!! .I... ... o... 1 SKI

Reset Statistics- Pick this icon to set the stored values of all statistics collected to 0 (zero). Run - Pick this icon to access the Run menu. Use the Run menu to exit setup mode and go to run mode, and/or access the -4rchive menu to store your configuration in EEPROM before exiting the setup mode.

Page 259

Chapter

Run Modes and Archiving 73-3

Usin the Arm At! odes

The VIM2 module has arm modes to aid in refining VIM2 configurations for inspection processes. There are four arm modes available. Select the mode by picking the Arm Mode icon on the Main menu.

Main Menu

Arm mode icon

Your Action Pick the km Mode icon four times to I!oggle through the four arm modes.

H

Comment This icon, when picked, cycles through the four different arm mode icons - GO on reject, freeze on reject, halt image on reject, and halt image on each inspection.

f Go on reject freeze on reject

Halt on reject

Halt on each inspection

When you exit the setup mode and begin run mode operation, the VIM2 module operates in the selected arm mode. In general, when you intend to use the VIM2 module in actual system operation, select either GO on reject mode, or Freeze on reject mode. When you intend to run a preliminary trial operation, select any of the four modes, as appropriate. Here are descriptions of each of the four arm modes:

Go on Reject - This is the mode to select for normal system operation. The troubleshooting features (halt image or stop) are deactivated and system operation continues normally regardless of the accept / reject decision status. Freeze on Reject-With this mode selected, when an inspection fails, the VIM2 module retains the onscreen image, but continues inspecting. The frozen image may or may not be the image that caused the failure. To resume the updating of the monitor image, depress the light pen tip once.

Page 260

Chapter 73-4

13

Run Modes and Archiving

Usin the Arm /I?odes (continued)

El STOP

Halt on reject -With this mode selected, whenever an inspection fails, the VIM2 module stops acquiring and processing images, and retains the image of the failed inspection. Using this mode, you can, after a failure, exit the run mode, and when you enter the setup mode, the image acquisition icon (on the Image menu) is set to halt image. All four threshold images from the last acquired image will be available for your review (see Chapter 8 for information on halt image). This allows you to, for example, check the results and statistics of each line gage and window you configured, and adjust the configuration if desired.

A t 0

CAUTION: The VIM2 module stops inspecting when a reject occurs with either halt on reject, or halt on each inspection selected; steps must be taken in order to resume operation.

Note: The Busy output is held high, and the Busy LED is On, while the inspection is halted. To resume the inspection operation, depress the light pen tip four times. The monitor display will cycle through the four threshold images (and windows), then resume inspections.

Is n n

Halt on each inspection -With this mode selected, whenever an inspection takes place, the VIM2 module stops operation afterward, and retains the image of the inspection (whther or not it failed). Using this mode, you can, after each inspection, either resume operation as described above, or exit the run mode and enter the setup mode. When you enter the setup mode, the image acquisition icon (on the Image menu) is set to halt image. All four threshold images from the last acquired images will be available for your review (see Chapter 8 for information on haZt image). Note: To review the halted image in setup mode: 1. Unlock the VIM2 module (in standalone mode, pick the monitor screen with the light pen; with PLC master host, assert the unlock discrete bit; with serial master host, send the Unlock command). 2. Pick the monitor screen with the light pen to enter the setup mode (the Main menu is displayed). In setup mode, you can review inspection results, and statistics, and adjust your configuration as required.

Page 261

Chapter

Using the Learn Mode

13

Run Modes andArchiving 13-S

The VIM2 module has a learn mode to aid in refining your VIM2 configuration. While running in learn mode, the VIM2 collects statistics for each passing inspection (results for inspections for each tool/probe which fails an inspection are not included in the statistics for the respective tool/probe). You select either the Zearn mode, or standard mode (no statistics collected) by picking the Standard/Learn icon on the Main menu. When picked, the Standard/Learn icon toggles between standard mode and learn mode.

Main Menu

Standard/

Learn icon ’

Standard mode - icon mkmi

Learn mode icon

To use the learn mode, configure the VIM2 module as appropriate for your application, and select learn mode as part of your configuration before exiting to the Run mode. While running in learn mode, the VIM2 module collects statistics for the following vision tools: l

Brightness probe (see Chapter 8)

l

All enabZed line gages (see Chapters 9 and 11)

l

All enabled windows (see Chapter 10)

l

All enabled math tools (see Chapter 12)

You can review the statistics collected for a specific tool or probe by accessing the Acceptance Range menu for that tool or probe, and then picking the current measured result (see “Setting the Acceptance Range” in Chapters 8,9,10,11 and/or 12). The statistics for the particular tool or probe are displayed on the right side of the screen, as shown below: Total of triggers processed

Number of failures per tool/probe

Lowest result collected

Highest result collected

Average of all results collected

#n qij 4f ft +

0 0 0 0 0

Page 262

Chapter 73-6

Using Learn Mode Statistics

13

Run Modes and Archiving

In order to illustrate the use of the learn mode, an example is provided below.

Example: Using Learn Mode Suppose you are going to measure the size of a workpiece feature by counting white pixels, using window 2 and threshold image 2, as shown below.

/

White square represents the workpiece feature you want to measure

N Window 2 covers white square on threshold image 2 (example image)

Before actually running the inspection, suppose you want to measure a random selection of 50 sample good parts to help define the window acceptance range. To do this, after staging and lighting the work&age, configuring threshold image 2, the brightness probe, window 2, and so on, you select the learn mode, then exit the setup mode, and enter the run mode. In run mode, with learn mode selected, the VIM2 module collects statistics as you inspect the 50 parts (Note: For information about accessing the statistics through block transfer, refer to Chapters 14 and/or 15). To display the statistics for the window, do the following: Your Action With the VIM2 module in run mode, pick the monitor screen twice to access the Main menu.

Comments The first pick takes the VIM2 module out of run mode, and displays the title banner. The second pick puts the VIM2 module in setup mode, and displays the Muin menu. Note: If the VIM2 module has a PLC master host or serial port master host, the module must first be unlocked to access setup mode (see Chapter 14 or 15 for unlock information).

Main Menu

Setup Icon F

Page 263

Chapter

Using Learn Mode Statistics

13

Run Modes and Archiving 13-7

Example: Using Learn Mode (continued)

(continued)

Your Action Pick the Setup menu icon to access the Setup menu.

Comments The Setup icon is the second icon from the left on the Main menu.

Setup Menu

Window Icon

Pick the Window menu icon to access the ‘Window menu. Pick the ETC icon to access t,he second set of Window menu icons.

When you pick the ETC icon, the second part of the Window menu is displayed. The Acceptance Range icon is found in the second set of icons.

Window Menu

I

Pick ETC to switch menus

- Acceptance Range icon

Pick the Acceptance Range icon on the Window menu.

When you pick the Acceptance Range (“HI/LO”) icon on the Window menu, the Acceptance Range menu appears:

Current measured result Acceptance Range Menu

Pick the current measured rem1 t.

On the right side of the Acceptance Range menu are three numbers, separated by ” < = ” signs. The middEe number is the cur-rent measured result of the window. When you pick this number, the statistics are displayed. To remove the statistics from the screen, pick the middle number again.

Page 264

Chapter 13-8

Using learn Mode 5 ta tis tics

13,

Run Modes and Archiving

Example: Using Learn Mode (continued~

(continued)

Your Action 0 bserve and assess the collected statistics.

Comments In this example, when the statistics are displayed, we see that 50 parts were inspected, and no parts failed inspection for this window. The lowest measured value of any of the 50 parts was 4775 (number of white pixels). The highest measured value was 4925. The average value was 4885. ‘“,

#D

50 0

&f

4775

A

4925, 4885

#A

+

As a result of using the learn mode and observing the statistics for the window, you now have guidelines for low (4775) and high (4925) range limits for the window.

Resetting the Statistics

The VIM2 module stores the collected statistics so long as you do not download a configuration from a host or from one If you change the of the two EEPROM configurations. configuration in either of these two ways, the VIM2 module resets all statistics values to 0 (zero). If you change the configuration only through means of the light pen while in setup mode, the statistics are not reset. If you want to reset the statistics, do this while in setup mode by picking the Reset Statistics icon on the Main menu.

Your Action Pick the Reset Statistics icon on the Main menu.

Comments Picking the Reset Statistics icon immediately statistics values to 0 (zero).

Main Menu

Reset Statistics icon resets all

Page 265

Chapter

Archiving Conffigurations

13

Run Modes and Archiving 73-9

The working configuration* of the VIM2 module is held in volatile RAM, and is lost if the power to the VIM2 module is disconnected for any reason. Using the Archive menu, you can store two different configurations in EEPROM on board the VIM2 module. The two EEPROM configurations (EEPROM configuration # 1 and EEPROM configuration #2) are retained when power is disconnected from the VIM2; thus you can store two different configurations in EEPROM for safe keeping. And you can download either EEPROM configuration for use as the working configuration. *Note: The working configuration is the configuration used by the VIM2 module during operation. When you configure the VIM2 module with the light pen and monitor, you are configuring the RAM (working) configuration. You can also transfer and store additional configurations if you are using a PLC or serial host. See Chapters 14 and 15 for more information. Default Configuration -You can download the default configuration as the working configuration by picking the Default Configuration icon on the Archive menu. The default configuration is the initial configuration set within the VIM2 module when you power it up the first time. In order to review the Archive menu icons, access the Archive menu by picking the Archive icon on the Main menu.

Your Action

Comments

With the Main menu displayed, pick the Archive icon to display the Archive menu. Main Menu

I -h Archive icon Archive menu

Page 266

Chapter 13-10

13

Run Modes and Archiving

Archiving Configurations (continued)

Archive menu

Here are brief descriptions of each of the Archiue menu icons:

Load Default Configuration - Pick this icon to load the default configuration into RAM. The default configuration is the configuration used by the VIM2 module when you power it up the first time. In the default configuration, for example, among other things, all line gages and windows are disabled, all four threshold levels are set to a value of 128, windows and line gages are set in default positions in the center of the screen, and windows are set to rectangular. Note: When you download the default configuration into RAM, the current RAM (working) configuration is lost. Download EEPROM #1 -Pick this icon to load the configuration stored as EEPROM configuration # 1 into RAM for use as the working configuration. Note: When you download a configuration from EEPROM into RAM, the current RAM (working) configuration is lost. Download EEPROM #2 -Pick this icon to load the configuration stored as EEPROM configuration #2 into RAM for use as the working configuration. Note: When you download a configuration from EEPROM into RAM, the current RAM (working) configuration is lost. Save to EEPROM #l -Pick this icon to save the working configuration for non-volatile storage to EEPROM configuration #l. Note: When you save a configuration to EEPROM #l, the previously saved EEPROM # 1 configuration is lost. Save to EEPROM #2 -Pick this icon to save the working configuration for non-volatile storage to EEPROM configuration #2. Note: When you save a configuration to EEPROM #2, the previously saved EEPROM #2 configuration is lost. It is suggested that you always back up your working configuration, either by saving it to one of the two EEPROM configurations, or by storing it through transfer to a host device (PLC or serial host).

Page 267

Chapter

Archiving Configurations (continued)

73

Run Modes and Archiving 13-77

When you save a configuration into EEPROM, normally a few seconds elapse while the configuration is being stored. During this time, this cloclz icon appears:

A t l

CAUTION: The working configuration and both EEPROM configurations will be lost if you turn off power to the VIM2 module while the clock icon is displayed.

When the clock icon disappears, the save is complete. If you shut off power to the VIM2 module while saving a configuration to EEPROM, when power is reapplied, the Config F&t LED goes ON, indicating a configuration fault has occurred. The Config Fault LED remains ON until you use the light pen and monitor to enter the setup mode and then exit to run mode, or until you reconfigure the VIM2 module by sending a configuration from a host device (see Chapters 14 and 15). If you use the light pen and monitor to enter the setup mode, after a configuration fault has occurred, you will notice that the working configuration, as well as both the EEPROM configurations, have been changed to the default configuration.

Page 268

Chapter 73- 12

Selectin Startup Con Plgura tion

13

Run Modes and Archiving

When the VIM2 module is powered down, its working configuration, stored in volatile RAM, is lost. When you power up the VIM2 module, it automatically loads one of the two available EEPROM configurations (see “Archiving Configurations,” this chapter) into RAM for use as the working configuration. To prevent loss of the working configuration, store the working (RAM) configuration as one of the two EEPROM configurations (see Archiving Configurations this chapter), then select that EEPROM configuration as the startup configuration. That way, should the VIM2 module ever lose power during operation, the VIM2 module, when powered back up, will automatically load the same working configuration into RAM as the one that was in RAM before the power loss. You select either EEPROM configuration #l or EEPROM configuration #2 as the startup configuration by picking the Startup Configuration icon on the Main menu.

Your Action With theMain menu displayed, pick the Startup Configuration icon to change the startup configuration.

Comments When picked, the Startup Configuration between 1 (EEPROM Configuration #l) Configuration #2).

icon toggles and 2 (EEPROM

Main Menu

Startup Configuration t icon

Page 269

Chapter

Exiting to Run Mode

13

Run Modes and Archiving 13-13

Once you have configured the VIM2 module for a trial run or for the actual inspeciion operation, and you are ready to begin VIM2 module inspection operations, exit the setup mode, and enter the run mode. In the run mode, the VIM2 module awaits trigger signals, and, when triggered, performs inspections as configured.

t A l

WARNING: As soon as run mode is entered, the VIM2 module will begin responding to trigger signals. Any equipment cannected to the swingarm outputs may be energized by the resulting VIM2 output activity. Do not enter run mode unless assured that subsequent outputs will not result in damage to person or property.

To exit the setup mode, and enter the run mode, pick the Run icon on the Main menu. Main Menu

Run icon /I

Run Menu -When you pick the Run icon, the following confirmation menu appears:

Arch.ive icon ’

Run icon

When the above icons appear, pick one of the three icons: Your Action Pick the Archive icon, if desired!, to access the A.rchive menu.

Comment5 With the Archive menu displayed, you can store the working configuration to EEPROM. Or, if desired, you can download one of the two EEPROM configurations, or the default configuration, for use as the working configuration.

Pick the OK icon to return to the Main menu, if desired.

If you change your mind about going to run mode, picking the OK icon returns the Main menu.

Pick the Run icon to exit the setup m.ode and go to run mode.

Picking the Run icon causes the VIM2 module to go to run mode (Note: If the VIM2 module is configured for master host operation, the VIM2 module goes to standby mode -title banner displayed - until locked by the master host).

Page 270

Chapter 13-14

Changing the Run Mode Display

13

Run Modes and Archiving

While the VIM2 module is in run mode, you can change the monitor display. To do this, you depress the light pen tip away from the monitor screen - to cycle through and select from six different display options: (1) Show threshold image #l and window #l (2) Show threshold image #2 and window #2 (3) Show threshold image #3 and window #3 (4) Show threshold image #4 and window #4 (5) Show threshold image #l and windows #l-4 (6) Show “live” analog image (direct - camera to monitor) Using a Host Device to Change Display Mode - Note that you can also change the display mode using either a PLC or serial host device. If the VIM2 module is integrated with a PLC, you can cycle through the display options by asserting the light pen em&&ion discrete bit as necessary (see Chapter 14). Note: If both the light pen and the light pen emulation discrete bit are asserted simultaneously, only one is effective. When using a host connected to the VIM2 module’s RS-485 port, you can select a specific display mode by sending the Change Display Mode command (see Chapter 15). Note: If the serial host’s Change Display Mode command is received by the VIM2 module, and a simultaneous light pen pick or PLC assertion of the light pen emulation discrete bit occurs, only the display selection indicated by the Change Display Mode command is effective.