130 likes | 147 Views
Learn how to seamlessly connect and control vision sampling with OCS controllers, reduce wiring, and optimize system performance. Discover the key communication methods and setup instructions to enhance your production monitoring system.
E N D
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 Switch Ethernet 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
Video Setup For image format use JPG for smaller file size. File size = 40K Capture time = 5 seconds Use BMP for more captured detail or faster captures File size = 600K Capture 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 capture 2 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 video Red = 16 Green = 0 Blue = 0 All other colors are opaque