Table of Contents

Advertisement

USER'S MANUAL
Document Number: DA00073201
Release Date: 1 June 2005

Advertisement

Table of Contents
loading

Summary of Contents for Basler A640F

  • Page 1 USER’S MANUAL Document Number: DA00073201 Release Date: 1 June 2005...
  • Page 2 These products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Basler cus- tomers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Basler for any damages resulting from such improper use or sale.
  • Page 3 Contacting Basler Support Worldwide Europe: Basler AG Ander Strusbek 60 - 62 22926 Ahrensburg Germany Tel.: +49-4102-463-500 Fax.: +49-4102-463-599 vc.support.europe@baslerweb.com Americas: Basler, Inc. 740 Springdale Drive, Suite 100 Exton, PA 19341 U.S.A. Tel.: +1-877-934-8472 Fax.: +1-877-934-7608 vc.support.usa@baslerweb.com Asia: Basler Asia PTe. Ltd 25 Internat.
  • Page 5: Table Of Contents

    3.2.10 Frame Buffering..........3-16 BASLER A640...
  • Page 6 4.4.1.7 Inquiry Register for Feature Presence ..... 4-16 4.4.1.8 Inquiry Registers for Feature Elements ..... 4-19 BASLER A640...
  • Page 7 5.2 Packet Payload Charts for Standard Format, Mode and Frame Rate Combinations on A640f Cameras ......5-2 5.2.1 Format 0, Mode 1 .
  • Page 8 6.7 Standard Smart Features on the A640f ....... . .
  • Page 9: Introduction

    An easy way to see the firmware ID number for an A640 camera is by using the BCAM Viewer included with the Basler BCAM 1394 driver. To see the firmware ID number: 1. Attach your camera to a computer equipped with the BCAM 1394 driver.
  • Page 10: Performance Specifications

    Without lens adapter: 67.1 mm x 44 mm x 29 mm (L x W x H) With C-mount adapter: 75 mm x 44 mm x 29 mm Weight < 110 g (typical) Conformity CE, FCC Table 1-1: Performance Specifications BASLER A640...
  • Page 11: Camera Models

    1.4 Spectral Response The spectral response for A641 monochrome cameras is shown in Figure 1-2. Figure 1-2: A641 Monochrome Camera Spectral Response The spectral response curve excludes lens characteristics and light source characteristics. BASLER A640...
  • Page 12 IR cut-off filter is recommended. The filter should transmit in a range of 400 nm to 700...720 nm, and it should cut off from 700...720 nm to 1100 nm. A suitable filter is included in the standard C-mount adapter on A641 cameras. BASLER A640...
  • Page 13: Environmental Requirements

    To clean the surface of the camera housing, use a soft, dry cloth. To remove severe stains, use a soft cloth dampened with a small quantity of neutral detergent, then wipe dry. Do not use volatile solvents such as benzine and thinners; they can damage the surface finish. BASLER A640...
  • Page 14 DRAFT Introduction BASLER A640...
  • Page 15: Camera Interface

    The A640 is interfaced to external circuitry via an IEEE 1394 socket and a 10 pin RJ-45 jack located on the back of the housing. Figure 2-1 shows the location of the two connectors. Figure 2-1: Camera Connectors BASLER A640...
  • Page 16: Pin Assignments

    Output Port 1 - Output Port 0 - Input Port 0 + In Gnd Comm Out VCC Comm Input Port 2 + Input Port 1 + Input Port 3 + Table 2-2: Pin Assignments for the RJ-45 jack BASLER A640...
  • Page 17: Connector Types

    The plug on the cable that you attach to the camera’s RJ-45 jack must have 10 pins. Use of a smaller plug, such as one with 8 pins or 4 pins, can damage the pins in the RJ-45 jack on the camera. BASLER A640...
  • Page 18: Cables

    2.4 IEEE 1394 Device Information The A640 uses an IEEE 1394a - 2000 compliant physical layer device to transmit pixel data. Detailed spec sheets for devices of this type are available at the Texas Instruments web site (www.ti.com). BASLER A640...
  • Page 19: Input And Output Ports

    By default, output ports 0, 1, and 2 are set to a low state after power on. Output port 3 is initially set to low but will go high approximately 100 to 300 ms after power on. Output port 3 will remain high for approximately 750 ms and will then reset to low. BASLER A640...
  • Page 20 DRAFT Camera Interface Figure 2-3: I/O Schematic BASLER A640...
  • Page 21: Typical Input Circuits

    1.2 k resistor has been added to the circuit. This will result in approximately 15 mA being applied to the input. In Figure 2-5, the signal is applied to input port 3. Figure 2-5: Typical 24 VDC Input Circuit BASLER A640...
  • Page 22: Typical Output Circuits

    In this example, the voltage for the external circuit is 24 VDC. Current in the circuit is limited to approximately 10 mA by an external 2.2 k resistor. The circuit in Figure 2-7 is monitoring camera output port 2. Figure 2-7: Typical LED Output Signal BASLER A640...
  • Page 23: Basic Operation And Standard Features

    Camera Specification” (DCAM) issued by the 1394 Trade Association. The packets are passed to a 1394 physical layer controller which transmits them isochronously to a 1394 interface board in the host PC. The physical and link layer controllers also handle transmission and receipt of asynchronous data such as programming commands. BASLER A640...
  • Page 24 This ensures that the data transmission rate has no influence on image quality. CCD Sensor Vert. Vert. Vert. Vert. Shift Shift Shift Shift Pixels Pixels Pixels Pixels Reg. Reg. Reg. Reg. Horizontal Shift Register Figure 3-1: A640 Sensor Architecture Figure 3-2: A640 Block Diagram BASLER A640...
  • Page 25: Exposure Control

    So in this case, the maximum exposure time is 90.9 ms. Exceeding the maximum exposure time for your frame rate will cause the camera to slow down, i.e., it will cause the camera to operate at a lower frame rate. BASLER A640...
  • Page 26: Controlling Exposure Start With "Shot" Commands Via The 1394 Interface

    Typically, IEEE 1394 cameras are used with a driver which includes an interface that allows the user to parameterize and op- erate the camera without directly setting registers. The Basler BCAM 1394 Camera ®...
  • Page 27: Controlling Exposure Start With A Software Trigger

    Trigger Ready signal. (See Section 3.2.8 for more information on the Trigger Ready signal.) The following descriptions assume that you are using a software trigger to start exposure and that you are monitoring the Trigger Ready signal. BASLER A640...
  • Page 28 1.31 of the IIDC specification. The Basler BCAM 1394 Driver does not yet include a method call to access the Soft- ware Trigger feature. As a work-around, you can use the techniques described in the tutorial for the Basler Smart Features Framework Software to directly read from or write to the Software Trigger and Trigger Mode registers.
  • Page 29: Controlling Exposure Start With An Extrig Signal

    ExTrig signal rises. If the camera is set for falling edge triggering, exposure starts when the ExTrig signal falls. Figure 3-4 illustrates programmable exposure with the camera set for rising edge triggering. Figure 3-4: Programmable Exposure with Rising Edge Triggering BASLER A640...
  • Page 30 ExTrig signal to vary the exposure time in a range from 3000 µs and 5500 µs. In this case you would use the shutter setting to set the minimum exposure time to 3000 µs. BASLER A640...
  • Page 31: Enabling The External Trigger Feature

    The Trigger Source field in the Trigger Mode register is defined in version 1.31 of the IIDC specification. The Basler BCAM 1394 Driver does not yet include a method call to access the Trigger Source feature. As a work-around, you can use the techniques described in the tutorial for the Basler Smart Features Framework Software to directly read from or write to the Trigger Source field.
  • Page 32 Typically, IEEE 1394 cameras are used with a driver which includes an interface that allows the user to parameterize and op- erate the camera without directly setting registers. The Basler BCAM 1394 Camera ®...
  • Page 33: Integrate Enabled Signal

    When you use the Integrate Enabled signal, be aware that there is a delay in the rise and the fall of the signal in relation to the start and the end of exposure. See Figure for details. 3-11 BASLER A640...
  • Page 34: Overlapped And Non-Overlapped Exposure

    This situation is illustrated in Figure 3-7 and is known as operating the camera with “overlapped” exposure. As you can see, running the camera with readout and exposure overlapped can allow higher frame rates because the camera is performing two processes at once. Figure 3-7: Overlapped Exposure 3-12 BASLER A640...
  • Page 35 A640 cameras supply a “Trigger Ready” signal that is specifically designed to let you perform overlapped exposures safely and efficiently. For more information on using the Trigger Ready signal, please see Section 3.2.8. 3-13 BASLER A640...
  • Page 36: Trigger Ready Signal

    3.2.8 Trigger Ready Signal The trigger ready signal is not defined in the 1394 Trade Association Digital Camera Specification. Trigger ready is a patented feature of Basler cameras that allows our cameras to have optimized timings. As described in Section 3.2.7, you can operate the camera in an “overlapped” exposure fashion.
  • Page 37 If you signal the camera to start an exposure when trigger ready is low, the camera will simply ignore the signal. If the camera is in continuous shot mode and external triggering is disabled, the trig- ger ready output signal will not be present. 3-15 BASLER A640...
  • Page 38: Recommended Method For Controlling Exposure Start

    The transmission start delay is the amount of time between the point where the camera begins reading out a captured image into the buffer to the point where it begins transmitting the data for the captured image from the buffer to the host PC. 3-16 BASLER A640...
  • Page 39 If the frame transmission time is greater than the frame readout time: Start Delay = 125 µs. If the frame transmission time is less than the frame readout time: Start Delay = (Readout Time - Transmission Time) + 125 µs 3-17 BASLER A640...
  • Page 40: Gain And Brightness

    8 bits per pixel) or 4095 (in modes that output 12 effective bits per pixel). Figure 3-11: Offset Because increasing gain increases both signal and noise, the signal to noise ratio does not change significantly when gain is increased. 3-18 BASLER A640...
  • Page 41: Setting The Gain

    Settings above 511 should not be used with a camera set for mono 16 or raw 16 output. In normal operation, gain settings lower than 350 should not be used. When the gain is set lower than 350, the sensor output signal will not be properly mapped to the ADC input. 3-19 BASLER A640...
  • Page 42: Setting The Brightness

    0 in the digital values output for the pixels. Each increase of 1 (decimal) in the brightness setting will result in a positive offset of 1 in the digital values output for the pixels. 3-20 BASLER A640...
  • Page 43: Area Of Interest (Aoi)

    Left field and a value for the Top field of the Image Position control register for Format 7, Mode 0 (see page 4-36). The size of the area of interest is defined by setting 3-21 BASLER A640...
  • Page 44: Changing Aoi Parameters "On-The-Fly

    When transmission of the current image is complete, the camera will change the AOI position, will trigger the next image, and will resume running in overlapped mode. 3-22 BASLER A640...
  • Page 45: Changes To The Frame Rate With Aoi

    Formula 2 calculates the maximum frame rate based on the frame transmission time: Max. Frames/s --------------------------------------------------------------- - × Packets/frame 125 µs Formula 3 calculates the frame rate based on the exposure time: Max. Frames/s ------------------------------------------------------------------------------------- - Exposure Time in µs + 157.0 µs 3-23 BASLER A640...
  • Page 46 2000 µs + 157.0 µs Max. Frames/s = 463.6 Formula one returns the lowest value. So in this case, the limiting parameter is the sensor readout time and the maximum frame rate would be 81.0 frames per second. 3-24 BASLER A640...
  • Page 47: Color Creation In The A641Fc

    U = - 0.17 R - 0.33 G + 0.50 B 0.50 R - 0.41 G - 0.09 B Once the conversion to YUV is complete, pixels are transmitted from the camera in the YUV (4:2:2) format as defined in Sections and 5.4. 3-25 BASLER A640...
  • Page 48: White Balance

    Red Value Setting Red Correction Factor ----------------------------------------------- - To make your images appear less green, raise the correction factors for blue and red. To make your images appear more green, lower the correction factors for blue and red. 3-26 BASLER A640...
  • Page 49: Color Filter Id

    The Color Filter ID register for Format 7 is defined in version 1.31 of the IIDC speci- fication. The Basler BCAM 1394 Driver does not yet include a method call to access the Color Filter ID feature. As a work-around, you can use the techniques described in the tu- torial for the Basler Smart Features Framework Software to directly read from or write to the Filter ID field.
  • Page 50: Integrated Ir Cut Filter

    The thread length on your lens must be less than 7.5 mm. If a lens with a longer thread length is used, the camera will be damaged and will no longer operate. See Section for more details. 3-28 BASLER A640...
  • Page 51: Selectable 8 Or 12 Bit Pixel Depth

    On an A641 set to Mono 16 or an A641 set to Raw 16, the maximum frame rate is 8.15 fps at full resolution. 3-29 BASLER A640...
  • Page 52: Strobe Control Output Signals

    The Strobe Time Base smart feature can be used to change the strobe delay time base. For more information on changing the strobe delay time base, see Section 6.7.14. Figure 3-15: Strobe Signal 3-30 BASLER A640...
  • Page 53 The Strobe Control Output Signal registers are defined in version 1.31 of the IIDC specification. The Basler BCAM 1394 Driver does not yet include a method call to access the Strobe Control feature. As a work-around, you can use the techniques described in the tutorial for the Basler Smart Features Framework Software to directly read from or write to the strobe control output signal registers.
  • Page 54: Parallel Input/Output Control

    The PIO Control registers are defined in version 1.31 of the IIDC specification. The Basler BCAM 1394 Driver does not yet include a method call to access the PIO Control feature. As a work-around, you can use the techniques described in the tutorial for the Basler Smart Features Framework Software to directly read from or write to the PIO registers.
  • Page 55: Available Video Formats, Modes And Frame Rates On Monochrome Cameras

    Format 1, Mode 2, Frame Rate 2 ( 800 x 600, Y Mono, 8 bits/pixel, 7.5 fps ) Format 1, Mode 2, Frame Rate 3 ( 800 x 600, Y Mono, 8 bits/pixel, 15 fps ) 3-33 BASLER A640...
  • Page 56 Format 2, Mode 7, Frame Rate 2 ( 1600 x 1200, Y Mono, 16 bits/pixel, 7.5 fps ) When an A641 camera is set for a standard format and mode, the image area will be centered on the sensor. 3-34 BASLER A640...
  • Page 57: Customizable Formats And Modes

    Mono 16 and the AOI set to full resolution, the max- imum frame rate is 8.15 fps. Color code definitions can vary from camera model to camera model. This is especially true for older models of Basler cameras. 3-35 BASLER A640...
  • Page 58: Available Video Formats, Modes And Frame Rates On Color Cameras

    Format 1, Mode 5, Frame Rate 1 ( 1024 x 768, Y Mono, 8 bits/pixel, 3.75 fps ) Format 1, Mode 5, Frame Rate 2 ( 1024 x 768, Y Mono, 8 bits/pixel, 7.5 fps ) Format 1, Mode 5, Frame Rate 3 ( 1024 x 768, Y Mono, 8 bits/pixel, 15 fps ) 3-36 BASLER A640...
  • Page 59 When an A641 camera is set for a standard format and mode, the image area will be centered on the sensor. 3-37 BASLER A640...
  • Page 60: Customizable Formats And Modes

    The camera outputs raw data for each pixel. The pixel data is not processed to account for the color filter. 3-38 BASLER A640...
  • Page 61 This mode of operation is included on the A641 for compatibility with versions 1.6 and below of the Basler BCAM 1394 driver software. These early versions of the BCAM software cannot properly access the Raw 8 color coding. Instead, they require a Mono 8 color coding that results in the output of raw pixel data.
  • Page 62: Error Flags

    Value Setting register for Format 7, Mode 0 (see page 4-41). If you are operating the camera in Format 7, Mode 1, the flag is set in the Error Flag 2 field of the Value Setting register for Format 7, Mode 1 (see page 4-48). 3-40 BASLER A640...
  • Page 63: Configuration Sets And Memory Channels

    3. Set the value of the Memory Save control register (see 4-25) to 1. When you set this value to 1, the camera will save the current register settings to the designated memory channel. Saving a configuration set to one of the memory channels will overwrite any set that was previously saved to the selected channel. 3-41 BASLER A640...
  • Page 64: Copying A Saved Configuration Set Or The Factory Set

    2 will be copied into the work set at power on or reset. The startup channel feature on A640 cameras has been implemented as a smart feature. See Section 6.7.12 for more information on the startup channel smart feature. 3-42 BASLER A640...
  • Page 65: Configuring The Camera

    See Section for more information. The BCAM Driver A fully functional driver is available for Basler IEEE 1394 cameras such as the A640 . The Basler BCAM 1394 Driver/Software Development Kit includes an API that allows a C++ programmer to easily integrate camera configuration and operating functions into your system control software.
  • Page 66: Block Read And Write Capabilities

    4-35). If necessary, change the Mode, Position, Size and Bytes per Packet settings so that they are compatible with Format 7. 4.3 Configuration ROM The configuration ROM in the A640 is compliant with the DCAM specification V 1.31. BASLER A640...
  • Page 67: Implemented Standard Registers

    VGA non-compressed format Format 1 Super VGA non-compressed format (1) Format 2 Super VGA non-compressed format (2) Format x 3 ... 5 Reserved Format 6 Still image format Format 7 Partial image size format 8 ... 31 Reserved BASLER A640...
  • Page 68: Inquiry Registers For Video Modes

    Mode 4 1024 x 768, RGB, 24 bits/pixel Mode 5 1024 x 768, Y Mono, 8 bits/pixel Mode 6 800 x 600, Y Mono, 16 bits/pixel Mode 7 1024 x 768, Y Mono, 16 bits/pixel 8 ... 31 Reserved BASLER A640...
  • Page 69 Format 7, Mode 2 Mode 3 Format 7, Mode 3 Mode 4 Format 7, Mode 4 Mode 5 Format 7, Mode 5 Mode 6 Format 7, Mode 6 Mode 7 Format 7, Mode 7 8 ... 31 Reserved BASLER A640...
  • Page 70: Inquiry Registers For Video Frame Rates

    15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 120 fps standard frame rate Frame Rate 7 240 fps standard frame rate 8 ... 31 Reserved BASLER A640...
  • Page 71 15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 120 fps standard frame rate Frame Rate 7 240 fps standard frame rate 8 ... 31 Reserved BASLER A640...
  • Page 72 15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 120 fps standard frame rate Frame Rate 7 240 fps standard frame rate 8 ... 31 Reserved BASLER A640...
  • Page 73 15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 120 fps standard frame rate Frame Rate 7 240 fps standard frame rate 8 ... 31 Reserved BASLER A640...
  • Page 74 15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 120 fps standard frame rate Frame Rate 7 240 fps standard frame rate 8 ... 31 Reserved 4-10 BASLER A640...
  • Page 75 15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 120 fps standard frame rate Frame Rate 7 Reserved 8 ... 31 Reserved 4-11 BASLER A640...
  • Page 76 15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 120 fps standard frame rate Frame Rate 7 Reserved 8 ... 31 Reserved 4-12 BASLER A640...
  • Page 77 7.5 fps standard frame rate Frame Rate 3 15 fps standard frame rate Frame Rate 4 30 fps standard frame rate Frame Rate 5 60 fps standard frame rate Frame Rate 6 Reserved Frame Rate 7 Reserved 8 ... 31 Reserved 4-13 BASLER A640...
  • Page 78: Inquiry Registers For Format 7 Csr Offsets

    Indicates the quadlet offset from the base address of the initial register space for the Format 7, Mode 0 Control and Status Register (CSR). (All A640f cameras support Format 7, Mode 0) Register Name: Video CSR Inquiry for Format 7, Mode 1...
  • Page 79: Inquiry Register For Basic Functions

    “Multi Shot” image capture mode availability 21 ... 27 Reserved Memory Channels 28 ... 31 Indicates the maximum memory channel num- ber available. If these bits are set to 0, the cam- era does not support memory channels. 4-15 BASLER A640...
  • Page 80: Inquiry Register For Feature Presence

    Iris control availability Focus Focus control availability Temperature Temperature control availability Trigger Trigger control availability Trigger Delay Trigger delay control availability Control White Shading White shading control availability Frame Rate Frame rate prioritization control availability 16 ... 31 Reserved 4-16 BASLER A640...
  • Page 81 Advanced Feature 0 ... 31 Indicates the quadlet offset from the base address of the initial register Quadlet Offset space for the advanced features Control and Status Registers (CSR). All A640f cameras support advanced (vendor unique) features. 4-17 BASLER A640...
  • Page 82 Description Strobe Output 0 ... 31 Indicates the quadlet offset from the base address of the initial register Quadlet Offset space for the strobe output Control and Status Registers (CSR). All A640f cameras support strobe output control. 4-18 BASLER A640...
  • Page 83: Inquiry Registers For Feature Elements

    A white balance auto control mode is present Manual Inq The white balance value can be set manually Min Value 8 ... 19 Minimum value for white balance Max Value 20 ... 31 Maximum value for balance 4-19 BASLER A640...
  • Page 84 In Format 0, depends on depends on the format, the format, mode and mode and frame rate frame rate settings. settings. In Format 7, In Format 7, the maxi- the maxi- mum is mum is 4095. 4095. 4-20 BASLER A640...
  • Page 85 20 ... 31 Maximum value for gain With a camera set for mono 8, raw 8, or YUV 4:2:2 out- put: max = 1023 With a camera set for mono 16 or raw 16 output: max = 511 4-21 BASLER A640...
  • Page 86 Trigger mode 5 is present 22 ... 29 Reserved Trigger Mode 14 Inq Trigger mode 14 is present (Vendor unique trigger mode 0) Trigger Mode 15 Inq Trigger mode 15 is present (Vendor unique trigger mode 1) 4-22 BASLER A640...
  • Page 87: Control And Status Registers

    5 = frame rate 5 2 = frame rate 2 6 = frame rate 6 3 = frame rate 3 7 = frame rate 7 Default = 0 on all A640f cameras Check Sections 3.9.1 3.10.1 to determine the standard frame rates supported.
  • Page 88 0 = format 0 6 = format 6 1 = format 1 7 = format 7 2 = format 2 Default = 7 on all A640f cameras Check Sections 3.10 to determine the video formats supported on A640f cameras. 3 ... 31...
  • Page 89 Default = 0 on all A640f cameras Multi Shot Multi shot is not supported on A640f cameras. 2 ... 15 Reserved Count Number 16 ... 31 The count number for multi shot is not supported on A640f cameras. 4-25 BASLER A640...
  • Page 90 ISO speed settings is acceptable to the camera. 0 = the combination is OK, image capture can be started 1 = the combination is not OK, image capture can not be started This field is read only. 1 ... 31 Reserved 4-26 BASLER A640...
  • Page 91 This field is read only. Camera set for: Effective data depth indicated: Mono 8 output 8 bits/pixel Mono 16 output 12 bits/pixel Raw 8 output 8 bits/pixel Raw 16 output 12 bits/pixel 4:2:2 YUV output 8 bits/component 8 ... 31 Reserved 4-27 BASLER A640...
  • Page 92: Control And Status Registers For Features

    Field Description Presence Inq Indicates the presence of the brightness control feature. The value will be 1 on all A640f cameras, indicating that brightness control is available. This field is read only. Abs Control Determines whether the brightness will be controlled by the Value field of this register or by the Absolute Value CSR for brightness.
  • Page 93 Sets whether the camera is in automatic or manual white balance con- trol mode. The value will be 0, indicating that white balance control is in manual mode. Automatic white balance control is not available on A640f cam- eras. This field is read only.
  • Page 94 Field Description Presence Inq Indicates the presence of the shutter control feature. The value will be 1 on all A640f cameras, indicating that shutter control is available. This field is read only. Abs Control Determines whether the shutter will be controlled by the Value field of this register or by the Absolute Value CSR for the shutter.
  • Page 95 Field Description Presence Inq Indicates the presence of the gain control feature. The value will be 1 on all A640f cameras, indicating that gain control is available. This field is read only. Abs Control Determines whether the gain will be controlled by the Value field of this register or by the Absolute Value CSR for gain.
  • Page 96 Field Description Presence Inq Indicates the presence of the trigger mode control feature. The value will be 1 on all A640f cameras, indicating that trigger mode control is available. This field is read only. Abs Control Determines whether the trigger mode will be controlled by the Value field of this register or by the Absolute Value CSR for the trigger mode.
  • Page 97: Error Status Registers For Feature Control

    1 = A setting in the brightness control register (see page 4-28) is out- side of the allowed range This field is read only. Auto Exposure Not used on A640f cameras. This bit should be ignored. Sharpness Not used on A640f cameras. This bit should be ignored. White Balance Indicates a white balance control error on an A641fc.
  • Page 98 1 = A setting in the trigger mode control register (see page 4-32) is outside of the allowed range This field is read only. Trigger Delay Not used on A640f cameras. This bit should be ignored. White Shading Not used on A640f cameras. This bit should be ignored. Frame Rate Not used on A640f cameras.
  • Page 99: Control And Status Registers For Format 7, Mode 0

    Indicates the increment in rows for adjusting the area of interest height (see Section 3.4). For example, if the Vunit is 1, the height should be set in increments of 1. Vunit = 1 on the A641f Vunit = 2 on the A641fc 4-35 BASLER A640...
  • Page 100 Sets the left (starting) column of pixels for the area of interest (see Sec- tion 3.4). Default = 0 on all A640f cameras 16 ... 31 Sets the top row of pixels for the area of interest (see Section 3.4).
  • Page 101 * If a bit is set to 0, the camera does not support this color coding ID in Format 7 Mode 0. If a bit is set to 1, the camera supports this color coding ID in Format 7 Mode 0. 4-37 BASLER A640...
  • Page 102 Indicates the increment for setting the Bytes Per Packet field of the Packet Bytes Per Packet register (see page 4-39). 4 = the increment for setting the bytes per packet on A640f cameras. Max Bytes Per 16 ... 31 Indicates the maximum bytes per packet.
  • Page 103 Indicates the increment in rows for adjusting the area of interest start- ing row (see Section 3.4). For example, if the Vposunit is 1, the starting row should be adjusted in increments of 1. Vposunit = 1 for the A641f Vposunit = 2 for the A641fc 4-39 BASLER A640...
  • Page 104 Indicates the alignment of the camera’s color filter to the current AOI. This field is valid for cameras equipped with an RGB primary color filter such as the A641fc. (See Sections and 3.5.2.) Value in this field: Pixel color order: RG/GB GB/RG GR/BG BG/GR 8 ... 31 Reserved 4-40 BASLER A640...
  • Page 105 The fields in this register are valid on all A640f cameras. The Presence Inq field is read only. Setting 1 On A640f cameras, this field is not relevant and should be ignored. (Updates to the register values monitored by this field are performed automatically.) 2 ...
  • Page 106: Control And Status Registers For Format 7, Mode 1

    16 ... 31 Indicates the increment in rows for adjusting the area of interest height (see Section 3.4). For example, if the Vunit is 1, the height should be set in increments of 1. Vunit = 2 4-42 BASLER A640...
  • Page 107 0 ... 7 Sets the color coding. Valid color codings for Format 7 Mode 1 are listed in the Color Coding Inquiry register (see the next register de- scription). Default = ID 0 8 ... 31 Reserved 4-43 BASLER A640...
  • Page 108 * If a bit is set to 0, the camera does not support this color coding ID in Format 7 Mode 1. If a bit is set to 1, the camera supports this color coding ID in Format 7 Mode 1. 4-44 BASLER A640...
  • Page 109 Bytes per Packet register (see page 4-46). 4 = the increment for setting the bytes per packet Max Bytes Per 16 ... 31 Indicates the maximum bytes per packet. Packet 4096 = the maximum bytes per packet 4-45 BASLER A640...
  • Page 110 Indicates the increment in rows for adjusting the area of interest start- ing row (see Section 3.4). For example, if the Vposunit is 1, the starting row should be adjusted in increments of 1. Vposunit = 2 4-46 BASLER A640...
  • Page 111 Indicates the alignment of the camera’s color filter to the current AOI. This field is valid for cameras equipped with an RGB primary color filter such as the A641fc. (See Sections and 3.5.2.) Value in this field: Pixel color order: RG/GB GB/RG GR/BG BG/GR 8 ... 31 Reserved 4-47 BASLER A640...
  • Page 112 The fields in this register are valid on A641fc cameras. The Presence Inq field is read only. Setting 1 On A640f cameras, this field is not relevant and should be ignored. (Updates to the register values monitored by this field are performed automatically.) 2 ...
  • Page 113: Control And Status Registers For The Pio Control Function

    0 = low 1 = high Port 1 In Indicates the current state of physical input port 1. 0 = low 1 = high Port 0 In Indicates the current state of physical input port 0. 0 = low 1 = high 4-49 BASLER A640...
  • Page 114: Control And Status Registers For The Strobe Signal Function

    20 ... 31 Maximum value for Strobe 0 controls 4095 4095 * If a bit is set to 0, the camera does not support this feature If a bit is set to 1, the camera supports this feature 4-50 BASLER A640...
  • Page 115 Description A641f A641fc Value Value Same definitions and values as Strobe 0 Inq Register Name: Strobe 3 Inquiry Offset from Base Address: 0x10C Field Description A641f A641fc Value Value Same definitions and values as Strobe 0 Inq 4-51 BASLER A640...
  • Page 116 Description Presence Inq Indicates the presence of the Strobe 0 signal control feature. 0 = not available 1 = available The Strobe 0 control feature is available on all A640f cameras. This field is read only. 1 ... 5 Reserved On / Off Sets whether the Strobe 0 signal is on or off.
  • Page 117 “strobe”. If the Strobe 1 signal is on, the signal will only be present on physical output port 1 if the port is configured for “strobe”. Etc. See Section 6.7.11 for more information about configuring the output ports. 4-53 BASLER A640...
  • Page 118: Advanced Features Registers

    Field Description Feature ID High 0 ... 31 On all A640f cameras, the value for Feature ID High field is: 0x0030 533B Feature ID Low 32 ... 47 On all A640f cameras, the value for Feature ID Low field is: 0x73C3 48 ...
  • Page 119: Image Data Formats And Structures

    Row 1232/Pixel 0, Row 1232/Pixel 1, Row 1232/Pixel 2 ... Row 1232/ Pixel 1622, Row 1232/Pixel 1623 Row 1233/Pixel 0, Row 1233/Pixel 1, Row 1233/Pixel 2 ... Row 1233/ Pixel 1622, Row 1233/Pixel 1623 (These sequences assume that the cameras are set for full resolution.) BASLER A640...
  • Page 120: Packet Payload Charts For Standard Format, Mode And Frame Rate Combinations On A640F Cameras

    Mode and Frame Rate Combinations on A640f Cameras The following charts describe the packet payload for each standard format/mode/framerate combination available on the A640f cameras. This information is especially useful when calculating a camera’s bandwidth usage. 5.2.1 Format 0, Mode 1...
  • Page 121: Format 0, Mode 6

    Bytes per Packet 1000 5.2.7 Format 1, Mode 3 ( 1024 x 768, YUV 4:2:2, 16 bits/pixel avg ) Frame Rate 3.75 fps 7.5 fps 15 fps Lines per Packet Pixels per Packet 1536 Bytes per Packet 1536 3072 BASLER A640...
  • Page 122: Format 2, Mode 0

    Bytes per Packet 1536 3072 5.2.11 Format 2, Mode 0 ( 1280 x 960, YUV 4:2:2, 16 bits/pixel avg ) Frame Rate 1.875 fps 3.75 fps 7.5 fps Lines per Packet Pixels per Packet 1280 Bytes per Packet 1280 2560 BASLER A640...
  • Page 123: Format 2, Mode 2

    Bytes per Packet 1000 2000 5.2.15 Format 2, Mode 6 ( 1280 x 960, Y Mono, 16 bits/pixel ) Frame Rate 1.875 fps 3.75 fps 7.5 fps Lines per Packet Pixels per Packet 1280 Bytes per Packet 1280 2560 BASLER A640...
  • Page 124: Format 2, Mode 7

    Image Data Formats & Structures 5.2.16 Format 2, Mode 7 ( 1600 x 1200, Y Mono, 16 bits/pixel ) Frame Rate 1.875 fps 3.75 fps 7.5 fps Lines per Packet 5/16 Pixels per Packet 1000 2000 Bytes per Packet 1000 2000 4000 BASLER A640...
  • Page 125: Image Data Formats

    • • • • • • U value for P Y value for P V Value for P Y value for P U value for P Y value for P V Value for P Y value for P BASLER A640...
  • Page 126: Data Format With The Camera Set For Y Mono 8 Output

    Y value for P Y value for P Y value for P Y value for P • • • • • • Y value for P Y value for P Y value for P Y value for P BASLER A640...
  • Page 127: Data Format With The Camera Set For Y Mono 16 Output

    16 bit data can be processed more effectively on little endian hard- ® ware such as Intel processor based PCs.) When the camera is set for 16 bit output, 16 bits of data will be transmitted for each pixel but only 12 bits are effective (see Section 3.6). BASLER A640...
  • Page 128: Data Format With The Camera Set For Raw 8 Output

    Green value for P Blue value for P Red value for P Green value for P Green value for P Blue value for P Red value for P Green value for P Green value for P Blue value for P 5-10 BASLER A640...
  • Page 129 Red value for P Green value for P Green value for P Blue value for P Red value for P Green value for P Green value for P Blue value for P Red value for P Green value for P 5-11 BASLER A640...
  • Page 130 Green value for P Red value for P Blue value for P Green value for P Green value for P Red value for P Blue value for P Green value for P Green value for P Red value for P 5-12 BASLER A640...
  • Page 131: Data Format With The Camera Set For Raw 16 Output

    High byte of red value for P High byte of green value for P Low byte of green value for P Low byte of blue value for P High byte of green value for P High byte of blue value for P 5-13 BASLER A640...
  • Page 132 High byte of green value for P High byte of red value for P Low byte of blue value for P Low byte of green value for P High byte of blue value for P High byte of green value for P 5-14 BASLER A640...
  • Page 133 High byte of green value for P High byte of blue value for P Low byte of red value for P Low byte of green value for P High byte of red value for P High byte of green value for P 5-15 BASLER A640...
  • Page 134 16 bit data can be processed more effectively on little endian hard- ® ware such as Intel processor based PCs.) When the camera is set for 16 bit output, 16 bits of data will be transmitted for each pixel but only 12 bits are effective (see Section 3.6). 5-16 BASLER A640...
  • Page 135: Image Data Structure

    0x01 -127 0x00 -128 The signal level of a U component or a V component can range from -128 to +127 (decimal). Notice that the data values have been arranged to represent the full signal level range. 5-17 BASLER A640...
  • Page 136: Data Structure For A Y (Mono 16) Or An R, G Or B (Raw 16) Component

    Normally, the data values for a 16 bit component would range from 0x0000 to 0xFFFF. However, when an A640f camera is set for 16 bit output, only 12 bits are effective. Therefore, the highest data value you will see is 0x0FFF indicating a signal level of 4095.
  • Page 137: Smart Features And The Smart Features Framework

    Features Framework 6.1 What are Smart Features Smart features are features unique to Basler cameras. Test Images, the Cycle Time Stamp, and the CRC (Cyclic Redundancy Check) Checksum are examples of Basler smart features. In some cases, enabling a smart feature will simply change the behavior of the camera. The Test Image feature is a good example of this type of smart feature.
  • Page 138: What Do I Need To Use Smart Features

    • A method of accessing the camera’s DCAM register structure. We strongly recommend that you use the Basler BCAM 1394 Driver (v1.7 or higher) along with the Basler Smart Features Framework software to access the registers. (See Section for more information about the SFF Software.)
  • Page 139: Enabling And Parameterizing Smart Features

    (that is, enabled) by writing an advanced features set identifier (Feature ID) and a time-out value to the Advanced Features Access Control Register. The Feature ID associated with Basler smart features is 0x0030 533B 73C3. From the point of view of the DCAM standard, smart features are a set of advanced DCAM features.
  • Page 140: Determining The Address Of A Smart Feature's Csr

    0x0 will be read from the Smart Features Address Register. Smart Features Inquiry Register Layout Offset 8-15 16-23 24-31 D4[3] D4[2] D4[1] D4[0] D4[7] D4[6] D4[5] D4[4] Smart Features Address Register Layout Offset 8-15 16-23 24-31 Address Low Address High BASLER A640...
  • Page 141 If both Address Low and Address High return zero, the camera doesn’t support the CRC checksum feature. Assuming the read operations yielded Address Low = 0xF2F0 0038 and Address High = 0x0000 FFFF, the CRC Checksum feature CSR’s address is 0xFFFF F2F0 0038. BASLER A640...
  • Page 142: Enabling And Parameterizing A Smart Feature

    The descriptions also include a detailed layout of how the bits contained within the feature’s CSR relate to the parameters for the feature. After reading the description of your desired smart feature, you can enable and parameterize the feature by setting the appropriate bits within the CSR. BASLER A640...
  • Page 143: Getting Smart Features Results

    If the last four bytes of a chunk aren’t the bitwise complement of the preceding four bytes, the chunk’s length information isn’t valid and this indicates that a transmission error occurred. BASLER A640...
  • Page 144: How Big A Buffer Do I Need

    Make sure to check these registers after all smart features have been enabled and all other settings affecting the image size have been completed. The size information in these fields will allow you to properly set up buffers to receive the transmitted images. BASLER A640...
  • Page 145: Standard Smart Features On The A640F

    Pixel Data The pixel data from the captured image [ K Bytes ] For technical reasons, there might be a gap between the [ M Bytes ] pixel data and the other data in the extended image data. BASLER A640...
  • Page 146 [ 16 Bytes ] K + M + 40 Chunk Length This chunk’s total length in bytes. [ 4 Bytes ] K + M + 44 Inverted Chunk Length The bitwise complement of the chunk length. [ 4 Bytes ] 6-10 BASLER A640...
  • Page 147: Frame Counter

    8C5DB844 - 1C0F - 11D8 - 965F - 00105A5BAE55 [ 16 Bytes ] Chunk Length This chunk’s total length in bytes. [ 4 bytes ] Inverted Chunk Length The bitwise complement of the chunk length. [ 4 bytes ] 6-11 BASLER A640...
  • Page 148: Cycle Time Stamp

    994DD430 - 1C0F - 11D8 - 8F6B - 00105A5BAE55 [ 16 Bytes ] Chunk Length This chunk’s total length in bytes. [ 4 Bytes ] Inverted Chunk Length The bitwise complement of the chunk length. [ 4 Bytes ] 6-12 BASLER A640...
  • Page 149: Dcam Values

    494DE528 - 1B84 - 11D8 - 8A0C - 00105A5BAE55 Field Description Presence Inq Presence of this feature (Read only) 0: Not Available 1: Available ---- [1 ... 30] Reserved Enable [31] Enable / Disable this feature (Read / write) 0: Disable 1: Enable 6-13 BASLER A640...
  • Page 150 Content of the DCAM Gamma CSR [ 4 bytes ] Same layout as the Gain CSR Gamma Absolute Value Field Description Abs Value [0 ... 31] Floating point value with [ 4 Bytes ] IEEE/real*4 format Unit: dB 6-14 BASLER A640...
  • Page 151 911C8982 - 1C0F - 11D8 - 8AF0 - 00105A5BAE55 [ 16 Bytes ] Chunk Length This chunk’s total length in bytes. [ 4 bytes ] Inverted Chunk Length The bitwise complement of the chunk length. [ 4 bytes ] 6-15 BASLER A640...
  • Page 152: Crc Checksum

    3B34004E - 1B84 - 11D8 - 83B3 - 00105A5BAE55 Field Description Presence Inq Presence of this feature (Read only) 0: Not Available 1: Available ---- [1 ... 30] Reserved Enable [31] Enable / Disable this feature (Read / write) 0: Disable 1: Enable 6-16 BASLER A640...
  • Page 153 (i=0; i<nbyLength; i++) { c = (unsigned long)*pData++; for (j=0x80; j; j>>=1) { bit = crc & 0x8000; crc <<= 1; if (c & j) bit^= 0x8000; if (bit) crc^= 0x1021; return (unsigned short) (crc & 0xffff); 6-17 BASLER A640...
  • Page 154 /* Retrieve the desired CRC value from the data buffer */ nDesiredCRC = ((unsigned long*) pData)[ nbyLength / sizeof ( unsigned long ) - 1]; /* Return TRUE if they are equal */ return nCurrentCRC == nDesiredCRC; 6-18 BASLER A640...
  • Page 155: Test Images

    Figure 6-3, but the starting pixel values on each row will not be as described above.) The mathematical expression for test image one is: Gray Value = [ x + y ] MOD 256 Figure 6-3: Test Image One 6-19 BASLER A640...
  • Page 156 Test image three is similar to test image one but it is not stationary. The image moves by 1 pixel from right to left whenever a one-shot or a continuous-shot command signal is sent to the camera. 6-20 BASLER A640...
  • Page 157 0: Not Available 1: Available ----- [15] Reserved Image On [16 ... 18] 0: No test image active (Read / write) 1: Test image 1 active 2: Test image 2 active 3: Test image 3 active ----- [19 ... 31] Reserved 6-21 BASLER A640...
  • Page 158: Extended Version Information

    A640 software. For troubleshooting purposes, Basler technical support may ask you to read this register and to supply the results. The extended version information smart feature does not add information to the im- age data stream and can be accessed even when the extended data stream feature (see Section 6.7.1) is disabled.
  • Page 159: Lookup Table

    You will notice that the first two quadlets of the register include bits that allow you to check for this feature’s presence and to enable or disable the feature. These initial two quadlets are followed by 4096 quadlets. The 4096 quadlets contain the values that make up the customized lookup table. 6-23 BASLER A640...
  • Page 160 If you want use your own customized lookup table you must: 1. Use the look table feature Control and Status Register (CSR) to enable the lookup table feature. 2. Write the values for your customized lookup table to the CSR. 6-24 BASLER A640...
  • Page 161 • • • • • 16296 Quadlet 4072 [1 Quadlet] Defines the 8 bit value that will be transmit- (Read / write) ted from the camera when the 12 bit pixel value from the sensor is 16. 6-25 BASLER A640...
  • Page 162 Using the SFF Viewer to Upload a Lookup Table The Configurator window in the Basler SFF Viewer (see Section 6.4) includes a drop down list that can be used to enable the lookup table feature. It also includes an Upload button that can be used to easily load a text file containing a customized lookup table into the camera.
  • Page 163 DRAFT Smart Features Figure 6-6: Sample Text File for Use With Upload Button 6-27 BASLER A640...
  • Page 164: Lossless Compression

    So if you operate the camera with the lookup feature enabled and the default table loaded, the camera will output 8 bit data via lossless compression. 6-28 BASLER A640...
  • Page 165: Trigger Flag And Trigger Counter

    ----- [0 ... 30] Reserved Trigger Flag [31] The flag is set to 1 by each trigger. It is cleared by a (Read only) read access to this register. 6-29 BASLER A640...
  • Page 166: Output Port Configuration

    The output port configuration feature is always enabled regardless of the video for- mat. By default, the Integrate Enabled signal is assigned to physical output port 0 and the Trigger Ready Signal is assigned to physical output port 1. 6-30 BASLER A640...
  • Page 167 If the Source Select field is set to “user set”, this field (Read / write) sets the state of the output: 0: Low (non-conducting) 1: High (conducting) (Sets the state of the output before the inverter.) ----- [0 ... 31] Reserved 6-31 BASLER A640...
  • Page 168 CSR GUID E79233CA - 4513 - 11D8 - 9B9A - 00105A5BAE55 Position Field Description Same as port 0. Same as port 0. Same as port 0. Same as port 0. Same as port 0. Same as port 0. 6-32 BASLER A640...
  • Page 169: Startup Memory Channel

    Selects a memory channel. At camera power on or re- set, the selected channel will be copied into the cam- era’s work configuration set. 0: Channel 0 (Factory set) 1: Channel1 2: Channel 2 3: Channel 3 Default = 0 6-33 BASLER A640...
  • Page 170: Shutter Time Base

    The shutter time base smart feature does not add information to the image data stream and can be accessed even when the extended data stream feature (see Sec- tion 6.7.1) is disabled. The shutter time base smart feature can be enabled regardless of the video format. 6-34 BASLER A640...
  • Page 171 The time base can range from 0.000015 second to 0.001221 second in increments of 0.000001 sec- ond. The value in the time base field is a standard IEEE- 754 single precision (32 bit) floating point number. Default = 0.000020 second 6-35 BASLER A640...
  • Page 172: Strobe Time Base

    Strobe Time Base CSR can be used to change the strobe duration time base. To change the strobe duration time base: • Set the Duration Time Base field in the Strobe Time Base CSR to your desired time base value 6-36 BASLER A640...
  • Page 173 The value sets the delay time base in units of 1/1024 ms. Example: If the value in this field is set to 14, the de- lay time base will be 14/1024 ms (~ 13.7 µs) Default = 1 6-37 BASLER A640...
  • Page 174: Customized Smart Features

    The Basler camera development team is ready and able to handle requests for customized smart features. The cost to the customer for adding a customized smart feature to the A640...
  • Page 175: Mechanical Considerations

    The camera is shipped with a cap on the lens mount. To avoid collecting dust on the sensor, make sure that at all times either the cap is in place or a lens is mounted on the camera. BASLER A640...
  • Page 176: Camera Dimensions And Mounting Facilities

    Figure 7-1. cameras are equipped with two M3 mounting holes on the top and four M3 mounting holes A640 on the bottom as indicated in the drawings. Figure 7-1: A640 Mechanical Dimensions (in mm) BASLER A640...
  • Page 177: Sensor Positioning Accuracy

    DRAFT Mechanical Considerations 7.2 Sensor Positioning Accuracy The sensor positioning accuracy in the horizontal and vertical directions is as shown in Figure 7- 2. Rotational accuracy is also shown in the figure. Figure 7-2: Sensor Positioning Accuracy BASLER A640...
  • Page 178: Maximum Lens Thread Length On The A641Fc

    The location of the filter limits the thread length of the lens that can be used on the camera. The thread length on your lens must be less than 7.5 mm. If a lens with a longer thread length is used, the camera will be damaged and will no longer operate. BASLER A640...
  • Page 179: Technical Support

    8 Technical Support 8.1 Before Calling Basler Technical Support To help you as quickly and efficiently as possible when you have a problem with a Basler camera, it is important that you collect several pieces of information before you contact technical support.
  • Page 180 DRAFT Technical Support BASLER A640...
  • Page 181 5 If known, what’s the cause of the problem? 6 When did the problem occur? After start. While running. After a certain action (e.g., a change of parameters): 7 How often did/does the prob- Once. Every time. lem occur? Regularly when: Occasionally when: BASLER A640...
  • Page 182 10 Parameter set It is very important for Basler Technical Support to get a copy of the exact camera parame- ters that you were using when the problem occurred. To make a copy of the parameters, use the dump register tool available from the support section of www.basler-vc.com (the tool is available for XP PCs only).
  • Page 183: Revision History

    DRAFT Revision History Revision History Doc. ID Number Date Changes DA00073201 1 June 2005 Initial release of the A640f User’s Manual. BASLER A640...
  • Page 184 DRAFT Revision History BASLER A640...
  • Page 185: Feedback

    DRAFT Feedback Feedback Your feedback will help us improve our documentation. Please click the link below to access an online feedback form. Your input is greatly appreciated. http://www.baslerweb.com/umfrage/survey.html BASLER A640...
  • Page 186 DRAFT Feedback BASLER A640...
  • Page 187: Index

    ......2-5 overlapped exposure ..... 3-12 BASLER A640...
  • Page 188 ... . . 6-36 support ....... . 8-1 BASLER A640...

Table of Contents