Académique Documents
Professionnel Documents
Culture Documents
Addendum to PresencePLUS Pro Operators Guide P/N 68367 Rev. A and earlier Covering PresencePLUS Pro Vision System with Controller 62937 and Camera 62568
Printed in U.S.A.
11/02
P/N 111780
PresencePLUS Pro
Ethernet
Network Protocols Communication Protocols Connection Speed TCP/IP ASCII RJ-45 (10 TCP sockets) 10 Base-T
NOTE: PresencePLUS Pro places ASCII strings inside the TCP/IP packets without any additional protocols, just as if they were being transmitted over a serial line.
Serial
Network Protocols Communication Protocols Connection Speed RS-232 ASCII DB-9 (female), pins 5-8 on the terminal strip 115,200 bits per sec max
Communication Tool Setup Ethernet NOTE: The TCP/IP setup is automatically configured; the Ethernet Settings box is for information purposes only.
PresencePLUS Pro
Each Ethernet Socket has a unique TCP port number, as shown in the following table. TCP Port Numbers Ethernet Socket
1 2 3 4 5
Ethernet Socket
6 7 8 9 10
Serial
PresencePLUS Pro has two serial connections that can be configured: Serial 1 and Serial 2. Serial 1 is the DB-9 connector. Serial 2 is pins 5 - 8 from the terminal strip.
Set up the serial communication options to match the receiving device. The following table shows the configuration options. Option
Baud Rate Data bits Parity Stop Bits Flow Control
Value
110 to 115200 bps 5, 6, 7, 8 Even, Odd, None, Mark, Space 1, 1.5, 2 None
NOTE: Because there is no flow control for the serial connections, PresencePLUS Pro will not detect or log a lost or broken connection.
PresencePLUS Pro
Tool Navigation As shown above, the Communication tool (CT_1) can export results data from the Gray Scale tool (GS_1), the Object tool (OBJECT_1), and the Test tool (TT_1). It cannot export results from the second Object tool (OBJECT_2) or the second Test tool (TT_2). The data will be transmitted a) in the sequence that the tools are selected within the Communication tool, and b) in the sequence that the options are selected within the tools for export. One inspection can have more than one Communication tool. Use one Communication tool to: Export data out of one port (serial or Ethernet). Export the same data out of multiple ports at the same time. Use multiple Communication tools to: Separate the data and export separate segments to unique external devices. Customize the order of the exported data. Export data from the vision tools at different times during the inspection. Customize the Start Strings control characters to unique external devices. NOTE: The Test tool can have the Communication tool as one of its inputs. Therefore, if a Test tool is added after the Communication tool, a discrete output can be activated a) if the TCP/IP connection is lost, or b) if the external device fails to acknowledge it received data. This output could contribute to an inspection pass/fail if it is an input to a Test tool. A Communication tool without a Test tool will not contribute to the inspection pass/fail. 6
Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164
A. Select the vision tools and their results to export. B. Select the communication Connection(s) that will export the data. C. Format the ASCII string of data.
Communication Tool
USE OF THE COMMUNICATION TOOL A. Select the vision tools and their results.
PresencePLUS Pro
Select Options When a tool is selected, a tab appears at the top of the window. Click on the tab to select the data to be exported.
Tab list of selected tools Scroll buttons for selecting tabs beyond the width of the window Selects all data options Check boxes for selecting data individually Removes selected data Removes current vision tool from the tab list
Select the desired connection. If Multiple is chosen, then Edit Selections to select more than one port.
Connection Options There are 12 communication connections to send data. There is one connector for each of the serial connections, and there are 10 sockets (1 to 10) through the Ethernet connector.
PresencePLUS Pro
Use this section to select delimiters, enable labels, and define a Start and/or End string.
Choose a delimiter type Check this box to add the names for data being sent.
Format Options
Allowable ASCII string options are given in the following table. ASCII String Format Options Option Name
Delimiter Comma , Colon : Semicolon ; <cr-lf> Carriage return and then line feed. <lf-cr> Line feed then carriage return <cr> Carriage return only <lf> Line feed only Start String End String Enable Labels User-defined ASCII characters (limit of 75 characters) User-defined ASCII characters (limit of 75 characters) This option allows the user to add characters before the string of data. This option allows the user to add characters after the string of data. Check this box to add a label to the data before the data itself. Example: Dark Count = 3. (Dark Count = is the label)
Values
Description
The delimiter is used to separate the individual pieces of data being sent. The delimiter will follow every individual segment of data including the start string and end string.
10
Value
1 = The connection is valid, and data will be sent. 0 = The connection was lost.
Description
Checks the connection (Ethernet only) Processing time for PresencePLUS Pro to send the data out
Execution time
milliseconds
Number
Rational Rational Whole Whole
Format
(00.0, 00.0) 00.0 0 0
Example
(23.4, 156.5) 99.00 4 12300
11
PresencePLUS Pro
Format Example From the screens shown in the figure above, the Communication tool will export the following: Largest Blob Area Largest Location (Blob) A colon (:) delimiter The data labels @ at the start of the string and END at the end of the string
Example of the ASCII string: @:Largest Blob Area = 13417:Largest Location = (365.04 119.24):END:
12
B. Connecting a PC
Various software programs can test the communication connection. Two such programs are Telnet and HyperTerminal. Telnet can test Ethernet communications and is easy to set up. HyperTerminal can test serial communications and Ethernet communications.
Run.
Telnet Command
Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164
13
USE OF THE COMMUNICATION TOOL Testing Ethernet or Serial Communications with HyperTerminal Ethernet 1. 2. 3.
Start a new connection with HyperTerminal. Connect using TCP/IP. Configure HyperTerminal to talk with the controller. Example: - Host Address = 192.168.0.1 (Controller default) - Port number = 20000 (Ethernet Socket 1)
PresencePLUS Pro
Serial
Start a new connection with HyperTerminal. Connect using Serial (DB9 connector on the controller). Configure HyperTerminal to talk with the Controller. Example: - Baud rate = 115200 bits/sec (default) - Data bits = 8 (Controller default) - Parity = None (Controller default) - Stop Bits = 1 (Controller default) - Flow Control = None NOTE: The Controller settings must match exactly with the PC.
14
Configuration Screens
Ethernet Serial
-------------------------------------------
15
PresencePLUS Pro
Troubleshooting
Not Receiving Data from PresencePLUS Pro
Ethernet Connection: 1. Check the LEDs on the PresencePLUS Pro RJ-45 connector. No LEDs are on: The cable may not be the correct type (straight or crossover), or it could be broken. Only the amber LED is on: The electrical connection is good, but the Controller and device are not exchanging data. Amber LED is on, and the green LED is on or flashing: Data is being exchanged between the PC and the Controller. 2. Check the Communication tool to see if it is configured correctly. The connection should be Ethernet socket 1 - 10. Verify that the desired result data has been selected in the Tool tab. 3. Check the receiving device setup. Check the IP address. The device IP subnet must match the Controller IP subnet. Check the Port number: 20000 20009 (not 2000). See the TCP Port Numbers Table on page 4. Serial Connection: 1. Verify the hardware. Check for breaks in the serial cable. Use a straight serial cable from the controller to a PC. When using the terminal strip connector, the common wire (pin 5 on a DB-9) goes to Common on the terminal strip (Pin 2). 2. Check the Communication tool to see if it is configured correctly. The connection should be Serial 1 for the DB-9 connection or Serial 2 for the terminal strip. Verify that the desired result data has been checked. 3. Check the receiving device setup. Check that the setup on the receiving device matches the System parameters in the controller (baud rate, data bits, parity, stop bits, flow control). See the Communication Tool Setup Serial Connection screen on page 4.
16
Data Label
Tool Name Success
Value
string 1 or 0 1
Example
LOCATE_1
Description
User-defined name 1 = Tool executed successfully. 0 = Tool did not find a point to use as a reference. Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or since power-up Slowest recorded tool processing time since the start of the inspection or since power-up Distance from the reference point to the current edge X, Y coordinates of the current edge Amount of rotation from the current edge to the reference edge X, Y coordinates of the point from which ROIs will rotate User-defined name 1 = Tool executed successfully. 0 = Tool did not find a point to use as a reference. Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or since power-up
milliseconds milliseconds
1.4 1.4
milliseconds
1.6
pixels (X Y) string 1 or 0
milliseconds milliseconds
22.7 22.7
17
PresencePLUS Pro
Tool
PATTERN FIND (continued)
Data Label
Execution Time Max
Value
milliseconds
Example
22.9
Description
Slowest recorded tool processing time since the start of the inspection or since power-up Minimum percent the current pattern must match the reference pattern to be considered a match Maximum percent the current pattern must match the reference pattern to be considered a match X, Y coordinates of the point from which ROIs will rotate Amount to current pattern rotated from the reference edge X, Y coordinates of the current pattern Percent match of the current pattern User-defined name
Match Acceptance Level Range Min Match Acceptance Level Range Max Rotation Origin First Match Rotation First Match Location Point % Match Of First Pattern Found AVERAGE GRAY SCALE Tool Name
15 100%
99
15 100%
100
milliseconds milliseconds
6 6
Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or since power-up User-defined name Slowest recorded tool processing time since the start of the inspection or since power-up Average gray scale value
string milliseconds
GS_1 6
0 - 255
182
18
Tool
BLOB
Data Label
Tool Name Execution Time Execution Time Min
Value
string milliseconds milliseconds
Example
BLOB_1 48.3 48.3
Description
User-defined name Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or since power-up Slowest recorded tool processing time since the start of the inspection or since power-up Number of Blobs found Number of pixels when combining all Blobs found Number of pixels in the largest Blob Position of the centroid of the largest Blob Number of pixels in the smallest Blob Position of the centroid of the largest Blob User-defined name Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or since power-up Slowest recorded tool processing time since the start of the inspection or since power-up Total number of bright-to-dark edges Total number of dark-to-bright edges
milliseconds
48.7
Count Total Area Largest Blob Area Largest Location Smallest Blob Area Smallest Location EDGE Tool Name Execution Time Execution Time Min
whole number pixels pixels pixels (X Y) pixels pixels (X Y) string milliseconds milliseconds
milliseconds
1.7
9 10
19
PresencePLUS Pro
Tool
EDGE (continued)
Data Label
Total Edge Count Location(s)
Value
whole number pixels (X Y) string milliseconds milliseconds
Example
19 (527.53 348.17) OBJECT_1 2.9 2.9
Description
Total number of all edges X, Y coordinates of all the edges found User-defined name Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or since power-up Slowest recorded tool processing time since the start of the inspection or since power-up Total number of bright objects Total number of dark objects Total number of all objects Width of the smallest bright object found Width of the largest bright object found Width of the smallest dark object found Width of the largest dark object found Widths of all the objects found Midpoint position of the objects found
OBJECT
milliseconds
3.4
Bright Count Dark Count Total Object Count Min Bright Object Width Max Bright Object Width Min Dark Object Width Max Dark Object Width Width(s) Location(s)
whole number whole number whole number pixels pixels pixels pixels pixels pixels (X Y)
20
Tool
PATTERN COUNT
Data Label
Tool Name Execution Time Execution Time Min
Value
string milliseconds milliseconds
Example
PC_1 190.2 190.2
Description
User-defined name Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or since power-up Slowest recorded tool processing time since the start of the inspection or since power-up Total number of patterns above the minimum acceptance level and below the maximum number of patterns Minimum percent match for the current pattern to be considered a match Maximum percent match for the current pattern to be considered a match X, Y coordinates of the center of rotation of the pattern Amount of rotation from the current pattern to the reference pattern X, Y coordinates of the center of the first pattern found X, Y coordinates of the center for all patterns found Percent match of all patterns found
milliseconds
194.1
Match Count
whole number
Match Acceptance Level Range Min Match Acceptance Level Range Max Rotation Origin First Match Rotation
15 100%
81
15 100%
99
pixels (X Y) degrees
21
PresencePLUS Pro
Tool
MEASURE
Data Label
Tool Name Execution Time Execution Time Min
Value
string milliseconds milliseconds
Example
MT_1 0.1 0.1
Description
User-defined name Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or power-up Slowest recorded tool processing time since the start of the inspection or power-up Total distance from the points selected for tool one and tool two Horizontal component (X) of the total distance Vertical component (X) of the total distance X, Y coordinate of the origin point X, Y coordinate of the point selected for tool one X, Y coordinate of the point selected for tool two
milliseconds
0.2
Distance Distance X Distance Y Origin Point Measure Location Point 1 Measure Location Point 2
22
Tool
TEST
Data Label
Tool Name Success Execution Time Execution Time Min
Value
string 1 or 0 milliseconds milliseconds 1
Example
TT_1
Description
User-defined name 1 = Tool results passed. 0 = Tool results failed. Time to process the tool for the last displayed inspection Fastest recorded tool processing time since the start of the inspection or power-up Slowest recorded tool processing time since the start of the inspection or power-up 1 = Input 1 results passed. 0 = Input 1 results failed. -1 = Input 1 results not defined. 1 = Input 2 results passed. 0 = Input 2 results failed. -1 = Input 2 results not defined. 1 = Input 3 results passed. 0 = Input 3 results failed. -1 = Input 3 results not defined. 1 = Input 4 results passed. 0 = Input 4 results failed. -1 = Input 4 results not defined. 1 = Tool overall results passed. 0 = Tool overall results failed.
0.1 0.1
milliseconds
0.1
Input1
1, 0, or -1
Input2
1, 0, or -1
Input3
1, 0, or -1
-1
Input4
1, 0, or -1
-1
Output
1 or 0
23
PresencePLUS Pro
WARNING . . . Not to Be Used for Personnel Protection Never use these products as sensing devices for personnel protection. Doing so could lead to serious injury or death. This product 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 de-energized sensor output condition. Consult your current Banner Safety Products catalog for safety products which meet OSHA, ANSI and IEC standards for personnel protection.
WARRANTY: Banner Engineering Corp. warrants its products to be free from defects for one year. Banner Engineering Corp. will repair or replace, free of charge, any product of its manufacture found to be defective at the time it is returned to the factory during the warranty period. This warranty does not cover damage or liability for the improper application of Banner products. This warranty is in lieu of any other warranty either expressed or implied.
24 Banner Engineering Corp., 9714 Tenth Ave. No., Minneapolis, MN 55441 Phone: 763.544.3164 www.bannerengineering.com Email: sensors@bannerengineering.com www.bannerengineering.com (763) 544-3164