using banner vision products with ocs controllers ken jannotta jr. horner apg august 2007

13
Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Upload: evan-robinson

Post on 18-Jan-2016

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Using Banner Vision Products with OCS Controllers

Ken Jannotta Jr.

Horner APG

August 2007

Page 2: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Design Goals

• Use logic and I/O from the OCS to control the vision sampling.

• Display the vision samples on the OCS screen.

• Save photos of failed parts to the compact flash on the OCS.

• Minimize wiring in the system.

Page 3: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Connections

Ethernet

Ethernet Switch

Video out from camera to VIM on

OCS

Page 4: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Communications

• Programming and monitoring from the PC to the OCS is performed using CsCAN TCP.

• Communication from the OCS to the Vision sensor is performed with Modbus TCP. (OCS is the master.)

• Communication from the PC to the vision sensor uses a proprietary protocol from Banner.

Page 5: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Communications

• Banner Setup

Page 6: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Communications

• Banner Setup

Page 7: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Communications

• OCS Setup

Page 8: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Communications

Page 9: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Video SetupFor image format use JPG for smaller file size.

File size = 40KCapture time = 5 seconds

Use BMP for more captured detail or faster captures

File size = 600KCapture time = 2 seconds

Page 10: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Capturing Video

• To capture video set the bit setup to capture the desired channel.

• Additional logic can be added to record missed captures. The capture bit is reset by the firmware when a capture is complete.

Page 11: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Parameters Available from the Banner Unit

• Trigger, teach product change…bits– Some bits have ack

• Pass/Fail bits and counts

• I/O status, error information

• Bar code handling information

• Location information

Page 12: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Performance Considerations

• Event trigger to capture2 Scans + < 100mS (Modbus rate)

Use input on camera for higher speeds

• Video capture performance

1 scan + 1 frame (33ms @ 60 hz)

Page 13: Using Banner Vision Products with OCS Controllers Ken Jannotta Jr. Horner APG August 2007

Graphic Overlays

• There is an un-documented featured shown in the OCS demo that allows overlaying bitmaps on video with transparent sections.

Special color that is transparent on videoRed = 16Green = 0Blue = 0

All other colors are opaque