Post on 18-Jan-2016
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.
Connections
Ethernet
Ethernet Switch
Video out from camera to VIM on
OCS
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.
Communications
• Banner Setup
Communications
• Banner Setup
Communications
• OCS Setup
Communications
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
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.
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
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)
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