Vous êtes sur la page 1sur 26

Use of the PresencePLUS Pro Communication Tool to Export Results to an External Device

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

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

Use of the Communication Tool


This section explains how to export PresencePLUS Pro results to an external device. Communication Tool Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Communication Tool Setup (Communication Tab in the System Window) . . . . 3 Adding a Communication Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Configuring the Communication Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Communication Tool Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Testing the Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Data Results Options Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

USE OF THE COMMUNICATION TOOL

PresencePLUS Pro

Communication Tool Overview


The Communication tool is used to export data from PresencePLUS Pro to an external device. Results from the vision tools may be selected by the Communication tool and exported to an external device. PresencePLUS Pro can export data via its serial channels or over Ethernet. Below are specifications for the communications channels.

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

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

Communication Tool Setup (Communication Tab in the System Window)


Ethernet
In order to establish a connection, the external device must be directed to the correct IP address and the correct TCP port. In TCP/IP protocol, a TCP port number is used with the IP address to identify a specific path or socket. PresencePLUS Pro has 10 sockets: 1 to 10. Therefore, PresencePLUS Pro can send out unique sets of data to 10 different devices.

Communication Tool Setup Ethernet NOTE: The TCP/IP setup is automatically configured; the Ethernet Settings box is for information purposes only.

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

USE OF THE COMMUNICATION TOOL

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

TCP Port number


20000 20001 20002 20003 20004

Ethernet Socket
6 7 8 9 10

TCP port number


20005 20006 20007 20008 20009

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.

Communication Tool Setup Serial Connection 4


Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

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.

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

USE OF THE COMMUNICATION TOOL

PresencePLUS Pro

Adding a Communication Tool


ADD THE COMMUNICATION TOOL AFTER THE VISION TOOLS THAT HAVE DATA TO BE EXPORTED.
Tools that can export data Tools that cannot export data

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

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

Configuring the Communication Tool


There are three main steps in configuring the Communication tool:

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

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

USE OF THE COMMUNICATION TOOL A. Select the vision tools and their results.

PresencePLUS Pro

Select tools individually

Selects all available tools

Removes all selected tools

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

Object Tool Data in the Communication Tool

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum B. Select the Connection(s).

USE OF THE COMMUNICATION TOOL

Select the desired connection. If Multiple is chosen, then Edit Selections to select more than one port.

Click View Settings to display the configuration of the connection.

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.

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

USE OF THE COMMUNICATION TOOL C. Format the ASCII String.

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

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

Communication Tool Results


The Communication tool will send out the data in the same sequence that the tools appear in the inspection. The transmission of data will increase the total inspection time. Result
Success

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

Format of the Data Result


Point (X, Y) Distance Count Area

Number
Rational Rational Whole Whole

Format
(00.0, 00.0) 00.0 0 0

Example
(23.4, 156.5) 99.00 4 12300

See the Format Example illustration and output on page 12.

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

11

USE OF THE COMMUNICATION TOOL

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

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

Testing the Connection


A. Run an Inspection with the Communication Tool
1. Start an inspection that has a configured Communication tool. 2. Start HyperTerminal or Telnet. 3. Trigger PresencePLUS Pro. 4. Look in HyperTerminal or Telnet to see if the data has updated.

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.

Testing Ethernet Communications with Telnet


1. Connect a PC to the Controller using an Ethernet crossover cable. 2. From the start menu, Click Start 3. Type in the dialog box

Run.

telnet <controller IP address> <IP port> Example: telnet 192.168.0.1 20000


4. Click OK to open a Telnet window.

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.

Configuration Screens are shown on the following page.

14

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

Configuration Screens
Ethernet Serial

HyperTerminal Configuration Screens for Ethernet and Serial

-------------------------------------------

Sample HyperTerminal Run Time Results


Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

15

USE OF THE COMMUNICATION TOOL

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

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

Data Results Options Table


Tool
LOCATE

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

Execution Time Execution Time Min

milliseconds milliseconds

1.4 1.4

Execution Time Max

milliseconds

1.6

Edge Offset Point Edge Location Point Rotation

pixels (X Y) pixels (X Y) degrees

(-0.11 4.11) (140.89 49.11) -16.52

Rotation Origin PATTERN FIND Tool Name Success

pixels (X Y) string 1 or 0

(140.89 49.11) PF_1 1

Execution Time Execution Time Min

milliseconds milliseconds

22.7 22.7

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

17

USE OF THE COMMUNICATION TOOL

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

pixels (X Y) degrees pixels (X Y) 15 100% string

(269.40 160.62) 0.85 (269.40 160.62) 99.22 GS_1

Execution Time Execution Time Min

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

Tool Name Execution Time Max

string milliseconds

GS_1 6

Average Gray Scale Value

0 - 255

182

18

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

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

Execution Time Max

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

8 50315 49933 (334.83 262.99) 28 (247.70 211.91) Edge_1 1.7 1.6

Execution Time Max

milliseconds

1.7

Bright To Dark Count Dark To Bright Count

whole number whole number

9 10

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

19

USE OF THE COMMUNICATION TOOL

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

Tool Name Execution Time Execution Time Min

Execution Time Max

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)

2 2 4 6 155 6 7 155.00 7.00 6.00 6.00 6.00 (226.26 270.15)

20

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

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

Execution Time Max

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

(199.42 216.78) -0.1

First Match Location Point Pattern Location(s) % Match of Pattern(s) Found

pixels (X Y) pixels (X Y) 15 100%

(199.42 216.78) (199.42 216.78) 98.63 97.66 81.93

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

21

USE OF THE COMMUNICATION TOOL

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

Execution Time Max

milliseconds

0.2

Distance Distance X Distance Y Origin Point Measure Location Point 1 Measure Location Point 2

pixels pixels pixels pixels (X Y) pixels (X Y) pixels (X Y)

170.14 128.51 111.51 (0.00 0.00) (140.89 49.11) (269.40 160.62)

22

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

Operators Guide Addendum

USE OF THE COMMUNICATION TOOL

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

Execution Time Max

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

Banner Engineering Corp. Minneapolis, MN USA www.bannerengineering.com (763) 544-3164

23

USE OF THE COMMUNICATION TOOL

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

Banner Engineering Corp. Minneapolis, MN USA

Vous aimerez peut-être aussi