Professional Documents
Culture Documents
Contents
Contents
1 Product Support and Maintenance 2 Overview of the Sensor .......................................................................................................5
1.1 Product Support .............................................................................................................................................................5 1.2 Maintenance .................................................................................................................................................................. 6
......................................................................................................................... 7
2.1 Typical iVu Applications .................................................................................................................................................7 2.1.1 Label Inspection .................................................................................................................................................7 2.1.2 Blister Pack Inspection ......................................................................................................................................8 2.1.3 Vial Stopper Inspection ..................................................................................................................................... 9 2.2 Installing the Sensor ...................................................................................................................................................... 9 2.2.1 Installing and Connecting the Sensor ............................................................................................................... 9 2.2.2 Cable Connections for Integrated Display ...................................................................................................... 12 2.2.3 Cable Connections for Remote Display .......................................................................................................... 12 2.2.4 iVu Trigger, Remote Teach, and I/O Waveforms ............................................................................................13 2.3 Major Features .............................................................................................................................................................15 2.3.1 Demo Mode ..................................................................................................................................................... 15 2.3.2 Sensor Types ...................................................................................................................................................16 2.3.3 Multiple Sensors ............................................................................................................................................. 17 2.3.4 Multiple Inspections ........................................................................................................................................ 17 2.3.5 iVu Plus Communication Summary of Ethernet and Serial .............................................................................19 2.3.6 Trigger Modes .................................................................................................................................................20
.......................................................................................................................... 21
3.1 Main Menu ................................................................................................................................................................... 21 3.2 Inspection Menu .......................................................................................................................................................... 22 3.2.1 Sensors Menu .................................................................................................................................................23 3.2.2 Motion Menu .................................................................................................................................................... 28 3.2.3 Properties Menu ..............................................................................................................................................28 3.2.4 Stored Inspections Menu ................................................................................................................................ 29 3.3 Imager Menu ................................................................................................................................................................30 3.3.1 Auto Exposure ................................................................................................................................................. 30 3.3.2 Exposure ..........................................................................................................................................................31 3.3.3 Gain ................................................................................................................................................................. 31 3.3.4 Trigger ..............................................................................................................................................................31 3.3.5 Focus ............................................................................................................................................................... 32 3.3.6 Strobe .............................................................................................................................................................. 32 3.3.7 FOV (Field of View) ..........................................................................................................................................33 3.4 System Menu ...............................................................................................................................................................35 3.4.1 Mode ................................................................................................................................................................ 35 3.4.2 System Configuration .......................................................................................................................................35 3.4.3 Information ....................................................................................................................................................... 36 3.4.4 Lock Device ..................................................................................................................................................... 37 3.4.5 Communications Menu .................................................................................................................................... 37 3.4.6 Discrete I/O ...................................................................................................................................................... 48 3.4.7 Display Settings ............................................................................................................................................... 51 3.4.8 Reboot Sensor ................................................................................................................................................. 52 3.4.9 Firmware Update ............................................................................................................................................. 52 3.5 Logs Menu ...................................................................................................................................................................53 3.5.1 Inspection Logs ................................................................................................................................................53 3.5.2 System Logs .................................................................................................................................................... 55 3.5.3 Communication Logs ....................................................................................................................................... 55
4 Home Screen
2
........................................................................................................................................ 57
Rev. C
Contents
4.1 Display Mode .............................................................................................................................................................. 57 4.1.1 Image with Annotations ...................................................................................................................................57 4.1.2 Image without Annotations ..............................................................................................................................58 4.1.3 Inspection Statistics ......................................................................................................................................... 58
5 Setting up an Inspection
5.1 Acquiring a Good Image
..................................................................................................................... 60
.............................................................................................................................................. 60
6 Configuring Sensors
...........................................................................................................................63
6.1 Sensor Configuration Shortcut Menu ..........................................................................................................................63 6.2 Configuring an Area Sensor ........................................................................................................................................ 64 6.3 Configuring a Blemish Sensor ..................................................................................................................................... 67 6.4 Configuring a Match Sensor ........................................................................................................................................ 70 6.4.1 Remote Teach ................................................................................................................................................. 74 6.5 Configuring a Sort Application ..................................................................................................................................... 74 6.6 Configuring Motion ......................................................................................................................................................76 6.6.1 Number of Edges ............................................................................................................................................. 77 6.6.2 Sensitivity .........................................................................................................................................................77 6.6.3 Rotation ............................................................................................................................................................77 6.7 Configuring Multiple Sensors in the Inspection ...........................................................................................................77
...................................................................................................................79
7.1 iVu Plus Communication Summary of Ethernet and Serial ........................................................................................ 79 7.1.1 Communication Channels ...............................................................................................................................79 7.1.2 Industrial Ethernet ...........................................................................................................................................80 7.1.3 Command Channel .......................................................................................................................................... 80 7.1.4 Data Export ...................................................................................................................................................... 81 7.1.5 Image Export ...................................................................................................................................................83 7.1.6 Setting Up Ethernet Communications ..............................................................................................................84 7.1.7 Setting Up Serial Communications .................................................................................................................. 88
................................................................ 92
8.1 Understanding the Communication Log ...................................................................................................................... 92 8.2 Ethernet I/O ................................................................................................................................................................. 93 8.2.1 Ethernet I/O Status ......................................................................................................................................... 93 8.3 Serial I/O ......................................................................................................................................................................93 8.3.1 Using the Port Status Screen for Testing RS-232 Communications ................................................................93 8.3.2 Using the iVu Command Channel Sample Application or a Terminal Program for Testing .............................93 8.3.3 Verifying Basic Receive Functionality .............................................................................................................. 94
.................................................................................................................. 96
9.1 Command Channel Commands .................................................................................................................................. 96 9.1.1 Command Flow ...............................................................................................................................................96 9.1.2 String Delimiters and Escaping ........................................................................................................................97 9.1.3 Command Channel Command Synopsis .........................................................................................................97 9.2 Conventions Used for Examples ................................................................................................................................. 98 9.3 Examples .....................................................................................................................................................................98 9.3.1 Example 1: How to Trigger the Sensor and Retrieve Inspection Data using the Command Channel ............. 98 9.3.2 Example 2: How to Execute a Product Change Using the Command Channel ...............................................98 9.4 iVu Plus Command Channel Reference ..................................................................................................................... 99 9.5 Multiple Sensors Inspection ......................................................................................................................................107 9.6 Command Channel Error Codes ............................................................................................................................... 107
Contents
11.2.2 iVu Output Values ........................................................................................................................................ 113 11.3 Sensor Operation .....................................................................................................................................................113 11.3.1 General Command Execution .....................................................................................................................113 11.4 EtherNet/IP .............................................................................................................................................................. 114 11.4.1 RSLogix5000 Configuration ......................................................................................................................... 114 11.4.2 Assembly Objects ....................................................................................................................................... 123 11.4.3 Configuration Assembly Object ....................................................................................................................138 11.4.4 Data Formats ............................................................................................................................................... 138 11.4.5 Minimum Requested Packet Inverval (RPI) Value ......................................................................................138 11.5 Modbus/TCP ............................................................................................................................................................139 11.5.1 Holding Registers .........................................................................................................................................140 11.5.2 Output Registers .......................................................................................................................................... 141 11.5.3 Multiple Sensors Mapping Options .............................................................................................................. 147 11.5.4 Input and Output Coils ................................................................................................................................. 153 11.6 PLC5 and SLC 5 (PCCC) ........................................................................................................................................ 153 11.6.1 Configuration ...............................................................................................................................................153 11.6.2 Inputs to iVu (Outputs from PLC) .................................................................................................................156 11.6.3 Outputs from iVu (Inputs to PLC) .................................................................................................................157 11.6.4 Multiple Sensors Mapping Options .............................................................................................................. 163 11.6.5 Input and Output Flags ................................................................................................................................ 169 11.7 Sample Timing Diagram ......................................................................................................................................... 170 11.8 Error Codes ............................................................................................................................................................ 173 11.9 Command Status .................................................................................................................................................... 175 11.10 Diagnostic Guide ................................................................................................................................................... 175 11.10.1 Ethernet Diagnostics .................................................................................................................................175 11.10.2 Networking and TCP/IP Diagnostics .........................................................................................................177 11.10.3 Industrial Protocols Troubleshooting .........................................................................................................179 11.11 Additional Information ............................................................................................................................................ 181 11.11.1 iVu Command Channel Commands (iVu Command Channel over Industrial EtherNet) ........................... 181
12 Debugging Inspections
................................................................................................................... 185
12.1 How to Round-Trip Debug Using the Emulator ....................................................................................................... 185 12.1.1 How to Debug Using the Emulator from a PC ............................................................................................. 185 12.1.2 How to Debug Using the Emulator from the USB Flash Drive ....................................................................186
.................................................................................................... 187
13.1 Update Process ....................................................................................................................................................... 187 13.2 How to Set or Modify a Device Name ......................................................................................................................187 13.3 How to Reset the Sensor Password ........................................................................................................................ 188 13.4 How to Use Bitmap Image Files with the iVu Emulator ........................................................................................... 189
...................................................................................................... 190
Rev. C
WARNING: Not To Be Used for Personnel Protection Never use this device as a sensing device for personnel protection. Doing so could lead to serious injury or death. This device does NOT include the self-checking redundant circuitry necessary to allow its use in personnel safety applications. A sensor failure or malfunction can cause either an energized or deenergized sensor output condition.
Rev. C
Factory Support Call, e-mail, fax, or write your local Banner representative or a Banner Applications Engineer for support. Applications Engineers are available from 8:00 A.M. to 5:00 P.M. Central Time, Monday through Friday, excluding holidays. Phone Fax E-mail Address Local: 763.544.3164 Toll Free: 1.888.3.SENSOR (1.888.373.6767) 763.544.3213 sensors@bannerengineering.com Banner Engineering Corp. 9714 10th Avenue North, Minneapolis, MN 55441 USA To help Banner better assist you, be ready to provide the following information: iVu firmware version (to find the version number, click Main Menu > System > Sensor Information Device Model Number and Date Code, which are found on the bottom of the device. Exact wording of any messages that appeared on your screen A description of what you were doing and what happened A description of how you tried to solve the problem Error Codes (see LED Indicator Troubleshooting on page 190 )
1.2 Maintenance
Maintenance tasks include keeping the hardware free of dust and dirt and possibly updating the iVu firmware as new versions become available. Cleaning the Sensor Regularly remove any dust or dirt from the device using a soft cloth. If needed, slightly dampen the cloth with a weak solution of neutral detergent. Avoid getting dirt on the imager (the area behind the lens). If the imager is dirty, use anti-static compressed air to blow off the dust. Updating the iVu firmware The current version of iVu firmware is available for download from the Banner website. See the Banner Website for the firmware download link.
Rev. C
Rev. C
A manufacturer packages a number of products in similar packaging and needs a cost-effective way to ensure that only like products are packaged together. Additionally, they want to verify that all the products have labels. To verify each product, an iVu Series sensor is configured for a Match inspection. An image of a good product package is captured. When the inspection is running, if the sensor detects a package with a different or missing label, the sensor sends a fail output to the line, and the product is rejected.
Because of tightened federal regulations that make the quality of pharmaceutical packaging increasingly critical, when tablets are inserted into a blister pack, manufacturers need to verify that all the blisters in a pack have been filled with unbroken tablets. To verify each blister in the pack, use an iVu Series sensor configured for an Area inspection. The sensor inspects each blister pack to make sure that each blister contains an unbroken tablet.
Rev. C
In the pharmaceutical industry where vials are filled with tablets in a high-speed application, as soon as each vial is filled, a stopper must be properly inserted into the vial. To ensure that a stopper is properly inserted as each vial leaves the filling station, an iVu Series sensorset up for an Area application and motion parameters enabledverifies that the vial has a stopper inserted into its neck and that the stopper is positioned correctly to provide a proper seal on the glass vial. If the stopper is missing or incorrectly positioned, then the sensor sends a fail output to the line.
Rev. C
Thread three M4 x 4mm screws through the bracket into the mounting holes in the bottom of the sensor. Tighten all three screws.
CAUTION: Failure to follow these instructions can cause damage to your iVu Series sensor.
Micro Lens Models A B C D E F Lens Focusing Window Locking Clip Locking Screw Filter Cap Filter
1. Use the 1/16" hex key to remove the Focusing Window locking screw (D).
Attention: The Locking Clip (C) inserts in a groove near the top of the Focusing Window (B). When removing the window, the Locking Clip will be loose. Be careful not to lose the clip while removing the window. 2. Unscrew the Focusing Window by turning it clockwise approximately 5 complete turns or until the Focusing Window disengages from the light/lens assembly.
10
Rev. C
Attention: The light/lens assembly may include an integrated ring light or a blank disk if an integrated ring light is not used. Be careful that the light/lens assembly does not pull out when removing the Focusing Window. Give a slight tug on the Focusing Window when you think you've unscrewed it far enough. If the lens assembly moves with the window, continue to rotate the window clockwise until the lens assembly does not move. 3. 4. 5. 6. Set the Focusing Window aside. Be careful not to get any debris on the window's O-ring. If present, remove the protective covering on the filter. Place the filter into the Filter Cap and press the cap onto the lens. After the filter is installed, place the Focusing Window back into the housing while inserting the Locking Clip into the groove as shown below.
B Groove
7. Press the Focusing Window onto the housing to make sure that it seats correctly (that is, there is no gap between the window and housing). Rotate the window counter-clockwise at least two turns. 8. Replace the locking tab screw but do not tighten until you have set up and focused the sensor again. Installing a Filter on the C-Mount Lens Model To install a filter on the iVu Series sensor with C-Mount Lens, use the illustration as a guide and follow the steps listed below.
CAUTION: Failure to follow these instructions can cause damage to your iVu Series sensor.
C-Mount Lens Models A C-Mount Lens Lens Enclosure Retainer Ring (optional) Filter (optional) Filter Retainer Ring Tool
E
B
B C D E
1. 2. 3. 4.
Remove the Lens Enclosure and Lens. Install filter behind the retainer ring. Make sure it is fully seated. Using the provided retainer ring tool, thread the retainer ring into the sensor until it firmly seats the filter. Replace the Lens and Lens Enclosure on the camera.
Rev. C
11
CAUTION: Avoid the damage that electrostatic discharget (ESD) can cause to the sensor. Always use a proven method for preventing electrostatic discharge when installing a lens or attaching a cable.
A C D
Power I/O Connections Pin # 2 7 6 5 1 8 Wire Color Brown Blue Pink Gray White Red Description 10-30V dc Common (Signal Ground) External Trigger Remote Teach Output 1 Ready Direction Input Input Input Input Output Output
12
Rev. C
Power I/O Connections Pin # 4 3 9 10 11 12 Wire Color Yellow Green Orange Light Blue Black Violet Description Strobe Out (5V dc only) Output 2 Output 3 RS-232 TX RS-232 Signal Ground RS-232 Rx Direction Output Output Output Output Output Input
Gray
The sensor triggers from low to high, and Remote Teach behaves electrically like trigger (see above).
Gray
The sensor triggers from high to low, and Remote Teach behaves electrically like trigger.
Rev. C
13
NOTE: If the device used to trigger or remote teach the iVu Plus TG is a sinking device (that is, NPN), then there are two options regarding the use of a pull-up resistor: Option 1: Put a pull-up resistor, rated approximately 1k ohm, between the sensor's positive (+) voltage and the sensor's input as shown below.
Sinking
NPN
Option 2: Enable the Input Pullup in the iVu Plus TG software ( Main Menu > System > Discrete I/O > Input Pullup ).
(Pass)
(Fail)
(Pass)
(Pass)
(Fail)
(Pass)
NPN Outputs
14
Rev. C
Function Ready
(Pass)
(Fail)
(Pass)
(Pass)
(Fail)
(Pass)
NOTE: You may return to Demo Mode any time by going to Main Menu > System > Mode and selecting Demo.
Rev. C
15
Area Sensor
An Area type sensor is used to ensure that a feature, or some features, are present on a part. When setting up the sensor for an Area inspection, a feature, such as a drilled hole, is identified as well as the size (area) expected. If there is more than one of the identified features on a part, the number expected can be set as well. During the inspection, the sensor will verify that each part or package includes the specified number of features. Some example applications include: Inspections that check for drilled holes on a part Inspections that check for correctly stamped parts Inspections that ensure proper packaging (for example, check that a packing slip exists in or on a box; test whether a vial is properly capped) Inspections of blister packs
Blemish Sensor
A Blemish type sensor can be used to find flaws on a part (for example, scratches on a disc), or it can be used to make sure a feature exists on a part. Although verifying a feature is present on a part is more commonly an application for an Area sensor, a Blemish sensor may be a better option when dealing with variable materials or uneven lighting. Some example applications include: Inspections that check for scratches on a part, and reject parts where the scratches are too numerous or larger than acceptable Inspections that check for the presence of some label or marking on a part that may vary in color
Match Sensor
A Match type sensor is used to verify that a pattern, shape, or part in any orientation matches a reference pattern. The reference pattern is taught during setup. A reference pattern might include alphanumeric characters, logos, or any other shapes. During an inspection, the sensor checks that each part or package being inspected matches the reference pattern. Additionally, if there is more than one of the identified pattern, the number expected can be set. Some example applications include: Date/Lot code inspections Label inspections Part etching inspections Part orientation inspections Part shape inspections
Sort Sensor
A Sort sensor type that can recognize and sort up to ten different patterns within the same inspection. Each reference pattern is taught during setup and stored in one of ten pattern memory locations. A reference pattern might include alphanumeric characters, logos, or any other shapes, and the pass criteria can be set for any or all of the patterns. Some example application include: Identify and sort parts on a production line Ensure that several different parts are present in a package
16
Rev. C
2. Select the Sensor Type for the new inspection, and click Next.
3. Click Done. The newly created inspection will now be the current inspection.
Rev. C
17
2. Select the inspection to start and click the Start Running button that appears below it.
18
Rev. C
Communication Channels
The iVu Plus TG supports up to four communications channels . To access the channels, go to
Command Channela bi-directional communication protocol that currently supports ASCII and enables other devices to remotely control the iVu Plus sensor and access sensor results Industrial Etherneta bi-directional communication channel that allows the user to control the sensor and access sensor results using Ethernet/IP, Modbus/TCP, or PCCC protocol Data Exportused to export selected inspection data to a remote device Image Exportused to export inspection images to a remote device Data export and command channel can be configured for either Ethernet or Serial I/O (but not both); image export is only available over Ethernet. The table below briefly summarizes valid communication channel configuration options. Command Channels Command Channel Industrial Ethernet Data Export Image Export Scenario #1 Ethernet Yes Yes Yes Yes Serial I/O No No No No Scenario #2 Ethernet No Yes Yes Yes Serial I/O Yes No No No Scenario #3 Ethernet Yes Yes No Yes Serial I/O No No Yes No
Rev. C
19
You can select one of the trigger modes by accessing Main Menu > Imager > Trigger on the iVu touch screen display.
20
Rev. C
Rev. C
21
22
Rev. C
Area Menu
Main Menu > Inspection > Sensors > Area When configured as an Area sensor, the sensor is used to ensure that one or more features of interest are present on a part. To configure as an Area sensor, set four parameters: ROI Type (Rectangle, Elliptical, or Circle) and size Intensity Range (range of gray scale values) of a feature of interest Area Range, or size, of a feature of interest Pass Count
To see a working example of the sensor configured as an Area sensor, see Demo Mode.
Rev. C
23
ROI Type
Main Menu > Inspection > Sensors > Area > ROI Type The Region of Interest (ROI) is the user-defined area on the screen that the sensor will analyze. The ROI Type can be rectangular, elliptical, or circular. From the menu at the bottom of the ROI Type screen, select the ROI Type to use for the inspection. Adjust the ROI as appropriate for your inspection. An ROI can be as large as the entire Field of View (FOV).
Intensity Range
Main Menu > Inspection > Sensors > Area > Intensity Range Intensity Range is the range of gray scale values the sensor should look for. To set the Intensity Range, use the eye dropper on the left of the screen to select the target feature, then use the slider bar at the bottom of the display to fine tune the selection. As the slider bar is moved, green highlighted areas indicate objects the sensor finds.
NOTE: Objects that are colored yellow are found, but filtered out. This is because the objects fall outside of the Area Range. See Area Range to adjust this setting.
Area Range
Main Menu > Inspection > Sensors> Area > Area Range The Area Range is used to set the size limits of a feature of interest. Use the slider bar at the bottom of the display to select the range. Areas are measured by counting pixels. For example, a rectangular feature that is 100 pixels wide by 200 pixels tall will have an area of roughly 20,000 pixels.
Pass Count
Main Menu > Inspection > Sensors > Area > Pass Count The Minimum Pass Count is the minimum number of parts, labels, or features expected to fall within the specified criteria; the Maximum Pass Count is the maximum number expected to fall within the specified criteria. These settings are used to determine the pass or fail result of the inspection.
Blemish Menu
Main Menu > Inspection > Sensor > Blemish When configured as a Blemish sensor, it can be used to find flaws on a part (for example, scratches on a disc). It can be used to make sure the a feature exists on a part. Although this is more commonly an application for a sensor configured as an Area sensor, a Blemish sensor may be a better option to find a feature when dealing with variable materials or uneven lighting. Some sample applications include: Inspections that check for scratches on a part, and reject parts where the scratches are too numerous or larger than acceptable Inspections that check for the presence of some label or marking on a part that may vary in color To configure as a Blemish sensor, select the ROI type, and set the Sensitivity, Size Filter, and Pass Count.
24
Rev. C
ROI Type
Main Menu > Inspection > Sensors > Blemish > ROI Type The Region of Interest (ROI) is the user-defined area on the screen that the sensor will analyze. The ROI Type can be rectangular, elliptical, or circular. From the menu at the bottom of the ROI Type screen, select the ROI Type to use for the inspection. Adjust the ROI as appropriate for your inspection. An ROI can be as large as the entire Field of View (FOV).
Sensitivity
Main Menu > Inspection > Sensors > Blemish > Sensitivity Sensitivity is used to fine-tune how sensitive the sensor is to finding blemish or other edges within the ROI. The Sensitivity value helps account for light variations that might affect how well the sensor detects edges on inspected parts. The Sensitivity scale is from 0 to 100 where 0 means least sensitive and 100 means most sensitive. If set near 0, the sensor will only find very sharp edges with strong contrast. If set near 100, the sensor will find very dim or blurry edges, and may be unstable.
Match Menu
Main Menu > Inspection > Sensors > Match When the sensor is configured as a Match sensor, set the ROI Type, Percent Match, Rotation Range, Pass Count, and Timeout for the inspection. To see a working example of the sensor configured as a Match sensor, see Demo Mode.
Rev. C
25
ROI Type
Main Menu > Inspection > Sensors > Match > ROI Type The Region of Interest (ROI) is the user-defined area on the screen that the sensor will analyze. The ROI Type can be rectangular, elliptical, or circular. From the menu at the bottom of the ROI Type screen, select the ROI Type to use for the inspection. Adjust the ROI as appropriate for your inspection. An ROI can be as large as the entire Field of View (FOV).
Percent Match
Main Menu > Inspection > Sensors > Match > Percent Match The Percent Match setting adjusts for how closely the inspected part or label matches the reference part or label. The Percent Match scale is from 0 to 100 where 0 is the most tolerant and 100 is the least tolerant. Move the slider to the left or to the right.
Rotation Range
Main Menu > Inspection > Sensors > Match > Rotation Range The Rotation Range sets the expected rotation of parts or labels during an inspection. For example, a value of 45 means that the part may rotate 45 degrees in either direction from the reference part and still pass. Move the slider from 0 to 180 degrees.
NOTE: The smaller the rotation range, the faster the inspection will run.
Pass Count
Main Menu > Inspection > Sensors > Match > Pass Count The Minimum Pass Count is the minimum number of parts, labels, or features expected to fall within the specified criteria; the Maximum Pass Count is the maximum number expected to fall within the specified criteria. These settings are used to determine the pass or fail result of the inspection.
Timeout
Main Menu > Inspection >Sensors > Match > Timeout When the sensor type is set as Match or Sort, this screen provides for adjusting the maximum time the inspection is allowed to execute. A timeout error is reported in the case inspection runs out of time. If this value is set too high, the sensor can miss triggers while trying to detect a bad pattern.
Sort Menu
The Sort sensor is used to identify and sort up to 10 stored patterns. The menu items in the Sort sensor provide for managing stored patterns and configuring Sort sensor inspection parameters.
26 www.bannerengineering.com - tel: 763-544-3164 Rev. C
The Sort sensor cannot be added if any other sensors are selected. The Sort menu can only be reached when adding a sensor.
Saved Patterns
Main Menu > Inspection > Sensors > Sort > Saved Patterns When configuring a Sort sensor type, there are 10 pattern storage locations available. The Saved Patterns screen is used to save a taught pattern to an empty pattern storage location or to overwrite an existing pattern. This screen is also where patterns can be deleted from a storage location, named, or renamed.
Percent Match
Main Menu > Inspection > Sensors > Sort > Percent Match The Percent Match setting adjusts for how closely the inspected part or label matches the reference part or label. The Percent Match scale is from 0 to 100 where 0 is the most tolerant and 100 is the least tolerant. Move the slider to the left or to the right.
Rotation Range
Main Menu > Inspection > Sensors > Sort > Rotation Range The Rotation Range sets the expected rotation of parts or labels during an inspection. For example, a value of 45 means that the part may rotate 45 degrees in either direction from the reference part and still pass. Move the slider from 0 to 180 degrees.
NOTE: The smaller the rotation range, the faster the inspection will run.
Pass Criteria
Main Menu > Inspection >Sensors > Sort > Pass Criteria There are four options to select from to define pass criteria for a Sort sensor inspection, which are described below using an example where there are two saved patterns. Any Saved Pattern - Pass condition if the sensor matches either Pattern_1, Pattern_2, or both All Saved Patterns - Pass condition if the sensor matches both Pattern_1 AND Pattern_2 Single Saved Pattern - Pass condition if the sensor matches either Pattern_1 OR Pattern_2, but NOT both Specific Saved Pattern (requires selecting a saved pattern to match; for example, Pattern_2) - Pass condition when the sensor matches ONLY Pattern_2
Timeout
Main Menu > Inspection > Sensors > Sort > Timeout
Rev. C www.bannerengineering.com - tel: 763-544-3164 27
When the sensor type is set as Match or Sort, this screen provides for adjusting the maximum time the inspection is allowed to execute. A timeout error is reported in the case inspection runs out of time. If this value is set too high, the sensor can miss triggers while trying to detect a bad pattern.
Number of Edges
Main Menu > Inspection > Motion > Number of Edges On the Number of Edges screen, use the radio buttons to select One Edge or Two Edges. If One Edge is selected, motion is tracked in one direction (by default, horizontally); if Two Edges is selected, motion can be tracked horizontally and vertically.
Sensitivity
Main Menu > Inspection > Motion > Sensitivity Sensitivity is used to fine-tune how sensitive the sensor is to finding a reference edge. The Sensitivity value helps account for light variations that might affect how well the sensor detects edges on inspected parts. The Sensitivity scale is from 0 to 100 where 0 means least sensitive and 100 means most sensitive. If set near 0, the sensor will only find very sharp edges with strong contrast. If set near 100, the sensor will find very dim or blurry edges, and may be unstable due to noise within the image.
Rotation
Main Menu > Inspection > Motion > Rotation Rotation can be Enabled or Disabled. Select Enabled if the part can be expected to rotated during the inspection.
28
Rev. C
Inspection Name
Main Menu > Inspection > Properties > Inspection Name The Inspection Name screen displays the name of the current inspection. You can edit the name of the inspection here.
Inspection ID
Main Menu > Inspection > Properties > Inspection ID Click on the dropdown arrow to view a list of IDs assigned to all inspections on this device. Choose any unused ID to change the ID of this inspection. The original ID will be marked as 'Unused'. You may also swap the ID of this inspection with another inspection by selecting that inspection on the list.
From the Stored Inspections menu click Select, Add New, Startup, Delete, or Set Name/ID
Select
Main Menu > Inspection > Stored Inspections > Select The Select button identifies which inspection to update, start.
Add New
Main Menu > Inspection > Stored Inspections > Add New
Rev. C www.bannerengineering.com - tel: 763-544-3164 29
The Add New button is to add a new inspection. The sensor can store up to 30 inspections. When you add a new inspection, it will begin running. When adding a new inspection, the Sensor Type and inspection name will be set.
Startup
Main Menu > Inspection > Stored Inspections > Startup The Startup button allows you to select the inspection to use as the startup inspection; that is, the inspection the sensor will automatically start after power up.
Delete Inspections
Main Menu > Inspection > Stored Inspections > Delete The Delete button is used to delete stored inspections. Note that any running inspection, or the inspection marked as the Startup inspection, cannot be deleted.
Set Name/ID
Main Menu > Inspection > Stored Inspections > Set Name/ID The Set Name/ID button is used to change the name or ID of an inspection. You may sort the inspections in numeric or alphabetical order by clicking on the icon beside the Help icon.
30
Rev. C
3.3.2 Exposure
Main Menu > Imager > Exposure Exposure is the amount of time the sensor allows light to energize the imager. Increasing the exposure time by moving the slider to the right allows more light to energize the imager, which brightens the image.
3.3.3 Gain
Main Menu > Imager > Gain Gain is an electronic boost to the image signal. Increasing Gain by using the '-' and '+' keys or moving the slider to the right increases image brightness without increasing exposure time. Note that Gain brightens both the light pixels and dark pixels and may reduce the image quality.
3.3.4 Trigger
Main Menu > Imager > Trigger A Trigger is a signal that makes the sensor capture an image and inspect it. Use the radio buttons to select either External Trigger, Internal Trigger, Free Run, Industrial Ethernet Only, or Command.
If Internal Trigger is selected, triggers are based on timed intervals, and you need to select a trigger interval between 10 and 10000 milliseconds.
Rev. C
31
NOTE: If the interval is less than the inspection time, then missed triggers will occur. If External Trigger is selected, inspections are triggered in response to an electrical signal on the Trigger input line. If Free Run is selected, the sensor automatically runs continuous inspections. If Command is selected, the command channel is used to trigger the sensor from a remote device. If Industrial Ethernet Only is selected, trigger commands from the Industrial Ethernet communications channel only will be accepted.
3.3.5 Focus
Main Menu > Imager > Focus The Focus Number displayed at the bottom of this screen is used to fine-tune image focus. Loosen the lock on the lens cover, turn the focus ring on the sensor until the Focus Number peaks (or the image appears sharp), then lock the focus ring.
NOTE: For the Focus Number to work, the sensor must be triggering and the images must be similar over time.
3.3.6 Strobe
Main Menu > Imager > Strobe The Internal Strobe configures the operation of the integrated ring light. The External Strobe configures the operation of an external light.
32
Rev. C
External
Main Menu > Imager > Strobe > External The External Strobe is a 5V output that can be used for an external light. Setting options are Always ON, Always OFF, or Exposure Based. If Exposure Based is selected, then the external light is on during the time the sensor is capturing an image.
Internal
Main Menu > Imager > Strobe > Internal The Internal Strobe setting configures the operation of the integrated ring light. Setting options are Always ON, Always OFF, or Exposure Based. If Exposure Based is selected, then the ring light is on during the time the sensor is capturing an image. For UV models, the Always ON option is not available.
The field of view (FOV) is the area that the sensor can see at a given working distance. The working distance is the distance from the sensor's lens cover to the part being inspected. By default, the sensor uses the entire FOV in its operation. The effective FOV can be reduced in order to speed up the processing time of an inspection or to decrease background noise.
Maximize FOV
Main Menu > Imager > FOV > Maximize FOV If the FOV has been modified and you want to quickly get back to the default, click the Maximize FOV menu option to restore the FOV to the entire sensor display.
Modify FOV
Main Menu > Imager > FOV > Modify FOV Use this option to reduce or alter the size of the FOV.
34
Rev. C
3.4.1 Mode
Main Menu > System > Mode The sensor has two operating modes: Live Mode, which is the normal operating mode where the sensor captures live images, scans, and verifies barcodes Demo Mode, where inspections are run on stored images and inspection parameters. The first time the device is powered up it starts in Demo Mode. Demo Mode uses stored images and inspection parameters that demonstrate how the sensor is set up without having to worry about focus, lighting, or triggers. In this mode, practice making adjustments while observing how the adjustments affect the results. To exit Demo Mode go to Main Menu > System > Mode and select Exit Demo Mode. Upon exit, the sensor reboots into its normal operating mode with default settings.
NOTE: You may return to Demo Mode any time by going to Main Menu > System > Sensor Mode and selecting Demo.
Save to USB
Main Menu > System > Configuration > Save to USB
Rev. C
35
The Save to USB screen provides for saving sensor Configuration to a USB flash drive. The saved configuration information can be used as a backup or as a way to clone configuration information for other sensors.
Reset to Defaults
Main Menu > System > Configuration > Reset to Defaults Resets all sensor configuration to factory defaults. This operation will remove all existing inspections and replace with factory default.
3.4.3 Information
Main Menu > System > Information The Information screen displays the following sensor information: Serial Number Emulator (Firmware) Version Boot Number Up Timerthe time elapsed since last boot of the sensor Hour Countthe total hours of operation in the sensor's lifetime Model Number Device Name
36
Rev. C
Click the right-arrow next to the Sensor Name field to display a software keyboard that allows you to change the Sensor Name. You may set the sensor name in English on the device. To set the sensor in any other language, please use the Emulator software.
NOTE: Either Data Export Channel, Image Export Channel, OR Command Channel can be enabled at a time. Serial I/O can only be configured for either Data Export or Command Channel. Image Export is only available for Ethernet.
Rev. C
37
The sensor's Ethernet communications can be used to send data out the Ethernet port as part of an inspection, and remote devices can communicate with the sensor. The Ethernet I/O screen is where IP Address, Subnet Mask, and Gateway settings are configured. Use the expand arrow next to each field to display a software keypad to enter values for each field. Click the Status button at the bottom of the screen to verify communications as you connect to remote devices.
38
Rev. C
Port Status
Main Menu > System > Communications > Serial I/O > Status The Port Status screen can be used to ensure data is entering and exiting the sensor. This can be useful for debugging issues such as improper wiring, mismatched baud rates, or other serial I/O issues.
Industrial Ethernet
Main Menu > System > Communications > Industrial Ethernet The iVuPlus device can be controlled or monitored over Industrial Ethernet using Ethernet/IP, Modbus/TCP or PCCC protocols. This document will help you to set up the iVu Plus in the desired configuration and provide you with information you will need to connect to the master device (PLC, HMI, etc.).
Connection
Main Menu > System > Communications > Industrial Ethernet > Connection The Connection screen is used to enable either Modbus or EIP/PCCC protocols on Industrial Ethernet channel. Select 'Disable' to completely disable Industrial Ethernet channel.
Map
Main Menu > System > Communications > Industrial Ethernet > Map The Map setting (Default/Custom) affects only on EIP assembly 0x65 or MODBUS/PCCC registers 30001 to 30240 at offset 55-166.
Default Map
Main Menu > System > Communications > Industrial EtherNet > Map > Default Automatically maps sensor data for each inspection. Recommended when execution order of sensor types is the same across inspections. When inspection has multiple sensors, the first 5 sensor results will be shown starting at offset 55. Each sensor result will occupy 20 words. The following is a table of EIP assembly 0x65 when using Default Map setting. WORD # 0 1 2-3 4-5
Rev. C
WORD NAME Input Bits ACK Register Output Bits Register Error Code Inspection Number
www.bannerengineering.com - tel: 763-544-3164
Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer
39
WORD # 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 56-74 75 76-89 95 95-114 115 116-134 135 136-154 155-170 171 172 173-174 175-176 177-178 179-228 229-239
WORD NAME Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID (Sensor 1) Sensor 1 Specific Data Sensor Type ID (Sensor 2) Sensor 2 Specific Data Sensor Type ID (Sensor 3) Sensor 3 Specific Data Sensor Type ID (Sensor 4) Sensor 4 Specific Data Sensor Type ID (Sensor 5) Sensor 5 Specific Data reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved
Data Type 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
2-Word Length + 20-Unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array
If the inspection contains more than 5 sensors, the sensor(s) after the 5th one will not be on the map. Area Sensor Type ID = 2 Sensor Specific Data Area Count Area Range Min Area Range Max Data Size 32- bit integer 32- bit integer 32- bit integer
40
Rev. C
Blemish Sensor Type ID = 3 Sensor Specific Data Blemish Count Blemish Min Edge Length Blemish Min Edge Length Sensor Location 32- bit integer 32- bit integer 32- bit integer Match Sensor Type ID = 4 Sensor Specific Data Match Count Match Min Percent Match Max Percent Sensor Location 32- bit integer 16- bit integer 16- bit integer
Rev. C
41
Sort Sensor Type ID = 5 Sensor Specific Data Sort Pattern Map Sort Pattern Count Sort Pattern 1 Count Sort Pattern 2 Count Sort Pattern 3 Count Sort Pattern 4 Count Sort Pattern 5 Count Sort Pattern 6 Count Sort Pattern 7 Count Sort Pattern 8 Count Sort Pattern 9 Count Sort Pattern 10 Count Sort Min Percent Match Sort Max Percent Match Sensor Location 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
Custom Map
Main Menu > System > Communications > Industrial EtherNet > Map > Custom Allows customization of fix sensor data on the map. Select data items of interest for each sensor type. Recommended when execution order of sensor types vary across inspections or when using more than 5 sensors. A System level custom map is supported for additional flexibility. When Custom Map is selected, a customizable space is used in the offset range (55 to 166) on EIP assembly 0x65 registers. The following is a table of EIP assembly 0x65 registers when using Custom Map setting. WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 WORD NAME Input Bits ACK Register Output Bits Register Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
42
Rev. C
WORD # 30-52 53-54 55-166 167-170 171 172 173-174 175-176 177-178 179-228 229-239
WORD NAME Inspection Name Frame Number Customizable Space (112 reg) reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved
16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array
To export the Custom Map, Click the icon to save a text listing of the map (Filename: iVuIEMap.csv) to an attached USB drive. (This operation is also supported on Emulator; iVuIEMap.csv will be saved on the application folder.)
Status
Main Menu > System > Communications > Industrial Ethernet > Status The status screen displays information about the current connection. This information is protocol specific.
View Logs
Main Menu > System > Communications > Industrial Ethernet > View Logs This screen displays the list of recent events on Industrial Ethernet channel. Detailed logging can be selected under Setup when troubleshooting.
Command Channel
Main Menu > System > Communications > Command Channel The iVu command channel is a bi-directional communication protocol that currently supports ASCII via the RS-232 serial interface or ethernet interface, and enables other devices to remotely control the iVu sensor and to access sensor results.
Rev. C
43
Connection
Main Menu > System > Communications > Command Channel > Connection The Connection screen is used to enable or disable the Command Channel.
Delimiters
Main Menu > System > Communications > Command Channel > Delimiters In the Delimiters screen, there are three delimiter options that you can set: Field Delimiter, which determines what is used to separate data that the sensor is sending out to a remote device. End of Frame, which determines the delimiter used to indicate the end of a frame. String Delimiter, which determines what is used to enclose a string field during both input and output operations. Use the drop-down lists to select the appropriate delimiter. The example at the lower part of the screen displays how the data will look in the output or input streams.
44
Rev. C
Connection
Main Menu > System > Communications > Data Export > Connection The Connection screen is used to enable or disable the Data Export Channel.
Data To Export
Main Menu > System > Communications > Data Export > Data To Export The Data To Export screen is used to determine the information included in a data export. Data will output in the order displayed on the screen.
NOTE: Grab the edge of the Data to Export menu and pull down to allow all information to show.
Rev. C
45
Output Format
Main Menu > System > Communications > Data Export > Output Format In the Output Format screen, use the drop-down lists to select Start and End Strings as well a delimiter. In the field at the bottom of the screen is an example of how the data will look when it is output.
NOTE: This setting affects both the Data Export Channel and Image Export Channel.
Connection
Main Menu > Communications > Image Export > Connection The Connection screen is used to enable or disable the Image Export Channel.
Image Type
Main Menu > System > Image Export > Image Type Choose between JPEG or Bmp format for te exporting image file.
Rev. C
47
NOTE: This setting affects both the Data Export Channel and Image Export Channel.
Input Polarity
Main Menu > System > Discrete I/O > Input Polarity The iVu has two input signalsTrigger and Remote Teach. Both these signals are edge sensitive. The operation of these signals is dependent on the Input Polarity setting. Low To High - The Trigger and Remote Teach are detected on a low to high transition of the signal. High To Low - The Trigger and Remote Teach are detected on a high to low transition of the signal. The default setting for a PNP sensor is Low To High, and for an NPN sensor it is High To Low. The user can change the setting on the Input Polarity screen.
48
Rev. C
Input Pullup
Main Menu > System > Discrete I/O > Input Pullup By default, the Input Pullup is disabled. If the device used to trigger and remote teach the iVu sensor is a Sinking device (NPN) then you will only need to enable Input Pullup here if that device does not have its own pullup resistor. Otherwise, this should be disabled.
Output Type
Main Menu > System > Discrete I/O > Output Type Select NPN to configure the sensor's outputs to sink current. Select PNP to configure the sensor's output for source current.
Output 1, 2, and 3
Main Menu > System > Discrete I/O > Output (#)
Output can be configured for Inspection Pass, Inspection Fail, Sensor Pass, Sensor Fail, Sort Pattern #1, Missed Trigger or System Error. A Missed Trigger condition occurs when a trigger is received while sensor is busy inspecting the pervious image. This output signal will be set to active state. This signal will be reset up on resetting the 'History' on the statistics page. A System Error condition occurs when a fatal error is detected on the sensor. This output signal will be set to active state. This signal can be reset upon resetting the 'History' on the statistics page, or executing a 'ClearSystemError' command through command channel. The default setting is Pass and Latched for Output 1. If Pulsed is selected, the default Pulse width is 50 ms.
NOTE: For Latched the signal is active until the results of an inspection cause a change in the signal output.
When either Sensor Pass or Sensor Fail is selected, additional setting will become available as shown on the following graphic.
50
Rev. C
On the "Select Sensor" screen, the left column check box allows adding sensor position to be part of the logic that activates the output. One or more sensor positions can be added. The right column on the table shows the sensor name(s) and their respective position from the current inspection for reference. The bottom drop list has two settings: All Selected: All checked sensor positions must meet the setting criteria (Pass/Fail) to activate the output. Any Selected: Any checked sensor position that meets the setting criteria (Pass/Fail) will activate the output. When a selected sensor position is missing on the current inspection, the missing sensor(s) will not be part of the logic to activate the output. For example: when only 2 sensors are included on the current inspection and the Output > Select Sensor(s) has Sensor #1, Sensor #2 and Sensor #3 checked; only Sensor #1 and Sensor #2 will be used to determine the output state, as Sensor #3 is not defined by the current inspection.
LCD Timeout
Main Menu > System > Display Settings > LCD Timeout The LCD screen dims after a user-selectable period when the device is not being used. Use the arrow keys or slide the bar at the bottom of the screen to set the LCD screen time out.
Touch Calibration
Main Menu > System > Display Settings > Touch Calibration
Rev. C www.bannerengineering.com - tel: 763-544-3164 51
Touchscreen Calibration may be necessary if the software does not correctly respond when an icon on the screen is pressed. The calibration routine aligns the touch screen's coordinates to the display behind it. Be sure to follow the prompts on the screen when executing the Touchscreen Calibration function.
Advanced
Main Menu > System > Display Settings > Advanced The Advanced Display screen allows you to enable the Optimize Display Response option. This feature helps to make the display more responsive when the sensor is busy (either inspection times are long and/or no idle time exists between inspections). Disable this feature if Missed Triggers occur due to touchscreen presses. With this setting disabled, the display may become sluggish when the sensor is busy.
52
Rev. C
View Logs
Main Menu > Logs > Inspection Logs > View Logs Inspection Logs appear as a strip of film. You can select a frame to view a specific image. Use the icon in the lower right of the screen to save the logs to the USB drive. Logs saved to the USB drive can be imported into the emulator. Click the Clear button to clear Inspection Logs.
Rev. C
53
The View Inspection Log screen is used to debug an inspection, and shows one inspection in read-only mode. Click the upper-left icon to cycle through views. When in Statistics view, the table title has arrows to switch between Inputs and Results of the Inspection. Use the left and right arrow keys at the bottom of the screen to navigate through the all stored Inspection Logs.
Setup
Main Menu > Logs > Inspection Logs > Setup Use the radio buttons to Disable Logging, to log Passed Inspections, Failed Inspections, or All Inspections.
54
Rev. C
NOTE: System log will not log changes while in Demo mode. Additionally, the Emulator does not log changes.
NOTE: Communication log will not log changes while in Demo mode. Additionally, the Emulator does not log changes.
The Communication Log logs the most recent Command communication activity. Each entry in the log includes a status indicator for the operation. A green indicator displays when the channel is enabled or disabledlight green when the channel is enabled and dark green when the port is disabled. An up-arrow displays for incoming requests from a remote device. A down-arrow displays for outgoing responses from the iVu sensor. The up- and down-arrows are green when everything is OK and red if there is an error. The up-arrow will be yellow if the command is incomplete (for example, waiting for an end-of-frame delimiter).
NOTE: Note: an hourglass will display if an operation takes a particularly long time to complete; for example, during a long trigger.
Each log entry includes a log detail button (arrow icon on right side of log entry) to display a detail view of the log entry. Buttons at the bottom of the screen provide for refreshing the display and clearing the log. Additionally, the communication log can be saved to the USB drive so that the communication log can be imported to the emulator.
56
Rev. C
4 Home Screen
The Home screen on the iVu Series sensor display is used to monitor inspections and to configure the sensor. Normally, the part being inspected is centered on the screen with the feature of interest bounded by the Region of Interest (ROI), a rectangle as shown below. The ROI can be rotated and resized, and is highlighted when selected for adjustment. In the following graphic, there are 2 ROI because it is a multi sensor inspection. The green annotations indicate the object passes, and the red annotations indicate a failure. This sample inspection failed as shown by the red X next to the Display mode.
Rev. C
57
This screen shows inspection history from sensor reboot, or the last time the statistics were reset. Click the Reset button to reset statistics. The table contains history of each sensor in the inspection. Data of each sensor can be expanded or collapsed as required. If a sensor fails, an icon besides the sensor name will indicate the reason of failure. The data displayed on this screen is retained when running different inspections.
The green area indicates the sensor passed, red indicates fail. Click the icon to see the information. Click the right arrow to see the Inspection Result. This screen shows data about the current inspection being viewed. The table contains result of each sensor in the inspection. To view details of each sensor, click on the + icon. If a sensor fails, its box will be drawn in RED. An icon besides the sensor name indicates the reason of its failure.
58
Rev. C
Click the right arrow to see the inspection inputs. The Inspection Input page has the sensor settings. Use this page to verify what inspection input settings were used on the latest inspection. Use the right arrows as a shortcut go to a sensor setting screen.
Rev. C
59
5 Setting up an Inspection
The device will hold up to 30 inspections. Inspections may hold multiple sensors. In order to set up for an inspection, you need to: 1. Acquire a good image. 2. Configure the sensor(s) in the inspection 3. Configure multiple sensors in the inspection
4. Go to Main Menu > Imager > Focus to adjust the focus while monitoring the Focus Number:
60
Rev. C
For Micro-lens Models Only: 1. Use the supplied 1/16" hex key to loosen the Focusing Window locking screw (D), then adjust focus on the iVu Series sensor using the clear Focusing Window (B). 2. Adjust focus while monitoring the focus number. To ensure the best image, adjust the focus until the Focus Number peaks.
NOTE: Turning the Focusing Window counter-clockwise focuses on closer objects, while turning the Focusing Window clockwise focuses on more distant objects.
3. After the best image has been acquired, lock the focusing window. Micro-Lens Models A B C D E F Lens Focusing Window Locking Clip Locking Screw Filter Cap (optional) Filter (optional)
For C-Mount Models Only: 1. Remove the Lens Enclosure 2. Adjust focus while monitoring the focus number. To ensure the best image, adjust the focus until the Focus Number peaks. 3. Replace the Lens Enclosure on the camera.
Rev. C
61
C-Mount Models A C-Mount Lens Lens Enclosure Retainer Ring (optional) Filter (optional) Filter Retainer Ring Tool
E
B
B C D E
62
Rev. C
6 Configuring Sensors
Each sensor type has a shortcut menu available from the inspection menu. From the Home screen, click inside the Region of Interest (ROI). The ROI is the visual area indicated by a dotted line on the inspection. In the Demo mode this will be the Banner logo. The dotted line will turn bold and have rotation and size icons in the corners. At the top of the screen the Inspection Name will change to a black button called Sensor Name. Click the black Sensor Name button and a drop down box will appear. No matter what parameter you are setting, if you click inside the ROI it will highlight into a bold dotted line that can be resized.
The ROI type is the shape of the area of inspection. The ROI can be a rectangle, circle, or ellipse
Intensity Range is the range of gray scale values the sensor should look for. To set the Intensity Range, use the eye dropper on the left of the screen to select the target feature, then use the slider bar at the bottom of the display to fine tune the selection. As the slider bar is moved, green highlighted areas indicate objects the sensor finds.
The Sensitivity slider is used to fine-tune how much or how little contrast the sensor will recognize within the ROI. The Sensitivity value helps account for light variations that might affect how well the sensor detects edges. The Sensitivity scale is from 0 to 100 where 0 means least sensitive and 100 means most sensitive. If set near 0, the sensor will only find very sharp edges with strong contrast. If
-----
Rev. C
63
Area Sensor
Blemish Sensor set near 100, the sensor will find very dim or blurry edges, and may be unstable.
Match Sensor
Sort Application
-----
-----
The Percent Match slider adjusts for how closely the inspected part or label matches the reference part or label. The Percent Match scale is from 0 to 100 where 0 is the most tolerant and 100 is the least tolerant. Percent Match and Rotation Range work together. For the best results, use a value from 50 to 90
The Edge Length Range slider adjusts the edge pixels in the The Area Range is used to set ROI. The slider of the Edge the size limits of a feature of inLength Range screen shows all terest. Use the slider bar at the the different contiguous edge bottom of the display to select segments found. Edge segthe range. Areas are measured ments within the two brackets [ ] by counting pixels. For example, are highlighted in green and a rectangular feature that is 100 those outside the brackets are pixels wide by 200 pixels tall will ignored and colored yellow. You have an area of roughly 20,000 can move each bracket to add pixels. or remove more of the edge segments from consideration.
The Rotation Range sets the expected rotation of parts or labels during an inspection. For example, a value of 45 means that the part may rotate 45 degrees in either direction from the reference part and still pass. Move the slider from 0 to 180 degrees. Note that the smaller the rotation range, the faster the inspection will run.
Pass Criteria (assuming only two stored patterns): Any Saved PatternPass condition if the sensor matches either Pattern_1, Pattern_2, or both The Pass Count establishes the pass/fail result of the inspection. The Minimum Pass Count is the minimum number of parts, labels, or features expected to fall within the specified criteria; the Maximum Pass Count is the maximum number expected to fall within the specified criteria. However with Blemish Pass Count - the count is about pixels. The specified criteria is the pixel range that falls in between the minimum and maximum pass counts. All Saved PatternsPass condition if the sensor matches both Pattern_1 AND Pattern_2 Single Saved PatternPass condition if the sensor matches either Pattern_1 OR Pattern_2, but NOT both Specific Save Pattern (Must also select the saved pattern to match, for example, select Pattern_2)Pass condition any time the sensor matches Pattern_2 --------Time Out is the amount of time the inspection will hit on an image. If it times out before the inspection is complete, it will fail.
64
Rev. C
NOTE: By default, the Trigger is set to Internal, and will continuously trigger based on a time interval setting. This may make it more difficult to make adjustments while setting up the sensor. The best practice is as follows: Go to the Main Menu > Imager > Trigger menu and select External.
Make sure there is no external trigger input. Use the Trigger icon in the lower-right of the screen to manually trigger the sensor to capture an image as you set up and test. Capture images of a range of samples to set up from the "worst" good part to the "best" bad part.
Start the setup with a good part. Normally, each part to be tested will be centered in the Field of View (FOV). To adjust the Region of Interest (ROI), follow the steps listed here. The ROI is the red box as shown.
1. Click anywhere within the ROI to select it. When selected, the ROI has resize and rotational icons in the corners. It also changes the top button to the sensor name
2. Resize and move the ROI to surround the feature of interest. In the Demo example, the feature of interest is the Banner logo as shown here. It is still red because the parameters need to be set.
Rev. C
65
NOTE: When running an Area inspection, the sensor will only find objects within the ROI.
4. Set sensor parameters. Adjust the Intensity Range is the range of grayscale values the sensor should look for. To set intensity range, use the eye dropper on the left of the screen to select the target feature, then use the slider bar at the bottom of the screen to fine tune the selection.
NOTE: To get to the other parameters click the back arrow > click inside the ROI > click the black sensor name button.
Adjust the Area Range. The Area Range is used to set the size limits of a feature of interest. Use the slider bar at the bottom of the display to select the range. As the range narrows, the highlighted area turns yellow. Areas are measured by counting pixels. For example, a rectangular feature that is 100 pixels wide by 200 pixels tall will have an area of roughly 20,000 pixels. The screenshot indicates that the areas that are white are now within range of the inspection.
66 www.bannerengineering.com - tel: 763-544-3164 Rev. C
Move the slider at the bottom of the screen to the to the desired area range. In the Demo example, the Area Range is adjusted so that each letter is identified as a found object (indicated by the green highlight and the blue +). Set the Pass Count parameter. The Minimum Pass Count is the minimum number of parts, labels, or features expected to fall within the specified criteria; the Maximum Pass Count is the maximum number expected to fall within the specified criteria. These settings are used to determine the pass or fail result of the inspection.
NOTE: Start with the Maximum Pass Count - the Minimum will not allow it to be more than the maximum.
Set the Minimum Pass Count and Maximum Pass Count as appropriate. In the Demo, both are set to 6, since the inspection should find six letters. The green check in the upper left corner indicates the sensor inspection passed.
NOTE: Remote Teach does not work with the Area Sensor type.
Test the complete range of good and bad samples to make sure that the sensor accepts good parts and rejects bad. To complete the Area application setup, set triggering as appropriate for your application.
Rev. C
67
NOTE: By default, the Trigger is set to Internal, and will continuously trigger based on a time interval setting. This may make it more difficult to make adjustments while setting up the sensor. The best practice is as follows: Go to the Main Menu > Imager > Trigger menu and select External.
Make sure there is no external trigger input. Use the Trigger icon in the lower-right of the screen to manually trigger the sensor to capture an image as you set up and test. Capture images of a range of samples to set up from the "worst" good part to the "best" bad part.
The Demo application shows how the sensor, when configured as a Blemish sensor, can accept or reject parts based on the range of edge pixels the sensor detects in the ROI. Start the setup with a good part. Normally, each part to be tested will be centered in the Field of View (FOV). 1. Adjust the Region of Interest (ROI). Resize the ROI so that it surrounds just the feature of interest. In the Blemish Demo example, the feature of interest includes the two irregular shapes below the Banner logo.
2. Adjust the parameters of the sensor by clicking inside the ROI then click the black sensor button.
Adjust the Sensitivity parameter. Sensitivity is used to fine-tune how sensitive the sensor is to finding blemish or other edges within the ROI. The Sensitivity value helps account for light variations that might affect how well the sensor detects edges. The
68 www.bannerengineering.com - tel: 763-544-3164 Rev. C
Sensitivity scale is from 0 to 100 where 0 means least sensitive and 100 means most sensitive. If set near 0, the sensor will only find very sharp edges with strong contrast. If set near 100, the sensor will find very dim or blurry edges, and may be unstable.
Use the slider on the bottom of the screen to adjust the sensitivity watching as the sensor detects more or fewer edges. Adjust the Edge Length Range. The sensor counts all the edge pixels it detects in the ROI. The bar at the bottom of the Edge Length Range screen shows all the different contiguous edge segments found. Edge segments within the two brackets [ ] are highlighted in green and those outside the brackets are ignored and colored yellow as in the example. You can move each bracket to add or remove more of the edge segments from consideration.
Move the slider at the bottom of the screen to the to the desired Edge Length Range. You can zoom in to refine the range.
Adjust the Pass Count parameter. The sensor aggregates all the edge pixels that fall within the Edge Length Range and indicates the value with a small colored bar at the bottom of the page. If within the range brackets, the bar is green, otherwise it is yellow.
Rev. C
69
Now the inspection for the blemish sensor is set up to be sensitive enough to find blemishes under the logo and fail the inspection. Test the complete range of good and bad samples to make sure that the sensor accepts good parts and rejects bad. To complete the Blemish application setup, set triggering as appropriate for your application.
NOTE: Remote Teach does not work with the Blemish Sensor type.
70
Rev. C
NOTE: By default, the Trigger is set to Internal, and will continuously trigger based on a time interval setting. This may make it more difficult to make adjustments while setting up the sensor. The best practice is as follows: Go to the Main Menu > Imager > Trigger menu and select External.
Make sure there is no external trigger input. Use the Trigger icon in the lower-right of the screen to manually trigger the sensor to capture an image as you set up and test. Capture images of a range of samples to set up from the "worst" good part to the "best" bad part.
Start the setup with a good part. Normally, each part to be tested will be centered in the Field of View (FOV). Teach the sensor a good reference part. 1. Adjust the Region of Interest (ROI).The ROI is a dotted box as shown. The color of the box depends on the inspection parameters (red for fail, green for pass).
2. Click Anywhere within the ROI to select it. When selected, the ROI is bolded with resize and rotational icons in the corners.
3. Resize the ROI so that it surrounds just the feature of interest. In the Demo example, the feature of interest is the Banner logo.
Rev. C
71
NOTE: When running a Match inspection, the sensor will look for any possible patterns to match anywhere within the Field of View. 4. Click the Teach icon to teach the sensor this good reference part.
Adjust the Percent Match parameter. The Percent Match setting adjusts for how closely the inspected part or label matches the reference part or label. The Percent Match scale is from 0 to 100 where 0 is the most tolerant and 100 is the least tolerant. Move the slider to the left or to the right.
72
Rev. C
NOTE: When running a Match inspection with annotations enabled, the sensor will highlight in green any pattern matches that meet or exceed the value specified for Percent Match. Patterns that are below the specified value for Percent Match (down to approximately 20%), or out of the Rotation Range (see below), will be colored yellow. Using a "bad" part, click the Manual Trigger icon in the lower-right of the screen to capture an image. For this example, one of the stored images is missing the letter "N," yet the sensor initially sees this as a "good" label.
On the adjustment at the bottom of the screen, adjust the slider and click the Manual Trigger button. When adjusted correctly, the annotations should turn yellow, and the icon in the upper-right of the screen should indicate fail.
Adjust the Rotation Range. The Rotation Range sets the expected rotation of parts or labels during an inspection. For example, a value of 45 means that the part may rotate 45 degrees in either direction from the reference part and still pass. Move the slider from 0 to 180 degrees. Note that the smaller the rotation range, the faster the inspection will run.
NOTE: Rotations Range and Percent Match work together. The higher the Percent Match, the lower the Rotation Range to pass. In the previous example a 99% match is too high for any rotation. In the next graphic the Percent Match has been lowered to 92% which will still fail a missing letter.
To set the Rotation Range: Move the slider at the bottom of the screen to the desired rotation. If you are verifying that a label is correctly applied to a container; that is, on straight, you will want to set a small rotation. If you want to make sure that the correct label is present no matter how the part is oriented in the Field of View, then the rotation range will be set to its maximum (90, which is the setting for the Demo).
Rev. C
73
Set the Pass Count parameter. The Minimum Pass Count is the minimum number of parts, labels, or features expected to fall within the specified criteria; the Maximum Pass Count is the maximum number expected to fall within the specified criteria. These settings are used to determine the pass or fail result of the inspection. Set the Minimum Pass Count and Maximum Pass Count as appropriate. In the Demo, both are set to 1.
Test the complete range of good and bad samples to make sure that the sensor accepts good parts and rejects bad. To complete the Match application setup, set triggering as appropriate for your application.
74
Rev. C
NOTE: By default, the Trigger is set to Internal, and will continuously trigger based on a time interval setting. This may make it more difficult to make adjustments while setting up the sensor. The best practice is as follows: Go to the Main Menu > Imager > Trigger menu and select External.
Make sure there is no external trigger input. Use the Trigger icon in the lower-right of the screen to manually trigger the sensor to capture an image as you set up and test. Capture images of a range of samples to set up from the "worst" good part to the "best" bad part.
1. Make sure you use good parts for the inspection setup. Normally, each part will be centered in the field of view with the feature of interest surrounded by the Region of Interest (ROI), a blue rectangle. The ROI can be rotated and resized, and is red when selected for adjustment.
For the first part, select the ROI by clicking inside it. Move it, resize it, and rotate it by dragging the ROI or its corners. Once the feature of interest is within the ROI, click the Teach button. The feature will be highlighted in green.
Tip: Use the short-cut menu in the upper-right of the screen to select an ROI-type. For better results, make sure that the ROI bounds the image of the pattern as tightly as possible.
Rev. C
75
NOTE: When running a Sort inspection, the sensor will look for any possible patterns to match anywhere within the field of view. 2. Click the Save button to save the pattern to the first empty pattern storage slot.
3. Set match criteria: The Percent Match setting adjusts how closely the inspected part or label needs to match any of the ten stored patterns. The Percent Match scale is from 0 to 100, where 0 is the most tolerant and 100 is the least tolerant. Move the slider to the left or to the right to adjust the setting. For the best results, use a value from 50 to 90.
NOTE: When running a Sort inspection, the sensor will highlight in green any pattern matches that are within the specified Rotation Range and meet or exceed the value specified for Percent Match. Patterns that are within the specified Rotation Range and within approximately 20% below the specified value for Percent Match will be colored yellow. The Rotation Range sets the expected rotation of parts or labels during an inspection. For example, a value of 45 means that the part may rotate 45 degrees in either direction from the reference part and still pass. Move the slider from 0 to 180 degrees. Note that the smaller the rotation range, the faster the inspection will run. 4. Repeat these steps for subsequent patterns and store each pattern in an empty pattern storage slot. 5. Set the Pass Criteria (assuming only two stored patterns): 6. Use the Manual Trigger, located in the lower-right corner of the screen, to test good and bad parts. Adjust settings as necessary and retest. Any Saved PatternPass condition if the sensor matches either Pattern_1, Pattern_2, or both All Saved PatternsPass condition if the sensor matches both Pattern_1 AND Pattern_2 Single Saved PatternPass condition if the sensor matches either Pattern_1 OR Pattern_2, but NOT both Specific Save Pattern (Must also select the saved pattern to match, for example, select Pattern_2)Pass condition any time the sensor matches Pattern_2
76
Rev. C
6.6.2 Sensitivity
Main Menu > Inspection > Motion > Sensitivity Sensitivity is used to fine-tune how sensitive the sensor is to finding a reference edge. The Sensitivity value helps account for light variations that might affect how well the sensor detects edges on inspected parts. The Sensitivity scale is from 0 to 100 where 0 means least sensitive and 100 means most sensitive. If set near 0, the sensor will only find very sharp edges with strong contrast. If set near 100, the sensor will find very dim or blurry edges, and may be unstable due to noise within the image.
6.6.3 Rotation
Main Menu > Inspection > Motion > Rotation Rotation can be Enabled or Disabled. Select Enabled if the part can be expected to rotated during the inspection.
Clicking on Add Sensor will display the list of sensor types that can be added into the inspection.
Rev. C
77
Click in the Sensor Setup area (Black button) to display the input parameter menu for that sensor.
Click on the yellow down-arrow button to access sensor management functions. Icon Function Move selected sensor up in the execution order Move selected sensor down in the execution order Edit name of selected sensor Delete selected sensor Once all the sensors are configured as required for the application, the inspection Pass/Fail criteria is determined by considering the results of the individual sensors. An inspection is considered as PASS if ALL sensors in the inspection pass. If any sensor fails, the inspection is marked as FAIL.
78
Rev. C
7 iVu Plus Communications 7.1 iVu Plus Communication Summary of Ethernet and Serial
The iVu Plus communicates with other devices via Ethernet or a UART serial communications port (RS-232). In order to establish an Ethernet connection to the sensor, the external device must be configured with the correct IP address and correct TCP port to communicate. To use the serial communications connection, port settings for baud rate, data bits, parity, and stop bits must be configured on the iVu Plus to match the settings of the external device.
Command Channela bi-directional communication protocol that currently supports ASCII and enables other devices to remotely control the iVu Plus sensor and access sensor results Industrial Etherneta bi-directional communication channel that allows the user to control the sensor and access sensor results using Ethernet/IP, Modbus/TCP, or PCCC protocol Data Exportused to export selected inspection data to a remote device Image Exportused to export inspection images to a remote device Data export and command channel can be configured for either Ethernet or Serial I/O (but not both); image export is only available over Ethernet. The table below briefly summarizes valid communication channel configuration options. Command Channels Command Channel Industrial Ethernet Data Export Image Export Scenario #1 Ethernet Yes Yes Yes Yes Serial I/O No No No No Scenario #2 Ethernet No Yes Yes Yes Serial I/O Yes No No No Scenario #3 Ethernet Yes Yes No Yes Serial I/O No No Yes No
Rev. C
79
do trigger\x0D\x0A
A B
OK\x0D\x0A
C D
A B
C D
The following are some of the functionality available via the command channel: Get sensor information (such as version and sensor name) Control "discrete" I/O (such as trigger and teach) Get sensor results (such as sensor status) Change the running inspection
7.1.3 Command Channel Sample Application The iVu Plus TG installation CD has a Command Channel sample application that provides an easy interface to execute commands. In a production environment, you will need to create your own application for bi-directional communication with the sensor.
80
Rev. C
Sort
Count Percent Match All Found Pattern Numbers All Found Pattern Names
7.1.4 Inspection Results Options Sensor Type Area Data to Export Count Area Range Blemish Count Edge Length Range Match Count Percent Match Sort Count Percent Match All Found Pattern Numbers All Found Pattern Names Data export settings apply to all inspections sensor-wide. If items are selected that are not part of the current inspection, those items are ignored. 7.1.4 Sample Application The iVu Plus TG installation CD has a Data Export sample application that provides for viewing exported data while setting up the sensor, etc. In a production environment, you will need to create your own application to process data exported from the sensor.
82
Rev. C
NOTE: If FOV's are adjusted so that they are smaller, the bitmaps will also be smaller.
7.1.5 Image Export Sample Application The iVu Plus TG installation CD has a Image Export sample application that provides a way to save exported images. In a production environment, you will need to write your own application to process exported images, for example to display them on an HMI or to save them to disk.
Rev. C
83
4. In the Internet Protocol (TCP/IP) Properties dialog, select Use the following IP address and make sure that the IP address is 192.168.0.2, and the subnet mask is 255.255.255.0.
84 www.bannerengineering.com - tel: 763-544-3164 Rev. C
Windows XP
Windows 7 4. In the Internet Protocol (TCP/IPv4) Properties dialog, select Use the following IP address and make sure that the IP address is 192.168.0.2, and the subnet mask is 255.255.255.0.
On the iVu sensor: 1. Go to Main Menu > System > Communications > Ethernet I/O and make sure that the sensor is configured as shown below.
2. To enable the command channel over Ethernet: a. Go to Main Menu > System > Communications > Command Channel > Connection , and select Ethernet [IP Port # 32000].
b. Configure the field and end-of-frame delimiters. Go to Main Menu > System > Communications > Command Channel > Delimiters .
Rev. C
85
Valid end-of-frame delimiters are: <comma>, <colon>, <semicolon>, <CR>, <CR><LF>, <LF><CR>, or <ETX>. c. Verify that the iVu receives and transmits data correctly. 3. To enable Data Export over Ethernet: a. Go to Main Menu > System > Communications > Data Export > Connection and select Serial I/O from the drop-down.
b. Go to Main Menu > System > Communications > Data Export > Data To Export and select the inspection data to export.
c. Go to Main Menu > System > Communications > Data Export > Output Format and select the Start String, Delimiter, and End String.
d. Go to Main Menu > System > Communications > Data Export > Advanced .
86
Rev. C
During the Data and Image export operation the sensor's output channels might become full. This can occur if the sensor is producing export data (frames) faster than the data can be exported from the device (due to bandwidth limitations) or faster than the client is reading the channel export data. This setting affects how the sensor will behave in this situation. Select Hold READY to ensure that all frames are transmitted. In this case, the READY signal will remain inactive (sensor is busy) until the new frame has been added to the channel for transmission. Triggers might be missed during this time. Select Do not hold READY to cause the sensor to discard the new frame if the channel is full and thus activate the READY signal immediately after the current inspection is complete. In this case, the discarded frames will not be transmitted.
10001 10100 10101 10102 10103 10152 10153 10250 10251 10252 10300 10301 10350 10351
Rev. C
COMMAND_NOT_RECOGNIZED GROUP_MISSING GROUP_NOT_FOUND GROUP_ITEM_MISSING GROUP_ITEM_NOT_FOUND NOT_READABLE NOT_WRITEABLE NOT_A_METHOD WRONG_ARGUMENT_COUNT COMMAND_NOT_FINISHED INVALID_ARGUMENT_TYPE DATA_VALUE_MISSING ARGUMENTS_DETECTED INVALID_ARGUMENT_TYPE
Numeric ID 10340 10341 10500 10900 10920 15000 15050 15100 20200 20600 20800 80000 80001 80100 80101 80102 80150 80200 80300 80350 80351 80400 80401 80402 80403 80404
Text ID MINIMUM_VALUE_EXCEEDED MAXIMUM_VALUE_EXCEEDED DATA_SET_EMPTY SENSOR_NOT_READY SENSOR_TYPE_NOT_ACTIVE VALUE_INVALID VALUE_INVALID STRING_TOO_LONG NO_AREAS_FOUND NO_MATCHES_FOUND NO_MATCHES_FOUND REMOTE_DISPLAY_NOT_CONNECTED REMOTE_DISPLAY_NOT_SUPPORTED COMMAND_MODE_EXPECTED COMMAND_TIMED_OUT TRIGGER_REQUIRED COMMAND_TIMED_OUT SYSTEM_ERROR_NOT_ACTIVE TEACH_SENSOR_TYPE_INVALID MULTIPLE_INSPECTIONS_DISABLED MULTIPLE_INSPECTIONS_EMPTY PRODUCT_CHANGE_WHEN_NOT_READY PRODUCT_CHANGE_INVALID_INSPECTION PRODUCT_CHANGE_TIMEOUT PRODUCT_CHANGE_TO_SAME_INSPECTION SENSOR_NAME_NOT_FOUND
Description New item value is below the minimum New items value is above the maximum Data export operation returned no results. Command specified requires sensor to be in the READY state. Command specified belongs to a different sensor type. Text value is invalid / unknown Text value is invalid - expecting True or False String value specified exceeds maximum allowable length Attempt to obtain value when no areas were found. Attempt to obtain value when no matches were found. Attempt to obtain value when no sort patterns were found. Remote Display must be connected to obtain this value This sensor does not have Remote Display capability The Trigger Mode must be set to "Command" perform this operation The command timed out before finishing Access to the specified data requires a triggered inspection The command timed out before finishing The System Error must be active to execute this command Teach requires Match Sensor type. Requires multiple inspections to be enabled No inspections are available in multiple inspection mode. Sensor must be in the READY state to perform a product change. Attempt to product change to a unknown or invalid inspection. The Product Change operation timed out. Attempt to product change to the same inspection. Attempt to use a command without a sensor name in a multi-sensor inspection
iVu RS-232 Connections Pin # 10 11 12 Wire Color Light-Blue Black Violet Description TX Signal Ground RX
2. Configure port settings (baud rate, data bits, parity, and stop bits) on the iVu to match the settings on the control device. Go to Main Menu > System > Communications > Serial I/O .
3. To enable the command channel over the serial connection: a. Go to Main Menu > System > Communications > Command Channel > Connection and select Serial I/O. b. Configure the field and end-of-frame delimiters. Go to Main Menu > System > Communications > Command Channel > Delimiters .
Valid end-of-frame delimiters are: <comma>, <colon>, <semicolon>, <CR>, <CR><LF>, <LF><CR>, or <ETX>. c. Optionally, if you want to trigger the iVu from the control device, set the trigger mode to Command (go to Main Menu > Imager > Trigger and select Command from the drop-down).
d. Verify that the iVu receives and transmits data correctly. 4. To enable Data Export over the serial connection: a. Go to Main Menu > System > Communications > Data Export > Connection and select Serial I/O from the drop-down.
Rev. C www.bannerengineering.com - tel: 763-544-3164 89
b. Go to Main Menu > System > Communications > Data Export > Data To Export and select the inspection data to export.
c. Go to Main Menu > System > Communications > Data Export > Output Format and select the Start String, Delimiter, and End String.
d. Go to Main Menu > System > Communications > Data Export > Advanced .
During the Data and Image export operation the sensor's output channels might become full. This can occur if the sensor is producing export data (frames) faster than the data can be exported from the device (due to bandwidth limitations) or faster than the client is reading the channel export data. This setting affects how the sensor will behave in this situation.
90 www.bannerengineering.com - tel: 763-544-3164 Rev. C
Select Hold READY to ensure that all frames are transmitted. In this case, the READY signal will remain inactive (sensor is busy) until the new frame has been added to the channel for transmission. Triggers might be missed during this time. Select Do not hold READY to cause the sensor to discard the new frame if the channel is full and thus activate the READY signal immediately after the current inspection is complete. In this case, the discarded frames will not be transmitted.
Rev. C
91
8 Testing and Troubleshooting iVu Plus Communications 8.1 Understanding the Communication Log
The iVu Plus sensor includes the following Communication Logs: Command Channel Log that can be used to ensure that commands are properly formed (syntax is correct), and provides a history of commands issued along with responses to these commands. To access the Command Channel Log, go to Main Menu > Logs > Communication Logs > Command Channel . Data Export and Image Output logs that are purely output logs (that is, there is no receive activity to log).
Some notes about the logs: To see an expanded view of each entry, click on the small right-triangle control on each entry. To save the log, click the save icon. The saved communication log can be loaded into the emulator for troubleshooting offline. The table below describes the icons used in the Communication Log, the up-arrow indicates an incoming request to the iVu from the control device; the down-arrow indicates an outgoing response from the iVu to the control device. Icon Description Port opened. Port closed. Indicates that the command has been processed without errors. Indicates that the incoming entry is stalled (no new bytes), or end-of-frame delimiter was not received, or client is not reading data on ethernet. If the response frame contains an error or is dropped, the log entry icons for the request and the response frames will be colored red, and the displayed error count will increment by one. If the command takes a long time to process, the last long entry will change to an hourglass (for example, during trigger of long inspections). For Ethernet channels: The channel's log will show an Enabled entry that indicates which port is being listened to. When a client connects, a log entry is added that indicates which IP address connected. When a client closes the connection, a log entry indicates that the channel is no longer being listened to.
92
Rev. C
Port Errors
The Port Errors screen can help to debug communications channel issues: Parity, Break, and Framing indicate mismatched port settings or, in the case of Break, incorrect cabling.
8.3.2 Using the iVu Command Channel Sample Application or a Terminal Program for Testing
The easiest way to test that the iVu command channel is correctly receiving and transmitting data is to use either the iVu Command Channel Sample App (available on the installation CD) or to use a terminal program running on a PC: If using a terminal program, in the terminal program's configuration:
Rev. C www.bannerengineering.com - tel: 763-544-3164 93
Set new-line transmit to <CR><LF> (and set the end-of-frame delimiters on the iVu to match). Enable local echo. Set the Serial port set up so that the PC port number's baud rate, data, parity, and stop bits match those setup on the iVu.
2. On the requesting device, transmit one or more bytes to the iVu sensor. If the data byte values appear correct and the number sent by the requesting device matches the number received by the iVu sensor, then the transmit/receive functionality is working properly. If the connection is incorrect (electrically) or if the baud rate is mismatched, no bytes will appear in the upper field on the Port Status screen. If the connection is correct (electrically), bytes will appear in the upper field of the Port Status screen in the order they were received. If the Port Status: Errors at the bottom of the Port Status screen highlights red, then the connection is correct electrically but there is likely a settings mismatch between the iVu sensor and the requesting device. Verify the settings on both devices. If the bytes appear with no errors but appear incorrect or there are too many or too few, then the port settings (for example, baud rate) are likely mismatched in a way that does not generate serial hardware errors. Verify the settings on both devices match exactly.
94
Rev. C
3. If the byte count does not match, re-verify that the settings on both devices match exactly. If no bytes are received, re-check the wiring. If the correct response frame is received, then basic electrical and port settings are correct.
Rev. C
95
>> command group item value<EOF> Notes <EOF> is the end-of-frame delimiter. See below for a description. All commands are in ASCII and are case-insensitive command An action to be performed on a particular iVu group; for example, get, set, do, login, or logout. group Identifies the iVu group that the command should act upon; for example, info, system, trigger, or bcr_input. item Further qualifies the action by specifying an item within the identified group; for example, comparedata or status. value For set commands, this identifies the data that must be set for the specified group item. Note: Item is not used with get commands. <EOF> Identifies the end-of-frame for the command so that the iVu knows to begin processing. The iVu will return a response that includes the end-of-frame delimiter. The options for the <EOF> are set in the iVu Serial I/O menu, and are as follows: <comma> <colon> <semicolon> <CR> <CR><LF> <LF><CR> <ETX>
NOTE: When data is displayed on iVu screens such as the Port Status screen, printable delimiters are displayed as expected. Non-printable characters, such as <CR> are displayed in hex notation (\x0D).
96
Rev. C
For example, the following is a series of command requests and responses. The first request sets the trigger mode to command and, once the sensor responds with an "OK," the next command request is issued to do (or execute) the trigger.
>> <<
do trigger\x0D\x0A OK\x0D\x0A
Get commands All get commands are followed by two responses: the first identifies the status of the command, and the second contains the retrieved information. For example:
Set commands All set commands are followed by one response that identifies the command status. For example:
>> <<
Rev. C
97
9.3 Examples
9.3.1 Example 1: How to Trigger the Sensor and Retrieve Inspection Data using the Command Channel
This example is based on a sort inspection. To trigger the sensor and retrieve inspection data, do the following 1. Make sure that the Command Channel is enabled using either Ethernet or Serial I/O ( Main Menu > System > Communications > Command Channel > Connection ). 2. Set Trigger to Command. Go to the Main Menu > Imager > Trigger screen, and from the drop-down select Command. 3. Issue a trigger command as follows:
>> <<
do trigger\x0D\x0A OK\x0D\x0A
5. Get the pattern names that are stored in the iVu sensor.
9.3.2 Example 2: How to Execute a Product Change Using the Command Channel
98 www.bannerengineering.com - tel: 763-544-3164 Rev. C
1. Make sure that the Command Channel is enabled using either Ethernet or Serial I/O ( Main Menu > System > Communications > Command Channel > Connection ). 2. Set Trigger to Command. Go to the Main Menu > Imager > Trigger screen, and from the drop-down select Command. 3. Get all the stored inspection names.
>> <<
>> <<
Rev. C
99
get info bootnumber\x0D\x0A OK\x0D\x0A 42\x0D\x0A get info uptimer\x0D\x0A OK\x0D\x0A 4:42:42:324\x0D\x0A
9.4 System Command Group Command Do Do Get Get Get Set Group System System Ethernet Ethernet Ethernet Ethernet Item Reboot Save IPAddress SubnetMask Gateway IPAddress Description Reboots the sensor. Pre-empts other commands except Save. Saves inspection and configuration parameters. Blocks until finished. Should be used sparingly. Get the current active IP address of the sensor as a string. Get the current active subnet mask of the sensor as a string. Get the current active Gateway address of the sensor as a string. Set IP address of the sensor. A valid IP address must be supplied as a string (for example: 192.168.0.1). A 'Reboot' command from the command channel must follow in order to make the new IP address effective. You may also set new Subnet Mask and Gateway address as required before a 'Reboot' command is sent to the sensor. Set new subnet mask. A 'Reboot' command is required to be sent from the command channel in order to make the new mask effective. Set new Gateway IP address. A 'Reboot' command is required to be sent from the command channel to make the new address effective.
Set
Ethernet
SubnetMask
Set
Ethernet
Gateway
Examples
>> <<
9.4 Status Command Group Command Get Get Group Status Status Item Ready SystemError Description Flag indicating whether the system is ready to trigger (true) or busy (false). Flag indicating whether a system error is active (true) or cleared (false).
100
Rev. C
Command Do
Group Status
Item ClearSystemError
Description Clears the system error LED and sets the internal flag to false.
Examples
get status ready\x0D\x0A OK\x0D\x0A True\x0D\x0A get status systemerror\x0D\x0A OK\x0D\x0A False\x0D\x0A do status clearsystemerror\x0D\x0A OK\x0D\x0A
9.4 Trigger Command Group Command Get Set Do Group Trigger Trigger Trigger Item Mode Mode Description Sets trigger mode to one of the valid trigger modes for the sensor. Sets trigger mode to one of the valid trigger modes for the sensor. Initiates a single trigger. The sensor does not transmit a response until the sensor has completed the action.
Examples
set trigger mode command\x0D\x0A OK\x0D\x0A get trigger mode\x0D\x0A OK\x0D\x0A Command\x0D\x0A do trigger\x0D\x0A OK\x0D\x0A
9.4 Imager Command Group Command Get Group Imager Item Gain Description The sensor's value used to electronically brighten all image pixels This value can be modified using the sensor's touchscreen. This remotely modified value is not persisted to the sensors permanent memory. The 'Save' operation is required to persist this value. The sensor's value used to electronically brighten all image pixels This value can be modified using the sensor's
Set
Imager
Gain
Rev. C
101
Command
Group
Item
Description touchscreen. This remotely modified value is not persisted to the sensors permanent memory. The 'Save' operation is required to persist this value.
Get
Imager
Exposure
The sensor's value used to control the amount of time the imager is allowed to gather light for the image. This value can be modified using the sensor's touchscreen. This remotely modified value is not persisted to the sensors permanent memory. The 'Save' operation is required to persist this value. The sensor's value used to control the amount of time the imager is allowed to gather light for the image. This value can be modified using the sensor's touchscreen. This remotely modified value is not persisted to the sensors permanent memory. The 'Save' operation is required to persist this value.
Set
Imager
Exposure
Examples
9.4 Teach Command Group Command Do Group Teach Item NextTrigger Description This commands forces the sensor to perform the Remote Teach operation on the next trigger. This command can be performed using the sensor's touchscreen.
Examples
>> <<
do teach\x0D\x0A OK\x0D\x0A
9.4 ProductChange Command Group Command Do Group ProductChange Item [Name ] Description Forces the sensor to switch to the specified inspection. The sensor does not transmit a response until the sensor has completed the action. Inspections results will be invalid until the next trigger. List of all inspections stored in the sensor.
Get Examples
ProductChange
InspectionNames
102
Rev. C
9.4 History Command Group Command Get Get Get Get Get Get Do Examples Group History History History History History History History Item Passed Failed MissedTriggers TotalFrames MinInspectionTime MaxInspectionTime Clear Description The number of passed inspections. The number of failed inspections. The number of missed triggers. The total number of inspections since the history was last cleared. The minimum elapsed time (msec) of the inspection. The maximum elapsed time (msec) of the inspection. Clears all history fields (for example pass, fail, sensor history, etc.).
get history passed\x0D\x0A OK\x0D\x0A 13\x0D\x0A get history startframenumber\x0D\x0A OK\x0D\x0A 3\x0D\x0A do history clear\x0D\x0A OK\x0D\x0A
9.4 Inspection Command Group Command Get Get Get Get Examples Group Inspection Inspection Inspection Inspection Item Status Name FrameNumber ExecutionTime Description This status of the most recent inspection either Pass, Fail, or Idle (no triggers). The name of the active inspection. The most recent inspection frame number. The most recent inspection execution time in msec.
Rev. C
103
9.4 AREA_RESULT Command Group Command Get Get Get Examples Group AREA_RESULT AREA_RESULT AREA_RESULT Item Count MinArea MaxArea Description The number of detected areas. The size of the smallest detected area. The size of the largest detected area.
get area_result count\x0D\x0A OK\x0D\x0A 2\x0D\x0A get area_result minarea\x0D\x0A OK\x0D\x0A 7665\x0D\x0A
9.4 AREA_HISTORY Command Group Command Get Get Get Get Group AREA_HISTORY AREA_HISTORY AREA_HISTORY AREA_HISTORY Item MinCount MaxCount MinArea MaxArea Description The minimum number of detected areas, since history was last cleared. The maximum number of detected areas, since history was last cleared. The minimum detected area value, since history was last cleared. The maximum detected area value, since history was last cleared.
Examples
get area_history mincount\x0D\x0A OK\x0D\x0A 1\x0D\x0A get area_history minarea\x0D\x0A OK\x0D\x0A 7665\x0D\x0A
104
Rev. C
Description The number of detected blemishes. The minimum detected blemish edge length. The maximum detected blemish edge length.
get blemish_result count\x0D\x0A OK\x0D\x0A 4\x0D\x0A get blemish_result minedgelength\x0D\x0A OK\x0D\x0A 22\x0D\x0A
9.4 BLEMISH_HISTORY Command Group Command Get Get Get Get Examples Group BLEMISH_HISTORY BLEMISH_HISTORY BLEMISH_HISTORY BLEMISH_HISTORY Item MinCount MaxCount MinEdgeLength MaxEdgeLength Description The minimum number of detected blemishes, since history was last cleared. The maximum number of detected blemishes, since history was last cleared. The minimum detected blemish edge length, since history was last cleared. The maximum detected blemish edge length, since history was last cleared.
get blemish_history count\x0D\x0A OK\x0D\x0A 1\x0D\x0A get blemish_history maxcount\x0D\x0A OK\x0D\x0A 6\x0D\x0A
9.4 MATCH_RESULT Command Group Command Get Get Get Examples Group MATCH_RESULT MATCH_RESULT MATCH_RESULT Item Count MinPercentMatch MaxPercentMatch Description The number of detected matches. The minimum detected match percentage. The maximum detected match percentage.
Rev. C
105
get match_result count\x0D\x0A OK\x0D\x0A 1\x0D\x0A get match_result maxpercentmatch\x0D\x0A OK\x0D\x0A 6\x0D\x0A
9.4 MATCH_HISTORY Command Group Command Get Get Get Get Group MATCH_HISTORY MATCH_HISTORY MATCH_HISTORY MATCH_HISTORY Item MinCount MaxCount MinPercent MaxPercent Description The minimum number of detected matches, since history was last cleared. The maximum number of detected matches, since history was last cleared. The minimum detected match percentage, since history was last cleared. The maximum detected match percentage, since history was last cleared.
Examples
get match_history count\x0D\x0A OK\x0D\x0A 1\x0D\x0A get match_history maxcount\x0D\x0A OK\x0D\x0A 6\x0D\x0A
9.4 SORT_RESULT Command Group Command Get Get Get Get Get Examples Group SORT_RESULT SORT_RESULT SORT_RESULT SORT_RESULT SORT_RESULT Item Count MinPercentMatch MaxPercentMatch PatternNumbers PatternNames Description The number of detected sort patterns. The minimum detected sort pattern match percentage. The maximum detected sort pattern match percentage. Listing of detected patterns by pattern number. Listing of detected patterns by pattern name.
106
Rev. C
Description The minimum number of detected sort patterns, since history was last cleared. The maximum number of detected sort patterns, since history was last cleared. The minimum detected sort pattern match percentage, since history was last cleared. The maximum detected sort pattern match percentage, since history was last cleared.
Examples
get sort_history mincount\x0D\x0A OK\x0D\x0A 1\x0D\x0A get sort_history maxcount\x0D\x0A OK\x0D\x0A 6\x0D\x0A
10001
COMMAND_NOT_RECOGNIZED
Rev. C
107
Numeric ID 10100 10101 10102 10103 10152 10153 10250 10251 10252 10300 10301 10350 10351 10340 10341 10500 10900 10920 15000 15050 15100 20200 20600 20800 80000 80001 80100 80101 80102 80150 80200
Text ID GROUP_MISSING GROUP_NOT_FOUND GROUP_ITEM_MISSING GROUP_ITEM_NOT_FOUND NOT_READABLE NOT_WRITEABLE NOT_A_METHOD WRONG_ARGUMENT_COUNT COMMAND_NOT_FINISHED INVALID_ARGUMENT_TYPE DATA_VALUE_MISSING ARGUMENTS_DETECTED INVALID_ARGUMENT_TYPE MINIMUM_VALUE_EXCEEDED MAXIMUM_VALUE_EXCEEDED DATA_SET_EMPTY SENSOR_NOT_READY SENSOR_TYPE_NOT_ACTIVE VALUE_INVALID VALUE_INVALID STRING_TOO_LONG NO_AREAS_FOUND NO_MATCHES_FOUND NO_MATCHES_FOUND REMOTE_DISPLAY_NOT_CONNECTED REMOTE_DISPLAY_NOT_SUPPORTED COMMAND_MODE_EXPECTED COMMAND_TIMED_OUT TRIGGER_REQUIRED COMMAND_TIMED_OUT SYSTEM_ERROR_NOT_ACTIVE
Description A Group ID must be specified immediately after the command The specified Group ID is invalid / unknown A Group Item ID must be specified immediately after the Group ID The specified Group Item ID is invalid / unknown Attempt to get a value that is not readable Attempt to set a value that is not writeable Method ID specified is not a method Total method arguments specified do not match method Attempt to issue command when a previous command has not finished Item ID specified must be a item (not a group or method) Command missing item's data value Get command received with unneeded arguments Item ID specified must be a item (not a group or method) New item value is below the minimum New items value is above the maximum Data export operation returned no results. Command specified requires sensor to be in the READY state. Command specified belongs to a different sensor type. Text value is invalid / unknown Text value is invalid - expecting True or False String value specified exceeds maximum allowable length Attempt to obtain value when no areas were found. Attempt to obtain value when no matches were found. Attempt to obtain value when no sort patterns were found. Remote Display must be connected to obtain this value This sensor does not have Remote Display capability The Trigger Mode must be set to "Command" perform this operation The command timed out before finishing Access to the specified data requires a triggered inspection The command timed out before finishing The System Error must be active to execute this command
108
Rev. C
Description Teach requires Match Sensor type. Requires multiple inspections to be enabled No inspections are available in multiple inspection mode. Sensor must be in the READY state to perform a product change. Attempt to product change to a unknown or invalid inspection. The Product Change operation timed out. Attempt to product change to the same inspection. Attempt to use a command without a sensor name in a multi-sensor inspection
Rev. C
109
110
Rev. C
Rev. C
111
112
Rev. C
ACK Flags
For each of the Command Flags there is a corresponding ACK flag. The Vision Sensor sets the ACK flag when the corresponding action is complete. Command flags cause actions to occur on the low-to-high transition of that flag. You must clear the flag after the corresponding ACK flag has been observed to be high . As an example, to use the Trigger ACK flag, the programming steps for triggering an inspection would be: 1. 2. 3. 4. Wait for ready. Set Trigger command flag to 1. Wait for Trigger ACK to go to 1. Set Trigger command flag to 0.
Command Responses
Commands executed using command IDs may have a response value. Depending on the Data Type, the response value will be contained in one or multiple registers. Refer to protocol specific sections for more information.
Rev. C
113
Start
(Optional) If using Command ID, set it and its Parameter value as required
No
ACK Flag set?
Yes
Yes
No
Command execution successful. Read value and input status flags as required
Done
11.4 EtherNet/IP
The iVu Plus device is controlled by a ControlLogix PLC using assembly objects. From the point-of-view of a PLC, there are three input assemblies and two output assemblies.
114
Rev. C
Rev. C
115
2. Select Module.
116
Rev. C
NOTE: The data type in the Comm Format must be changed to an INT.
See Assembly Objects on page 123 for more information on each specific assembly instance. PLC Input Assembly (100), PLC Output Assembly (112)
Rev. C
117
118
Rev. C
4. If the module configuration was successful, the following information should be displayed:
If the module configuration was not successful, the RSLogix 5000 software will indicate errors similar to the ones displayed below:
Rev. C
119
5. Locate the memory map setup from Banner module to PLC memory map.
C = Configuration (not used) I = Inputs to PLC (outputs from iVu Plus) O = Outputs from PLC (inputs to iVu Plus)
120
Rev. C
The iVu Plus memory map expanded. I = Inputs to PLC (outputs from iVu Plus).
Rev. C
121
All data is initially transferred as "INT" data type. An ASCII string looks like gibberish in this format. Changing the "style" to ASCII instead of "Decimal" reveals the correct string data.
122
Rev. C
PLC Assembly Instance 0x71 (113) - 240 Registers (iVu Inputs/PLC Outputs
WORD # 0 1-2 3-49 50 51 52-53 54-55 56-57 58-107 108 109-110 111-210 211-239 WORD NAME Inputs Bit Register (see Flags on page 137 Product Change Number reserved Command ID Command Parameter Int16 Command Parameter Int32 Command Parameter Float String Length String Parameter reserved Barcode String/Mask Length Barcode String/Mask reserved DATA TYPE 16-bit integer 32-bit integer 32-bit integer 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array 16-bit integer 32-bit integer 200 Byte Array
Rev. C
123
Outputs from the iVu (Inputs to the PLC) PLC Assembly Instance 0x64 (100) - 30 Registers (iVu Outputs/PLC Inputs)
WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 WORD NAME Input Bits ACK Register (see Flags on page 137) Output Bits Register (see Flags on page 137) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor P/F Coil reserved DATA TYPE 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float
124
Rev. C
PLC Assembly Instance 0x65 (101) - 240 Registers (iVu Outputs/PLC Inputs)
Sensor Type - Area (iVu Plus TG) WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 WORD NAME Input Bits ACK Register (see Flags on page 137) Output Bits Register (see Flags on page 137) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number 2-Word Length + 20-unicode chars 32-bit integer DATA TYPE 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float WORD # 55 56-57 58-59 60-61 62-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Sensor Type ID Area Count Area Range Min Area Range Max reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 32-bit integer 32-bit integer 32-bit integer
Rev. C
125
Sensor Type - Blemish (iVu Plus TG) WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 WORD NAME Input Bits ACK Register (see Flags on page 137) Output Bits Register (see Flags on page 137) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number 2-Word Length + 20-unicode chars 32-bit integer DATA TYPE 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float WORD # 55 56-57 58-59 60-61 62-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Sensor Type ID Blemish Count Blemish Min Edge Length Blemish Max Edge Length reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 32-bit integer 32-bit integer 32-bit integer
126
Rev. C
Sensor Type - Match (iVu Plus TG) WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 WORD NAME Input Bits ACK Register (see Flags on page 137) Output Bits Register (see Flags on page 137) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID 2-Word Length + 20-unicode chars 32-bit integer 16-bit integer DATA TYPE 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float WORD # 56-57 58 59 60-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Match Count Match Min Percent Match Match Max Percent Match reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 32-bit integer 16-bit integer 16-bit integer
Rev. C
127
Sensor Type - Sort (iVu Plus TG) WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 56 57 58 59 60 61 WORD NAME Input Bits ACK Register (see Flags on page 137) Output Bits Register (see Flags on page 137) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID Sort Pattern Map Sort Pattern Count Sort Pattern 1 Count Sort Pattern 2 Count Sort Pattern 3 Count Sort Pattern 4 Count 2-Word Length + 20-unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 179-228 229-239 DATA TYPE 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float WORD # 62 63 64 65 66 67 68 69 70-170 171 172 173-174 175-176 177-178 WORD NAME Sort Pattern 5 Count Sort Pattern 6 Count Sort Pattern 7 Count Sort Pattern 8 Count Sort Pattern 9 Count Sort Pattern 10 Count Sort Min Percent Match Sort Max Percent Match reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
128
Rev. C
Sensor Type - Barcode (iVu Plus BCR) WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 55 56 WORD NAME Input Bits ACK Register (see Flags on page 137) Output Bits Register (see Flags on page 137) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID Sensor Type ID Barcode Count 2-Word Length + 20-unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 179-228 229-239 DATA TYPE 16-bit integer 16-bit integer 59-60 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 61-162 163-170 171 172 173-174 175-176 177-178 WORD # 57 58 WORD NAME Barcode-1 Type Barcode-1 Actual Decoded Data Length Barcode-1 Data Array Length Barcode-1 Data Array reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 16-bit integer 32-bit integer 100 Byte Array
Rev. C
129
130
Rev. C
Default Map
Main Menu > System > Communications > Industrial EtherNet > Map > Default Automatically maps sensor data for each inspection. Recommended when execution order of sensor types is the same across inspections. When inspection has multiple sensors, the first 5 sensor results will be shown starting at offset 55. Each sensor result will occupy 20 words. The following is a table of EIP assembly 0x65 when using Default Map setting. WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 56-74 75 76-89 95 95-114 115 116-134 135 136-154 155-170 171 172 WORD NAME Input Bits ACK Register Output Bits Register Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID (Sensor 1) Sensor 1 Specific Data Sensor Type ID (Sensor 2) Sensor 2 Specific Data Sensor Type ID (Sensor 3) Sensor 3 Specific Data Sensor Type ID (Sensor 4) Sensor 4 Specific Data Sensor Type ID (Sensor 5) Sensor 5 Specific Data reserved Command Status Command Response Int16 16-bit integer 16-bit integer 2-Word Length + 20-Unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
Rev. C
131
WORD NAME Command Response Int32 Command Response Float Command Response Length Command Response Data reserved
Data Type 32-bit integer Float 32-bit integer 100 Byte Array
If the inspection contains more than 5 sensors, the sensor(s) after the 5th one will not be on the map. Area Sensor Type ID = 2 Sensor Specific Data Area Count Area Range Min Area Range Max Data Size 32- bit integer 32- bit integer 32- bit integer Blemish Sensor Type ID = 3 Sensor Specific Data Blemish Count Blemish Min Edge Length Blemish Min Edge Length Sensor Location 32- bit integer 32- bit integer 32- bit integer Match Sensor Type ID = 4 Sensor Specific Data Match Count Match Min Percent Match Max Percent Sensor Location 32- bit integer 16- bit integer 16- bit integer
132
Rev. C
Sort Sensor Type ID = 5 Sensor Specific Data Sort Pattern Map Sort Pattern Count Sort Pattern 1 Count Sort Pattern 2 Count Sort Pattern 3 Count Sort Pattern 4 Count Sort Pattern 5 Count Sort Pattern 6 Count Sort Pattern 7 Count Sort Pattern 8 Count Sort Pattern 9 Count Sort Pattern 10 Count Sort Min Percent Match Sort Max Percent Match Sensor Location 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
Rev. C
133
Custom Map
Main Menu > System > Communications > Industrial EtherNet > Map > Custom Allows customization of fix sensor data on the map. Select data items of interest for each sensor type. Recommended when execution order of sensor types vary across inspections or when using more than 5 sensors. A System level custom map is supported for additional flexibility. When Custom Map is selected, a customizable space is used in the offset range (55 to 166) on EIP assembly 0x65 registers. The following is a table of EIP assembly 0x65 registers when using Custom Map setting. WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55-166 167-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Input Bits ACK Register Output Bits Register Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Customizable Space (112 reg) reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array 2-Word Length + 20-unicode chars 32-bit integer Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
134
Rev. C
Click on the yellow arrow button to Custom IE Map screen. Custom IE Map screen allows choosing sensor result data that will appear on the customizable space.
The bottom of the screen shows the word usage on the customizable space. In the screenshot above, seven words have been used for one Area sensor "Area (1)". Use the yellow arrow button next to the Area sensor row to go to the "Area Sensor Data" in the following graphic.
On the "Area Sensor Data" screen above, "Area Count", "Area Range Min" and "Area Range Max" are available to add into the customizable space. The number to the right of each item shows how many words are required to display the data. The bottom reservation count shows the number of Area Sensors that will be reserved on the customizable space.
Rev. C
135
Since only one Area Sensor's worth of data is reserved on the screenshot above, the selected data will be collected from the first Area sensor in the current inspection. When multiple Area Sensors have been reserved, the data will be arranged in the sequential manner of the sensor type in the current inspection. Use the green arrow icon (Back) button to go back to the custom map summary screen.
User may continue to add more data from any sensor type as required or reserve more sensors into the customizable space. "Sensor Name" and "Sensor Type ID" are global settings that are part of any individual sensor reservation. When they are checked, they will be inserted into each sensor reservation. Here is an example of multiple sensors inspection and its output location on the customizable space.
There are only 2 Blemish sensors on the current inspection; Blemish3 location will be all zero on the customizable space. The customizable space had not reserved a Match sensor, Match1 from the inspection will not be outputted on the customizable space.
136
Rev. C
Flags
Output Bit Flags
Bit Position
15
Command ACK
14
13
12
11
10
2
Trigger ACK
Bit Position
15
Command
14
13
12
11
10
3
Gated Trigger
2
Trigger
1
Teach Latch
0
Product Change
Bit Position
15 14 13
Teach Error
12
Missed Trigger
11
10
3
Ready Latch
0
Ready
Rev. C
137
138
Rev. C
11.5 Modbus/TCP
The Modbus/TCP protocol provides device control using register and coil banks defined by the slave device. This section defines the iVu Plus Modbus/TCP register and coil banks. From the point of view of the slave device (PLC), there is one output coil registers and two Input Coil registers. The bits in the Output Coil Registers cause actions to occur. The corresponding ACK bits in the Input Coil register get set when the action is complete. The Status Coil register provides status of certain system states. By specification, Modbus/TCP uses TCP port 502. Note that the output coils correspond to the Output and ACK Flags, and the input coils correspond to the Input Flags. Modbus Function Codes Supported: 01: Read Coil Status 02: Read Input Status 03: Read Holding Registers 04: Read Input Registers 05: Force Single Coil 06: Preset Single Register 07: Read Exception Status 15: Write Multiple Coils 16: Preset Multiple Registers
Rev. C
139
140
Rev. C
30002
30003-4 30005-6 30007-8 30009-10 30011-12 30013-14 30015-16 30017 30018-30 30031-53
30054-55
Frame Number
Rev. C
141
Sensor Type - Blemish (iVu Plus TG) REGISTER 30001 WORD NAME Input Coil ACK Bits (see Input and Output Coils on page 153) Status Coil Bits (see Input and Output Coils on page 153) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number 2-Word Length + 20-unicode chars 32-bit integer 30180-229 30230-240 DATA TYPE 16-bit integer REGISTER 30056 30057-58 16-bit integer 30059-60 30061-62 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 30176-77 30178-79 30063-171 30172 30173 30174-75 WORD NAME Sensor Type ID Blemish Count Blemish Min Edge Length Blemish Max Edge Length reserved Command Status Command Response Int16 Command Response Int32 Command Response Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 32-bit integer 32-bit integer 32-bit integer
30002
30003-4 30005-6 30007-8 30009-10 30011-12 30013-14 30015-16 30017 30018-30 30031-53 30054-55
142
Rev. C
Sensor Type - Match (iVu Plus TG) REGISTER 30001 WORD NAME Input Coil ACK Bits (see Input and Output Coils on page 153) Status Coil Bits (see Input and Output Coils on page 153) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name 2-Word Length + 20-unicode chars 32-bit integer DATA TYPE 16-bit integer REGISTER 30056 30057-58 16-bit integer 30059 30060 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 30176-77 30178-79 30180-229 30230-240 30061-171 30172 30173 30174-75 WORD NAME Sensor Type ID Match Count Match Min Percent Match Match Max Percent Match reserved Command Status Command Response Int16 Command Response Int32 Command Response Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 32-bit integer 16-bit integer 16-bit integer
30002
30003-4 30005-6 30007-8 30009-10 30011-12 30013-14 30015-16 30017 30018-30 30031-53
30054-55
Frame Number
Rev. C
143
Sensor Type - Sort (iVu Plus TG) REGISTER 30001 WORD NAME Input Coil ACK Bits (see Input and Output Coils on page 153) Status Coil Bits (see Input and Output Coils on page 153) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name 2-Word Length + 20-unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 30180-229 30230-240 DATA TYPE 16-bit integer REGISTER 30061 30062 16-bit integer 30063 30064 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 30065 30066 30067 30068 30069 30070 30071-171 30172 30173 30174-75 30176-77 30178-79 WORD NAME Sort Pattern 3 Count Sort Pattern 4 Count Sort Pattern 5 Count Sort Pattern 6 Count Sort Pattern 7 Count Sort Pattern 8 Count Sort Pattern 9 Count Sort Pattern 10 Count Sort Min Percent Match Sort Max Percent Match reserved Command Status Command Response Int16 Command Response Int32 Command Response Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
30002
30003-4 30005-6 30007-8 30009-10 30011-12 30013-14 30015-16 30017 30018-30 30031-53
Frame Number Sensor Type ID Sort Pattern Map Sort Pattern Count Sort Pattern 1 Count Sort Pattern 2 Count
144
Rev. C
Sensor Type - Barcode-1 (iVu Plus BCR) REGISTER 30001 WORD NAME Input Coil ACK Bits (see Input and Output Coils on page 153) Status Coil Bits (see Input and Output Coils on page 153) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID Barcode Count Barcode-1 Type Barcode-1 Actual Decoded Data Length Barcode-1 Data Array Len. Barcode-1 Data Array reserved Command Status Command Response Int16 Command Response Int32 Command Response Command Response Len. Command Response Data reserved Barcode Count 16-bit integer 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array 30382 30383 30384-401 30402 30403 30404-21 Barcode-8 Type Barcode-8 Length Barcode-8 Data Barcode-9 Type Barcode-9 Length Barcode-9 Data 2-Word Length + 20-unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 32-bit integer 100 Byte Array 30362 30363 30364-81 Barcode-7 Type Barcode-7 Length Barcode-7 Data 30342 30343 30344-61 Barcode-6 Type Barcode-6 Length Barcode-6 Data DATA TYPE 16-bit integer REGISTER 30242 30243 16-bit integer 30244-61 30262 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 30282 30283 30284-301 30302 30303 30304-21 30322 30323 30324-41 Barcode-3 Type Barcode-3 Length Barcode-3 Data Barcode-4 Type Barcode-4 Length Barcode-4 Data Barcode-5 Type Barcode-5 Length Barcode-5 Data 30263 30264-81 WORD NAME Barcode-1 Type Barcode-1 Length Barcode-1 Data Barcode-2 Type Barcode-2 Length Barcode-2 Data DATA TYPE 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit length + 32-byte array 16-bit integer 16-bit integer 32-bit len + 32-byte array
30002
3003-4 30005-6 30007-8 30009-10 30011-12 30013-14 30015-16 30017 30018-30 30031-53 30054-55 30056 30057 30058 30059 30060-61 30062-163 30164-171 30172 30173 30174-75 30176-77 30178-79 30180-229 30230-240 30241
Rev. C
145
Sensor Type - Barcode-1 (iVu Plus BCR) REGISTER 304022 30423 30424-41 WORD NAME Barcode-10 Type Barcode-10 Length Barcode-10 Data DATA TYPE 16-bit integer 16-bit integer 32-bit len + 32-byte array
146
Rev. C
Default Map
Main Menu > System > Communications > Industrial EtherNet > Map > Default Automatically maps sensor data for each inspection. Recommended when execution order of sensor types is the same across inspections. When inspection has multiple sensors, the first 5 sensor results will be shown starting at offset 55. Each sensor result will occupy 20 words. The following is a table of MODBUS/TCP registers at 30001 - 30240 when using Default Map setting. WORD # 30001 30002 30003-4 30005-6 30007-8 30009-10 30011-12 30013-14 30015-16 30017 30018-30 30031-53 30054-55 30056 30057-30075 30076 30077-90 30096 30097-30115 30116 30117-135 30136 30137-155 30156-171 30172 30173
Rev. C
WORD NAME Input Coil ACK Bits Status Coil Bits Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID (Sensor 1) Sensor 1 Specific Data Sensor Type ID (Sensor 2) Sensor 2 Specific Data Sensor Type ID (Sensor 3) Sensor 3 Specific Data Sensor Type ID (Sensor 4) Sensor 4 Specific Data Sensor Type ID (Sensor 5) Sensor 5 Specific Data reserved Command Status Command Response Int16
www.bannerengineering.com - tel: 763-544-3164
Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
2-Word Length + 20-Unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
WORD NAME Command Response Int32 Command Response Float Command Response Length Command Response Data reserved
Data Type 32-bit integer Float 32-bit integer 100 Byte Array
If the inspection contains more than 5 sensors, the sensor(s) after the 5th one will not be on the map. Area Sensor Type ID = 2 Sensor Specific Data Area Count Area Range Min Area Range Max Data Size 32- bit integer 32- bit integer 32- bit integer Blemish Sensor Type ID = 3 Sensor Specific Data Blemish Count Blemish Min Edge Length Blemish Min Edge Length Sensor Location 32- bit integer 32- bit integer 32- bit integer Match Sensor Type ID = 4 Sensor Specific Data Match Count Match Min Percent Match Max Percent Sensor Location 32- bit integer 16- bit integer 16- bit integer Sort Sensor Type ID = 5 Sensor Specific Data Sort Pattern Map Sort Pattern Count Sort Pattern 1 Count Sort Pattern 2 Count Sort Pattern 3 Count Sort Pattern 4 Count Sort Pattern 5 Count Sort Pattern 6 Count Sort Pattern 7 Count Sensor Location 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
148
Rev. C
Sort Sensor Type ID = 5 Sensor Specific Data Sort Pattern 8 Count Sort Pattern 9 Count Sort Pattern 10 Count Sort Min Percent Match Sort Max Percent Match Sensor Location 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
Custom Map
Main Menu > System > Communications > Industrial EtherNet > Map > Custom Allows customization of fix sensor data on the map. Select data items of interest for each sensor type. Recommended when execution order of sensor types vary across inspections or when using more than 5 sensors. A System level custom map is supported for additional flexibility. When Custom Map is selected, a customizable space is used in the offset range (30056 to 30167) MODBUS/TCP registers. The following is a table of MODBUS/TCP registers 30001 to 30240 when using Custom Map setting. WORD # 30001 30002 30003-4 30005-6 30007-8 30009-10 30011-12 30013-14 30015-16 30017 30018-30 30031-53 30054-55 30056-67 30168-171 30172 30173 30174-175 30176-177 WORD NAME Inputs Bits ACK Register Output Bits Register Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Customizable Space (112 reg) reserved Command Status Command Response Int16 Command Response Int32 Command Response Float 16-bit integer 16-bit integer 32-bit integer Float 2-Word Length + 20-unicode chars 32-bit integer Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
Rev. C
149
150
Rev. C
Click on the yellow arrow button to Custom IE Map screen. Custom IE Map screen allows choosing sensor result data that will appear on the customizable space.
The bottom of the screen shows the word usage on the customizable space. In the screenshot above, seven words have been used for one Area sensor "Area (1)". Use the yellow arrow button next to the Area sensor row to go to the "Area Sensor Data" in the following graphic.
On the "Area Sensor Data" screen above, "Area Count", "Area Range Min" and "Area Range Max" are available to add into the customizable space. The number to the right of each item shows how many words are required to display the data. The bottom reservation count shows the number of Area Sensors that will be reserved on the customizable space.
Rev. C
151
Since only one Area Sensor's worth of data is reserved on the screenshot above, the selected data will be collected from the first Area sensor in the current inspection. When multiple Area Sensors have been reserved, the data will be arranged in the sequential manner of the sensor type in the current inspection. Use the green arrow icon (Back) button to go back to the custom map summary screen.
User may continue to add more data from any sensor type as required or reserve more sensors into the customizable space. "Sensor Name" and "Sensor Type ID" are global settings that are part of any individual sensor reservation. When they are checked, they will be inserted into each sensor reservation. Here is an example of multiple sensors inspection and its output location on the customizable space.
There are only 2 Blemish sensors on the current inspection; Blemish3 location will be all zero on the customizable space. The customizable space had not reserved a Match sensor, Match1 from the inspection will not be outputted on the customizable space.
152
Rev. C
Bit Position
15
Command
14
13
12
11
10
3
Gated Trigger
2
Trigger
1
Teach Latch
0
Product Change
Bit Position
15
Command ACK
14
13
12
11
10
2
Trigger ACK
Bit Position
15 14 13
Teach Error
12
Missed Trigger
11
10
3
Ready Latch
0
Ready
11.6.1 Configuration
The images below represent a typical configuration: 1. Read. Message command_reading from N7 tabe on iVu Plus
Rev. C
153
154
Rev. C
Rev. C
155
156
Rev. C
2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54
Rev. C
157
Sensor Type - Blemish (iVu Plus TG) WORD # 0 WORD NAME Input Bits ACK Register (see Input and Output Flags on page 169) Output Bits Register (see Input and Output Flags on page 169) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number 2-Word Length + 20-unicode chars 32-bit integer DATA TYPE 16-bit integer WORD # 55 56-57 16-bit integer 58-59 60-61 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 62-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Sensor Type ID Blemish Count Blemish Min Edge Length Blemish Max Edge Length reserved Command Status Command Response Int16 Command Response Int32 Command Response Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 32-bit integer 32-bit integer 32-bit integer
2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54
158
Rev. C
Sensor Type - Match (iVu Plus TG) WORD # 0 WORD NAME Input Bits ACK Register (see Input and Output Flags on page 169) Output Bits Register (see Input and Output Flags on page 169) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number 2-Word Length + 20-unicode chars 32-bit integer DATA TYPE 16-bit integer WORD # 55 56-57 16-bit integer 58 59 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 60-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Sensor Type ID Match Count Match Min Percent Match Match Max Percent Match reserved Command Status Command Response Int16 Command Response Int32 Command Response Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 32-bit integer 16-bit integer 16-bit integer
2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54
Rev. C
159
Sensor Type - Sort (iVu Plus TG) WORD # 0 WORD NAME Input Bits ACK Register (see Input and Output Flags on page 169) Output Bits Register (see Input and Output Flags on page 169) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID Sort Pattern Map Sort Pattern Count Sort Pattern 1 Count Sort Pattern 2 Count 2-Word Length + 20-unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer DATA TYPE 16-bit integer WORD # 60 61 16-bit integer 62 63 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 64 65 66 67 68 69 70-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Sort Pattern 3 Count Sort Pattern 4 Count Sort Pattern 5 Count Sort Pattern 6 Count Sort Pattern 7 Count Sort Pattern 8 Count Sort Pattern 9 Count Sort Pattern 10 Count Sort Min Percent Match Sort Max Percent Match reserved Command Status Command Response Int16 Command Response Int32 Command Response Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array DATA TYPE 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 56 57 58 59
160
Rev. C
Sensor Type - Barcode-1 (iVu Plus BCR) WORD # 0 WORD NAME Input Bits ACK Register (see Input and Output Flags on page 169) Output Bits Register (see Input and Output Flags on page 169) Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID Barcode Count Barcode-1 Type Barcode-1 Actual Decoded Data Length Barcode-1 Data Array Length Barcode-1 Data Array reserved Command Status Command Response Int16 Command Response Int32 Comand Response Command Response Length Command Response Data reserved Barcode Count Barcode-1 Type 16-bit integer 16-bit integer 421 Barcode-10 Type 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array 381 382 383-400 401 402 403-420 Barcode-8 Type Barcode-8 Length Barcode-8 Data Barcode-9 Type Barcode-9 Length Barcode-9 Data 2-Word Length + 20-unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 32-bit integer 100 Byte Array 341 342 343-360 361 362 363-380 Barcode-6 Type Barcode-6 Length Barcode-6 Data Barcode-7 Type Barcode-7 Length Barcode-7 Data 321 322 323-340 Barcode-5 Type Barcode-5 Length Barcode-5 Data DATA TYPE 16-bit integer WORD # 242 243-260 16-bit integer 261 262 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 281 282 283-300 301 302 303-320 Barcode-3 Type Barcode-3 Length Barcode-3 Data Barcode-4 Type Barcode-4 Length Barcode-4 Data 263-280 WORD NAME Barcode-1 Length Barcode-1 Data Barcode-2 Type Barcode-2 Length Barcode-2 Data DATA TYPE 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer 16-bit integer 32-bit length + 32byte array 16-bit integer
2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 56 57 58 59-60 61-162 163-170 171 172 173-174 175-176 177-178 179-228 229-239 240 241
Rev. C
161
Sensor Type - Barcode-1 (iVu Plus BCR) WORD # 422 423-440 WORD NAME Barcode-10 Length Barcode-10 Data DATA TYPE 16-bit integer 32-bit length + 32byte array
162
Rev. C
Default Map
Main Menu > System > Communications > Industrial EtherNet > Map > Default Automatically maps sensor data for each inspection. Recommended when execution order of sensor types is the same across inspections. When inspection has multiple sensors, the first 5 sensor results will be shown starting at offset 55. Each sensor result will occupy 20 words. The following is a table of PCCC PLC Input Registers Map (N7) when using Default Map setting. WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55 56-74 75 76-89 95 95-114 115 116-134 135 136-154 155-170 171 172
Rev. C
WORD NAME Input Bits ACK Register Output Bits Register Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Sensor Type ID (Sensor 1) Sensor 1 Specific Data Sensor Type ID (Sensor 2) Sensor 2 Specific Data Sensor Type ID (Sensor 3) Sensor 3 Specific Data Sensor Type ID (Sensor 4) Sensor 4 Specific Data Sensor Type ID (Sensor 5) Sensor 5 Specific Data reserved Command Status Command Response Int16
www.bannerengineering.com - tel: 763-544-3164
Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
2-Word Length + 20-Unicode chars 32-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
WORD NAME Command Response Int32 Command Response Float Command Response Length Command Response Data reserved
Data Type 32-bit integer Float 32-bit integer 100 Byte Array
If the inspection contains more than 5 sensors, the sensor(s) after the 5th one will not be on the map. Area Sensor Type ID = 2 Sensor Specific Data Area Count Area Range Min Area Range Max Data Size 32- bit integer 32- bit integer 32- bit integer Blemish Sensor Type ID = 3 Sensor Specific Data Blemish Count Blemish Min Edge Length Blemish Min Edge Length Sensor Location 32- bit integer 32- bit integer 32- bit integer Match Sensor Type ID = 4 Sensor Specific Data Match Count Match Min Percent Match Max Percent Sensor Location 32- bit integer 16- bit integer 16- bit integer
164
Rev. C
Sort Sensor Type ID = 5 Sensor Specific Data Sort Pattern Map Sort Pattern Count Sort Pattern 1 Count Sort Pattern 2 Count Sort Pattern 3 Count Sort Pattern 4 Count Sort Pattern 5 Count Sort Pattern 6 Count Sort Pattern 7 Count Sort Pattern 8 Count Sort Pattern 9 Count Sort Pattern 10 Count Sort Min Percent Match Sort Max Percent Match Sensor Location 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer 16-bit integer
Rev. C
165
Custom Map
Main Menu > System > Communications > Industrial EtherNet > Map > Custom Allows customization of fix sensor data on the map. Select data items of interest for each sensor type. Recommended when execution order of sensor types vary across inspections or when using more than 5 sensors. A System level custom map is supported for additional flexibility. When Custom Map is selected, a customizable space is used in the offset range (55 to 166) on PCCC registers. The following is a table of PCCC PLC Input Registers Map (N7) when using Custom Map setting. WORD # 0 1 2-3 4-5 6-7 8-9 10-11 12-13 14-15 16 17-29 30-52 53-54 55-166 167-170 171 172 173-174 175-176 177-178 179-228 229-239 WORD NAME Input Bits ACK Register Output Bits Register Error Code Inspection Number Iteration Count Pass Count Fail Count Missed Triggers Current Inspection Time Sensor Pass/Fail Coil reserved Inspection Name Frame Number Customizable Space (112 reg) reserved Command Status Command Response Int16 Command Response Int32 Command Response Float Command Response Length Command Response Data reserved 16-bit integer 16-bit integer 32-bit integer Float 32-bit integer 100 Byte Array 2-Word Length + 20-unicode chars 32-bit integer Data Type 16-bit integer 16-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer 32-bit integer Float 16-bit integer
166
Rev. C
Click on the yellow arrow button to Custom IE Map screen. Custom IE Map screen allows choosing sensor result data that will appear on the customizable space.
The bottom of the screen shows the word usage on the customizable space. In the screenshot above, seven words have been used for one Area sensor "Area (1)". Use the yellow arrow button next to the Area sensor row to go to the "Area Sensor Data" in the following graphic.
On the "Area Sensor Data" screen above, "Area Count", "Area Range Min" and "Area Range Max" are available to add into the customizable space. The number to the right of each item shows how many words are required to display the data. The bottom reservation count shows the number of Area Sensors that will be reserved on the customizable space.
Rev. C
167
Since only one Area Sensor's worth of data is reserved on the screenshot above, the selected data will be collected from the first Area sensor in the current inspection. When multiple Area Sensors have been reserved, the data will be arranged in the sequential manner of the sensor type in the current inspection. Use the green arrow icon (Back) button to go back to the custom map summary screen.
User may continue to add more data from any sensor type as required or reserve more sensors into the customizable space. "Sensor Name" and "Sensor Type ID" are global settings that are part of any individual sensor reservation. When they are checked, they will be inserted into each sensor reservation. Here is an example of multiple sensors inspection and its output location on the customizable space.
There are only 2 Blemish sensors on the current inspection; Blemish3 location will be all zero on the customizable space. The customizable space had not reserved a Match sensor, Match1 from the inspection will not be outputted on the customizable space.
168
Rev. C
Bit Position
15
Command
14
13
12
11
10
3
Gated Trigger
2
Trigger
1
Teach Latch
0
Product Change
Bit Position
15
Command ACK
14
13
12
11
10
2
Trigger ACK
Input Flags
Bit Position
15 14 13
Teach Error
12
Missed Trigger
11
10
3
Ready Latch
0
Ready
Rev. C
169
Product Change
RPI 0 1 X X+Y X+Y+Z
Product Change
170
Rev. C
Teach Latch
RPI 0 1 X X +Y X +Y+Z
Teach Latch
Ready
Set TeachLatch
=1
Set TeachLatch
=0
=0
=0
Rev. C
171
Trigger
RPI 0 1 X X +Y X +Y+Z
Trigger
Ready
TriggerACK
Set Trigger = 1
Set Trigger = 0
172
Rev. C
Gated Trigger
RPI 0 1 X X +Y X +Y+Z M N
Gated Trigger
Ready
=0
10001
COMMAND_NOT_RECOGNIZED
Rev. C
173
Numeric ID 10100 10101 10102 10103 10152 10153 10250 10251 10252 10300 10301 10350 10351 10340 10341 10500 10900 10920 15000 15050 15100 20200 20600 20800 80000 80001 80100 80101 80102 80150 80200
Text ID GROUP_MISSING GROUP_NOT_FOUND GROUP_ITEM_MISSING GROUP_ITEM_NOT_FOUND NOT_READABLE NOT_WRITEABLE NOT_A_METHOD WRONG_ARGUMENT_COUNT COMMAND_NOT_FINISHED INVALID_ARGUMENT_TYPE DATA_VALUE_MISSING ARGUMENTS_DETECTED INVALID_ARGUMENT_TYPE MINIMUM_VALUE_EXCEEDED MAXIMUM_VALUE_EXCEEDED DATA_SET_EMPTY SENSOR_NOT_READY SENSOR_TYPE_NOT_ACTIVE VALUE_INVALID VALUE_INVALID STRING_TOO_LONG NO_AREAS_FOUND NO_MATCHES_FOUND NO_MATCHES_FOUND REMOTE_DISPLAY_NOT_CONNECTED REMOTE_DISPLAY_NOT_SUPPORTED COMMAND_MODE_EXPECTED COMMAND_TIMED_OUT TRIGGER_REQUIRED COMMAND_TIMED_OUT SYSTEM_ERROR_NOT_ACTIVE
Description A Group ID must be specified immediately after the command The specified Group ID is invalid / unknown A Group Item ID must be specified immediately after the Group ID The specified Group Item ID is invalid / unknown Attempt to get a value that is not readable Attempt to set a value that is not writeable Method ID specified is not a method Total method arguments specified do not match method Attempt to issue command when a previous command has not finished Item ID specified must be a item (not a group or method) Command missing item's data value Get command received with unneeded arguments Item ID specified must be a item (not a group or method) New item value is below the minimum New items value is above the maximum Data export operation returned no results. Command specified requires sensor to be in the READY state. Command specified belongs to a different sensor type. Text value is invalid / unknown Text value is invalid - expecting True or False String value specified exceeds maximum allowable length Attempt to obtain value when no areas were found. Attempt to obtain value when no matches were found. Attempt to obtain value when no sort patterns were found. Remote Display must be connected to obtain this value This sensor does not have Remote Display capability The Trigger Mode must be set to "Command" perform this operation The command timed out before finishing Access to the specified data requires a triggered inspection The command timed out before finishing The System Error must be active to execute this command
174
Rev. C
Description Teach requires Match Sensor type. Requires multiple inspections to be enabled No inspections are available in multiple inspection mode. Sensor must be in the READY state to perform a product change. Attempt to product change to a unknown or invalid inspection. The Product Change operation timed out. Attempt to product change to the same inspection. Attempt to use a command without a sensor name in a multi-sensor inspection
Rev. C
175
Go to the System > Communications > Ethernet I/O page, and press on the Status button. Verify that the Ethernet Link Status is "Connected", and that the link parameters, such as baud rate and duplex are as expected. For example:
176
Rev. C
If the Link Status indicates that there is no link, please inspect the wiring, and verify that your Ethernet switch is powered up. If the link parameters are not as expected (wrong baud rate or duplex) try the following: Log into your managed switch and verify that the port to which iVu camera is connected is correctly configured. Alternatively, consult with your IT person to perform this verification. Verify that your cable is of the right type, and is properly connected to the switch and to the camera.
Verify with your IT person that these settings are correct. If necessary, make the required modifications and reboot the sensor Press the Status button on the same page, and go to the Ethernet I/O Status page:
On the PC attached to your LAN, open the Command window. To do this, press Start > Run, and then type in cmd and press the OK button. A command window will be displayed:
Rev. C www.bannerengineering.com - tel: 763-544-3164 177
Type in a ping command, specifying the sensor IP address as an argument. You should see a series of responses from the camera:
You should also see the Packets Received and Packets Sent count on the Ethernet I/O Status page in the camera increment by at least 4. If the output of the ping command shows request timeouts, try the following: Verify that the camera is located on the correct subnet, has the correct IP address, and is connected to the correct switch or router. If you are running several overlapping subnets, you may want to consult your IT person to ensure that the routing for the network is configured correctly. If you are trying to access the camera through a gateway or a VPN router, please verify that these devices are configured such that they allow traffic from iVu camera to reach the destination device.
178
Rev. C
If you experience issues accessing data, please consult the relevant sections of the manual for the MODBUS register maps supported by the sensor, and consult the Industrial Protocols Log. The log, when configured to Detailed Logging mode, provides record of individual register access sequence, and records any errors:
Rev. C
179
I/O messaging is based on UDP/IP, and utilizes Multicast addressing when sending PLC input assemblies. It is the default mode of operation for I/O messages in PLCs. Newer PLCs also support Unicast (direct) addressing for PLC input assemblies, but need to be specially configured. Because I/O messaging uses IDP/IP and Multicast, it requires special, managed switches, and customized switch configuration. Managed switches, when properly configured, prevent multicast devices from flooding the network with data. Please consult your IT person to make sure that you have the correct switch type, and that these switches have IGMP snooping enabled, to allow them to manage multicast groups. In addition, some switches with built-in firewalls block UDP traffic by default. If this is the case, and if the path between your devices involves several switches or routers, it is possible that some of them might block the UDP traffic necessary for I/O messages. Please consult your IT person to verify that your network is configured correctly. Also consult Rockwell publications ENET-AP001D-EN-P, EtherNet/IP Performance , and ENET-SO001A-EN-E, EtherNet Design Considerations for Control System Networks for further information on how to configure your EtherNet network for EtherNet/IP. Establishing CIP and EtherNet/IP I/O communications is a complicated process. There are a number of steps during which an error can occur. Industrial Protocols log contains a detail description of the communications process, and should be consulted if any errors are suspected.
A great level of detail is also provided in the log when the I/O connection is established:
Once the CIP and I/O connections are established, the Industrial Protocols Status page will show the details of the connection:
180
Rev. C
Most of the errors in establishing the CIP and I/O connections have to do with specifying the proper Input and Output assembly IDs and sizes. Please refer to the appropriate sections of this manual for this information.
Imager Gain Exposure Status Clear System Error System Reboot Sensor 101 This command reboots the sensor. If sensor configuration data is being currently being saved, this command will block until that operation completes N/A 81 This command clears the system error LED and resets the internal system error flag to false. N/A 51 52 10051 10052 The sensor's value used to electronically brighten all image pixels The sensor's value used to control the amount of time the imager is allowed to gather light for the image. Int32 Int32
Rev. C
181
Description
Data Type
This command saves all modified inspection and configuration parameters. This command blocks until all values have been persisted
N/A
Info Sensor Name Model Number Serial Number Firmware Version Hour Counter History Clear History 301 This command clears all history fields for the active inspection. History values include pass count, fail count, execution times and sensor specific history values. N/A 10151 10152 10153 10154 10155 Sensor user assignable name. Sensor model number Sensor serial number Sensor firmware (software) version The total number of hours the sensor has been energized. Byte Array Byte Array Byte Array Byte Array Byte Array
Inspection Inspection Name BCR inputs Compare String Compare Mask 11001 11002 The Barcode inspection compare data string. This string must start and end with the double quote character The Barcode inspection compare string mask in binary format; that is, masked characters are indicated by a "1" and unmasked characters are "0." Note that the mask character string must match the length of the compare string Byte Array Byte Array 10501 The name of the active inspection. Byte Array
1000 1 2 3 4 5 10 20
Description Inspections will be initiated via the electrical trigger wire Inspections will run continuously at the specified period (electrical trigger inputs are ignored) Inspections will run continuously (electrical trigger inputs are ignored) Gated barcode inspection will be started and/or aborted via the electrical trigger wire Inspections will run continuously (electrical trigger inputs are ignored) Inspections will only be trigged by Industrial EtherNet coils and commands. Inspections will only be trigged by the Command Channel trigger commands.
Examples of Operation
The following examples show how the iVu Command Channel can be utilized via the Industrial EtherNet connection.
3. Wait for the Command ACK flag to go from 0 to 1 (bit 15 in the Input Bits ACK/Input Coil Bits ACK register). 4. Verify that the Execution Error flag is not set (i.e. value should be 0). This is bit 15 in the Output Bits/Status Coil Bits register. If the value is 1, read the Error Code register for more information. 5. Task Complete. Toggle the Command bit back to 0 (bit 15 in the Input Bits/Input Coil Bits register).
Rev. C
183
184
Rev. C
NOTE: This document refers to saving configuration and inspection logs in folders based on the sensor name. If you have not yet named the sensor, then folders will be named using the first 8-characters of the sensor serial number.
NOTE: If the sensor has no name, then the folder is the first 8-characters of the serial number. 3. Remove the USB drive from the sensor and insert it into an available USB port on a Windows PC that has the iVu Emulator installed.
Important: Make sure the iVu Emulator is NOT running before going to the next step. 4. Copy the Sensor Configuration from the USB Thumb Drive to the folder where the Emulator is installed on the PC. For example, if the sensor name is myName and the iVu Emulator is installed in the default location on the PC, copy the file <USB>:\BANNER \myName\CONFIG.CFG to C:\Program Files\Banner Engineering\iVu Series. 5. Copy the Inspection Logs from the USB Thumb Drive (for example, <USB>:\BANNER\myName\InspLog) to the InspLog folder on the PC (for example, C:\Program Files\Banner Engineering\iVu Series\InspLogs). 6. Start the emulator. 7. Set the Trigger option to Internal
Rev. C www.bannerengineering.com - tel: 763-544-3164 185
a. Go to Main Menu > Imager > Trigger , and select Internal. b. Set the Trigger Interval as desired. The iVu Emulator will run with the saved configuration from Step 6 using the saved Inspection Logs from Step 7 as images. 8. Make the desired adjustments. 9. Close the iVu Emulator program. All configuration changes will be saved to the CONFIG.CFG file. 10. Copy the sensor configuration (that is, CONFIG.CFG) from the PC working directory to the USB Thumb Drive (for example <USB>: \BANNER\myName\CONFIG.CFG). 11. Remove the USB Thumb Drive from the PC, and connect to the sensor. 12. Restore the configuration to the sensor. a. Go to Main Menu > System > Sensor Configuration > Load from USB . b. Select the Configuration to restore. c. Click the Load button to start the restore sensor configuration. You will need to reboot the sensor when the restore is complete.
12.1.2 How to Debug Using the Emulator from the USB Flash Drive
1. Plug a USB Thumb Drive into the sensor. 2. Save Inspection Logs to the sensor. a. On the Main Menu > Inspection Logs > View Logs screen, click the Save icon to save the inspection logs. b. When prompted, select Yes to save sensor configuration along with the Inspection Logs. The location of these files on the USB Thumb Drive will be displayed after the operation is completedthe Inspection Logs are saved in <USB>:\BANNER \<SENSOR_NAME>\InspLog and the sensor configuration is saved in <USB>:\BANNER\<SENSOR_NAME>. For example, if the sensor name is myName: Configuration File (CONFIG.CFG) path: <USB>:\BANNER\myName Inspection Logs path: <USB>:\BANNER\myName\InspLog
NOTE: If the sensor has no name, the folder name is the first 8-characters of the serial number. 3. Remove the USB drive from the sensor and insert it into an available USB port on a Windows PC that has the iVu Emulator installed. 4. Copy the iVuEmulator.exe program file to the USB Thumb Drive in the same location as the CONFIG.CFG file (for example, <USB>:\BANNER\myName). 5. Launch the <USB>:\BANNER\myName\iVuEmulator.exe program. 6. Set the Trigger option to Internal a. Go to Main Menu > Imager > Trigger , and select Internal. b. Set the Trigger Interval as desired. The iVu Emulator will run with the saved configuration using the saved Inspection Logs as images. 7. Make the desired adjustments. 8. Close the iVu Emulator program. All configuration changes will be saved to the CONFIG.CFG file. 9. Remove the USB Thumb Drive from the PC, and connect to the sensor. 10. Restore the configuration to the sensor. a. Go to Main Menu > System > Sensor Configuration > Load from USB . b. Select the Configuration to restore. c. Click the Load button to start the restore sensor configuration. You will need to reboot the sensor when the restore is complete.
186
Rev. C
NOTE: If you are in a language other than English, you cannot modify the device name using the software keypad. Use the procedure described below.
Rev. C
187
NOTE: If you have not set the device name previously, then folders will be named using the first 8-characters of the device serial number.
1. Plug a USB Thumb Drive into the device. 2. Save Device Configuration to the USB Thumb Drive ( Main Menu > System > Configuration > Save to USB ). The locaton of these files on the USB Thumb Drive will be displayed after the operation is completethe device configuration is saved in <USB>: \BANNER\<DEVICE_NAME>. For example, if the device name is myName:, the path will be <USB>:\BANNER\myName). 3. Remove the USB drive from the device and insert it into an available USB drive on a Windows PC. 4. If running the Emulator from the USB, launch the iVuEmulator.exe program. If running the Emulator installed on a PC, make sure the Emulator is not running, and copy the Device Configuration from the USB Thumb Drive to the folder where the Emulator is installed on the PC. For example, if the device name is myName and the iVu Emulator is installed in the default location on the PC, copy the file <USB>:\BANNER\myName\CONFIG.CFG to C:\Program Files\Banner Engineering\iVu Series. 5. Launch the iVuEmulator.exe program. 6. Go to the Information screen ( Main Menu > System > Information ). 7. Click the white box next to the Device Name label, and enter the desired Device Name. 8. Click the Back button on the lower-left corner of the screen to save the Device Name. 9. Close the Emulator program and the Device Name will be saved to the CONFIG.CFG file. 10. If running the Emulator on the PC, copy the CONFIG.CFG file back to the original folder on the USB drive<USB>:\BANNER \<DEVICE_NAME> (for example <USB>:\BANNER\myName).
NOTE: The device will look in the original folder (for example, myName) for the CONFIG.CFG file. 11. Remove the USB Thumb Drive from the PC, and connect to the device. 12. Restore the configuration to the device. a. Go to Main Menu > System > Configuration > Load from USB . b. Select the Configuration to restore. c. Click the Load button to start the restore device configuration.
NOTE: Once the new device name is restored in the device, all files saved to USB will now reside in the folder corresponding to the new device name.
You will need to reboot the device when the restore is complete.
NOTE: If a Device Configuration from one device is loaded onto another device, the Device Name from the Device Configuration will not be stored in the device.
On your iVu Series sensor, click the Forgot? button located on the bottom of the Enter Current Password screen. Write down the 6-digit Device Key. On a Windows PC, insert the iVu product CD into the CD ROM drive. From the product CD menu (started upon inserting the CD), launch the Password Reset Utility. Enter the Device Key into the text box in the Utilityidentified as Step 1 in the Password Reset Utility. Click the Generate Reset Key button.
www.bannerengineering.com - tel: 763-544-3164 Rev. C
7. Write down the four-digit Password Reset Keyidentified as Step 2 in the Password Reset Utility. 8. On the iVu Series sensor, check the Next button on the Password Reset screen. 9. Enter the 4-digit reset key on the Enter Reset Key screen. 10. Click Apply. The password is now cleared.
13.4 How to Use Bitmap Image Files with the iVu Emulator
You can use bitmap (.bmp) image files with the iVu Emulator for developing and simulating iVu inspections. The iVu Emulator only accepts image files in .bmp format. If you have other image file formats, use an image viewer/editor program, such as PhotoShop, Gimp, or Paint, to convert the files to 8-bit grayscale .bmp format.
NOTE: Images smaller than 640 X 480 will be black-filled starting in the upper-right. Images larger than 640 X 480 will be cropped starting in the upper-left.
1. Copy the .bmp files into the InspLog folder in the iVu Emulator install folder. For example, copy .bmp files into the C:\Program Files\Banner Engineering\iVu Series\InsLog folder.
NOTE: Remove any existing .bmp or Log files in that folder to avoid confusion because the Emulator automatically runs all .bmp/Log files sequentially according to filename. 2. Launch the iVu Emulator program. 3. Select Internal Trigger on the Trigger Selection screen ( Main Menu > Image > Trigger ) and select Internal. 4. Set the Trigger Interval as desired. The iVu Emulator will be running using the .bmp files from Step 1.
NOTE: Banner does not recommend setting up inspections using these 8-bit grayscale images because you will always end up modifying the configuration after loading it on the sensor on the line. A better choice would be to set up the inspection on the emulator using Inspection Logs from the sensor.
Rev. C
189
Pass/Fail LED
14.1 Errors
Problem Indicator The Pass/Fail LED is blinking green a number of times, separated by an LED red blink, and the sensor repeats this pattern over and over. This indicates that no inspections are occurring. The Power LED is lit steady red. These type of errors are reported in the System log and appear highlighted in red. Solution Reboot the sensor.
Do the following: 1. Look in the System Log to see the error. 2. Clear the LED; that is, go to the Main Menu > Logs > System Logs and press the Clear System Error button at the bottom of the screen (a sensor reboot is not required). 3. If the error occurs again, you can try rebooting the sensor to see if that fixes the problem. If the problem persists, contact Banner customer support.
14.2 Warnings
Warnings are atypical conditions that the sensor detects and fixes. Warning are highlighted in yellow in the System Log, and can typically be ignored.
190
Rev. C
Index
A
Advanced 52 area parameters area range 24, 66 intensity range 24 area range 24, 66 area sensor 23 area_history command group 104 area_result command group 104 auto exposure 30 Ethernet 19, 79 ethernet communications 84 exposure 31 external strobe 33
F
fail hold time 51 field of view 34 firmware update 52 focus number 32
B
blemish sensor 24 blemish_history command group 105 blemish_result command group 104
G
gain 31
C
command channel image export 83 command channel log 92 command channel sample application 80 command group area_history 104 area_result 104 blemish_history 105 blemish_result 104, 105 history 103 info 99 inspection 103 match_history 106 productchange 102 sort_history 106 sort_result 106 status 100 system 100 trigger 101 communication channel command channel 19, 79 data export 19, 79 image export 19, 79 Industrial Ethernet 19, 79 Communication Logs 55 communications channels 19, 79 Configuration menu 35
H
history command group 103 home screen 57
I
image export 19, 79, 83 image export sample application 83 imager auto exposure 30 exposure 31 gain 31 trigger 31 imager menu 30 Industrial Ethernet 19, 79 info command group 99 Information 36 inspection command group 103 Inspection Logs 53 inspection menu properties menu 28 Inspection Menu Sort Menu 26 inspection name 29 intensity range 24 internal strobe 33 iVu emulator 185
D
data export 19, 79 data export log 92 data export sample application 82 debugging 185 Display Settings menu 51
L
LCD Timeout 51 Load from USB 36 lock sensor 37 logs command channel 92 data export 92 communication 55 inspection 53 system 55
E
emulator 185
M
match parameters percent match 26, 27, 72 rotation range 26, 73 timeout 26, 28 match sensor 25 match_history command group 106 match_result command group 105 maximum pass count 2426, 67, 74 menu Display Settings 51 Configuration 35 Mode 35 System 35 minimum pass count 2426, 67, 74 Mode menu 35 motion parameters area range 24, 66 intensity range 24 motion settings 28 number of edges 28, 77 rotation 28, 77 sensitivity 28, 77 motion settings 28
S
sample application command channel 80 data export 82 image export 83 Save to USB 36 saved patterns 27 sensitivity 28, 77 sensor display 57 sort menu saved patterns 27 Sort Menu 26 sort parameters rotation range 27 timeout 26, 28 sort_history command group 106 sort_result command group 106 status command group 100 strobe external 33 internal 33 system command group 100 System Logs 55 System menu 35
N
number of edges 28, 77
P
pass count parameter 2426, 67, 74 percent match 26, 27, 72 productchange command group 102 properties inspection name 29 properties menu 28
T
timeout 26, 28 Touchscreen Calibration 52 trigger 31 trigger command group 101
U
USB loading from 36 saving to 36
R
rotation parameter 28, 77