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.
DRAFT Introduction 1 Introduction The Basler A202 high resolution, progressive scan camera is a versatile camera designed for industrial use. Superb image sensing features are combined with a robust, high-precision, machined housing. Important features are: • High spacial resolution • High sensitivity •...
Max. Frame Rate 48 Frames/sec. at full resolution Video Output Type Camera Link LVDS (RS-644 when used with the optional Basler Interface Controller) Video Output Formats Dual 8 Bit or Dual 10 Bit Synchronization Via external ExSync signal or free-run...
50° C. Provide additional cooling such as fans or heat sinks if necessary. Warning! Without sufficient cooling, the camera can get hot enough during opera- tion to cause burning when touched. BASLER A202...
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 A202...
A status LED located on the back of the camera is used to indicate power present and signal integrity. Figure 2-1 shows the connectors and the LED. Micro-miniature 6 Pin Receptacle 26 Pin Female MDR Connector Figure 2-1: A202 Connectors and LED BASLER A202...
Pins 1, 13, 14, and 26 are all tied together inside of the camera. Table 2-1: A202 Pin Assignments for the 26-pin MDR Connector The camera housing is not grounded and is electrically isolated from the cir- cuit boards inside of the camera. BASLER A202...
EMI protection, the power supply cable attached to this plug must be a twin-cored, shielded cable. Also, the housing of the Hirose plug must be connected to the cable shield and the cable shield must be connected to earth ground at the power supply. BASLER A202...
2.2 Cable Information 2.2.1 Camera Link Cable A Camera Link compatible MDR cable assembly is available from Basler as a stock item (part # 1000013041 for a 3 meter cable and part # 1000013042 for a 5 meter cable). Alternatively, you can use the cable assembly manufactured by 3M (part # 14X26-SZLB-XXX-0LC).
Page 15
C1 is optional. Inner Shield Ferrite R1 and C1 can be used Bead to prevent ground loops Inner Shield if needed. 12 V In Typical Frame Grabber Not Connected Not Connected Filter A202 Figure 2-3: Camera / Frame Grabber Interface BASLER A202...
ExSync can be a periodic or non-periodic function. The frequency of the ExSync signal determines the camera’s frame rate. Note that ExSync is edge sensitive and therefore must toggle. Minimum high time for the ExSync signal is 4 µs. BASLER A202...
2.5.3 Line Valid Bit As shown in Figures 2-4 and 2-5, the line valid bit indicates that a valid line is being transmitted. Pixel data is only valid when the frame valid bit and the line valid bit are both high. BASLER A202...
Line Valid Line Valid FVAL TxIN25 RxOUT25 Frame Valid Frame Valid Not Used TxIN26 RxOUT26 Not Used Not Used Not Used TxIN23 RxOUT23 Not Used Not Used PClk TxCLKIn RxCLKOut Pixel Clock Pixel Clock Table 2-3: Bit Assignments BASLER A202...
• This pattern will continue until all of the pixel data for line one has been transmitted. ____________________ The data sequence assumes that the camera is operating in 10 bit mode. If the camera is operating in 8 bit mode, only 8 bits of data per pixel will be transmitted. BASLER A202...
Page 20
Figure 2-4 shows the data sequence when the camera is operating in level-controlled exposure mode. Figure 2-5 shows the data sequence when the camera is operating in programmable exposure mode. 2-10 BASLER A202...
Page 21
DRAFT Camera Interface 2-11 BASLER A202...
Page 22
DRAFT Camera Interface 2-12 BASLER A202...
However, a Camera Link cable which allows easy access to this signal is available from Basler as a stock item (part # 100013041 for a 3 meter cable and part # 100013042 for a 5 meter cable).
API delivered with the frame grabber or the Basler CPA driver. (See Section 4.2 for details on the binary command format.) We recommend that you use the CPA driver because the binary command protocol is implemented in the CPA driver.
RS-232 serial communication via the host PC. The output from A202 cameras can be converted to the older style of output by using a Basler Interface Converter for k-series cameras (k-BIC). The k-BIC is a small device which attaches to the A202 with a Camera Link compatible cable.
Page 26
DRAFT Camera Interface 2-16 BASLER A202...
The digitized video data is transmitted from the camera to the frame grabber using a format compatible with the Camera Link standard. Lines are output sequentially in a progressive scan until one full frame is obtained. For optimal digitization, gain and offset are programmable via a serial port. BASLER A202...
Page 28
Shift Pixels Reg. Reg. Reg. Reg. Reg. Reg. Reg. Reg. Line 1004 Line 1003 Line 1002 Line 3 Line 2 Line 1 Left Side Horizontal Shift Register Right Side Horizontal Shift Register Reorder Figure 3-1: A202 Sensor Architecture BASLER A202...
The falling edge of ExSync is irrelevant (see Figure 3- 3). A parameter called "Timer 1" is used to set the length of the pre-programmed exposure period. ExSync Period ExSync Exposure (Timer 1) Frame Read Out Figure 3-3: ExSync, Programmable Mode BASLER A202...
In case two (see Figure 3-5), the falling edge of ExSync occurs after the previously captured frame has been transmitted, that is, when frame valid is low. BASLER A202...
Page 31
• The actual length of the exposure time will be equal to the ExSync signal low time plus 94.5 µs minus the jitter time. As shown in Figure 3-4, FVAL must be low for at least 1 µs before the ExSync signal rises. BASLER A202...
Page 32
• The actual length of the exposure time will be equal to the ExSync signal low time plus 94.5 µs. As shown in Figure 3-5, FVAL must be low for at least 1 µs before the ExSync signal falls. BASLER A202...
In case two (see Figure 3-7), the rising edge of ExSync occurs after the previously captured frame has been transmitted, that is, when frame valid is low. BASLER A202...
Page 34
• The actual length of the exposure time will be equal to the programmed exposure time plus 94.5 µs minus the jitter time. As shown in Figure 3-6, FVAL must be low for at least 1 µs before the programmed exposure time ends. BASLER A202...
Page 35
• Exposure will start after a delay of 3.7 µs. • The actual length of the exposure time will be equal to the programmed time plus 94.5 µs. As shown in Figure 3-7, FVAL must be low for at least 1 µs before the ExSync signal rises. BASLER A202...
With binary commands, you must use the Exposure Time Control Mode command to select the free-run, programmable mode. You must also use the Timer 1 command to set Timer 1 and the Timer 2 command to set Timer 2. 3-10 BASLER A202...
When the camera is operating in free-run, external control of exposure start is not possible. In free-run, the camera generates all control signals internally. The camera determines when each exposure will start and controls the length of the exposure time. 3-11 BASLER A202...
IntEn signal to know when exposure is taking place and thus know when to avoid moving the camera. In cases where flash exposure is required, the integrate enabled signal is useful as a flash trigger. 3-12 BASLER A202...
Configuration Tool, you use the slide controls on the Gain and Offset Tab to easily adjust gain and offset. With binary commands, you must use the Left Side Gain and Right Side Gain binary commands to set the gain and the Left Side Offset and Right Side Offset binary commands to set the offset. 3-13 BASLER A202...
In normal operation, a gain setting lower than 288 (0x0120) should not be used. When the gain setting is lower than 288, the sensor output signal that is mapped to the input of the ADCs will not be linear. 3-14 BASLER A202...
In these situations, it is also necessary to balance the gain between cameras. To meet the goals of balanced channels and comparable output between cameras, each Basler camera is calibrated before it leaves the factory. This calibration procedure has the following effects: •...
3. Use the decimal values of Byte 4 through Byte 1 to determine the reference gain for the left side (RG Byte 2 Byte 1 (Byte 4 x 256) Byte 3 ---------------- - ---------------- - 65536 (1 x 256) --------- - ----------------- - 65536 288.39 3-16 BASLER A202...
Page 43
10.0, we would use formula A: 6.02 + 8.15 æ ö ------------------------------- - ç ÷ ´ – ç ÷ è Left Side Gain Setting ----------------------------------------------------------------------------- - 6.02 + 8.15 ------------------------------- - Left Side Gain Setting = 442.65 Round up to 443 3-17 BASLER A202...
1 in the digital values output for the pixels on the left side of the sensor. An increase of 16 (decimal) in the right side setting will result in a positive offset of 1 in the digital values output for the pixels on the right side of the sensor. 3-18 BASLER A202...
Since the shift once setting requires that the least significant bit always be "0", no odd gray values can be output. In this case, the gray value scale will only include gray values of 2, 4, 6 and so forth. The absence of some gray values is commonly called "Missing Codes”. 3-19 BASLER A202...
Page 46
10 bit mode with no digital shift are all below 128. Since the shift three times setting requires that the three least significant bits always be "0", the gray value scale will only include every 8th gray value. For example, 8, 16, 24 and so forth. 3-20 BASLER A202...
Note that if bit 9 is set to 1, all of the other bits will automatically be set to 1. This means that you should only use the shift once setting when your pixel readings in 8 bit mode with no digital shift are all below 128. 3-21 BASLER A202...
Page 48
Since the shift three times setting requires that the least significant bit always be "0", no odd gray values can be output. In this case, the gray value scale will only include gray values of 2, 4, 6 and so forth. 3-22 BASLER A202...
• If all of the readings are below 64, you can safely use the 2X or 4X digital shift setting. • If all of the readings are below 32, you can safely use the 2X, 4X, or 8X digital shift setting. 3-23 BASLER A202...
Configuration Tool, you use the Features Tab to set the area of interest. With binary commands, you use the Area of Interest Starting Column, Area of Interest Width in Columns, Area of Interest Starting Line, and Area of Interest Height in Lines commands. 3-24 BASLER A202...
The maximum allowed frame rate can be calculated using the following formula: 1,000,000 µs Maximum Frames per Second -------------------------------------------------------------------------------------------------------------------------------------- - (LI x 20.458 µs) [ (1004 - LI) x 7.2 µs ] 282.4 µs Where: LI = the number of lines included in the area of interest 3-25 BASLER A202...
502 and the vertical resolution is 502. The camera’s pixel clock normally operates at 40 MHz. However, when horizontal or full binning is used, the pixel clock is 20 MHz. 3-28 BASLER A202...
4.1 and the configuration tool’s on-line help file) or binary commands (see Section 4.2). With the Camera Configuration Tool, you use the Features Tab to enable mirror image. With binary commands, you use the Mirror Image command. 3-29 BASLER A202...
A test image will be generated and transmitted on each cycle of the ExSync signal. If the camera is set for free-run, each cycle of the camera’s internal control signal will trigger the transmission of a test image. 3-30 BASLER A202...
750 have a gray value of 254, the pixels in line 751 have a gray value of 253, and so on. This pattern continues until line 1004 where the pixels have a gray value of 0. 3-31 BASLER A202...
Copy a User Set or the Factory Set to the Work Set, or to set the Startup Pointer. With binary commands you use the Copy Work Set to User Set command, the Copy Factory Set or User Set to Work Set command, and the Select Startup Pointer command to manipulate configuration sets. 3-32 BASLER A202...
• with binary commands. You can use the Camera Status command (see Section 4.2.7) to check if the camera has detected any errors. • by checking the LED on the back of the camera. If certain error conditions are present, the LED will blink (see Section 6.1). 3-33 BASLER A202...
Page 60
DRAFT Operation and Features 3-34 BASLER A202...
Camera Configuration Tool. See Section 4.1 and the configuration tool’s on-line help file for instructions on using the configuration tool. You can also change the settings directly from your application using binary commands. Section 4.2 lists the binary commands and provides instructions for their use. BASLER A202...
1. Make sure that the properties for the RS-644 serial port on your frame grabber are properly configured and that the camera has power. 2. To start the Camera Configuration Tool, click Start, click Basler Vision Technologies, and then click Camera Config Tool (default installation).
The Camera Configuration Tool includes a complete on-line help file which explains how to use each tab and how the settings on each tab will effect the camera’s operation. To access on-line help, press the F1 key whenever the configuration tool is active. BASLER A202...
With the help of the Basler CPA driver, you can read and write blocks of data to and from the camera. A Programmers Guide for the Basler CPA driver can be downloaded from the Basler web site at www.basler-vc.com. (The guide is an on-line help file and is included in the Camera Configuration Tool package.)
The block check character is the exclusive-or sum (XOR sum) of the bytes in the descriptor field and the data field. Identifies the end of the frame text Size = 1 Byte (The value of the ETX byte is always 0x03) BASLER A202...
Page 66
Configuring the Camera ACK/NAK Response Positive frame acknowledge/negative frame acknowledge Size = 1 byte (The value for a positive frame acknowledgement is 0x06 and for a negative frame acknowledgement is 0x15.) All values are formatted as little endian (Intel format). BASLER A202...
The camera does not perform a check to see if the data in the write command is within the al- lowed range or specified group of allowed values. BASLER A202...
Set to User Set 2, the data byte must be set to 0x02. 0x45 - is the block check character (BCC). See page 4-9 for instructions on calculating a BCC. 0x03 - is the ETX. The ETX is always 0x03. BASLER A202...
R/W-Flag Data Length Data 0xC0 1 Byte Response: None Data Format: Byte 1 An ID that specifies the data output mode (see the table below). Output Mode 0x01 Dual 8 Bit mode 0x03 Dual 10 Bit mode 4-10 BASLER A202...
R/W-Flag Data Length Data 0xA0 1 Byte Response: None Data Format: Byte 1 An ID that specifies the exposure mode (see the table below). Exposure Time Control Mode 0x00 Free-run, Programmable 0x04 ExSync, Level-controlled 0x05 ExSync, Programmable 4-11 BASLER A202...
Low byte of the Timer 2 setting Byte 2 Mid byte of the Timer 2 setting Byte 3 High byte of the Timer 2 setting Data Range: Timer 2 settings can range from 1 µs to 35 µs (0x000001 to 0xFFFFFF). 4-12 BASLER A202...
No digital shift 0x01 Digital shift once (multiples output 2X) 0x02 Digital shift twice (multiples output 4X) 0x03 Digital Shift by three (multiples output 8X) See Section 3.6.3 for precautions that you must consider when using digital shift. 4-13 BASLER A202...
High byte of the width in columns setting Data Range: The width in columns setting can range from 0x0001 to 0x03EC. See Section 3.7.1 for a list of guidelines which must be followed when entering the settings for the area of interest. 4-14 BASLER A202...
High byte of the height in lines setting Data Range: The height in lines setting can range from 0x0001 to 0x03EC See Section 3.7.1 or a list of guidelines which must be followed when entering the settings for the area of interest. 4-15 BASLER A202...
Response: None Data Format: Byte 1 Low byte of left side offset setting Byte 2 High byte of left side offset setting Data Range: Left side offset settings can range from 0 to 255 (0x0000 to 0x00FF). 4-16 BASLER A202...
Response: None Data Format: Byte 1 Low byte of right side offset setting Byte 2 High byte of right side offset setting Data Range: Right side offset settings can range from 0 to 255 (0x0000 to 0x00FF). 4-17 BASLER A202...
1 Byte Response: None Data Format: Byte 1 An ID that specifies the binning status (see the table below). Binning 0x00 Vertical binning not enabled 0x01 Vertical binning enabled For full binning, enable both horizontal and vertical binning. 4-18 BASLER A202...
An ID that specifies the test image (see the table below). Test Image 0x00 No test image 0x01 Test Image 1 (diagonal gradient pattern) 0x02 Test Image 2 (moving gradient pattern) 0x03 Test Image 3 (vert./horiz. gradient pattern) 4-19 BASLER A202...
Data Length Data 0x03 Response: Cmd-ID R/W-Flag Data Length Data 0x03 16 Bytes Data Format: Zero terminated string if less than 16 bytes are needed for the product ID information. Unterminated string if all 16 bytes are needed. 4-20 BASLER A202...
Data Length Data 0x06 Response: Cmd-ID R/W-Flag Data Length Data 0x06 3 Bytes Data Format: Byte 1 Low byte of firmware version BCD coded Byte 2 High byte of firmware version BCD coded Byte 3 Register Layout ID 4-21 BASLER A202...
Data Length Data 0x41 Response: Cmd-ID R/W-Flag Data Length Data 0x41 3 Bytes Data Format: Byte 1 Low byte of firmware version BCD coded Byte 2 High byte of firmware version BCD coded Byte 3 Register Layout ID 4-22 BASLER A202...
Byte 7 Low byte before the decimal point for the right side reference gain value Byte 8 High byte before the decimal point for the right side reference gain value Bytes 9 to 16 Reserved. Should be ignored. 4-23 BASLER A202...
User Set 7 0x08 User Set 8 0x09 User Set 9 0x0A User Set 10 0x0B User Set 11 0x0C User Set 12 0x0D User Set 13 0x0E User Set 14 0x0F User Set 15 0xFF No active set 4-24 BASLER A202...
User Set 6 0x07 User Set 7 0x08 User Set 8 0x09 User Set 9 0x0A User Set 10 0x0B User Set 11 0x0C User Set 12 0x0D User Set 13 0x0E User Set 14 0x0F User Set 15 4-25 BASLER A202...
User Set 6 0x07 User Set 7 0x08 User Set 8 0x09 User Set 9 0x0A User Set 10 0x0B User Set 11 0x0C User Set 12 0x0D User Set 13 0x0E User Set 14 0x0F User Set 15 4-26 BASLER A202...
User set is erroneous Bit 5 Factory set is erroneous Bit 6 EEPROM checksum error (this is a checksum used to determine if the contents of the EEPROM are valid) Bit 7 No EEPROM command list available 4-27 BASLER A202...
Note: The RS-644 serial port on some Camera Link frame grabbers will only support a bitrate of 9600. If you are using a Camera Link frame grabber, check the grabber’s documentation before attempting to change the bitrate. 4-28 BASLER A202...
Type: This is a write only command. Write Command: Cmd-ID R/W-Flag Data Length Data 0x42 0x07, 0xCF Response: None Data Format: Byte 1 Low byte 0x07 is always used Byte 2 High byte 0xCF is always used 4-29 BASLER A202...
Page 90
DRAFT Configuring the Camera 4-30 BASLER A202...
M4 mounting holes on the front and two M4 mounting holes on each side as indicated in Figure 5-1. Caution! To avoid collecting dust on the sensor, mount a lens on the camera imme- diately after unpacking it. BASLER A202...
Since the translatory and rotational positioning tolerance depend on each other, the worse case of maximum rotational and horizontal/vertical mis-positioning can not occur at the same time. ± 0.1° Drawings are not to scale Figure 5-4: Rotational Positioning Accuracy BASLER A202...
Please contact Basler tech support. 8 blinks The FPGA could not be configured. Please contact Basler Technical Support Table 6-1: Camera Status Indications If the status LED on the back of the camera is not lit, it means that power to the camera is not present or is less than 10.8 Volts.
ExSync signal. Check the ExSync blinking signal or set the camera for Free- 3 pulses. run mode (See Section 3.2.2). Call Basler Technical Support No. It is for assistance. (The contact blinking numbers appear on the title 5, 6, 7 or 8 pulses.
Page 97
ExSync period. interfacing setting. troubleshooting Can the test image be seen? Is the exposure OK? chart. Go to the Switch on test image one. interfacing Replace the camera. troubleshooting Can the test image be seen? chart. Replace the camera. BASLER A202...
Exit this chart. Exit this chart. Contact Basler Technical Support. The contact numbers appear on the title page of this manual. Before you call for support, be sure to make note of the camera settings and the frame grabber settings you are using.
Exit this chart. Configuration files for many types of frame grabbers are available at the Basler web site: www.basler-vc.com. These files have all been tested with the A202 and we suggest that you use them if one is available for your type of frame grabber.
To download the latest version of the chart. tool go to the Basler web site at www.baslerweb-vc.com. Once you have downloaded the latest version of the tool, uninstall the old version of the tool from your computer and install the new version.
Changed the decimal setting for 0 dB from 237 to 288. (Sections 3.5.1, 3.5.2.1, 4.2.4.10, 4.2.4.12) Changed the corresponding equations. (Sections 3.5.1 and 3.5.2) Simplified the No Image troubleshooting chart (Section 6.2.1). Added more frame grabber configuration file formats to Sect. 6.2.3. BASLER A202...