Home
USER`S MANUAL - Graftek Imaging Inc
Contents
1. Reset Readout Start of Exposure Effective Exposure Time End of Exposure Y Readout Column 1 Column 2352 Runtime Line 1 Ol lt gt 100 m 4 56 us gt lt L lt 24 ps BW 3 101 o 01 Line 1726 Reset Runtime Total Runtime lt gt Figure 3 8 Rolling Shutter BASLER A400k Basic Operation and Features 3 4 1 Guidelines for Successful Use of the Rolling Shutter To successfully use the rolling shutter functionality of the camera make sure that you observe the guidelines listed below Exposure time can only be set inc
2. Readout Start of Exposure Effective Exposure Time End of Exposure Y Y Readout Column 1 Column 2352 Runtime Line 1 lt 4 56 us cope RS pos Flash Window ca Line 1726 Reset Runtime Total Runtime Figure 3 9 Flash Window BASLER A400k 3 5 Gain and Offset 3 5 1 Gain Gain on A400k cameras is adjustable within a range from 0 to 100 where 0 96 correspond to the minimum gain and 100 96 correspond to the maximum gain The minimum gain is always 0 dB At an offset of 096 the maximum gain is approximately 13 dB The maximum achievable gain decreases as the offset is increased See Table 3 1 The default gain is 096 Offset Gain in dB 100 Gain 096 13dB 10096 8 Table 3 1 Max Gain As shown in the graphs in Figure 3 10 increasing the gain setting increases the slope of the camera s response curve and results in a higher camera output for a given amount of light Decreasing the gain setting decreases
3. r MDR Cable DS90CR287 Transmitter Y DS90CR288A Receiver Y Port 00 f Rxo oo Port D1 Port D1 Port D2 Yor 15 15 Pair 1 12 12 Yor Rat pon Port D3 TG ma Port D3 Port D4 T Yo 2 2 Pair 1 25 25 Yo ma Port D4 Port D5 6 me _ Port D5 Port EO mx Port 0 Port E1 we _ Porte Port E2 Port E2 T9 PotE3 vae 16 16 Pair 2 1 Port E3 Potea 1 13 Rx13 Porte4 Portes nia y1 3 3 Pair 2 24 24 y1 E Pores Port FO nas mas Port Fo Port F1 Tx18 Rx18 Port F1 PotF2 149 Fnxto _ Port F2 moo _ Port es Pot FA o 2 17 17 Pair 3 10 10 Y2 mo _ Port F4 Port F5 Port F5 22 Rx22 wat 222 Y2 4 4 Pair 3 23 23 Y2 Raza EVAL 2s mos _ EVAL DVAL 1x26 Rx26 4 PotD6 1 27 Port pe Port D7 Port D7 T5 Rx5 Port E6 Y3 19 19 Pair 5 8 8 nio _ Port 6 Port ET Port E7 11 Rx11 PortF6 ric Y3 B 21 21 Y3 mte _ Port Fe Port F7 Tx17 Rx17 _ Port F7 Not Used 23 mo3 _ Not
4. u may 9 Wa b en JON m JON z 20 2euu02 J8qqe1Jc 1 19 92 10j2euuo aen uida N pug puo pepeeu 92 92 le us JUU 92 92 punos6 19 Pens eU peer eq ueo 19 pue Lai vi vi 5 Emer 8 0N wW i i pielus T 870 106 WL 0 1065 o4Lies 93195 7 or 8 8 931295 9395 921295 09195 9 9 E ve 4 WEPOATOGSO 70 106 70195 1 7 9 oz OLS oues ones 0115 02 oz 9184 085 UL VZPOATOGSG TAH VPONT0SSG 100 8r 8i g 6 6 EUSE ouKgxa 109 5 5 48 22 zz 00 200 v Y 6 54 ez 700 POAISSOH 259 p p 6 led oF oF 255 700 z 2 Sz 92 709 5 Sr zi zi 709 VIPONTOSSG EO 9L 9L n 995 User Use pa 559 D 01 ve 24 659 30X APX zz ec p Jed S 5 410d 4015 uox 54015 ox 6 6 PIX POSTION Ex pesmioN 101004 a coved 90104 iz Sad 9 9 EX 99 so ved 19104
5. I I 1 1 l 1 l APA l MDA 2 22 E Is p 591 nonoy UDMOXL 9525 HPA 8 6 h ied 8i SX EE PISA ION 3 1 1 feza PSSQEN ae Hae 9d 9 9 A 93 HOd 1 Ta Vod 1 kn 29004 93 Hod 93104 8 3 vue i ES sa Hamer samoa 229 1 1 424 Taaroa 1 923 sexl 1 WAS inl 1 1 Ren WM 1 TVAT ZA ez ez ZA WAT 1 vd Mod ZA OL 0L 4 ZA pa vod 1 GA Hog 029 s 021 feao I p aver jen 1 1 Leva 1 Hyg 1 1 sil f raoa 02099 Spe ot posed roa vx 93109 EVA EY Sm S3 og she K ENN E B zva L ew zied 9 Wor E Hams 1 l 98 set 1 1 l i ERR poe Fu 0709 901009 Saved x 109 d Ah 2 sz Sz 2 OX A uod 1 0109 ed Hod I zo l 1 zx 35 10 30X a dled IE 70A en 20 wa a 1 1 L foara V88ZHOU6SQ i A Jennusuei 8249065 i 1 1 1 1 124 Az l Monnow J HTA H i K i 107 01 Jed ve ve 167 ee pers pes
6. read command timeouts oio write command block check character Calculating uersu defined drer e acest lee eee ee es block bulk data control and status registers using bulk data C cable eyed ia ues camera configuration tool auto refresh ls LLLI RE closing the opening the 1001 parameter description window refresh button selecting a port Camera implementation receiver soeur Rp transmitter eere Se Ee camera reset with binary cleaning the camera and sensor 5 5 commands BASLER A400k Index see binary commands configuration sets bulk data transfer 4 41 explained ps iisa cier or 3 42 configuration tool see camera configuration tool configuring the camera by setting 5 lt 4 4 with binary commands 4 45 with the config 0 1
7. Pin Signal mds ENS Direction Level Function 1 13 14 Gnd Input Ground Ground for the inner shield of the cable 26 2 X0 Output Camera Link Data from Camera Link Transmitter LVDS 15 X0 3 X1 Output Camera Link Data from Camera Link Transmitter LVDS 16 X1 4 X2 Output Camera Link Data from Camera Link Transmitter LVDS 17 X2 6 X3 Output Camera Link Data from Camera Link Transmitter LVDS 19 X3 5 XCIk Output Camera Link Transmit Clock from Camera Link Transmitter LVDS 18 XClk 7 SerTC Input RS 644 Serial Communication Data Receive SerTC Serial to Camera 20 SerTC 8 SerTFG Output RS 644 Serial Communication Data Transmit SerTFG Serial to Frame Grabber 21 SerTFG 9 CC1 Input RS 644 ExSync External Trigger LVDS 22 1 10 2 Input RS 644 ExClk The input is not supported LVDS 23 CC2 11 CC3 Input RS 644 ExFlash External Flash Trigger LVDS 24 12 CC4 Input RS 644 Not used LVDS 25 CC4 1 Pins 1 13 14 and 26 are all tied together to Gnd inside of the camera Table 2 1 A400k Pin Assignments for the First 26 pin MDR Connector BASLER A400k 2 3 Camera Interface Second Connector A403k and A404k only Pin Signal Natus Direction Level Function 1 13 14 Gnd Input Grou
8. lao HK H 1 lac ge Horizontal Shift Register Figure 3 17 Bayer Filter Pattern on the A400kc A single value is transmitted out of the camera for each pixel in a captured image If you want to get full RGB color information for a given pixel in the image you must perform a color interpolation using the information from the surrounding pixels Some frame grabbers are capable of performing the color interpolation and many algorithms are available for performing the interpolation in your host PC BASLER A400k 3 35 Basic Operation and Features 3 11 Test Images The test image mode is used to check the camera s basic functionality and its ability to transmit an image via the video data cable The test image can be used for service purposes and for failure diagnostics In test image mode the image is generated with a software program and the camera s digital devices and does not use the optics CMOS sensor or ADCs Four test images are available Note DSNU and PRNU shading correction produce distortion in the test image Disable DSNU and PRNU shading correction before you enable a test image 3 11 1 Test Image One Vertical Stripe Pattern Test image one is useful for determining if your frame grabber has dropped any columns from your image The stripes in the vertical stripe test pattern
9. 3 22 3 7 3 Precautions When Using Digital 5 3 23 3 7 4 Enabling Disabling Digital 5 3 23 3 8 Area of Interest AOI 3 24 3 8 1 Area of Interest Setup 3 25 3 8 2 Setting the Area of Interest lille 3 25 3 8 3 Changes to the Max Frame Rate with Area of Interest 3 26 3 8 4 Programmable AOI Sequencer 3 27 3 8 4 1 Setting Up an AOI List ee 3 28 3 8 4 2 Creating an AOI 51 3 29 3 8 4 3 Uploading an AOI List to the Camera 3 31 3 8 4 4 Enabling Disabling the AOI 3 32 3 9 Stamp RM arse ete ed Ag de beth OR 3 33 3 10 Color Creation in the 400 3 35 ii BASLER A400k Table of Contents 3 11 Test Images oett T p PERRO 3 36 3 11 1 Test Image One Vertical Stripe Pattern 3 36 3 11 2 Test Image Two Still Diagonal Stripe 3 37 3 11 3 Test Image Three Moving Diagonal Stripe 3 38 3 11 4 Test Image Four Horizontal Stripe 3 39 3 11 5 Guidelines When Using Test Images
10. 1 6 1 4 1 Temperature and 1 6 1 4 2 Ventilation 00000 1 6 1 5 Precautions enl eb ae Hee ees ele Phe bees 1 7 2 Camera Interface 24 Connections ded et widen aed 2 1 2 1 1 General Description 2 00 gap aeti a a E a a a aA eee 2 1 2 1 2 Pin Assignments for the 26 Pin 2 3 2 1 3 Pin Assignments for the 6 pin Micro Miniature Receptacle 2 5 2 1 4 Pin Assignments for the 4 pin Micro Miniature Receptacle 2 5 2 2 Cable Information es 2 7 2 2 1 Camera Link Cable ee 2 7 2 2 2PowerCable 2 Rak Ad hg FRUI AUR 2 7 2 3 Camera Link Implementation in the 400 2 8 2 4 Input Slghials gt me ee Ede e eS Ee ce tee desc 2 12 2 4 1 ExSync Controls Frame Readout and Exposure Time 2 12 2 4 2 ExFlash from the Frame Grabber 2 12 2 5 Output SIGNalS a ER n uPe dau Whale ee ee ES EUR 2 13 2 5 1 Pixel 25 od 22 eee a Ee 2 13 2 5 2 Line Valid Bit 2 Le a E inei iei eis 2 13 2 5 3 Frame Valid ee 2 13 2 5 4 Video Data Bit 510 2 14 2 5 5 Video Data Output for
11. Digitized Pixel Data LED Microcontroller Power Supply os 5 lt Power 0 Flash Memory 3 SEEN RE eo as 4 5 Config gt TTL Driver _FlashOut oO H a 2 AO Serial LVDS Serial So DAC lt _ Sequencer lt Driver 4 ExFlash 3 3 h o ExFlash Receiver 4 ExSync 25 Internal Sync gt 9 Data Image Sensor Sensor Timing Sensor Flash Window Flash T Image Data Camera PB MV40 Giri Link Data Biases 99 33 gt 5 25 Test Shading Data 1 5 Image Dat Im Img gt Formatter SE amp Shifter 1 A403kand A404k Only FPGA 1 1 1 0 00 i Figure 3 2 A400k Block Diagram BASLER A400k Basic Operation and Features 3 2 Video Data Output Modes The A402k can output video data using two different modes 2 tap 10 bit mode or 2 tap 8 bit mode In 2 tap 10 bit mode the camera outputs data for two pixels on each cycle of the pixel clock and the pixel data is at 10 bit depth In 2 tap 8 bit mode the camera outputs data for two pixels on each cycle of the pixel clock and the pixel data is at 8 bit depth These modes are described in detail in Section 2 5 5 The 405 can output video data using two different modes 4 tap 10 bit mode or 4 tap 8 bit mode In 4 tap 10 bit mode the camera outputs data for four pixels on each cycle of the pixel clock and the pixel
12. 4 2 conformity ew ae eed ea eee ees 1 3 D data output mode see video data output mode s digital responsivity SPEC Nien ce he wee el ne on a oe de 1 2 digital shift explained see n 3 20 setting with binary commands 4 25 dimensions Camera eek pA See pee ee A 5 1 F mount adapter 5 3 DSN UW P assu ole foes pert eee 1 2 dynamic 1 2 edge controlled exposure mode explained eS 3 4 environmental requirements Camera Im kv erbe 1 6 ExFlash input signal explained 2 12 output via flash trigger connector 2 32 exposure time relation to exp time control modes 3 4 3 7 setting with binary commands 4 16 exposure time control mode s explained ons csse ens 3 4 3 7 setting with binary commands 4 15 ExSync signal explained 2 12 3 4 g ideliries sae E mE 3 5 F factory set activating with binary commands 4 37 explained 3 42 feature control and status registers 4 13 fill factor 1 2 firmware versions reading with binary commands 4 6 4 7 flash trigger signal connector ey Hees Be Lhe eh ae Behe 2 5 explained 5s pee a mne 2 32 high side switch 2 6 low side switch open collector 2 6 V Index
13. 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 with no digital Shift Twice When the camera is set to shift twice the output from the camera will include bit 7 through bit 0 from the ADC The result of shifting twice is that the output of the camera is effectively multiplied by four For example assume that the camera is set for no shift that it is viewing a uniform white target and that under these conditions the reading for the brightest pixel is 20 If we changed the digital shift setting to shift twice the reading would increase to 80 ADC bit bit bit bit bit bit bit bit bit bit 9 8 7 6 5 4 3 2 1 0 Shifted Twice Aone D ital shift are all below 64 If bit 9 or bit8 is setto 1 all of the other bits will automatically be setto 1 This means that you should only use the shift twice setting when your pixel readings with no dig BASLER A400k Basic Operation and Features 3 7 3 Precautions When Using Digital Shift There are several checks and precautions that you must follow before using the digital shift feature The checks and precautions differ depending on whether you will be using the camera in 10 bit output mode or in 8 bit output mode If you will be using the camera in 10 bit output mode make this check 1 Use binary commands or the Camera Configuration Tool
14. 98 uod EX 8 8 46 6L 6L L 98 uod Iv uod xL Iv Vod av Hod 224 9 amp 1 7T WAT WMA oor WN VAT EX 52 ez ged v E ux rol 7 VAT 5 uod 221 so uod YO Hod ZX rm OL 3 Jed 1 FOX Vx YO Hod 0104 024 20104 Ler zo uod Towed ax Towed 00 Hod nii 00004 Saved 1X ve vi Zed n ax n SHUod ae rakod gated x n n 9L ob x da 1 eared zavod Sk 29104 1a Vod LL Hod 09004 XL 09004 SV uod PV uod Ox Sz 52 dled z 0X Wr uod ev vod D tv uod Hod 0X zi zi 1 SL st 0X Kin ev uod Iv uod Ov uod Lou Ov uod X 488240065 X 82500684 31985 2 11 A404k Camera Frame Grabber Interface Figure 2 7 uU BASLER A400k Camera Interface 2 4 Input Signals The A400k receives the RS 644 input signals ExSync ExFlash and SerTC Serial to Camera of the serial interface Section 2 4 1 describes the function of the ExSync signal Section 2 4 2 describes the function of the ExFlash signal SerTC of the serial communication is described in Section 2 6 2 4 1 ExSync Controls Frame Readout and Exposure Time The ExSync input signal is used to control exposure and readout of the A400k ExSync is an LVDS signal as specified for RS 644 The ExSync input corresponds to the camera control signal CC1 as defined in the Camera Link standard CC2 and CCA are not used in this c
15. 3 40 3 11 6 Enabling Disabling Test Images 3 40 3 12 Camera Temperature 3 41 3 12 1 Reading the Camera Temperature 3 41 3 13 Configuration Sets aD ee hne 3 42 3 13 1 Saving Configuration 3 42 3 13 2 Activating a Saved User Set 3 43 3 13 3 Activating the Factory Set File 3 43 3 13 4 Which Configuration Set File Will Load at Startup or at Reset 3 44 3 13 5 Saving a User Set to PC Loading a User Set from 3 44 3 14 Parameter Set Cache 3 45 3 14 1 Enabling Disabling Parameter Set 3 45 3 15 Parameter Validation E T ee E a 3 46 3 16 Checking the Camera 3 46 Status LED ez edt p Ue esie ee e REA a ee 3 46 3 18 Resetting the Camera 3 47 4 Configuring the Camera 4 1 Configuring the Camera with the Camera Configuration Tool Plus 4 2 4 1 1 Opening the Configuration 4 2 4 1 2 Closing the Configuration Tool 4 2 4 1 3 Configuration Tool Basics so oe cisse rei entina eee 4
16. Field Name Mode Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field sets the stamp mode 0x00 Stamp off 0x01 Stamp enabled See Section 3 9 for more information about the stamp feature 4 30 BASLER A400k Configuring the Camera Flash Trigger Output Mode CSR Register Base Address 0x1D00 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Operating Mode Offset 0x0001 Size 1 Byte Read Write Description Writing an integer value to this field sets the mode of the flash trigger output signal 0x00 The flash trigger signal is always low 0x01 The flash trigger signal is high while the sensor s flash window is open 0x02 The flash trigger signal is high while the ExFlash signal from the frame grabber is high 0x03 The flash trigger signal is always high 0x05 The flash trigger signal is low while sensor s the flash window is open 0x06 The flash trigger signal is low while the ExFlash signal from the frame grabber is high See Section 2 5 8 for more information about the flash trigger signal Flash Trigger Switching Mode CSR Register Base Addre
17. 4 15 Exposure Time Control CSR 4 15 Exposure Time CSR 4 16 Frame Period CSR ayeri eee 4 18 Gall GSR issu dece T 4 20 Offset COR end ere DEEST Nah eae pees 4 22 Column FPN Shading Correction CSR 4 23 DSNU or PRNU Shading Value Generate CSR 4 24 DSNU and or PRNU Shading Correction Enable CSR 4 24 Digital ShiftCSR Meet OI eERP RR 4 25 Area of Interest Starting Column CSR 4 25 Area of Interest Width in Columns 4 27 Area of Interest Starting Line 5 4 28 Area of Interest Height in Lines 5 4 29 AOI List Trigger Mode CSR 4 30 otamp CSR sau fue ae opa eti Zh tua x Ro p 4 30 Flash Trigger Output Mode CSR 4 31 Flash Trigger Switching Mode 5 4 31 Test Image Mode CSR 4 32 Serial Communication CSR 4 33 Camera Reset CSR ETE 4 34 Parameter Set Cache CSR 4 34 4 2 3 Bulk Data and the Bulk Data Control and Status Registers 4 35 4 2 3 1 Using a Bulk Data CSR to Work with Bulk Data 4 36 4 2 3 2 Bulk Data Control and Status Register Deta
18. Yes gt 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 Start the CCT click the No port selected button and select an RS 644 port from the list Does a list of camera parameters appear The port is present and can be accessed but the camera is not responding Make sure that The camera has power and that the power source meets the requirements in Section 2 8 Yes You are using the correct data cable between you camera Y and the frame grabber see Section 2 2 The wires in the data cable are continuous The RS 644 port is operating i No correctly Exit this chart The cable connections are firmly seated After you made these checks is the problem still present Yes Contact Basler Technical Support The contact numbers appear after the title page of this manual BASLER A400k 6 7 Troubleshooting 6 8 BASLER A400k Revision History Revision History Document Number Date Changes 0 00062401 6 February 2004 Initial release version covering prototype cameras only DA0006240b 7 June 2004 PRELIMINARY version covering series cameras DA00062402 16 July 2004 Initial release version covering series production cameras DA00062403 30 August 2004 Corrected the video data output type field in Section 1 2 Corrected the maximum power consumption in Sect
19. Description If you are performing a bulk data read or write operation this field will indicate when no more data exits 0x00 More data exists 0x01 No more data exists 0x04 No more data exists and this is an activated file Field Name File Name Offset 0x003 Size 20 Bytes Type Read Write Description Character string indicating the name of a bulk data file The field contains 20 characters left aligned zero padded Field Name Size Offset 0x0017 Size 4 Bytes Type Read only Description If the file name refers to an already existing bulk data file this field will contain the file size in bytes Otherwise the field contains zeros Field Name Data Offset 0x001B Size 1 Byte Read Write Description Byte sized register that is used to sequentially write to or read from a bulk data file You can save to one PRNU shading value file in the non volatile memory There is a restriction on naming the file that holds the saved set of PRNU shading values The file must be named gainshading BASLER A400k 4 43 Configuring the Camera 4 44 AOI List CSR See Section 4 2 3 1 for information about using bulk data control registers Register Base Address 0 2000 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not availa
20. Port C6 Pair 5 Port C7 Not Used Not Used Pair 4 Strobe Pair 4 RxCLKOut Pair 10 ExFlash ExFlash Pair 10 DS90LV047A Tmtr CC4 Pair 11 Reserved Reserved Pair 11 CC2 Pair 9 Reserved Reserved CC2 Pair 9 CC1 Pair 8 ExSync ExSync CC1 Pair 8 DS90LV048A Rcvr DS90LV047A SerTC Pair 6 SerTC l SerTC SerTC SerTC Pair 6 SerTC DS90LV047A Tmtr 05901048 Rcvr Pair 7 SerTFG SerTFG Sent Pair 7 SerTFG DS90LV047A Tmtr Inner Shield R1 Inner Shield MM Note R1 should be i zero ohm C1 is optional Ferrite Inner Shield n R1 and C1 can be used c1 to prevent ground loops Inner Shield if needed A 26 pin Male Connector 26 Frame Grabber Connector 1 Not Connected 6 Not Connected Micro miniature Receptacle aL Filter A402k Gnd Figure 2 5 A402k Camera Frame Grabber Interface BASLER A400k 2 9 Camera Interface 2 10
21. 644 serial communication or if you have been directed here from another chart Serial Communication Chart without a k BIC Always switch off power to the system before making or breaking any connection The RS 644 port used by the A400k is located on the frame grabber Check the documentation for your frame grabber Make sure that you have installed Make corrections all software related to the port and that the port has the following settings No and then restart 8 data bits no parity 1 stop bit and bitrate 9600 bps your computer Is the port software installed and are the port settings correct Yes Start the Camera Configuration Tool Plus CCT and click on the port selector drop down menu that appears below the menu bar A list will show any RS 644 The RS 644 port s available on the frame grabber RS 644 ports are identified in the list by a port is port number and a dll library name Click on an RS 644 port in the list Yes working 2 correctly Exit Does a list of camera settings appear this chart Does a Can t connect to the port because the Yes The portis present but the CCT can not access the port port is in use message appear Make sure that no other program has access to the port You may need to update the To download the latest version of the tool go to the Basler web site at www basler vc com Does a This type of camera is not supported message appear
22. This pattern continues until column 2047 where the pixels have a value of 1023 Basic Operation and Features A third stripe begins in column 2048 The pixels in column 2048 have a value of 0 the pixels in column 2049 have a value of 1 the pixels in column 2050 have a value of 2 and so on This pattern continues until column 2352 where the pixels have a value of 304 Figure 3 19 Test Image One 10 bit 3 11 2 Test Image Two Still Diagonal Stripe Pattern Test image two is useful for determining if your frame grabber has dropped any columns or lines from your image The stripes in the still diagonal stripe test pattern are formed with repeated gray scale gradients ranging from 0 to 255 in 8 bit output mode or 0 to 1023 in 10 bit output mode As an exception the gray values of the first stripe range from 1 to 255 or from 1 to 1023 respectively The top line starts with a gray value of 1 on pixel 1 The second line starts with a gray value of 2 on pixel 1 The third line starts with a gray value of 3 on pixel 1 and so on Line 255 8 bit mode or 1023 10 Figure 3 20 Test Image Two 4 bit mode starts with a gray value of 255 or 1023 on pixel 1 Line 256 8 bit mode or 1024 10 bit mode restarts with a gray value of 0 on pixel 1 and so on Depending on the output mode selected on the camera either the 8 bit test image or the 10 bit test image will be active The mathematical expression for the test image
23. frame valid is assigned to the frame valid port on Camera Link transmitter X as defined in the Camera Link standard On the A403k frame valid is assigned to the frame valid ports on Camera link transmitters X and Y as defined in the standard On the A404k frame valid is assigned to the frame valid ports on transmitters X Y and Z as defined in the standard See Tables 2 5 through 2 10 BASLER A400k 2 13 Camera Interface 2 5 4 Video Data Bit Assignments Table 2 5 and Figure 2 5 show the assignment of pixel data bits to the input pins on the X Camera Link transmitter in an A402k camera They also show the assignments for the corresponding output pins on the X Camera Link receiver in a frame grabber The assignments for the frame valid bit and the line valid bit are also listed Tables 2 6 and 2 7 and Figure 2 6 show the assignment of pixel data bits to the input pins on the X and Y Camera Link transmitters in an A403k camera They also show the assignments for the corresponding output pins on the X and Y Camera Link receivers in a frame grabber The assignments for the frame valid bit and the line valid bit are also listed Tables 2 8 2 9 and 2 10 and Figure 2 7 show the assignment of pixel data bits to the input pins on the X Y and Z Camera Link transmitters in an A404k camera They also show the assignments for the corresponding output pins on the X Y and Z Camera Link receivers in a frame grabber The assignments for the frame valid
24. 82 ex Pasmo pesmon d PASM ION PesnioN 2 S St LL zi 2 pesn 29104 Min 1 1 ben ZH Hd 1 9H 82 z aed Sz 92 62 9H uod l 75 Wd sxa l SxL 19 sous J 1 I 1 92 ou waa Sza SzxL 1 WN 1 1 TWAS I ro WAI ZZ m 76 1ed oL Ez WAT sesso 1008 2 1 bed FOZ vex PSSA ION v v 6 cz ez 2 Panon Oe 1 1 oat f penon POTN PRI 1 1 Lex feru PE 1 1 pesn ION Yo 2 1 1 pesn ION SH Uod TZ 8L 8i gued 6 AZ SH uod 89 p S vH VO 9009 a 72 8 z 7 fe eH Jod 1 ZH Vod ZH Od 1 saj i e1 IH Hod 24 ot OH Wog 5519 9i I 9xL 5 Jod pa YO Wod 02 E OZ Vod roroa 99i 6r 8r Tied 8 8 ou Z9 Vod ou 07 9 9 m z 07 on 25 uod be ah i iex 09109 oyj 1 1 Lou 05 vod 1 Z 3 Y88Z4906S0 20100002 __ 2 jopuisuei 192900684 1 19 92 1 1 10728uu02 1 1 Jeqqe1s 14 ejeuio 9 92 Qe
25. AOI List in Hexadecimal Editor Once you have a hexadecimal editor available perform the following steps 1 Open the hexadecimal editor 2 Enter the settings of the AOI list one after the other in hexadecimal numbers For example to enter the list shown in Figure 3 15 you would enter the hexadecimal numbers as shown in Figure 3 16 BASLER A400k 3 29 Basic Operation and Features 1 1 1024 100 0 600 3000 1 1 2 161 512 600 300 400 2000 3 161 512 600 300 400 2000 1 4 801 1552 321 1406 1500 8000 1 1 5 1 2352 1 1726 1800 10000 1 0 Position AOI Width AO Height Delay Flash Time Trigger Runs Starting Column Starting Line Time Figure 3 15 AOI List EDF HEXEditor 1 1 C MOI Table Doku hex oog File Edit Options Bookmarks Window Help X osla 21214 aala gt Ell 0x00 0001 0400 0064 01 4 0000 0258 0000 OBBS 0001 0001 0041 0200 0258 012c 0000 0041 0200 0258 O12c 0000 0321 0610 0141 057E 0000 2 5 2001 0930 poo1 pess 2000 0190 0000 0190 0000 5 0000 0708 0000 07D0 07D0 1F40 2710 0001 0000 0 0003 0000 0001 0001 f 0001 0001 1 o Filesize 100 Overw Position Delay Width Height Time Starting Starting Time Column Line Figure 3 16 AOI List in Hexadecimal Editor Flash Trig
26. Bit Assignments for Transmitter X in an A402k Base Configuration BASLER A400k Camera Interface Camera Interface 405 Plug No 1 Transmitter X Signal Port Camera E 3 4 Tap 8 Bit 4 Tap 10 Bit Port A0 TxINO RxOUTO DO Bit 0 DO Bit 0 Port A1 TxIN1 RxOUT1 DO Bit 1 DO Bit 1 Port A2 TxIN2 RxOUT2 DO Bit 2 DO Bit 2 Port A3 TxIN3 RxOUT3 DO Bit 3 DO Bit 3 Port A4 TxIN4 RxOUT4 DO Bit 4 DO Bit 4 Port A5 TxIN6 RxOUT6 DO Bit 5 DO Bit 5 Port A6 TxIN27 RxOUT27 DO Bit 6 DO Bit 6 Port A7 TxIN5 RxOUT5 DO Bit 7 MSB DO Bit 7 Port BO TxIN7 RxOUT7 D1 Bit O 00 Bit 8 Port B1 TxIN8 RxOUT8 D1 Bit 1 20 Bit 9 MSB Port B2 TxIN9 RxOUT9 D1 Bit2 Not Used Port B3 TxIN12 RxOUT12 01 Bit 3 Not Used Port B4 TxIN13 RxOUT13 D1 Bit 4 D1 Bit 8 Port B5 TxIN14 RxOUT14 D1 Bit 5 D1 Bit 9 MSB Port B6 TxIN10 RxOUT10 01 Bit 6 Not Used Port B7 TxIN11 RxOUT11 D1 Bit 7 MSB Not Used Port CO TxIN15 RxOUT15 D2 Bit 0 01 Bit O Port C1 TxIN18 RxOUT18 D2 Bit 1 01 Bit 1 Port C2 TxIN19 RxOUT19 D2 Bit 2 D1 Bit 2 Port C3 TxIN20 RxOUT20 D2 Bit 3 D1 Bit 3 Port C4 TxIN21 RxOUT21 D2 Bit 4 D1 Bit 4 Port C5 TxIN22 RxOUT22 D2 Bit 5 D1 Bit 5 Port C6 TxIN16 RxOUT16 D2 Bit 6 D1 Bit 6 Port C7 TxIN17 RxOUT17 D2 Bit 7 MSB D1 Bit 7 LVAL TxIN24 RxOUT24 Line Valid Line Valid FVAL TxIN25 RxOUT25 Frame Valid Frame Valid DVAL TxIN26 RxOUT26 Not Used Not Used Spare TxIN23 RxOUT23 Not U
27. DS9OLVO47A Tmtr CC4 12 12 Pair 11 15 15 CC4 Reserved Reserved CC4 25 25 Pair 11 2 2 CC4 CC2 10 10 Pair 9 d 17 2 Reserved Reserved CC2 23 23 Pair 9 4 4 CC2 CC1 22 22 Pair 8 5 5 CC1 ExSync ExSync CC1 9 9 Pair 8 18 18 CC1 DS90LV048A Revr DS90LV047A Tmtr SerTC 7 Pair 6 20 20 SerTC SerTC SerTC SerTC 20 20 Pair 6 7 i SerTC DS90LV047A Tmtr DS90LVO48A Revr 21 21 Pair 7 6 6 SerTFG SerTFG SerTFG SerTFG 8 8 Pair 7 19 19 SerTFG SerTFG pssoLvo47A E DS90LV048A Revr 1 1 Inner Shield 1 1 5 R1 13 13 Inner Shield 13 13 Note R1 should zero ohm C1 is optional Ferrite 14 14 inet Shield 14 4 4 R1 and C1 can be used Bead ci to prevent ground loops 26 26 Inner Shield 26 26 if needed Gnd Gnd 142V1 26 pin Male aa MDR Connector i 26 pin Female Frame Grabber MDR Connector bee ee ee ee ee Not Connected 3 6 Not Connected Micro miniature Receptacle 5 EMI Filter A403k Gnd Figure 2 6 A403k Camera Frame Grabber Interface BASLER A400k Camera Interface
28. If the images are too dark try increasing your light intensity Try decreasing the intensity if they are too bright Check your gain setting If the images are too dark try increasing the gain Try decreasing the gain if they are too bright Check the offset settings Check the digital shift setting Has the problem been corrected Yes No Y Exit this chart One of the camera s settings was No significantly misadjusted Review the camera manual to make sure that you are setting the camera correctly Other image problems Images look noisy Do the following Make sure that you are using a DC light source Using an AC light Source can make images appear noisy Make sure that the camera has proper ventilation If the camera becomes extremely hot it may produce noisy images Check the exposure time If you use an extremely long exposure time the images can become noisy Check your gain setting Using a very low or a very high gain setting can cause noisy images Examine the objects that you are imaging Objects with characteristics such as changing surface texture or reflectance will produce images that appear noisy Check the long exposure compensation setting Check the digital shift setting Has the problem been corrected Yes No Exit this chart Contact Basler Technical Support The contact numbers appear after the title page of this manual Before you call for support be s
29. See formulas 1 and 2 in Section 3 8 3 At the full AOI width 2352 columns and the minimum height 2 lines the possible range of frame period settings is from 71 04 us for an A402k 35 76 us for an A403k 35 76 us for an A404k set for 4 tap output or 18 24 us for an A404k set for 8 tap output to 19 12 s At the full AOI width 2352 columns and the maximum AOI height 1726 lines the possible range of frame period settings is from 40 90 ms for an A402k 20 59 ms for an A403k 20 59 ms for an A404k set for 4 tap output or 10 40 ms for an A404k set for 8 tap output to 19 12 s in increments of 0 01 The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber See Section 3 3 for more information about the frame period Field Name Absolute Min Offset 0x0005 Size 4 Bytes Read only Description Minimum allowed floating point value for the absolute frame period setting The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Absolute Max Offset 0x0009 Size 4 Bytes Read only Description Maximum allowed floating point value for the absolute frame period setting The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Raw Frame Period Offset 0x000D Size 4 Bytes Read Write Description Writing an integer value to this field sets the frame period
30. Z FIG RUD sud ubt Palat dor bx PPS Aa ped Ie e e d 3 6 3 3 2 1 Basics of Free run Controlled Operation 3 6 3 3 2 2 Guidelines When Using Free run 3 7 3 3 2 3 Selecting a Free run Exposure Mode Setting the Frame Period and Setting the Exposure 3 7 3 4 Rolling Shutter t deser Ded 3 8 3 4 1 Guidelines for Successful Use of the Rolling 3 9 3 4 2 Flash Exposure for Fast Moving Objects 3 9 3 5 Gaini and Offset sed da e RARE E RUPEE Rao edis t 3 11 sut x ARENA ER ERA UE ERA RAE NEPOTES DE 3 11 3 5 1 1 Setting the 3 11 9 5 2 OTSOt rend tato s ped dag ee RO De e se e on wean eae a T 3 12 3 5 2 1 Setting the 3 12 3 6 Shading Correction WEAR SEEMS ERRANT TS 3 13 3 6 1 Column FPN Shading Correction 3 13 3 6 2 DSNU Shading 3 15 3 6 3 PRNU Shading Correction Monochrome Versions 3 17 3 6 4 Guidelines When Using Shading 3 19 3 7 Digital Shift ue RU e Ha ee S a ee and Raga addet 3 20 3 7 1 Digital Shift in 10 Bit Output 3 20 3 7 2 Digital Shift in 8 Bit Output
31. a higher fill factor and thus a higher sensitivity The rolling shutter resets exposes and reads out the pixel lines with a temporal offset of 4 56 us from one line to the next When exposure is triggered the rolling shutter first resets the top line of pixels then the second line then the third line and so on The reset progresses down the image from one line to the next until the bottom line of pixels is reached see Figure 3 8 The time interval between a pixel line being reset and the pixel line being read out is the exposure time Exposure time is the same for all lines and determined by the exposure time setting Due to the pixel lines being reset and read out with an offset of 4 56 us the start of exposure has an offset of 4 56 us from one line to next The sequence of pixel readout is timed identically to the reset starting from the top line and moving down the image until readout of the bottom line is complete Q Q
32. feature The value for the width in columns can normally range from 16 0x0010 to 2352 0x0930 The width can only be selected in increments of 16 that is the width can be 16 32 48 and so on The actual available range may be limited by the way any related pa rameters are set If the value is set to 16 the length of the AOI will be 16 columns If the value is set to 32 the width of the AOI will be 32 columns Etc The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the length value Byte 2 High byte of the length value See Section 3 8 for more information about the AOI feature Field Name Min Offset 0x0003 Size 2 Bytes Read only Description Minimum allowed integer value for the width setting This field is updated to reflect limita tions caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the min value Byte 2 High byte of the min value Field Name Max Offset 0x0005 Size 2 Bytes Read only Description Maximum allowed integer value for the width setting This field is updated to reflect limita tions caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value Field Name Increment Offset 0x0007 Size 2 Bytes Read only Description An integer value indicating the increment fo
33. interest within the AOI sequence You can look up the position number in the AOI list so you know which settings were used to capture the image S2 represents the run counter If the Programmable Area of Interest Sequencer feature is disabled all bits are set to 0 Stamp Pixel S3 Stamp pixel S3 represents the 8 bit frame counter The frame counter increments by one for each image captured by the camera The counter starts at 0 and wraps at 255 decimal The frame counter is reset to 0 whenever the camera is switched off or reset It is also reset to 0 when the stamp feature is disabled Stamp Pixels S4 through S11 Stamp pixels S4 and S5 S6 and S7 S8 and S9 and 10 and S11 represent the most significant byte and least significant byte respectively of the AOI starting column AOI width AOI starting line and AOI height bit values When the camera is operating in a 10 bit output mode the stamp pixels will be 10 bit values but only the 8 LSBs will carry information The two MSBs will be packed with zeros When the camera is operating in an 8 bit output mode the stamp pixels will be 8 BASLER A400k 3 33 Basic Operation and Features Enabling Disabling the Stamp You can enable disable the stamp feature by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the With the CCT s
34. setting with binary commands 4 31 DITE ma 2 6 flash 3 9 F mount 5 3 frame counter er LIS dais 3 33 frame period setting with binary commands 4 18 frame rate changes with area of interest 3 26 specified ecd 1 2 free run explained vee us heer rer 3 6 3 7 free run edge controlled exposure mode ee err RIED 3 6 free run programmable exposure mode explained uel l 3 6 functional description camera 3 1 G gain explained 2 4 3 11 setting with binary commands 4 20 H high side switch 2 6 humidity requirements camera 1 6 input signals to the 2 12 inquiry registers 4 5 interfacing the camera 2 1 K Je Ae 2 34 Save or uv Nonii 1 2 L LED error codes explained 6 1 explained 1 5 gs ERROR 3 46 lens 1 3 level controlled exposure mode explained crpi ull Il 3 4 valid bit 2 13 low side 2 6 M 26 Camera Link connector
35. 0001 1000 the binary representation of 0x18 Address Byte 2 0001 1001 New XOR sum 0001 1001 Previous XOR Sum 0000 0001 the binary representation of 0x01 Data 0001 1 0 0 0 Final sum 0001 1 0 0 0 0x18 the block check character BASLER A400k Configuring the Camera 4 4 Binary Command Sample Code Sample code that illustrates how to use binary commands with A400k cameras is available at the Basler web site Please look for the documentation downloads on the A400 page at http www basler vc com BASLER A400k 4 53 Configuring the Camera 4 54 BASLER A400k Mechanical Considerations 5 Mechanical Considerations 5 1 Camera Dimensions and Mounting Facilities The A400k camera housing is manufactured with high precision Planar parallel and angular sides guarantee precise mounting with high repeatability A400k cameras are equipped with four M4 mounting holes on the front and two M4 mounting holes on each side as indicated in Figure 5 1 A tripod mount is available as an option The Basler part number is 1000014110 Caution To avoid collecting dust on the sensor mount a lens on the camera immediately after unpacking it BASLER A400k 5 1 Mechanical Considerations 53 8 gt 102 20 3
36. 2 4 1 4 Configuration Tool 4 3 4 2 Configuring the Camera By Setting 5 4 4 4 2 1 Inquiry 5 4 5 4 2 1 1 Inquiry Register Details 4 5 Vendor Information 1 4 5 Model Information Inquiry 4 5 Product ID Inquiry BB 4 6 Serial Number Inquiry 4 6 Camera Version Inquiry 4 6 Microcontroller Firmware Version Inquiry 4 7 Processing Board s FPGA Firmware Version Inquiry 4 7 Sensor Board s FPGA Firmware Version Inquiry 4 8 Camera Temperature Inquiry 4 8 Camera Status 4 9 Processing Board s FPGA Status Inquiry 4 10 Sensor Board s FPGA Status 4 11 Binary Command Protocol Status Inquiry 4 12 BASLER A400k iii Table of Contents 4 2 2 Feature Control and Status Registers 4 13 4 2 2 1 Raw Value Fields vs Absolute Value Fields 4 13 4 2 2 2 Feature Control and Status Register Details 4 15 Video Data Output Mode CSR
37. An input voltage below 10 8 VDC will cause the camera to automatically switch off The camera has no overvoltage protection An input voltage higher than 13 2 VDC will damage the camera The camera is not protected for reverse voltage If reverse voltage is applied to the camera while it is connected to a frame grabber in a PC the camera could be seriously damaged Read the manual Read the manual carefully before using the camera Keep foreign matter outside of the camera Do not open the camera housing Touching internal components may damage them Be careful not to allow liquids dust sand flammable or metallic material inside the camera housing If operated with any foreign matter inside the camera may fail or cause a fire Electromagnetic Fields Do not operate the camera in the vicinity of strong electromagnetic fields Avoid electrostatic charging Transporting Only transport the camera in its original packaging Do not discard the packaging Cleaning Avoid cleaning the surface of the CMOS sensor if possible If you must clean it use a soft lint free cloth dampened with a small quantity of isopropyl pure alcohol Do not use methylated alcohol Because electrostatic discharge can damage the CMOS sensor you must use a cloth that will not generate static during cleaning cotton is a good choice To clean the surface of the camera housing use a soft dry cloth To remove severe stains use a soft cloth d
38. Flash Window Width where the flash window width is calculated using the formula below Flash Window Width Exposure Time Setting AOI Height Setting 4 56 us f AOI trigger mode 2 or 3 is selected see Section 3 8 4 4 the delay time setting must be equal to or higher than the AOI height setting to avoid overlapping exposures due to subse quent overlapping areas of interest Delay Time Setting gt AOI Height Setting The guidelines described in Section 3 3 must be observed to avoid overtriggering the cam era 3 8 4 2 Creating an AOI List The AOI list must be created in the hexadecimal format that is you must create a HEX file To create a HEX file you need a hexadecimal editor If you do not have a hexadecimal editor you can download a freeware editor from the web For example you can download DF Hex Editor from http Awww del net com frmDFHEXEditorE html igs DF HEXEditor 1 1 C AOI_Table_Doku hex BAX Eile Edit Options Bookmarks Window Help 8 x osla aaa ole S E 0 00 0001 0400 0064 Oir4 0000 0258 0000 OBBS 0001 0001 dib sX 0 14 0041 0200 0258 012c 0000 0190 0000 07 0 0003 0000 x 0 B 0 28 0041 0200 0258 012c 0000 0190 0000 0720 0001 0001 1 X D B 0321 0610 0141 057E 0000 OSpc 0000 1240 0001 0001 A U 0001 0930 0001 O6BE 0000 0708 0000 2710 0001 0000 0 3 ETT Bn Filesize 100 Overw A Figure 3 14
39. Frame Period Gain and Offset parameters The common characteristic among these parameters is that they are expressed as rational numbers These numbers are on a continuous scale rather than on a scale of discrete integers Any one of the parameters expressed as rational numbers can be set on a raw scale or on an absolute scale A raw scale is simply a range of integer values that has no defined units An absolute scale is a range of floating point values that has defined units Let s look at the Exposure Time parameter as an example Setting the Raw Exposure Time If you adjust the exposure time by writing a value to the Raw Exposure Time field of the Exposure Time CSR you can write any integer value from 1 to 4 192 982 decimal Writing an integer value to the exposure time register sets the exposure time but it doesn t directly tell you how many microseconds of exposure time you will be getting from the camera at that setting To determine the microseconds of exposure time you are getting at a particular raw exposure time setting you must use the formula microseconds raw setting x 4 56 us For example if the Raw Exposure Time field is set to 3 decimal microseconds raw setting x 4 56 us microseconds 3 x 4 56 us microseconds 13 68 So with the Raw Exposure Time field set to 3 the camera would be set for 13 68 us of exposure BASLER A400k 4 13 Configuring the Camera Setting the Absolute Exposure Time If you adjust the
40. Not Used Not Used Spare TxIN23 RxOUT23 Not Used Not Used Strobe TxINCLK RxOUTCLK Pixel Clock Pixel Clock Camera Interface Table 2 7 Bit Assignments for Plug 2 Transmitter Y in an A403k Medium Configuration BASLER A400k Camera Interface A404k Plug No 1 Transmitter X Signal Port Camera x 4 Tap 8 Bit 4 Tap 10 Bit 8 Taps 8 Bit Port TxINO RxOUTO DO Bit 0 DO Bit 0 DO Bit 0 Port A1 TxIN1 RxOUT1 DO Bit 1 DO Bit 1 DO Bit 1 Port A2 TxIN2 RxOUT2 DO Bit 2 DO Bit 2 DO Bit 2 Port A3 TxIN3 RxOUT3 DO Bit 3 DO Bit 3 DO Bit 3 Port A4 TxIN4 RxOUT4 DO Bit 4 DO Bit 4 DO Bit 4 Port A5 TxIN6 RxOUT6 DO Bit 5 DO Bit 5 DO Bit 5 Port A6 TxIN27 RxOUT27 DO Bit 6 DO Bit 6 DO Bit 6 Port A7 TxIN5 RxOUT5 DO Bit 7 MSB DO Bit 7 DO Bit 7 MSB Port BO TxIN7 RxOUT7 D1 Bit 0 DO Bit 8 D1 Bit 0 Port B1 TxIN8 RxOUT8 D1 Bit 1 DO Bit 9 MSB D1 Bit 1 Port B2 TxIN9 RxOUT9 D1 Bit 2 Not Used D1 Bit 2 Port B3 TxIN12 RxOUT12 D1 Bit 3 Not Used D1 Bit 3 Port B4 TxIN13 RxOUT13 D1 Bit 4 D1 Bit 8 D1 Bit 4 Port B5 TxIN14 RxOUT14 D1 Bit 5 D1 Bit 9 MSB D1 Bit 5 Port B6 TxIN10 RxOUT10 D1 Bit 6 Not Used D1 Bit 6 Port B7 TxIN11 RxOUT11 D1 Bit 7 MSB Not Used D1 Bit 7 MSB Port CO TxIN15 RxOUT15 D2 Bit 0 D1 Bit 0 D2 Bit 0 Port C1 TxIN18 RxOUT18 D2 Bit 1 D1 Bit 1 D2 Bit 1 Port C2 TxIN19 RxOUT19 D2 Bit 2 D1 Bit 2 D2 Bit 2 Port C3 TxIN20 RxOUT20 D2 Bi
41. Once bootup is complete the camera performs a continuous series of self checks If an error condition is detected the LED will begin to blink The number of blinks indicate the detected error as shown in Table 6 1 If several error states are present the LED outputs the error code that has the highest priority To get more information about the camera s current condition you can check the camera status as described in Section 3 16 LED Description Priority Solid orange The camera has power and is OK Solid green The input voltage is less than 10 8 VDC and the camera automatically 1 switched off undervoltage lockout To restart the camera raise the in highest put voltage to the camera as specified in Section 2 8 Continuous fast General error 2 pulses Please contact Basler support Repeated pattern The camera is booting or is busy performing an internal operation 3 of green and such as generating shading values When the operation is complete orange pulses the blinking stops of increasing frequency Table 6 1 Camera Status Indicators BASLER A400k 6 1 Troubleshooting 6 2 LED Description Priority Continuous slow pulses One of the following errors is present No sensor board FPGA firmware available No processing board FPGA firmware available Firmware available but error when booting the sensor FPGA Firmware available but error when booting the pr
42. Plus to put the camera in 10 bit output mode 2 Use binary commands or the configuration tool to set the camera for no digital shift 3 Check the output of the camera under your normal lighting conditions with no digital shift and note the readings for the brightest pixels f any of the readings are above 512 do not use digital shift f all of the readings are below 512 you can safely use the 2X digital shift setting f all of the readings are below 256 you can safely use the 2X or 4X digital shift setting If you will be using the camera in 8 bit output mode make this check 1 Use binary commands or the Camera Configuration Tool Plus to put the camera in 8 bit output mode 2 Usethe binary commands or the configuration tool to set the camera for no digital shift 3 Check the output of the camera under your normal lighting conditions with no digital shift and note the readings for the brightest pixels f any of the readings are above 128 do not use digital shift f all of the readings are below 128 you can safely use the 2X digital shift setting f all of the readings are below 64 you can safely use the 2X or 4X digital shift setting 3 7 4 Enabling Disabling Digital Shift You can set the video data output mode by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the CCT With
43. Used 18 18 9 9 Yolk Strobe RxcLKout Strobe 5 5 22 22 Yclk York MDR Cable DS90CR287 Transmitter X DS90CR288A Receiver X Port AO T _ Port ao Port At 1 1 Porta Port A2 d 15 15 Pair 1 12 12 gt mo LL Portaz Port A3 Port A3 Tx3 Rx3 Port A4 2 2 Pair 1 25 25 X0 ma PortA4 Port A5 1x6 Rxe Port AS Port BO T nx _ Port BO Port B4 we Fixe Port B1 Port B2 T6 Port B2 PotB3 1 16 16 Pair 2 xe ts Port B Port B4 Port B4 Tx13 Rx13 PotBS nda 2 X1 B 3 Pair 2 24 24 xt R14 Port 5 Pot nas Rx15 Port co Pot C1 _ Port c1 PottC2 _ Port c2 Port C3 Port C3 1x20 Rx20 Port C4 no 2 17 17 Pair 3 10 10 x2 _ Port Port C5 Port C5 n2 Rx22 LVAL TO4 X2 4 4 Pair 3 23 23 x2 Rx24 LVAL EVAL ros mos _ EVAL DVAL Rx26 DVAL Portae ty07 _ Port a6 Port A7 Port A7 Tx5 5 Port 86 19 19 Pair 5 8 8 z Reto _ Port 7 TUM Rx11 Port B7 Port C6 Tx16 X3 6 6 Pair 5 21 21 gt x Rx16 Port C6 Pot C7 az Rx17 _ Port C7 Not Used ros x23 _ Not Used 18 18 Pair 4 9 9 Strobe Strobe TXCLKI i RxCLKOI 5 5 Pair 4 22 22 Xclk Xalk CC3 24 24 Pair 10 3 3 CC3 ExFlash ExFlash CC3 11 11 Pair 10 16 16 CC3
44. X X 2351X X X X X X 15 X 2343 2351X X 8 bits Pixel at XK OX EX KX KOK KOK TIMING DIAGRAMS ARE NOT DRAWN TO SCALE The diagram assumes that the area of interest feature is not being used With the area of interest feature enabled the number of pixels transferred could be smaller Figure 2 13 A404k 8 Tap Output with Programmable Exposure Camera Interface 2 5 8 Flash Trigger Signal A400k cameras output a flash trigger signal that can be used to trigger a flash exposure The flash trigger output connector is described in Section 2 1 4 The flash trigger signal can be programmed to operate in five different modes The signal is always ow that is deactivated The signal is always high The signal is high as long as the sensor s flash window is open that is all pixel lines are exposed to light The signal goes high when exposure starts in the last pixel line of the area of interest and the signal goes low when exposure ends in the first pixel line The signal is ow as long as the sensor s flash window is open that is all pixel lines are exposed to light The signal goes low when exposure starts in the last pixel line of the area of interest and the signal goes high when exposure ends in the first pixel line The signal is tied to the ExFlash input si
45. address If you check the table on page 4 32 you will find that the address for the Mode field of the Test Image CSR is 0x1801 a 16 bit address You are free to use any supported AddrLen as long as the CSR address will fit into it 0x04 Is the DataLen field This field indicates the data size in bytes that will be transferred by using this write command As shown in the table on page 4 32 the data size for the Mode field of the Test Image Mode CSR is 4 bytes 0 01 0 18 is the Address field in little endian This field indicates the CSR address to which the data bytes will be written The little endian values of 0x01 0x18 in the address field translate to an address of 0x1801 If you check the table on page 4 32 you will find that 0x1801 is the address for the Mode field the Test Image Mode CSR The address for any field within an A400k CSR is equal to the base address for the CSR plus the offset for the CSR field In this case the base address of the Test Image Mode CSR is 1800 and the offset for the Mode field is 0001 This results in an address of 1801 for the Mode field 0x01 is the Data field This field contains the data that must be written to the register in order to activate Test Image One see the table on page 4 32 0x18 is the BCC field See page 4 52 for instructions on calculating a BCC Note that the use of a BCC is optional In this example we assume that a BCC is used 0x03 isthe BFE field The value
46. and data stream D1 will transmit data for pixel six in line two This pattern will continue until all of the pixel data for line two has been transmitted A total of 1176 cycles After all of the pixels in line two have been transmitted the line valid bit will become low for eight cycles indicating that valid data for line two is no longer being transmitted The camera will continue to transmit pixel data for each line as described above until all of the lines in the frame have been transmitted After all of the lines have been transmitted the frame valid bit and the line valid will become low indicating that a valid frame is no longer being transmitted Figure 2 8 shows the data sequence when the camera is operating in edge controlled or level controlled exposure mode and Figure 2 9 shows the data sequence when the camera is operating in programmable exposure mode BASLER A400k Camera Interface ExSync Signal 1 max 7 89 ms 40 872 ms gt IL Frame Valid gt 480 ns 160 ns 23 52 us Ons eos lt gt 1H iL 4 Line Line 1 Line 2 Line 1726 Valid wd m 1L ss OOOGO9900000090000090 900 wi OOO00099000000890000000 9e00o TIMING DIAGRAMS ARE NOT DRAWN TO SCALE The diagram assumes that the area of interest feature is not being used With the area of interest feature e
47. and status registers in the camera and describes the function of each register Bulk Data Control and Status Registers these registers let you store and recall sets of val ues that the camera uses as a group Section 4 2 3 explains bulk data and the bulk data con trol and status registers in more detail It also lists the bulk data registers in the camera and describes the function of each register A special binary read write command protocol is used to read from and write to the registers in the camera Read and write commands are sent to the camera via the standard serial link between the camera and the frame grabber Section 4 3 describes the binary read write command protocol in detail and also provides information on using the serial link Section 4 4 provides code samples which illustrate how to use the read write commands BASLER A400k Configuring the Camera 4 2 1 Inquiry Registers Inquiry registers contain basic information about the camera and information about the camera s current status Each inquiry register contains one or more fields and each field has an assigned address within the camera s memory space By using a binary read command you can read the data in a field and get information about the camera The address for any field within a register is equal to the register base address plus the offset for the field For example the Vendor Information Inquiry Register see below has a Vendor Name field with an address
48. any limitations caused by the way any related features are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Raw Exposure Time Offset 0x000D Size 4 Bytes Read Write Description Writing an integer value to this field sets the exposure time The value can normally range from 1 0x00000001 to 4 192 982 0x003FFAD6 The ac tual available range may be limited by the way any related parameters are set The integer value represents a multiplier and the actual exposure time is equal to the value in this field 4 56 us For example if the value in this field is set to 3 000000003 then Exposure Time 3 x 4 56 us Exposure Time 13 68 us The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the raw value Byte 2 Mid byte of the raw value Byte 3 High byte of the raw value Byte 4 Always 0x00 not used See Section 3 3 for more information about exposure time 4 16 BASLER A400k Configuring the Camera Field Name Raw Min Offset 0x0011 Size 4 Bytes Read only Description Minimum allowed integer value for the raw exposure time setting This field is updated to reflect limitations caused by the way any related features are set The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the min value Byte 2 Mid byte of the min value Byte 3 High byte of the min value Byte 4 Always 0x00 no
49. aoilist BASLER A400k 4 3 Configuring the Camera Using Binary Read Write Commands on the A400k As explained in Section 4 2 each A400k camera has control and status registers with one or more fields that are used to set the values for parameters associated with a camera feature For example the stamp control register has several fields used to set the parameters associated with the stamp feature By writing values to fields in the control registers you configure the camera and control how it operates By reading values from fields in the control registers you can determine how the camera is currently configured Each camera also has inquiry registers with fields that contain basic information such as the camera s serial number and software version numbers By reading values in the inquiry register fields you can determine some basic information about the camera A binary read write command protocol has been developed for use with A400k cameras You can read the data in a register field by sending a binary read command to the camera For example you can use a read command to determine the current value of the Enable field of the Test Image control and status register see page 4 32 When you issue a read command to the camera the camera responds by sending the requested data back to the host computer You can write data to a register field by sending a write command to the camera For example you can use a write
50. are formed with a gradient that ranges from 0 to 255 8 bit mode or 0 to 1023 10 bit mode A full stripe is 256 columns 8 bit mode or 1024 columns 10 bit mode wide As an exception the gray values of the first stripe range from 1 to 255 or from 1 to 1023 respectively The pixels in column one of the first stripe all have a value of 1 The pixels in column two of the first stripe all have a value of 2 the pixels in column three of the first stripe all have a value of 3 and so on This pattern continues until column 255 8 bit mode Figure 3 18 Test Image One 8 bit where the pixels have a gray value of 255 or column 1023 10 bit mode where the pixels have a value of 1023 In 8 bit mode a second stripe begins in column 256 The pixels in column 256 have a gray value of 0 the pixels in column 257 have a value of 1 the pixels in column 258 have a value of 2 and So on This pattern continues until column 511 where the pixels have a gray value of 255 A third stripe begins in column 512 The pixels in column 512 have a gray value of 0 the pixels in column 513 have a value of 1 the pixels in column 514 have a value of 2 and so on This pattern continues until column 2352 where the pixels have a value of 48 BASLER A400k In 10 bit mode second stripe begins in column 1024 The pixels in column 1024 have a value of 0 the pixels in column 1025 have a value of 1 the pixels in column 1026 have a value of 2 and so on
51. bit 8 is set to 1 all of the other bits will automatically be to 1 This means that you should only use the shift twice setting when your pixel readings with no dig ital shift are all below 256 Since the shift twice setting requires that the two least significant bits always be O the gray value scale will only include every 4th gray value For example 4 8 16 and so forth BASLER A400k 3 21 Basic Operation and Features 3 7 2 Digital Shift in 8 Bit Output Mode No Shift As mentioned in Section 3 1 the A400k uses 10 bit ADCs to digitize the output from the CMOS sensor When the camera is operating in 8 bit output mode by default it drops the least two significant bits from the ADC and transmits the 8 most significant bits bit 9 through bit 2 Shift Once When the camera is set to shift once the output from the camera will include bit 8 through bit 1 from the ADC The result of shifting once is that the output of the camera is effectively doubled For example assume that the camera is set for no shift that it is viewing a uniform white target and that under these conditions the reading for the brightest pixel is 20 If we changed the digital shift setting to shift once the reading would increase to 40 ADC bit bit bit bit bit bit bit bit bit 8 7 6 5 4 3 2 1 0 Not Shifted ADC bit bit bit bit bit bit bit bit bit bit 8 7 6 5 4 3 2 1 0 Shifted Once shift are all below 128
52. bit and the line valid bit are also listed BASLER A400k A402k Transmitter X Signal Port Camera 2 Tap 8 Bit 2 Tap 10 Bit Port TxINO RxOUTO DO Bit 0 DO Bit 0 Port A1 TxIN1 RxOUT1 DO Bit 1 DO Bit 1 Port A2 TxIN2 RxOUT2 DO Bit 2 DO Bit 2 Port A3 TxIN3 RxOUT3 DO Bit 3 DO Bit 3 Port A4 TxIN4 RxOUT4 DO Bit 4 DO Bit 4 Port A5 TxIN6 RxOUT6 DO Bit 5 DO Bit 5 Port A6 TxIN27 RxOUT27 DO Bit 6 DO Bit 6 Port A7 TxIN5 RxOUT5 DO Bit 7 MSB DO Bit 7 Port BO TxIN7 RxOUT7 D1 Bit 0 DO Bit 8 Port B1 TxIN8 RxOUT8 D1 Bit 1 DO Bit 9 MSB Port B2 TxIN9 RxOUT9 D1 Bit 2 Not Used Port B3 TxIN12 RxOUT12 D1 Bit 3 Not Used Port B4 TxIN13 RxOUT13 D1 Bit 4 D1 Bit 8 Port B5 TxIN14 RxOUT14 D1 Bit 5 D1 Bit 9 MSB Port B6 TxIN10 RxOUT10 D1 Bit 6 Not Used Port B7 TxIN11 RxOUT11 D1 Bit 7 MSB Not Used Port CO TxIN15 RxOUT15 Not Used D1 Bit 0 Port C1 TxIN18 RxOUT18 Not Used D1 Bit 1 Port C2 TxIN19 RxOUT19 Not Used D1 Bit 2 Port C3 TxIN20 RxOUT20 Not Used D1 Bit 3 Port C4 TxIN21 RxOUT21 Not Used D1 Bit 4 Port C5 TxIN22 RxOUT22 Not Used D1 Bit 5 Port C6 TxIN16 RxOUT16 Not Used D1 Bit 6 Port C7 TxIN17 RxOUT17 Not Used D1 Bit 7 LVAL TxIN24 RxOUT24 Line Valid Line Valid FVAL TxIN25 RxOUT25 Frame Valid Frame Valid DVAL TxIN26 RxOUT26 Not Used Not Used Spare TxIN23 RxOUT23 Not Used Not Used Strobe TxINCLK RxOUTCLK Pixel Clock Pixel Clock Table 2 5
53. can not exceed 2353 The sum of the setting for the starting line plus the setting for the height in lines can not exceed 1727 3 8 2 Setting the Area of Interest You can set the area of interest by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the With the see Section 4 1 you use the AOI Starting Column AOI Width AOI Starting Line and Height settings in the Area of Interest parameters group to set the area of interest By Setting CSRs You can set the AOI starting column by writing a value to the Starting Column field of the AOI Starting Column CSR see page 4 25 You can set the AOI width by writing a value to the Width field of the AOI Width CSR see page 4 27 You can set the starting line by writing a value to the Line field of the AOI Starting Line CSR see page 4 28 You can set the AOI height by writing a value to the Height field of the AOI Height CSR see page 4 29 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k 3 25 Basic Operation and Features 3 8 3 Changes to the Max Frame Rate with Area of Interest When the area of interest feature is used the camera s maximum achieveable frame rate increases The amount that the maximum frame rate increases depends on the
54. conditions the reading for the brightest pixel is 100 If you changed the digital shift setting to shift once the reading would increase to 200 ADC bit bit bit bit bit bit bit bit bit 9 8 7 6 54 3 2 1 B Not Shifted B ADC bit bit bit bit bit bit bit bit bit 9 8 7 6 5 4 3 2 1 Shifted Once war D shift are all below 512 Missing Codes 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 with no digital Since the shift once setting requires that the least significant bit LSB always be 0 no odd gray values can be output 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 BASLER A400k Basic Operation and Features Shift Twice When the camera is set to shift twice the output from the camera will include bit 7 through bit from each ADC along with two zeros as LSBs The result of shifting twice is that the output of the camera is effectively multiplied by four For example assume that the camera is set for no shift that it is viewing a uniform white target and that under these conditions the reading for the brightest pixel is 100 If you changed the digital shift setting to shift twice the reading would increase to 400 Shifted Twice If bit 9 or
55. conflicts with the setting for the AOI height Field Name Height Offset 0x0001 Size 2 Bytes Read Write Description Writing an integer value to this field sets the height in lines for the area of interest AOI feature The value for the height in lines can normally range from 2 lines 0x0002 to 1726 lines OXOGBE The actual available range may be limited by the way any related parame ters are set If the value is set to 20 the height of the AOI will be 20 lines If the value is set to 48 the height of the AOI will be 48 lines Etc The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the length value Byte 2 High byte of the length value See Section 3 8 for more information about the AOI feature Field Name Min Offset 0x0003 Size 2 Bytes Read only Description Minimum allowed integer value for the height setting This field is updated to reflect limita tions caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the min value Byte 2 High byte of the min value Field Name Max Offset 0x0005 Size 2 Bytes Read only Description Maximum allowed integer value for the height setting This field is updated to reflect limita tions caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max
56. error situation is present A simple way to recover from a parameter error situation is to activate the camera s factory configuration set see Section 3 13 3 Activating the factory set will load a set of factory determined optimal parameters into the camera If you are setting the camera s parameters by using binary commands to write to registers make sure you check the min max and increment fields of each register before you set the parameter values Setting the values within the min and max and using the specified increments will avoid parameter errors Checking the Camera Status 400 series cameras monitor their status by performing a regular series of self checks You can view the current camera status in several ways by using the Camera Configuration Tool Plus see Section 4 1 Check the Camera Status parameter in the Camera Information parameter group to see if any error codes are present by using binary read write commands from within your own application to read the value in the Camera Status field of the Camera Status inquiry register see page 4 9 See Section 4 2 1 for an explanation of inquiry registers See Section 4 3 1 for an explanation of using read write commands by checking the LED on the back of the camera If certain error conditions are present the LED will blink see Section 6 1 Status LED The A400k has a status LED on the back of the camera The LED is used to indicate that power is prese
57. exposure time by writing a value to the Absolute Exposure Time field of the Exposure Time CSR you can write a floating point value from 4 56 to 19 119 997 00 decimal in increments of 0 01 Writing a floating point value to the absolute register sets the exposure time directly in microseconds For example if the absolute exposure time was set to 13 68 then the camera would be set for 13 68 us of exposure Guidelines When you are working with a parameter that can be entered as either raw or absolute there are two important things to keep in mind You do not need to enter values in both the raw field and the absolute field Entering just one value is sufficient and you can choose between fields whichever one suits your needs best However in the absolute fields only equivalents of values entered in the raw field are allowed For illustration let s consider the preceding example using the first formula from the previous page Calculating the microseconds of exposure that the camera would produce for three dif ferent settings in the raw exposure time field of the exposure time CSR we obtain Raw Exposure Time Value Setting Resulting Exposure Time 1 4 56 us 2 9 12 us 3 13 68 us This means that if you entered a value in the absolute field values of e g 4 56 9 12 or 13 68 would be valid because they are the equivalents to 1 2 and 3 respectively in the raw field However for example a value of 13 69 entered in the absolute f
58. line valid bit will be high On this clock cycle data stream DO will transmit data for pixel nine in line two Data stream D1 will transmit data for pixel ten in line two Data stream D2 will transmit data for pixel eleven in line two And data stream D3 will transmit data for pixel twelve in line two This pattern will continue until all of the pixel data for line two has been transmitted A total of 588 cycles After all of the pixels in line two have been transmitted the line valid bit will become low for eight cycles indicating that valid data for line two is no longer being transmitted The camera will continue to transmit pixel data for each line as described above until all of the lines in the frame have been transmitted After all of the lines have been transmitted the frame valid bit and the line valid will become low indicating that a valid frame is no longer being transmitted Figure 2 10 shows the data sequence when the camera is operating in edge controlled or level controlled exposure mode and Figure 2 11 shows the data sequence when the camera is operating in programmable exposure mode BASLER A400k 2 25 Camera Interface 2 26 ExSync Signal max 7 89 ms 20 574 ms gt 1L 1L Frame Valid 1H A 480 ns 160 ns 11 76 1H 1H Line Line 1 Line 2 Valid
59. streams in parallel 4 taps n the A404k the data is reformatted to be output in four data streams in parallel 4 taps or in eight data streams in parallel 8 taps The 8 bit or 10 bit video data is transmitted from the camera to the frame grabber using a Camera Link transmission format see Section 2 5 for details The camera can transmit video at an eight bit depth or a ten bit depth For optimal digitization gain and offset are programmable via a serial port BASLER A400k 3 1 Basic Operation and Features 3 2 CMOS Sensor PANALAR Column 1 2 3 4 2349 2350 2351 2352 Line 1 gt eee _ Line 2 E E Line 3 gt ined pI D 2 I Line 1726 eee S y y 5 8 Line ADC lt Timing ADC 4 Memory Block Controller v y y y gt ADC Register SRAM Y p Read Output Register gt Output Control Ports Column Decoder d Figure 3 1 A400k Sensor Architecture
60. the CCT see Section 4 1 you use the Digital Shift setting in the Output parameter group to enable disable digital shift By Setting CSRs You can enable disable digital shift by writing a value to the Mode field of the Digital Shift CSR see page 4 25 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k 3 23 Basic Operation and Features 3 8 Area of Interest AOI The area of interest feature lets you specify a portion of the CMOS array and during operation only the pixel information from the specified portion is transferred out of the camera The size of the area of interest is defined by declaring a starting column a width in columns a starting line and a height in lines Starting columns can only be selected in multiples of 16 1 that is the starting column can be 1 17 33 and soon The width can only be multiples of 16 that is 16 32 48 and so on Reference position is the top left corner of the image For example suppose that you specify the starting column as 17 the width in columns as 16 the starting line as 8 and the height in lines as 10 As shown in Figure 3 11 the camera will only transmit pixel data from within the defined area Information from the pixels outside of the area of interest is discarded Width in Columns io Starting Column Coumn1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
61. the OpCode As shown in the table on page 4 47 an OpCode value of 0b00001 indicates that this is a read command frame Bit 2 indicates the presence or absence of a BCC in the frame As shown in the table on 4 47 when this bit is set to 061 it indicates that a BCC is present Bits 1 and 0 indicate the AddrLen As shown in the table on page 4 47 a value of 0600 for the AddrLen indicates that the address portion of this frame contains a 16 bit address If you check the table on page 4 32 you will find that the address for the Status field of the Test Image CSR is 0x1800 a 16 bit address You are free to use any supported AddrLen as long as the CSR address will fit into it 0x01 is the DataLen field This field indicates the data size in bytes that will be transferred by using this read command As shown in the table on page 4 32 the data size for the Status field of the Test Image CSR is 1 byte Note that for read commands the data size specified in the DataLen field represents the number of bytes of data that you expect to see in the response frame No data bytes are actually included in the read command 0x00 0x18 is the Address field in little endian This field indicates the CSR address from which the data bytes will be read The little endian values of 0x00 0x18 in the address field translate to an address of 0x1800 If you check the table on page 4 32 you will find that 0x1800 is the address for the Status field
62. the Output parameter group to enable disable a test image By Setting CSRs You can enable disable a test image by writing a value to the Mode field of the Test Image Mode CSR see page 4 32 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k Basic Operation and Features 3 12 Camera Temperature A400k series cameras include a sensor that measures the temperature on one of the electronic boards inside of the camera The sensor s readings let you monitor whether ventilation is working correctly The camera s allowed inner temperature is stated in Section 1 4 3 12 1 Reading the Camera Temperature You can read out the current temperature by using the Camera Configuration Tool Plus or by using binary read commands from within your own application to read the camera s control and status registers CSRs With the With the CCT see Section 4 1 you use the Camera Temperature setting in the Camera Information parameter group to read the camera s inner temperature By Setting CSRs You can read the camera s inner temperature by reading a value from the Camera Temperature field of the Camera Temperature CSR see page 4 8 See Section 4 2 1 for an explanation of inquiry CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k 3 41 Basic Operation and Features 3 13 Configuration Sets A configuration s
63. value Field Name Increment Offset 0x0007 Size 2 Bytes Read only Description An integer value indicating the increment for the height setting The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value BASLER A400k 4 29 Configuring the Camera AOI List Trigger Mode CSR Register Base Address 0x2E00 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Mode Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field sets the programmable AO sequencer mode 0x00 Programmable sequencer off 0x01 Image per trigger 0x02 List per trigger 0x03 Free run See Section 3 8 4 for more information about the programmable AOI sequencer feature Stamp CSR Register Base Address 0x2400 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range
64. value to the Raw Exposure Time field or to the Absolute Exposure Time field of the Exposure Time CSR see page 4 16 Section 4 2 2 explains CSRs and the difference between using the raw field and the absolute field CSR Section 4 3 1 explains using read write commands BASLER A400k 3 5 Basic Operation and Features 3 6 3 3 2 Free Run 3 3 2 1 Basics of Free run Controlled Operation In free run no ExSync signal is required The camera generates a continuous internal control signal When the camera is operating in free run it exposes and outputs frames continuously When the camera is operating in free run the length of the control signal period determines the camera s frame rate 1 Frame rate Control signal period The control signal period is equal to the frame period setting When the camera is operating in free run it has two modes of exposure time control available edge controlled mode and programmable mode n free run edge controlled mode the camera generates a continuous internal control sig nal based on the Frame Period parameter The pixels are exposed and charge is accumu lated over the full period of the internal control signal rising edge to rising edge The falling edge of the control signal is irrelevant The frame is read out and transferred on the rising edge of the internal control signal see Figure 3 6 Control Signal Period lt Exp
65. values reside in the camera s volatile memory To save the PRNU shading values currently in the volatile memory to a file in the camera s non volatile memory you would follow this procedure 1 Use a binary write command to write the file name gainshading to the Name field of the PRNU shading values bulk data CSR see page 4 43 2 Use binary write command to set the value of the Control field in the PRNU shading values bulk data CSR to 0x06 Setting the value to 0x06 initiates a create function This procedure would create a file called gainshading in the non volatile memory and would copy the current PRNU shading values from the camera s volatile memory into the new file Sample code that illustrates how to create a bulk data file is available from Basler see Section 4 4 You can save one PRNU shading set file in the non volatile memory There is a restriction on naming the file that holds the saved set of shading tables The file must be named gainshading If the gainshading file already exists it will be overwritten Activating a Saved Configuration Set File The process of activating an existing configuration set file accomplishes two things t copies the values from the saved file into the camera s volatile memory This means that the values will now be actively used by the camera It creates a link to the activated file If the camera is reset or if it is powered off and then back on the va
66. video data stream In 2 tap 10 bit mode on each clock cycle the camera transmits data for two pixels at 10 bit depth a frame valid bit and a line valid bit In 2 tap 8 bit mode on each clock cycle the camera transmits data for two pixels at 8 bit depth a frame valid bit and a line valid bit The assignment of the bits is shown in Table 2 5 The pixel clock is used to time data sampling and transmission As shown in Figures 2 8 and 2 9 the camera samples and transmits data on each rising edge of the pixel clock The frame valid bit indicates that a valid frame is being transmitted 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 The image has a maximum size of 2352x 1726 pixels Pixels are transmitted at a pixel clock frequency of 50 MHz over the Camera Link X transmitter With each clock cycle two pixels are transmitted in parallel at a depth of 10 or 8 bits Therefore one line takes a maximum of 1176 clock cycles to be transmitted The image is transmitted line by line from top left to bottom right Frame Valid FVAL and Line Valid LVAL mark the beginning and duration of frame and line In 10 bit mode all bits of data output from each 10 bit ADC are transmitted In 8 bit mode the two least significant bits output from each ADC are dropped and the 8 most significant bits of data per pixel are transmitted The data sequ
67. with an ExSync signal you must generate at least eight ExSync signal cycles after you signal the camera to begin generating the values If you are running the camera in a free run exposure mode you must wait long enough for the camera to capture at least eight frames 10 Once eight frames have been captured the camera calculates the PRNU shading correction values a The camera uses the data from the eight captured frames to calculate an average gray value for each pixel in the frame b The camera finds the pixel with the highest average gray value in the frame For each of the other pixels in the frame the camera determines the additional gain that would be needed to make the pixel s average value equal to the average value for the highest pixel d The camera creates a set of PRNU shading correction values that contains the calculated gain adjustments The set of PRNU values will be placed in the camera s volatile memory This set of values will overwrite any shading values that are already in the memory The current set of values in the volatile memory is used whenever PRNU is enabled Enabling PRNU Shading Correction Once you have a PRNU shading table in place you can enable and use PRNU shading correction With the PRNU correction feature enabled the camera will use the set of shading values to apply the appropriate offset to each pixel to correct for PRNU You can enable PRNU shading correction with the Camera Configura
68. 0 ns _ 1H Line 1726 Dum a 4 X xou X X X QUO X X X X3X5X oue X 10 or 8 bits Piel O00 X aK X2 X ox XX 6 KXXX Da Pixel pee 96 X X 3X 7X X 2347 X 2351X x X X X 3 X X2351X X X x X XIX X23 D 2351X X 10 or 8 bits TIMING DIAGRAMS ARE NOT DRAWN TO SCALE The diagram assumes that the area of interest feature is not being used With the area of interest feature enabled the number of pixels transferred could be smaller Pixel ae Yr X xX 4X 8X 2348 X2352X X X X X X X 2352X X X X X 2348 2352X X 10 or 8 bits Figure 2 10 A403k or A404k 4 Tap Output with Edge or Level Controlled Exposure BASLER A400k Camera Interface end of de programmed exposure time max 7 89 ms 20 574 ms lt gt n T 1 Valid pL 480 ns 160 ns 4l 11 76 us 0 ns e gt 4H L T Line Line 1 Line 2 Line 1726 Valid H lt a I LL OOOO OOM OOOO CX nie ate OC CX EX EX EKO OT KOE OOO XOX EEX DD eget pas OX OO DO OOOO OOMOOOOOOO 0O nie pate OX XX EX DOC OX TIMING DIAGRAMS ARE NOT DRAWN TO SCALE The diagram assumes that the area of interest feature is not being used With the area of interest feature enabled the number
69. 00k 4 23 Configuring the Camera DSNU or PRNU Shading Value Generate CSR Register Base Address 0x2100 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range 0x82 The generation process failed Field Name Generate Offset 0x0001 Size 4 Byte Read Write Description Writing an integer value to this field will begin the routine that generates a set of DSNU or PRNU shading correction values 0x01 Generate DSNU correction values 0x02 Generate PRNU correction values for monochrome versions only The 4 bytes in this field are interpreted as follows Byte 1 Low byte Byte 2 Always 0x00 not used Byte 3 Always 0x00 not used Byte 4 Always 0x00 not used See Section 3 6 for more information about shading correction DSNU and or PRNU Shading Correction Enable CSR Register Base Address 0x2000 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 7 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field
70. 0k 6 2 2 Poor Quality Image Troubleshooting Use this chart if the image is poor quality is completely white or is completely black If you get no image at all when you attempt to capture an image with the frame grabber use the chart that appears in Section 6 2 1 Use the Camera Configuration Tool Plus to set the camera for test image one Use your frame grabber to capture an image and examine the image carefully Most frame grabbers include software tools that let you see the individual values of each pixel in the image and histograms that display distributions of the pixel values in the image The pixel values in your captured test image should be exactly as described in Section No Go to the interfacing 3 11 Also if you capture several test images the pixel values should be the same in troubleshooting chart all of the captured test images Are the test images OK Use the CCT to copy the Factory Set to the Work Set Take the camera out of test image mode and capture a normal image Is the problem still present Images are too bright or too dark Do the following Make sure that the lens cap has been removed Check the lens aperture If the images are too dark try opening the aperture Try closing the aperture if they are too bright Check the exposure time If the images are too dark try increasing the exposure Try decreasing the exposure if they are too bright Check your light source
71. 1 21 12 VDC Input 12 VDC x 1096 Camera power input 3 4 Not connected 5 62 Input Ground DC ground 1 Pins 1 and 2 are tied together inside of the camera pins 5 and 6 are tied together inside of the camera Table 2 3 A400k Pin Assignments for the 6 pin Micro miniature Receptacle The recommended mating connector is the Hirose micro miniature locking plug part HR10 7P 6S A plug of this type will be shipped with each camera The plug should be used to terminate the cable on the power supply for the camera 2 1 4 Pin Assignments for the 4 pin Micro Miniature Receptacle The flash trigger output connector type is a micro miniature push pull locking connector the Hirose HR 10A 7R 4S The receptacle provides a TTL signal for an external flash This signal can be programmed to be deactivated tied to a flash window signal generated internally tied to the external ExFlash input and it can be permanently on see Section 2 5 8 Figure 2 3 shows the timing diagram It can be set to high impedance default setting so that the flash trigger is disabled or it can be selected to be to TTL Active High Low Side Switch Open Collector or High Side Switch Figure 2 4 shows the three variants of output schematics of the flash trigger connector The pin assignment is given in Table 2 4 Pin Signal Number Nani Direction Level Function 2 Flash Trigger Output TTL signal Flash trigger th
72. 2 3 model number viewing with binary commands 4 5 vi model tab 4 3 mounting facilities 5 1 offset explained 3 ERIS 3 11 setting with binary commands 4 22 open collector iier rete 2 6 output data 1 3 output mode see video data output mode s output signals from the 2 13 P parameter set cache explained nolle ple 3 45 setting with binary commands 4 34 parameter validation described er ee 3 46 photo response non uniformity 1 2 pin assignments Camera ioi E per IE RUPEE 2 3 pin numbering camera m IIR ea ea ale Se 2 2 pixel clock on the 2 13 pixel clock 1 2 pixel 1 3 Rd 1 2 pixels rn Se ae eh oe Pie eren WIS 1 2 positioning accuracy of the sensor chip 5 4 5 42 are ae 2 7 2 5 power requirements Camera 1 3 2 34 precautions CAMEL Nao 1 7 PRN She Eu Ehe hee 1 2 product ID viewing with binary commands 4 6 programmable AO sequencer explained Kees ku 3 27 setting with binary commands 4 30 programmable exposure mode exp
73. 31 32 Line 1 Line 2 Line 3 Starting Line4 Line Line The camera will Line 6 only transmit Line 7 the pixel data 4 Line 8 from this area Line 9 Line 10 Line 11 Height 12 in Lines gt Line 13 Line 14 Line 15 Line 16 Y Line 17 Line 18 Line 19 Line 20 ae ma E maa mea 1 r3 0 Coe rar Figure 3 11 Area of Interest In normal operation the camera is set to use all of the pixels in the array To use all of the pixels the starting column should be set to 1 the width in columns to 2352 the starting line to 1 and the height in lines to 1726 BASLER A400k Basic Operation and Features 3 8 1 Area of Interest Setup Rules When setting up the area of interest observe the following rules Starting columns can only be selected in multiples of 16 1 that is the starting column can be 1 17 33 and so on The width can only be multiples of 16 that is 16 32 48 and so on The sum of the setting for the starting column plus the setting for the width in columns
74. 90 gt 2 y 25204 8x 6 dee lt gt i j9 n I EN o e i l Ec y 10 1 6 9 4 gt 6 5 4550 02 76304 Photosensitive Surface of Sensor 76 4 x M4 7 deep Figure 5 1 A400k Mechanical Dimensions in mm 5 2 BASLER A400k 5 2 F Mount Adapter Dimensions 85 3 CD Figure 5 2 F Mount Adapter Dimensions in mm BASLER A400k Mechanical Considerations Drawings are not to scale Mechanical Considerations 5 3 Positioning Accuracy of the Sensor Chip Positioning accuracy of the sensor chip is as shown in Figure 5 3 Reference Plane Figure 5 3 Positioning Accuracy 54 BASLER A400k 6 1 Troubleshooting Troubleshooting Fault Finding Using the Camera LED If the status LED on the back of the camera is not lit power to the camera is not present When the power supply to the camera is switched on the LED on the back of the camera will become green colored for several seconds As the microprocessor in the camera boots up the LED will blink green and orange The frequency of blinks will increase until the LED becomes continuously orange colored and then the blinks will start again A continuous orange LED indicates that bootup has been completed successfully
75. AddrLen portion of the FTF field indicates the size of the command and status register CSR address to which the command is being sent AddrLen Length of the Address Field 0500 16 bits 2 bytes 0601 32 bits 4 bytes 0b10 48 bits 7 6 bytes 0b11 64 bits 8 bytes On A400k cameras all CSR addresses are 16 bits Example of an FTF field Assume that you are issuing a write command that you are using a BCC and that the CSR address you are writing to is a 16 bit address In this case the OpCode bits would 0b00000 the BCC Code bit would be 0b1 and the bits would be 0600 This would result in a binary value of 0600000100 which translates to a hex value of 0x04 for the FTF field BASLER A400k 4 47 Configuring the Camera DataLen Address Data BCC BFE Data Length field For read commands the DataLen field indicates the number of bytes to read from the given CSR address For write commands the DataLen field indicates the number of bytes contained in the Data field Size 1 byte Range of possible settings 0 to 255 DataLen 0 will result in an but no further command will be executed Address field For read commands indicates the CSR address for the read For write commands indicates the CSR address for the write Size Number of bytes indicated in the AddrLen portion of the FTF field Data field For read commands this field contains no data For wire comm
76. BASLER 400 USER S MANUAL Document Number DA00062406 Release Date 14 April 2005 For customers the U S A This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense You are cautioned that any changes or modifications not expressly approved in this manual could void your authority to operate this equipment The shielded interface cable recommended in this manual must be used with this equipment in order to comply with the limits for a computing device pursuant to Subpart J of Part 15 of FCC Rules For customers in Canada This apparatus complies with the Class A limits for radio noise emissions set out in Radio Inter ference Regulations Pour utilisateurs au Canada Cet appareil est conforme aux normes Classe A pour bruits radio lectriques sp cifi es dans le R glement sur le brouillage radio lectrique Life Support Application
77. Bit 4 D4 Bit 4 Port E5 TxIN14 RxOUT14 Not Used D2 Bit 5 D4 Bit 5 Port E6 TxIN10 RxOUT10 Not Used D2 Bit 6 D4 Bit 6 Port E7 TxIN11 RxOUT11 Not Used D2 Bit 7 D4 Bit 7 MSB Port FO TxIN15 RxOUT15 Not Used D2 Bit 8 05 Bit 0 Port F1 TxIN18 RxOUT18 Not Used D2 Bit 9 MSB D5 Bit 1 Port F2 TxIN19 RxOUT19 Not Used Not Used D5 Bit 2 Port F3 TxIN20 RxOUT20 Not Used Not Used D5 Bit 3 Port F4 TxIN21 RxOUT21 Not Used D3 Bit 8 D5 Bit 4 Port F5 TxIN22 RxOUT22 Not Used D3 Bit 9 MSB D5 Bit 5 Port F6 TxIN16 RxOUT16 Not Used Not Used D5 Bit 6 Port F7 TxIN17 RxOUT17 Not Used Not Used D5 Bit 7 MSB LVAL TxIN24 RxOUT24 Line Valid Line Valid Line Valid FVAL TxIN25 RxOUT25 Frame Valid Frame Valid Frame Valid DVAL TxIN26 RxOUT26 Not Used Not Used Not Used Spare TxIN23 RxOUT23 Not Used Not Used Not Used Strobe TxINCLK RxOUTCLK Pixel Clock Pixel Clock Pixel Clock Table 2 9 Bit Assignments for Plug 2 Transmitter Y in an A404k Full Configuration BASLER A400k Camera Interface A404k Plug No 2 Transmitter 2 Signal Port Camera p 4 Tap 8 Bit 4 Tap 10 Bit 8 Tap 8 Bit Port GO TxINO RxOUTO Not Used Not Used D6 Bit 0 Port G1 TxIN1 RxOUT1 Not Used Not Used D6 Bit 1 Port G2 TxIN2 RxOUT2 Not Used Not Used D6 Bit 2 Port G3 TxIN3 RxOUT3 Not Used Not Used D6 Bit 3 Port G4 TxIN4 RxOUT4 Not Used Not Used D6 Bit 4 Port G5 TxIN6 RxOUT6 Not Used No
78. Byte 2 High byte of the min value BASLER A400k 4 25 Configuring the Camera 4 26 Field Name Max Offset 0x0005 Size 2 Bytes Read only Description Maximum allowed integer value for the starting column setting This field is updated to re flect limitations caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value Field Name Increment Offset 0x0007 Size 2 Bytes Read only Description An integer value indicating the increment for the starting column setting The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value BASLER A400k Configuring the Camera Area of Interest Width in Columns CSR Register Base Address 0x1020 Field Name Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range 0X81 The setting for the AOI starting column conflicts with the setting for the AOI width Field Name Width Offset 0x0001 Size 2 Bytes Read Write Description Writing an integer value to this field sets the width in columns for the area of interest AOI
79. ER A400k Camera Interface pixel six in line one Data stream D2 will transmit data for pixel seven in line one And data stream D3 will transmit data for pixel eight in line one On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel nine in line one Data stream D1 will transmit data for pixel ten in line one Data stream D2 will transmit data for pixel eleven in line one And data stream D3 will transmit data for pixel twelve in line one This pattern will continue until all of the pixel data for line one has been transmitted A total of 588 cycles Line valid becomes low for eight pixel clocks On the pixel clock cycle where data transmission for line two begins the line valid bit will become high On this clock cycle data stream DO will transmit data for pixel one in line two Data stream D1 will transmit data for pixel two in line two Data stream D2 will transmit data for pixel three in line two And data stream D3 will transmit data for pixel four in line two On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel five in line two Data stream D1 will transmit data for pixel six in line two Data stream D2 will transmit data for pixel seven in line two And data stream D3 will transmit data for pixel eight in line two On the next cycle of the pixel clock the
80. For a Camera Link receiver we recommend that you use the National Semiconductor DS90CR288 the National Semiconductor DS90CR288A or an equivalent Detailed data sheets for these components are available at the National Semiconductor web site www national com The data sheets contain all of the information that you need to implement Camera Link including application notes Note that the timing used for sampling the data at the Camera Link receiver in the frame grabber varies from device to device On some receivers TTL data must be sampled on the rising edge of the receive clock and on others it must be sampled on the falling edge Also some devices are available which let you select either rising edge or falling edge sampling Please consult the data sheet for the receiver that you are using for specific timing information The A400k uses a National Semiconductor DS90LV048A differential line receiver to receive the RS 644 camera control input signals and the serial communication input signal defined in the Camera Link specification A DS90LV047A differential line transmitter is used to transmit the serial communication output signal defined in the specification Detailed spec sheets for these devices are available at the National Semiconductor web site www national com The A402k uses the base configuration of Camera Link with one differential line transmitter The transmitter in the camera is designated as Transmitter X T
81. If your camera is set to control exposure with an ExSync signal you must generate at least eight ExSync signal cycles after you signal the camera to begin generating the values If you are running the camera in a free run exposure mode you must wait long enough for the camera to capture at least eight frames Once eight frames have been captured the camera calculates the DSNU shading correction values a The camera uses the data from the eight captured frames to calculate an average gray value for each pixel in the frame b The camera finds the pixel with the highest average gray value in the frame For each of the other pixels in the frame the camera determines the offset that would be needed to make the pixel s average value equal to the average value for the highest pixel d The camera creates a set of DSNU shading values that contains the calculated offsets The set of DSNU values will be placed in the camera s volatile memory This set of values will overwrite any shading values that are already in the memory The current set of values in the volatile memory is used whenever DSNU is enabled BASLER A400k 3 15 Basic Operation and Features Enabling DSNU Shading Correction Once you have a DSNU shading table in place you can enable and use DSNU shading correction With the DSNU correction feature enabled the camera will use the set of shading values to apply the appropriate offset to each pixel to correct for DSNU You ca
82. LER A400k 4 5 Configuring the Camera 4 6 Product ID Inquiry Register Base Address 0x0300 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Product ID Offset 0 0001 Size 20 Bytes Type Read only Description String containing the camera s product ID number The string is zero terminated if less than 20 bytes are needed and unterminated if all 20 bytes are needed Serial Number Inquiry Register Base Address 0x0400 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Serial Number Offset 0 0001 Size 20 Bytes Read only Description String containing the camera s serial number The string is zero terminated if less than 20 bytes are needed and unterminated if all 20 bytes are needed Camera Version Inquiry Register Base Address 0x0500 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Fiel
83. Name Mode Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field sets the shading correction mode 0x00 Shading correction off 0x01 Enable DSNU shading correction only 0x02 Enable PRNU shading correction only for monochrome versions only 0x03 Enable DSNU and PRNU shading correction for monochrome versions only See Section 3 6 for more information about shading correction 4 24 BASLER A400k Configuring the Camera Digital Shift CSR Register Base Address 0x1900 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Mode Offset 0x0001 Size 1 Byte Read Write Description Writing an integer value to this field enables disables digital shift 0x00 No digital shift 0x01 Digital shift once multiplies output 2X 0x02 Digital shift twice multiplies output 4X See Section 3 7 for more information about digital shift and precautions you must consider Area of Interest Starting Column CSR Register Base Address 0x1040 Field Name Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this cont
84. Once you have uploaded an AOI list hex file to the camera you can enable the sequencer To enable the sequencer that is run the AOI list AOI trigger mode 1 2 or 3 must be set In modes 1 and 2 the ExSync signal triggers image capture Mode 3 activates free run To disable the feature mode 0 must be selected default Mode 0 Disabled Disables the AOI list Images are captured using the global area of interest exposure time frame period and parameter set cache parameter settings Mode 1 Image per Trigger Each rising edge of the ExSync signal triggers an image capture If this mode is applied to the example shown in Figure 3 15 on the first rising edge of the ExSync signal the image will be captured according to the area of interest settings that are in first position in the AOI list On the next three rising edges of the ExSync signal three images will be captured according to the area of interest settings that are in second position in the AOI list since 3 runs have been defined and So on In this mode the delay time settings have no effect on the image capture that is there will be no delay between the rising edge of the ExSync signal and the start of exposure Mode 2 List per Trigger Each rising edge of the ExSync signal triggers execution of the complete AOI list If this mode is applied to the example shown in Figure 3 15 on page 3 30 on the first rising edge of the ExSync signal seven images will be captured accordi
85. Set of PRNU Shading Values Before you can use PRNU shading correction you must generate a set of PRNU shading correction values If you have two or more areas of interest to be captured under different illumination repeat the below procedure for each area of interest Make sure that the areas do not overlap To generate a set of values perform the following steps 1 Make sure that a set of column FPN shading correction values and a set of DSNU shading correction values has been created before Doing PRNU shading correction before column FPN shading correction or before DSNU shading correction can result in significant image quality degradation 2 Make sure that the area of interest is set to the area where you want to generate values 3 Place a uniform white or light colored target in the field of view of the camera Adjust your lighting and optics as you would for normal system operation 4 Setthe gain on the camera to default 5 Make sure that no part of the area of interest has reached saturation that is all gray values are lower than 255 8 bit or 1023 10 bit 6 Capture several frames and examine the pixel values returned from the camera The pixel values should be about 8096 of maximum a If the pixel values are not at 8096 of maximum adjust your lighting and or lens aperture setting to achieve 80 b If you can not achieve 80 output by adjusting the lighting then adjust the gain setting to achieve the correct outpu
86. Sync triggers the readout In programmable mode exposure time can be programmed to a predetermined time period In this case exposure begins on the rising edge of ExSync and accumulated charges are read out when the programmed exposure time ends At readout accumulated charges move out of the light sensitive sensor elements pixels Moveout is clocked according to the camera s 50 MHz internal data rate As the charges move out of the pixels they are converted to voltages proportional to the size of each charge The sensor has a column parallel analog to digital converter ADC architecture that lets the array of 2 352 ADCs on the chip digitize simultaneously the analog data from an entire line of pixels The analog data is converted into 10 bit digital pixel data by the 10 bit ADCs shown in Figure 3 1 on page 3 2 The digitized data is then stored in column parallel 10 bit ADC registers Now the digitized pixel data is shifted in portions of 160 bits from the ADC registers to the output registers and output in ascending numerical order from pixel 1 through pixel 2 352 and from the first line through the last line via 16 output ports that each transmit 10 bit pixel data in parallel with each cycle Finally the output data is reformatted and transferred out of the camera as shown below n the A402k the data is reformatted to be output in two data streams in parallel 2 taps n the A403k the data is reformatted to be output in four data
87. The is used to view the present settings for the parameters in the work set or to change the settings When the CCT is opened and a port is selected it queries the camera and displays list of the current settings for the parameters in the work set BASLER A400k Configuring the Camera To simplify navigation parameters are organized in related groups For example all parameters related to the camera output can 7 Basler A402k File Camera View Options Help be found in the Output group 2s 220 Output When you click on the plus or minus sign Video Data OutputMode 2 Taps 8 CL Base Configuration beside a group or the parameters in this Digital Shift No digital shift group will be shown or hidden respectively Test Image No test image z Exposure To get an overview of all parameters amp Offset available the connected camera area Of Interest maximize the CCT window and click the ese Trigger sign beside each group bl nce elon The camera parameter names always appear in the left column of the list The current setting for each parameter appears in the right column Figure 4 1 Output Group By default a Parameter Description window is displayed In this window you can find basic information on the selected parameter and if present on the dependencies that may exist between the selected parameter a
88. The value can range from 1 0x00000001 to 4 192 982 0x003FFAD6 The integer value represents a multiplier and the actual frame period is equal to the value in this field x 4 56 us For example if the value in this field is set to 4 0x00000004 then Frame Period 4 x 4 56 us Frame Period 18 24 us The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the raw value Byte 2 Mid byte of the raw value Byte 3 High byte of the raw value Byte 4 Always 0x00 not used See Section 3 3 for more information about the frame period BASLER A400k Configuring the Camera Field Name Raw Min Offset 0x0011 Size 4 Bytes Read only Description Minimum allowed integer value for the raw frame period setting The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the min value Byte 2 Mid byte of the min value Byte 3 High byte of the min value Byte 4 Always 0x00 not used Field Name Raw Max Offset 0x0015 Size 4 Bytes Type Read only Description Maximum allowed integer value for the raw frame period setting The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value Byte 3 High byte of the max value Byte 4 Always 0x00 not used BASLER A400k 4 19 Configuring the Camera Gain CSR Note The gain can be set by writing a floating point value to the Absolute Gain field or by writing an in
89. There is a restriction on naming the files that hold the saved configuration sets They must be named UserSet01 UserSet02 UserSet03 or UserSet04 BASLER A400k 4 41 Configuring the Camera 4 42 DSNU Shading Value CSR See Section 4 2 3 1 for information about using bulk data control registers Register Base Address 0x2A80 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Control Offset 0x0001 Size 1 Byte Read Write Description Writing an integer value to this field selects a bulk data control function 0x00 Enumerate 0x01 ENext 0x02 Read 0x03 Write 0x05 Activate 0x06 Create Field Name Info Offset 0x0002 Size 1 Byte Read only Description If you are performing a bulk data read or write operation this field will indicate when no more data exits 0x00 More data exists 0x01 No more data exists 0x04 No more data exists and this is an activated file Field Name File Name Offset 0x003 Size 20 Bytes Type Read Write Description Character string indicating the name of a bulk data file The field contains 20 characters left aligned zero padded Field Name Size O
90. a Configuration Tool Plus CCT or by using binary read write commands from within your own application to set the camera s control and status registers CSRs With the CCT With the CCT see Section 4 1 you use the Create PRNU Shading Values File parameter in the PRNU Shading Value File parameters group to save the PRNU shading set currently in the volatile memory to a file in the non volatile memory By Setting CSRs You can save the current shading correction values to a file in the non volatile memory by writing values to the bulk data CSR for PRNU shading values Section 4 2 3 explains the bulk data CSRs and explains how to use the CSRs to save the shading values to a file Section 4 3 1 explains using read write commands save the current work set to your standard user set the camera will automatically load and use shading correction at next power on Loading will take approximately 90 seconds After 90 seconds the camera will start image capture and be able to receive commands If you save the set of PRNU values to file enable the use of shading correction and 3 6 4 Guidelines When Using Shading Correction When using the shading correction feature make sure to take the following guidelines into account Any time that you make a change to the optics or lighting or if you change the camera s gain setting you must generate new set of PRNU shading values Using an out of date PRNU shading set can resu
91. a predefined sequence of two or more areas of interest The sequence can be triggered by the ExSync signal or the camera s internal control signal free run Up to 32 areas of interest can be included in one sequence Figure 3 12 illustrates a sequence that includes two areas of interest The camera repeats the sequence as long as the AOI sequencer feature is enabled Coum 1 23 4 56 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 En Line 9 LT i Line 10 gt Line 11 Line 12 Line 13 Line 14 Line 15 Line 16 Line 17 Line 18 Line 19 Line 20 Line 21 Lou Line 22 Line 23 Rel Line 24 Serpe icy Line 25 Line 26 Line 27 Line 28 Line 29 Line 30 Line 31 Line 32 Figure 3 12 Area of Interest Sequence As explained above the sequencing can be triggered by the ExSync signal You can trigger each image capture in the sequence with a separate rising edge of the ExSync signal or y
92. a stream D7 will transmit data for pixel eight in line one On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel nine in line one Data stream D1 will transmit data for pixel ten in line one Data stream D2 will transmit data for pixel eleven in line one Data stream D3 will transmit data for pixel twelve in line one Data stream D4 will transmit data for pixel thirteen in line one Data stream D5 will transmit data for pixel fourteen in line one Data stream D6 will transmit data for pixel fifteen in line one Data stream D7 will transmit data for pixel sixteen in line one This pattern will continue until all of the pixel data for line one has been transmitted A total of 294 cycle Line valid becomes low for seven pixel clocks On the pixel clock cycle where data transmission for line two begins the line valid bit will become high On this clock cycle data stream DO will transmit data for pixel one in line two Data stream D1 will transmit data for pixel two in line two Data stream D2 will transmit data for pixel three in line two Data stream D3 will transmit data for pixel four in line two Data stream D4 will transmit data for pixel five in line two Data stream D5 will transmit data for pixel six in line two Data stream D6 will transmit data for pixel seven in line two Data stream D7 will transmit data for pixel eight in line two On the next cycle of
93. ame of an existing file the data in the existing file will be overwritten Saving a Set of DSNU Shading Values As mentioned in Section 3 6 when you generate a set of shading values those values reside in the camera s volatile memory To save the DSNU shading values currently in the volatile memory to a file in the camera s non volatile memory you would follow this procedure 1 Use a binary write command to write the file name offsetshading to the Name field of the DNSU shading values bulk data CSR see page 4 42 2 Use binary write command to set the value of the Control field in the DSNU shading values bulk data CSR to 0x06 Setting the value to 0x06 initiates a create function This procedure would create a file called offsetshading in the non volatile memory and would copy the current DSNU shading values from the camera s volatile memory into the new file Sample code that illustrates how to create a bulk data file is available from Basler see Section 4 4 There is a restriction on naming the file that holds the saved set of shading tables You can save one DSNU shading set file in the non volatile memory The file must be named offsetshading If the offsetshading file already exists it will be overwritten BASLER A400k Configuring the Camera Saving a Set of PRNU Shading Values Monochrome Versions Only As mentioned in Section 3 6 when you generate a set of shading values those
94. ame valid bit and a line valid bit The assignment of the bits is shown in Tables 2 8 2 9 and 2 10 The pixel clock is used to time data sampling and transmission As shown in Figures 2 12 and 2 13 the camera samples and transmits data on each rising edge of the pixel clock The frame valid bit indicates that a valid frame is being transmitted 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 The image has a maximum size of 2352x 1726 pixels Pixels are transmitted at a pixel clock frequency of 50 MHz over the Camera Link X Y and Z transmitters With each clock cycle eight pixels are transmitted in parallel at a depth of 8 bits Therefore one line takes a maximum of 294 clock cycles to be transmitted The image is transmitted line by line from top left to bottom right Frame Valid FVAL and Line Valid LVAL mark the beginning and duration of frame and line The data sequence outlined below along with Figures 2 12 and 2 13 describe what is happening at the inputs to the Camera Link transmitters in the camera Note that the timing used for sampling the data at the Camera Link receivers in the frame grabber varies from device to device On some receivers data must be sam pled on the rising edge of the pixel clock receive clock and on others it must be sampled on the falling edge Also some devices are available which let
95. amera The camera can be programmed to function under the control of an externally generated sync signal ExSync in two exposure time control modes In these modes level controlled and programmable the ExSync signal is used to control exposure time and frame read out For more detailed information on the two modes see Section 3 3 ExSync can be a periodic or non periodic function The frequency of the ExSync signal determines the camera s frame rate in these modes 1 Maximum frame rate Minimum ExSync signal period Note that ExSync is edge sensitive and therefore must toggle In ExSync edge controlled mode and programmable mode minimum high time for the ExSync signal is 250 ns minimum low time is also 250 ns In ExSync level controlled mode minimum high time for the ExSync signal is 9 12 us minimum low time is 4 56 us The ExSync signal is typically supplied to the camera by a frame grabber board Refer to the manual supplied with your frame grabber to determine how to set up the ExSync signal 2 4 2 ExFlash from the Frame Grabber The first Camera Link contains an LVDS input for the ExFlash signal With the corresponding register setting this input can be tied to the output signal of the flash trigger connector The ExFlash signal is not used by the camera itself The ExFlash input corresponds to the camera control signal CC3 as defined in the Camera Link standard The minimum pulse width of ExFlash is 1 us there are no
96. ameter Set Cache setting in the Parameter Set parameter group to enable disable parameter set cache By Setting CSRs You can enable disable parameter set cache by writing a value to the Mode field of the Parameter Set Cache CSR see page 4 34 See Section 4 2 2 for an explanation of CSRs and Section 4 3 1 for an explanation of using read write commands BASLER A400k 3 45 Basic Operation and Features 3 15 3 16 3 17 Parameter Validation Before a modification to a parameter setting becomes active the microcontroller inside the camera automatically verifies that the setting causes no conflict If the camera detects a parameter error it will automatically discard the setting and the old setting remains valid A parameter error occurs if the parameter is set out of range the parameter is set to an invalid value or the parameters which depend on each other are set in conflict Since the automatically checks that parameters are set correctly you will not normally see a parameter error situation when you set parameters with the When you set parameters using binary commands you may see parameter error situations if you inadvertently set parameters to values that are not allowed or are in conflict If you suspect that the camera is in a parameter error situation you can read the value in the Camera Status field of the Camera Status inquiry register see page 4 9 If the parameter error bit is set then a parameter
97. ampened 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 A400k 1 7 Introduction 1 8 BASLER A400k 2 1 Camera Interface Camera Interface Connections 2 1 1 General Description All A400k area scan cameras are interfaced to external circuitry via three connectors located on the back of the camera e 26 pin 0 050 inch Mini D Ribbon female connector used to transmit video data control data and configuration data a6 pin micro miniature push pull receptacle used to provide power to the camera a4 pin micro miniature push pull receptacle used to output a TTL flash trigger signal A403k and A404k area scan cameras have one additional connector a 26 pin 0 050 inch Mini D Ribbon MDR female connector used to transmit further image data A status LED located on the back of the camera is used to indicate power present and signal integrity See Section 6 1 for details Figure 2 1 shows the connectors and the LED Caution Be sure that all power to your system is switched off before you make or break connections to the camera Making or breaking connections when power is on can result in damage to the camera If you can not switch off power be sure that the power supply connector is the last connector plugged when you make connections to the camera and the first connector unplugged when you br
98. an save a user set to PC or load a user set from PC by using the Camera Configuration Tool Plus or by using binary read write commands from within your own application to set the camera s bulk data control and status registers CSRs With the With the see Section 4 1 you use the Save Work Set to File command in the File menu to save the work set to hard disk and you use the Load Work Set from File command in the File menu to load the work set from hard disk By Setting CSRs You can save a user set to PC or load a user set from PC by writing values to the bulk data CSR for configuration sets The bulk data download process is used to save a user set to PC The bulk data upload process is used to load a user set from PC Section 4 2 3 explains bulk data CSRs and using the bulk data download and upload processes Section 4 3 1 explains using read write commands BASLER A400k Basic Operation and Features 3 14 Parameter Set Cache When the parameter set cache feature is enabled you can modify the camera s parameter settings without the modifications becoming effective immediately The parameter set cache feature lets you continue valid image capture while you change your parameters For example while setting a new area of interest with the parameter set cache feature enabled you can still capture images using your old area of interest settings When the parameter set cache feature is enabled al
99. ands this field contains the data to be written to the CSR Size for read commands 0 bytes Size for write commands the number of bytes indicated in the DataLen field of the frame Block Check Character field The use of a block check character in read write commands is optional If bit 2 of the FTF field is 0 the is not used and the field will contain no data If bit 2 of the FTF field is 1 the BCC field will contain the block check character Size 0 bytes if bit 2 of the FTF field is 0 1 byte if bit 2 of the FTF field is 1 The block check character is the exclusive or sum XOR sum of the bytes in the FTF DataLen Address and Data fields see section 4 3 2 3 Binary Frame End field Identifies the end of a binary frame Size 1 byte The value of the BFE byte is always 0x03 ACK NAK Response Positive frame acknowledge negative frame acknowledge Size 1 byte The value for a positive frame acknowledgement ACK is 0x06 and for a negative frame acknowledgement NAK is 0x15 Note All values are formatted as little endian Intel format BASLER A400k Configuring the Camera 4 3 1 1 Error Checking and Responses ACK NAK When the camera receives a frame it checks to see if the order of the bytes in the frame is correct If the FTF field indicates that the frame includes a the camera checks to see if the XOR sum of the relevant frame fields matches the block check character Th
100. asing the offset by 396 will result in an increase of approximately one gray value 8 bit output mode or four gray values 10 bit output mode in the average pixel value for each frame transmitted by the camera Decreasing the offset by 396 will result in a decrease of approximately one gray value in the average pixel value for each frame 8 bit output mode The default offset is 2 gray values 8 bit output mode or 8 gray values 10 bit output mode 3 5 2 1 Setting the Offset You can set the offset by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the With the CCT see Section 4 1 you use the Offset setting in the Gain amp Offset parameter group to set the offset By Setting CSRs You can set the offset by writing a value to the Raw Offset field or to the Absolute Offset field of the Offset CSR see page 4 22 Section 4 2 2 explains CSRs and the difference between using the raw field and the absolute field in a CSR Section 4 3 1 explains using read write commands BASLER A400k 3 6 Basic Operation and Features Shading Correction In theory when a digital camera captures an image of a uniform object the pixel values output from the camera should be uniform In practice however variations in optics and lighting and small variations in the sensor s performance can cause the ca
101. ble 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Control Offset 0x0001 Size 1 Byte Read Write Description Writing an integer value to this field selects a bulk data control function 0x00 Enumerate 0x01 ENext 0x02 Read 0x03 Write 0x05 Activate 0x06 Create Field Name Info Offset 0x0002 Size 1 Byte Read only Description If you are performing a bulk data read or write operation this field will indicate when no more data exits 0x00 More data exists 0x01 No more data exists 0x04 No more data exists and this is an activated file Field Name File Name Offset 0x003 Size 20 Bytes Type Read Write Description Character string indicating the name of a bulk data file The field contains 20 characters left aligned zero padded Field Name Size Offset 0x0017 Size 4 Bytes Type Read only Description If the file name refers to an already existing bulk data file this field will contain the file size in bytes Otherwise the field contains zeros Field Name Data Offset 0x001B Size 1 Byte Read Write Description Byte sized register that is used to sequentially write to or read from a bulk data file You can save to one AOI list file in the non volatile memory There is a restriction on naming the file that holds the saved AOI list The file must be named
102. ce Is the LED orange and lit constantly or always Is the power source OK green Replace the Yes No It is blinking A repeated pattern of pulses indicates a problem with the camera Refer to a repeated pattern of 9 several pulses Section 6 1 for information about using the pattern to determine the problem No It is Call Basler Technical Support for blinking gt _ assistance The contact numbers appear continuously after the title page of this manual power source meets the other specs shown in Section 2 8 Is the power source OK Use a voltmeter to check the power source for the camera The output must be 12 VDC x 1 2 V Also make sure that the No Replace the power source Yes BASLER A400k 6 3 Troubleshooting Check to make sure that the RS 644 serial connection is working OK You can do this by starting the Camera Configuration Tool Plus When you start the tool a startup graphic should appear and then a window that shows a list of parameter settings should appear Go to the If this is the first time that you are using the tool you will see an empty window with RS 644 a drop down menu at the top which says No port selected In this case use the serial drop down menu to select the RS 644 port that you want to use RS 644 ports are communications identified in the list by a port number and a dll library name Once you select the troubleshooting correct po
103. command to change the value of the Enable field of the Test Image control register When you issue a write command to the camera the value in the register field will be replaced and the camera will send a write response back to the host computer Each field within a control register or an inquiry register has a specific memory address When you issue a binary read or a binary write command the address for field you want to work with is included as part of the command Section 4 3 1 describes the binary read write command format in detail Section 4 4 provides code samples for a binary read and a binary write command Binary read write commands are issued to the A400k via the RS 644 serial connection in the Camera Link interface between the frame grabber and the camera A standard application programmer s interface for asynchronous serial reading and writing via the RS 644 port on the frame grabber has been defined in the Camera Link standard Appendix B API Functions All Camera Link compatible frame grabbers provide a software library dll file named clser dll where is specific to the frame grabber vendor There are four functions exported by that DLL clSeriallnit Initialize the serial communication for a specific board clSerialRead Read bytes from the camera clSerialWrite Write bytes to the camera e clSerialClose Close the serial communication To execute the binary programming commands you can call up the f
104. d lines in the schematic The schematic shows a sample cir mse cuit for your flash device Calculate your devices so that the maximum output current is 50 mA Flash device Camera V V ISOGND ISOGND GND Figure 2 4 Flash Trigger Output Schematics BASLER A400k 2 2 Camera Interface Cable Information 2 2 1 Camera Link Cable A Camera Link compatible cable assembly is available from Basler as a stock item part 1000013905 for a 3 meter cable and part 1000013906 for a 5 meter cable Alternatively you can use the cable assembly manufactured by part 14X26 SZLB XXX OLC The maximum allowed length for the MDR cable used with an A400k is 7 meters The maximum cable length will decrease when used in an area with severe ambient electromagnetic interference 2 2 2 Power Cable A Hirose 6 pin locking plug will be shipped with each camera This plug should be used to connect the power supply cable to the camera For proper 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 must be connected to earth ground at the power supply Power requirements are given in Section 2 8 BASLER A400k 2 7 Camera Interface 2 3 2 8 Camera Link Implementation the A400k The A400k uses a National Semiconductor DS90CR287 as a Camera Link transmitter
105. d Name Camera Version Offset 0 0001 Size 3 Bytes Type Read only Description The value in this field indicates the camera s version information The bytes in the field are interpreted as follows Byte 1 Low byte of the camera version BCD coded Byte 2 High byte of the camera version BCD coded Byte 3 Register layout ID BCD coded BASLER A400k Configuring the Camera Microcontroller Firmware Version Inquiry Register Base Address 0x0700 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Microcontroller Firmware Version Offset 0x0001 Size 3 Bytes Type Read only Description The value in this field indicates the camera s microcontroller firmware version information The bytes in the field are interpreted as follows Byte 1 Low byte of the firmware version BCD coded Byte 2 High byte of the firmware version BCD coded Byte 3 Register layout ID BCD coded Processing Board s FPGA Firmware Version Inquiry Register Base Address 0x0800 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is availab
106. d bit indicates that a valid frame is being transmitted 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 The image has a maximum size of 2352x 1726 pixels Pixels are transmitted at a pixel clock frequency of 50 MHz over the Camera Link X and Y transmitters With each clock cycle four pixels are transmitted in parallel at a depth of 10 or 8 bits Therefore one line takes a maximum of 588 clock cycles to be transmitted The image is transmitted line by line from top left to bottom right Frame Valid FVAL and Line Valid LVAL mark the beginning and duration of frame and line In 10 bit mode all bits of data output from each 10 bit ADC are transmitted In 8 bit mode the two least significant bits output from each ADC are dropped and the 8 most significant bits of data per pixel are transmitted The data sequence outlined below along with Figures 2 10 and 2 11 describe what is happening at the inputs to the Camera Link transmitters in the camera Note that the timing used for sampling the data at the Camera Link receivers in the frame grabber varies from device to device On some receivers data must be sam pled on the rising edge of the pixel clock receive clock and on others it must be sampled on the falling edge Also some devices are available which let you select either rising edge or falling edge sampling Please consult
107. data CSRs is to read about the different tasks that you can perform with them Section 4 2 3 1 describes the tasks that are normally performed by manipulating the bulk data CSRs and provides a procedure for performing each task BASLER A400k 4 35 Configuring the Camera 4 2 3 1 Using a Bulk Data CSR to Work with Bulk Data Saving a Configuration Set As mentioned in Section 3 13 the work configuration set resides in the camera s volatile memory Assume that you want to save the values in the current work set to a file named UserSet01 in the camera s non volatile memory To do so you would follow this procedure 1 Use a binary write command to write the file name UserSet01 to the Name field of the configuration set bulk data CSR see page 4 41 2 Usea binary write command to set the value of the Control field in the configuration set bulk data CSR to 0x06 Setting the value to 0x06 initiates a create function This procedure would create a file called UserSet01 in the non volatile memory and would copy the current work set settings from the camera s volatile memory into the new file Sample code that illustrates how to create a bulk data file is available from Basler see Section 4 4 You can save up to four configuration set files in the non volatile memory There is a restriction on naming the files that hold saved configuration sets They must be named UserSet01 UserSet02 UserSet03 or UserSet04 If you use the n
108. data is at 10 bit depth In 4 tap 8 bit mode the camera outputs data for four pixels on each cycle of the pixel clock and the pixel data is at 8 bit depth These modes are described in detail in Section 2 5 6 The 404 can output video data using three different modes 4 tap 10 bit mode 4 tap 8 bit mode or 8 tap 8 bit mode In 4 tap 10 bit mode the camera outputs data for four pixels on each cycle of the pixel clock and the pixel data is at 10 bit depth In 4 tap 8 bit mode the camera outputs data for four pixels on each cycle of the pixel clock and the pixel data is at 8 bit depth In 8 tap 8 bit mode the camera outputs data for eight pixels on each cycle of the pixel clock and the pixel data is at 8 bit depth These modes are described in detail in Section 2 5 7 You can select the video data output mode using either the Camera Configuration Tool Plus see Section 4 1 and the configuration tool s on line help or binary commands see Section 4 3 With the configuration tool you use the Video Data Output Mode setting in the Output group to select the data output mode and with binary commands you use the Video Data Output Mode binary command 3 2 1 Setting the Video Data Output Mode You can set the video data output mode by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the CCT With the CCT see Sectio
109. defines five areas of interest The first area of interest s starting column is 1 the width is 1024 pixels the starting line is 100 and the height in lines is 500 This area of interest will be captured using an exposure time of 600 4 56 us Exposure of the second area of interest will start 3000 4 56 ys after exposure of the first area of interest The first area of interest will be run once then the area of interest in second position will follow For the first area of interest the flash trigger signal will be enabled The second area of interest s starting column is 161 the width is 512 pixels the starting line is 600 and the height in lines is 300 The second area of interest will be run three times with a delay of 2000 4 5 us between each exposure The third area of interest will be run 2000 4 5 us after the last exposure for the second area of interest For the second area of interest the flash trigger signal will be disabled The areas of interest in third fourth and fifth position are run once each Then the sequence is repeated starting with the area of interest in first position and so on 1 1024 100 500 600 3000 1 1 161 512 600 300 400 2000 3 0 3 161 512 600 300 400 2000 1 1 801 1552 321 1406 1500 8000 1 1 1 2352 1 1726 1800 10000 1 0 Position AOI Width AO Height Delay Flash Time Trigger Runs Starting Column Starting Line Time Figure 3 13 AOI List When settin
110. e HIGH signal is current limited to 50 mA 20 1 3 Not connected 4 DC Gnd Output Ground DC ground Table 2 4 A400k Pin Assignments for the 4 pin Micro miniature Receptacle The recommended mating connector is the Hirose HR 10A 7P 4P The flash trigger signal is short circuit proof Insulation voltage is 100 V BASLER A400k 2 5 Camera Interface 2 6 Flash T Trigger ExFlash or Internal Flash Window Figure 2 3 Flash Trigger Signal Timing TTL Active High Default Camera A TTL Active High output signal is typically used together with a TTL CMOS Logic Device The TTL Active High output signal has the following characteristics High output min 4 5 V at 10 mA output load shortcut current 50 mA 40 20 Low output max 0 5 V at 10 mA output load shortcut current 50 mA 40 20 ISO 5 V LN Low Side Switch Camera typically 5 V to 24 V Open Collector A A When you select this output signal variant the upper transistor is deac tivated which is shown grayed lines in the schematic tania The schematic shows a sample circuit for your flash device Calculate your devices so that the gt Y V V Flash maximum output current is 50 mA ISOGND ISOGND ISOGND device High Side Switch When you select this output signal variant the lower transistor is deac tivated which is shown by graye
111. e camera also checks to see if the number of bytes in the data field is equal to the number specified in the DataLen field If all checks are correct an ACK is sent to the host If any check is incorrect a NAK is sent Byte Time outs The camera checks the time between the receipt of each byte in the frame If the time between any two bytes exceeds 0 5 seconds the camera enters a garbage state and discards any more incoming bytes The camera remains in this state until it sees a new BFS Read Commands In the normal case when a read command is sent to the camera the camera responds with an ACK and a returned frame The returned frame will contain the data requested If the camera receives a read command with an unknown or invalid address in the Address field of the frame it will respond with an ACK but will send no frame If the host sends a read command and gets no ACK NAK the host can assume that no camera is present or the camera is in a garbage state for some reason If the host sends a read command and gets an ACK NAK but does not receive a frame within 500 ms the host can assume that there was a problem with the read command Write Command In the normal case when a write command is sent to the camera the camera responds with an ACK If the camera receives a write command with an unknown or invalid address in the Address field of the frame it will respond with an ACK but will not perform the write After a write c
112. e equal In practice slight variations in the performance of the pixels in the sensor variations in the optics and variations in the lighting will cause some variation the pixel values output from the camera This variation is know as Photo Response Non uniformity PRNU The PRNU shading correction feature on A400k cameras can correct for the variations caused by PRNU Shading correction values will only be generated for the pixels inside of the current area of interest No changes will be made to the pixels outside of the area of interest The camera can have only one set of shading correction values but you can have special shading correction values for each area of interest in the same set if the areas of interest do not overlap Creating different shading correction values for each area of interest will be necessary if you have two or more areas of interest to be captured after the other under different illumination For example in order to create special shading correction values for two areas of interest within the same set you would set the first area of interest and create correction values under the illumination for the first area of interest so the values go into the set and then you would set the second area of interest and create correction values under the illumination for the second area of interest so these values also go into the set The set would then contain shading correction values for the two areas of interest Generating a
113. e is used to issue commands to the camera for changing modes and parameters The serial link can also be used to query the camera about its current setup The Basler Camera Configuration Tool Plus is a convenient graphical interface that can be used to change camera modes and parameters via the serial connection The configuration tool is installed as part of the camera installation procedure shown in the booklet that is shipped with the camera Section 4 1 provides some basic information about the configuration tool Detailed instructions for using the tool are included in the on line help file that is installed with the tool Basler has also developed a binary read write command format that can be used to change camera modes and parameters directly from your own application via the serial connection using the API delivered with the frame grabber See Section 4 3 for details on the binary read write command format 2 6 1 Making the Serial Connection Frame grabbers compliant with the Camera Link specification are equipped with a serial port integrated into the Camera Link interface that can be used for RS 644 serial communication The characteristics of the serial port can vary from manufacturer If you are using the Basler to configure the camera the tool will detect the characteristics of the serial port on the frame grabber and will determine the appropriate settings so that the tool can open and use the port acteris
114. e work configuration set is located in the camera s volatile memory and the settings are lost if the camera is reset or if power is switched off A400k cameras can save the current work set values in the volatile memory to a file in the camera s non volatile memory Files saved in the non volatile memory are not lost at reset or power off You can save up to four configuration sets to files in the non volatile memory These saved configuration sets are commonly referred to as user configuration sets or user sets Saving a Configuration Set You can save the current work set to a file in the non volatile memory by using the Camera Configuration Tool Plus or by using binary read write commands from within your own application to set the camera s control and status registers CSRs With the With the CCT see Section 4 1 you use the File Name Select parameter and the Create User Set parameter in the User Set Files parameters group Make sure that you save the work set to user set 1 2 3 or 4 only Further user sets are offered but must not be used If you select to save it to user set 5 or higher the work set will not be saved By Setting CSRs You can save the current work set to a file in the non volatile memory by writing values to the bulk data CSR for configuration sets The bulk data save process is used to save the work set to a file Section 4 2 3 explains the bulk data CSRs and explains how to use the CSRs to
115. eak connections The camera is equipped with an undervoltage lockout An input voltage below 10 8 VDC will cause the camera to automatically switch off The camera has no overvoltage protection An input voltage higher than 13 2 VDC will damage the camera The camera is not protected for reverse voltage If reverse voltage is applied to the camera while it is connected to a frame grabber in a PC the camera could be seriously damaged BASLER A400k 2 1 Camera Interface Status LED First Camera Link Flash Trigger Second Camera Link A403k amp A404k only 12 VDC Power Figure 2 1 A400k Connectors and LED The camera housing is not grounded and is electrically isolated from the circuit boards inside of the camera Note that the connectors at the camera are described NOT the connectors re quired at the connecting cables Figure 2 2 A400k Pin Numbering 2 2 BASLER A400k Camera Interface 2 1 2 Pin Assignments for the 26 Pin MDR Connector s The 26 pin connector on the camera is a female 0 050 inch MDR connector as called for in the Camera Link Specification It is used to interface video data control signals and configuration data The pin assignments for the 26 pin MDR connector are given in Table 2 1 Table 2 2 provides the pin assignments for the second 26 pin MDR connector that is only present on A403k and A404k cameras First MDR Connector
116. ed moving diagonal stripe pattern 0x04 Test image four enabled horizontal stripe pattern See Section 3 11 for more information about test images 4 32 BASLER A400k Configuring the Camera Serial Communication CSR An RS 644 serial connection is integrated into the Camera Link interface between the frame grabber installed in your computer and the camera This serial connection is used to issue commands to the camera for changing modes and parameters You can use this CSR to set the bitrate for the camera s RS 644 serial port The default setting is 9600 bps The setting is changed immediately after the successful receipt of this command Register Base Address 0 0000 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Bitrate Offset 0x0001 Size 1 Byte Read Write Description Writing an integer value to this field sets the bit rate 0x01 50 bps 0 0 3600 bps 0x02 75 bps 0x0D 4800 bps 0x03 110 bps OxOE 7200 bps 0x04 134 5 bps OxOF 9600 bps default 0x05 150 bps 0x10 14400 bps 0x06 200 bps 0x11 19200 bps 0x07 300 bps 0x12 38400 bps 0x08 600 bps 0x13 57600 bps 0x09 1200 bps 0
117. ee Section 4 1 you use the Stamp parameter in the Output parameters group to enable or disable the stamp feature By Setting CSRs You can enable disable the stamp feature by writing a value to the Mode field of the Stamp CSR see page 4 30 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k Basic Operation and Features 3 10 Color Creation in the A400kc The CMOS sensor used in the A400kc is equipped with an additive color separation filter known as a Bayer filter With the Bayer filter each individual pixel is covered by a micro lens which lets light of only one color strike the pixel The pattern of the Bayer filter used in the A400kc is shown in Figure 3 17 As the figure illustrates within each block of four pixels one pixel sees only red light one sees only blue light and two pixels see only green light This combination mimics the human eye s sensitivity to color Pixel 1 1
118. een setto a value that is out of range or not allowed or in conflict with other settings 4 A user set load has failed 5 A file operation has failed 6 Reserved 7 A binary read write command protocol error has been detected For more in formation about the error read the Binary Command Protocol Status Inquiry register see page 4 12 This bit is auto cleared on read 8 15 Reserved 16 An FPGA not ready error has occurred For more information about the er ror read the FPGA Status Inquiry registers see pages 4 10 and 4 11 This bit clears when you read the FPGA Status Inquiry registers 17 A trigger error has occurred Either the frame rate has been exceeded or the ExSync signal is missing For more information about the error read the FPGA Status Inquiry registers see pages 4 10 and 4 11 This bit clears when you read the FPGA Status Inquiry registers 18 Reserved 19 The last column FPN shading value generation process failed The column FPN shading value generation process can fail if the pixel val ues in the frames captured during the generation process are too high The process should be performed in darkness or in very low light conditions This bit will clear when you perform a successful shading value generation procedure 20 31 Reserved BASLER A400k 4 9 Configuring the Camera Processing Board s FPGA Status Inquiry The camera has been programmed to detect several error conditions in its field programmable
119. en Using an ExSync Signal In ExSync edge controlled mode and programmable mode minimum high time for the ExSync signal is 2 us minimum low time 2 us In ExSync level controlled mode minimum high time for the ExSync signal is 9 12 us minimum low time 4 56 us In ExSync programmable mode the minimum exposure time setting is 4 56 us Due to the sensor design the exposure time can only be set in integer multiples of 4 56 us that is 4 56 us 9 12 us 13 68 us and so on 3 3 1 3 Selecting an ExSync Exposure Mode amp Setting the Exposure Time You can select an ExSync exposure time control mode and set the exposure time for the ExSync programmable mode by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the CCT With the CCT see Section 4 1 you use the Exposure Time Control Mode setting in the Exposure parameter group to select the ExSync edge controlled ExSync level controlled or ExSync programmable exposure time control mode If you select the ExSync programmable mode the CCT will also let you enter an exposure time By Setting CSRs You can select the exposure time control mode by writing a value to the Mode field of the Exposure Time Control Mode CSR see page 4 15 If you select the ExSync programmable mode you will also need to set the exposure time You can set the exposure time by writing a
120. ence outlined below along with Figures 2 8 and 2 9 describe what is happening at the inputs to the Camera Link transmitter in the camera Note that the timing used for sampling the data at the Camera Link receiver in the frame grabber varies from device to device On some receivers data must be sam pled on the rising edge of the pixel clock receive clock and on others it must be sampled on the falling edge Also some devices are available which let you select either rising edge or falling edge sampling Please consult the data sheet for the re ceiver that you are using for specific timing information Video Data Sequence for the A402k When the camera is not transmitting valid data the frame valid and line valid bits sent on each cycle of the pixel clock will be low The camera can begin capturing a new frame while it is sending data for a previously captured frame It can also capture a frame and then send it before beginning capture of a new frame When frame valid becomes high the camera starts to send valid data On the pixel clock cycle where frame data transmission begins the frame valid bit will become high 24 pixel clocks 480 ns later the line valid bit will become high On the pixel clock cycle where data transmission for line one begins the line valid bit will become high Two data streams DO and D1 are transmitted in parallel during this clock cycle On this clock cycle data stream DO will transmit data fo
121. er Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 7 The register is not available 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Absolute Exposure Time Offset 0x0001 Size 4 Bytes Read Write Description Writing a floating point value to this field sets the exposure time in us For example if the value in this field is set to 9 12 the exposure time will be 9 12 us The exposure time can normally range from 4 56 us to 19 119 997 00 us in increments of 0 01 The actual available range may be limited by the way any related parameters are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber See Section 3 3 for more information about exposure time Field Name Absolute Min Offset 0x0005 Size 4 Bytes Type Read only Description Minimum allowed floating point value for the absolute exposure time setting This field is updated to reflect limitations caused by the way any related features are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Absolute Max Offset 0x0009 Size 4 Bytes Read only Description Maximum allowed floating point value for the absolute exposure time setting This field is updated to reflect
122. erface between the frame grabber and the camera The tool automatically generates the binary programming commands that are described in Section 4 3 For instructions on installing the tool see the installation booklet that was shipped with the camera This manual assumes that you are familiar with Microsoft Windows and that you have a basic knowledge of how to use programs If not please refer to your Microsoft Windows manual 4 1 1 Opening the Configuration Tool 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 CCT click Start click All Programs click Basler Vision Technologies and click CCT default installation During start up a start up screen can be seen If start up is successful the tool will open To familiarize yourself with using the tool press the F1 key and look through the online help included with the tool If an error occurs the tool is automatically closed after start up Refer to the Installation Guide for possible causes 4 1 2 Closing the Configuration Tool Close the by clicking on the Bl button the upper right corner of the window 4 1 3 Configuration Tool Basics The volatile RAM memory in the camera contains the set of parameters that controls the current operation of the camera This set of parameters is known as the work configuration set or work set see Section 3 13
123. erform the following steps 1 For optimum performance make sure that a set of column FPN shading correction values has been created before Doing DSNU shading correction before column FPN shading correction can result in image quality degradation As DSNU varies depending on the temperature make sure that the camera has reached its operating temperature Make sure that the area of interest is set to the area where you want to generate values Cover the camera lens close the iris in the camera lens or darken the room so that the camera will be capturing frames in complete darkness Set the gain as you would for normal system operation Make sure that the offset is set so all gray values including the noise are around 16 8 bit mode or 64 10 bit mode or lower Signal the camera to generate a set of DSNU shading values C You can start the generation of a set of DSNU shading values by using the Camera Configuration Tool Plus see Section 4 1 With the you set the Shading Value Generate parameter in the DSNU amp PRNU Shading Correction parameters group to start the generation of a set of DSNU shading values d You can also start the generation of the DSNU shading table by using a binary write command see Section 4 3 to write a value to the Generate field of the DSNU or PRNU Shading Value Generate CSR see page 4 24 The camera must capture at least eight frames to create a set of DSNU shading correction values
124. et is a set of values that contains all of Non volatile the parameters needed to control the camera There are Memory two basic types of configuration sets the work Flash Volatile configuration set and the factory configuration set Memory gs Work Configuration Set The work configuration set contains the camera s current settings and thus determines the camera s performance that is what your image currently looks like If you use the CCT to change the camera settings or if you change settings by writing to the camera s registers you are making changes to the work configuration set The work configuration set is located in the camera s volatile Figure 3 27 Configuration Sets memory and the settings are lost if the camera is reset or if power is switched off The work configuration set is usually just called the work set for short Factory Configuration Set When a camera is manufactured a test setup is performed on the camera and an optimized configuration is determined The factory configuration set contains the camera s factory optimized configuration The factory set is saved in a permanent file in the camera s non volatile memory The factory set can not be altered and since it is stored in non volatile memory it is not lost when the camera is reset or switched off The factory configuration set is usually just called the factory set for short 3 13 1 Saving Configuration Sets As mentioned above th
125. etting CSRs You can set mode 1 2 3 or 4 by writing a value to the Mode field of the Programmable AOI Sequencer CSR see page 4 30 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k 3 9 Basic Operation and Features Stamp The stamp feature provides the user with information about the area of interest settings of each captured image When the stamp feature is enabled the video data of the last 11 pixels of the last image line that is the bottom right of each transmitted image is replaced by 11 stamp pixels Each stamp pixel carries an 8 bit value that conveys information about the area of interest of the transmitted image The table below shows the function of each stamp pixel by position A more detailed explanation of how to interpret the pixel values follows the table Position Function Position Function 1 AOI Sequence Position Number S7 AOI Width LSByte S2 AOI Sequence Run Counter S8 AOI Starting Line MSByte S3 Frame Counter S9 AO Starting Line LSByte S4 AOI Starting Column MSByte S10 AO Height MSByte S5 AOI Starting Column LSByte S11 AO Height LSByte S6 AOI Width MSByte Table 3 2 Stamp Pixel Functions Stamp Pixels S1 and S2 Stamp pixels S1 and S2 are only active when the Programmable AOI Sequencer feature is used see Section 3 8 4 1 represents the position number of the area of
126. ferred to only when necessary BASLER A400k 1 1 Introduction Camera Version Max Frame Rate Camera Link Interface A402k 24 fps Base configuration A403k 48 fps Medium configuration A404k 96 fps Full configuration Table 1 1 Versions of the A400k Series Camera 1 2 Performance Specifications 1 2 Specifications A402k A402kc A403k A403kc A404k A404kc Sensor Micron MV40 CMOS active pixel digital image sensor Number of Pixels 2 352 H x 1 726 V 4 059 552 pixels Pixel Size 7 0 um x 7 0 um 7 0 pixel pitch Pixel Fill Factor 55 Sensor Imaging 16 46 mm H x 12 10 mm V 20 43 mm Diagonal Area Mono or Color Mono Color Mono Color Mono Color Digital Responsivity 2500 LSB lux s Quantum Efficiency Figure Figure Figure Figure Figure Figure 1 1 1 2 1 1 1 2 1 1 1 2 Dynamic Range 54 dB Shutter Fast electronic rolling shutter PRNU Photo Response Non uniformity 196 rms Lower if PRNU shading correction is used monochrome versions only at full resolution progressive scan progressive scan DSNU 0 1 rms if no DSNU shading correction is used Dark Signal Non Lower if DSNU shading correction is used uniformity Kdrk 100 8 Dark Current Tem perature Coefficient Pixel Clock Speed 50 MHz Frame Rate 24 fps 48 fps 48 fps in 4 tap mode 96 f
127. ffset 0x0017 Size 4 Bytes Type Read only Description If the file name refers to an already existing bulk data file this field will contain the file size in bytes Otherwise the field contains zeros Field Name Data Offset 0x001B Size 1 Byte Read Write Description Byte sized register that is used to sequentially write to or read from a bulk data file You can save up to one DSNU shading value file in the non volatile memory There is a restriction on naming the file that holds the saved set of DSNU shading values The file must be named offsetshading BASLER A400k Configuring the Camera PRNU Shading Value CSR Monochrome Versions Only See Section 4 2 3 1 for information about using bulk data control registers Register Base Address 0x2A00 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Control Offset 0x0001 Size 1 Byte Read Write Description Writing an integer value to this field selects a bulk data control function 0x00 Enumerate 0x01 ENext 0x02 Read 0x03 Write 0x05 Activate 0x06 Create Field Name Info Offset 0x0002 Size 1 Byte Read only
128. for the absolute offset setting This field is updated to reflect limitations caused by the way any related features are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Absolute Max Offset 0x0009 Size 4 Bytes Read only Description Maximum allowed floating point value for the absolute offset setting This field is updated to reflect any limitations caused by the way any related features are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Raw Offset Offset 0x000D Size 2 Bytes Read Write Description Writing an integer value to this field sets the offset The value can normally range from 096 0x00 to 10096 0x64 in increments of 1 The ac tual available range may be limited by the way any related parameters are set The 2 bytes in this field are interpreted as 16 bit signed integer Byte 1 Low byte of the raw value Byte 2 High byte of the raw value See Section 3 5 for more information about offset Field Name Raw Min Offset 0 000 Size 2 Bytes Read only Description Minimum allowed integer value for the raw offset setting This field is updated to reflect lim itations caused by the way any related features are set The 2 bytes in this field are interpreted as 16 bit signed integer Byte 1 Low byte of the minimum raw value Byte 2 High by
129. further restrictions BASLER A400k 2 5 Camera Interface Output Signals Data is output from the A400k using the Camera Link standard The Pixel Clock signal is described in Section 2 5 1 the Line Valid signal in Section 2 5 2 the Frame Valid signal in Section 2 5 3 and the video data in Section 2 5 4 Video Data output is described in Sections 2 5 5 and 2 5 6 Section 2 5 8 describes the flash trigger signal SerTFG Serial to Frame Grabber of the serial communication is described in Section 2 6 2 5 1 Pixel Clock On the A402k the pixel clock is assigned to the strobe port TxClk on Camera Link transmitter X as defined in the Camera Link standard and as shown in Table 2 5 On the A403k the pixel clock is assigned to the strobe port on Camera Link transmitter X and Camera Link transmitter Y as defined in the standard and as shown in Tables 2 6 and 2 7 On the A404k the pixel clock is assigned to the strobe port on transmitters X Y and Z as defined in the standard and as shown in Tables 2 8 2 9 and 2 10 The pixel clock is used to time the sampling and transmission of pixel data The Camera Link transmitter s used in A400k cameras require pixel data to be sampled and transmitted on the rising edge of the clock The frequency of the pixel clock is 50 MHz For the A402k on each Pixel Clock signal two pixels are transmitted at 8 bit or 10 bit depth For the A403k on each Pixel Clock signal four pixels are transmitted a
130. g the Camera Configuration Tool Plus CCT or by using binary read write commands from within your own application to set the camera s control and status registers CSRs With the CCT With the CCT see Section 4 1 you use the Create DSNU Shading Values File parameter in the DSNU Shading Value File parameters group to save the DSNU shading set currently in the volatile memory to file in the non volatile memory By Setting CSRs You can save the current shading correction values to a file in the non volatile memory by writing values to the bulk data CSR for DSNU shading values Section 4 2 3 explains the bulk data CSRs and explains how to use the CSRs to save the shading values to a file Section 4 3 1 explains using read write commands save the current work set to your standard user set the camera will automatically load and use shading correction at next power on Loading will take approximately 90 seconds After 90 seconds the camera will start image capture and be able to receive commands If you save the set of DSNU values to file enable the use of shading correction and BASLER A400k Basic Operation and Features 3 6 3 PRNU Shading Correction Monochrome Versions Only In theory when an area scan camera with a digital sensor captures a frame with the camera viewing a uniform white target in bright light all of the pixel values in the frame should be near their maximum gray value and they should b
131. g up the AOI list a few guidelines must be observed When the AOI sequencer feature is enabled global area of interest exposure time frame period and parameter set cache parameter settings have no effect on the image If global area of interest exposure time frame period and or parameter set cache parameter settings are modified while the AOI sequencer feature is active the modifications will be saved but will only become active after the AOI sequencer feature is disabled The area of interest setup guidelines described in Section 3 8 1 must be observed BASLER A400k Basic Operation and Features Exposure time and delay time settings represent multipliers and the actual exposure time is equal to the setting x 4 56 us The range of possible settings is 1 to 4 194 303 for the expo sure time 4 56 us to 19 12 s and 2 to 4 194 303 for the delay time 9 12 us to 19 12 s Oto 255 runs can be set If the runs setting is 0 the area of interest will be skipped The flash trigger setting can be 1 or 0 where 1 enables the flash trigger signal and 0 disables the flash trigger signal see also Section 2 5 8 fthe flash trigger setting is 1 and the flash window signal is output via the flash trigger signal Sections 2 5 8 and 3 4 2 the exposure time setting in the AOI list must be equal to or higher than the sum of the height of the area of interest plus the width of the flash window Exposure Time Setting gt AOI Height Setting
132. gate array FPGA on the processing board When an error condition is detected a flag is set The FPGA status inquiry register lets you read the error flags Register Base Address 0 0 10 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Main FPGA Status Offset 0x0001 Size 1 Byte Type Read only Description Each bit in this field specifies an error condition see table below Bit O is the least signifi cant bit If a bit is setto 1 the error condition assigned to that bit is present If the bit is set to 0 the error is not present Bit Description No FPGA firmware available FPGA firmware is available but the firmware has failed to load The camera s maximum frame rate has been exceeded There is no ExSync signal The FPGA is not ready Parameter error for example a parameter has been set to a value that is out of range or not allowed or in conflict with other settings Reserved Reserved c1 Oo BASLER A400k Configuring the Camera Sensor Board s FPGA Status Inquiry The camera has been programmed to detect several error conditions in its field programmable gate array FPGA on the sensor board When an error condition is detected a flag is set The FPGA status inquiry register lets yo
133. ger Runs Note that AOI runs and flash trigger must be 16 bit settings while exposure time and delay time must be 32 bit settings 3 Save the file 4 Proceed with Section 3 8 4 3 BASLER A400k Basic Operation and Features 3 8 4 3 Uploading an AOI List to the Camera Once you have an AOI list hex file in place you can upload the hex file to the camera With the hex file uploaded to the camera the camera will use the settings in the file as soon as the AOI sequencer feature is enabled Uploading the hex file will also save the file in the camera s non volatile memory If an AOI list file already exists it will be overwritten Uploading a HEX File to the Camera You can upload the hex file to the camera by using the Camera Configuration Tool Plus or by using binary read write commands from within your own application to set the camera s bulk data control and status registers CSRs With the With the see Section 4 1 you use the Upload AOI List File setting in the AOI List File parameters group to upload the hex file to the camera By Setting CSRs You can upload the hex file to the camera by writing values to the bulk data CSR for the Programmable AO Sequencer feature Section 4 2 3 explains bulk data CSRs and using the bulk data activate process Section 4 3 1 explains using read write commands BASLER A400k 3 31 Basic Operation and Features 3 8 4 4 Enabling Disabling the AOI List
134. gnal provided by the frame grabber and the signal is high while the ExFlash signal from the frame grabber is high The signal is tied to the ExFlash input signal provided by the frame grabber and the signal is low while the ExFlash signal from the frame grabber is high In addition four switching options are programmable TTL Open oollector or Low Side Switch 5 V max High Side Switch 5 V High Impedance The switching options are explained on page 2 5 If the exposure time setting on the camera is lower than the minimum flash exposure required see page 3 9 no flash trigger signal will be output 2 5 8 1 Setting the Flash Trigger Signal You can set the flash trigger signal using either the Camera Configuration Tool Plus or binary commands With the With the see Section 4 1 you use the settings in the Flash Trigger parameter group By Setting CSRs You can program the flash trigger signal by writing a value to the Mode field of the Flash Trigger Output Mode CSR and Flash Trigger Switching Mode CSR see page 4 31 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k Camera Interface 2 6 RS 644 Serial Communication The A400k is equipped for RS 644 serial communication via the frame grabber as specified in the Camera Link standard The RS 644 serial connection SerTC SerTFG in the Camera Link interfac
135. he camera The camera calculates the column FPN shad ing correction values and creates the table of correction values When column FPN shading correction value generation is complete the set of column FPN values will be placed in the camera s volatile memory This set of values will overwrite any shading values that are already in the memory After column FPN shading correction value generation is complete the camera reloads the original set of parameters and continues to capture images and output data BASLER A400k 3 13 Basic Operation and Features Enabling Column FPN Shading Correction A column FPN shading correction overwrites the column FPN shading correction that is done by the sensor s self calibrating circuitry Once you have a set of column FPN shading correction values in place the camera automatically starts to use the generated column FPN shading correction table to apply the appropriate offset to each pixel to correct for column FPN Use of column FPN shading correction can not be disabled Resetting Column FPN Shading Correction A column FPN shading correction overwrites the column FPN shading correction that is done by the sensor s self calibrating circuitry To reproduce the FPN shading correction done by the sensor s self calibrating circuitry you can reset the column FPN shading correction to the original values with the Camera Configuration Tool Plus or by using binary read write commands from within your own applicatio
136. he schematic in Figure 2 5 shows the interface for the A402k and a typical implementation for the frame grabber interface The 405 and the A404k when set for 4 tap output use the medium configuration of Camera Link with two differential line transmitters The transmitters in the camera are designated as Transmitter X and Transmitter Y The schematic in Figure 2 6 shows the interface for the A403k and a typical implementation for the frame grabber interface The A404k when set for 8 tap output uses the full configuration of Camera Link with three differential line transmitters The transmitters in the camera are designated as Transmitter X Transmitter Y and Transmitter Z The schematic in Figure 2 7 shows the interface for the A404k and a typical implementation for the frame grabber interface BASLER A400k Camera Interface EE CEDERE MDR Cable DS90CR287 Transmitter X DS90CR288A Receiver X Port AO 1 Port A2 Pair 1 Port A3 Port A4 Pair 1 Port A5 PotBo PotB1 Port B2 Port B3 Pair 2 Port B3 Port B4 Port B5 Pair 2 Port C1 Port C2 4 Port C5 LVAL Pair 3 FVAL DVAL Portae Port A7 7 Port B6 Pair 5 Port B7
137. ication 6 7 Revision MIstory s lt c2cese sens IE i Feedback eee hes iii PRETI BASLER A400k vi BASLER A400k Introduction 1 Introduction BASLER A400k area scan cameras are high speed CMOS cameras designed for industrial use Superb CMOS image sensing features are combined with a robust high precision manufactured housing Important features are High speed Fast 4 megapixel CMOS digital image sensor Fast electronic rolling shutter Electronic exposure time control Shading correction Partial scanning Area of Interest Programmable area of interest sequencer Digital shift 2x 4x Flash trigger output Programmable via an RS 644 serial port Complies with the Camera Link standard Industrial housing manufactured with high planar parallel and angular precision 1 1 Camera Versions 400 series area scan cameras are available in different versions the version depends on the maximum frame rate and the Camera Link interface All versions are available in monochrome models A402k A403k A404k and in color models A402kc A403kc A404kc Throughout the manual the camera will be called the A400k Passages that are only valid for specific version will be so indicated Throughout the manual the statements relating to the monochrome versions also apply to the color versions The color versions will specifically be re
138. ield would not be valid because it is not the equivalent of any value you could enter in the raw field What happens if you enter an invalid value in the absolute field This is not really a problem because the camera will automatically change the value you entered to the nearest valid value For example if you entered 13 69 in the raw field the camera would automatically change the value to 13 68 Because the camera automatically changes any entry in an absolute field to the nearest valid value you do not need to worry about entering equivalent values However you do need to be aware of the camera making small adjustments unless you entered a valid value Accordingly if you read back a value in an absolute field you may find that it is slightly differ ent from the value that you entered the field 4 14 BASLER A400k Configuring the Camera 4 2 2 2 Feature Control and Status Register Details Video Data Output Mode CSR Register Base Address 0x1700 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this control register 0x00 7 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Mode Offset 0x0001 Size 1 Byte Read Write Description Writing an integer value to this field sets the video data output mode 0
139. ilation camera eee eee abet video data coser video data output video data output mode setting with binary commands video data output mode s A402k explained BASLER A400k Index A403k explained 2 24 2 27 2 28 explained uli 3 3 video data output 1 3 weight Camera s vues bre SNPRA 1 3 work set explained se ba em d 3 42 relationship to the config tool 4 2 write command error 4 49 example aor qt eus 4 51 explained 4 46 vii
140. ils 4 41 Configuration Set CSR 4 41 DSNU Shading Value CSR 4 42 PRNU Shading Value CSR Monochrome Versions Only 4 43 AQILISUGSR e tL ten b Es 4 44 4 3 Using Binary Read Write Commands on the 400 4 45 4 3 1 The Binary Read Write Command Protocol 4 46 4 3 1 1 Error Checking and 4 49 4 3 2 Basic Read Write Command Explanations 4 50 4 3 2 1 Read Command ees 4 50 4 3 2 2 Write 4 51 4 3 2 3 Calculating the Block Check Character BCC 4 52 4 4 Binary Command Sample Code 4 53 5 Mechanical Considerations 5 1 Camera Dimensions and Mounting Facilities 5 1 5 2 F Mount Adapter Dimensions sanaaa 5 3 iv BASLER A400k 5 3 Positioning Accuracy of the Sensor Chip 5 4 6 Troubleshooting 6 1 Fault Finding Using the Camera LED 6 1 6 2 Troubleshooting e 6 3 6 2 1 No Image eet Reed eer eX ed wed Re eld es neben ded 6 3 6 2 2 Poor Quality Image e Ry ien 6 5 6 2 3 Interfacing ze coe e odes ate ee p bx cbe doe 6 6 6 2 4 RS 644 Serial Commun
141. in the BFE field is always 0x03 BASLER A400k 4 51 Configuring the Camera 4 3 2 3 Calculating the Block Check Character BCC The use of a block check character BCC in A400k commands is optional see pages 4 46 and 4 47 If you choose to use a the will be the exclusive or sum XOR sum of the bytes in the FTF field the DataLen field the Address field and the Data field of the command frame For the write command example shown in Section 4 3 2 2 the block check character is 0x18 Let s consider how this block check character was calculated Calculating XOR sums is most easily understood when numbers are shown in their binary form so in the example calculations shown below the hexadecimal digits in our command have been converted to binary To find the XOR sum of two binary numbers you add the two digits in each column using the following rules If both digits are 0 the result is 0 If both digits are 1 the result is O If one of the digits is a 1 and the other is 0 the result is 1 With all of this in mind here is how the check digit for the write command shown in Section 4 3 2 2 would be calculated 0000 0100 the binary representation of 0x04 0000 0100 the binary representation of 0x04 DataLen 0000 00 0 0 XOR sum 0000 00 0 0 Previous XOR Sum 0000 0001 the binary representation of 0x00 Address Byte 1 0000 00 0 1 New XOR sum 0000 00 0 1 Previous sum
142. ion The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Protocol Status Offset 0x0001 Size 1 Byte Type Read only Description Each bit in this field specifies an error condition see table below Bit 0 is the least signifi cant bit If a bit is set to 1 the error condition assigned to that bit is present If the bit is set to 0 the error is not present Bit Description A binary command with no BFS was received see Section 4 3 1 A byte time out has occurred see Section 4 3 1 1 A binary command with an invalid OpCode was received see Section 4 3 1 A binary command with no BFE was received see Section 4 3 1 A binary command with an incorrect BCC was received see Section 4 3 1 A binary command with an address error was received see Section 4 3 1 Reserved An unknown error has occurred OO BASLER A400k Configuring the Camera 4 2 2 Feature Control and Status Registers The feature control and status registers CSRs let you set the parameters for camera features such as exposure mode gain offset and the AOI These registers also let you check the current parameter settings and the status for each feature Each feature has one or more CSRs associated with it The fields within a feature s CSR s are used to control how the feature operates By using a binary write command to w
143. ions 1 2 and 2 8 Corrected the length of the camera housing in Section 1 2 Added a note in Section 3 11 Corrected the drawings in Section 5 DA00062404 7 October 2004 Added A404k info DA00062405 18 March 2005 Added A400kc info Corrected Table 2 1 functions of pins 7 20 8 21 Corrected Sections 3 11 1 3 11 2 3 11 4 Modified in Section 4 2 2 2 descriptions of raw gain and raw offset settings from 0 to 100 Removed sample code in Section 4 4 Added a note in Section 4 4 DA00062406 14 April 2005 In Section 4 2 2 2 the ID for the flash trigger output mode Always high is 0x03 and not 0x04 BASLER A400k Revision History ii BASLER A400k 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 A400k Feedback iv BASLER A400k Index A AOI list upload to area of interest programmable AOI sequencer setting with binary commands area of interest sequencer see programmable AO sequencer B bayer binary command binary commands error checking 4 46
144. is as follows 8 bit Gray level x y 1 MOD 256 10 bit Gray level x y 1 MOD 1024 where x and y are natural numbers enumerating lines and columns respectively According to the number of pixels present x ranges in steps of 1 Figure 3 21 Test Image Two 10 Bit from 1 to 1726 and y ranges in steps of 1 from 1 to 2352 BASLER A400k 3 37 Basic Operation and Features The expression is shown graphically in Figure 3 22 gray levels 255 1023 8 bit 10 bit pixel 0 numbers Figure 3 22 Formation of Monochrome Test Image 3 11 3 Test Image Three Moving Diagonal Stripe Pattern Test image three is useful for determining if your camera is reacting to an ExSync signal The basic pattern of the test image is a diagonal stripe pattern as explained in Section 3 11 2 but the pattern of the image moves up by one pixel each time the ExSync signal cycles When you view the output of a camera that is set for test image three the pattern should appear to be gradually moving up the screen If the camera is set for free run each cycle of the camera s internal control signal will cause the pattern of the test image to move up by one pixel A Figure 3 23 Test Image Three 8 Bit 4 Figure 3 24 Test Image Three 10 Bit 3 38 BASLER A400k Basic Operation and Features 3 11 4 Test Image Four Horizontal Stripe Pattern Test image four is useful for determining if your frame g
145. k compatible cable For complete information on the k BIC refer to the k BIC User s Manual and the k BIC Installation Guide that are available at www basler vc com DC Power A400k cameras require 12 VDC 10 power The maximum power consumption is 6 5 7 0 7 5 W for the A402k A403k A404k respectively The maximum current during constant operation is 833 mA Peak currents may occur We recommend to use 1 5 A power supplies Ripple must be less than 196 Also note the information about the 6 pin connector in Section 2 1 3 and on the power cable in Section 2 2 2 A Hirose plug will be shipped with each camera This plug should be used to connect the power supply cable to the camera For proper EMI protection the power supply cable attached to this plug must be a twin core 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 Make sure that the polarity is correct BASLER A400k Camera Interface Caution Be sure that all power to your system is switched off before you make or break connections to the camera Making or breaking connections when power is on can result in damage to the camera If you can not switch off power be sure that the power supply connector is the last connector plugged when you make connections to the camera and the first connector unplugged when you break connecti
146. k 4 39 Configuring the Camera Uploading a Bulk Data File from a PC to the Camera You can upload a bulk data file from your host PC to the camera s non volatile memory When you upload a bulk data file from the PC to the camera it will overwrite any existing bulk data file in the camera that has the same name As an example assume that you previously downloaded a configuration set bulk data file named UserSet02 to your PC Also assume that you now want to upload this file from your host PC to the camera To do so you would follow this procedure 1 Use a binary write command to write the file name UserSet02 to the Name field of the configuration set bulk data CSR 2 Use a binary write command to set the value of the Control field in the configuration set bulk data CSR to 0x03 Setting the value to 0x03 places the camera in write mode 3 Use a binary command to do a bulk data write to the camera The binary write command must have the following characteristics OpCode 0x04 This OpCode makes the command a bulk data write DataLen the number of bytes to be read Max is 255 characters Address 0x281B Base address for the configuration set bulk data CSR plus the offset for the Data field Data Bytes to be written 4 Repeat step 3 as many times as needed to write all of the data from the PC to the camera 5 Close the bulk data file in the camera To close the file use a binary write command to set the va
147. k data CSR instead Sample code that illustrates how to enumerate bulk data files is available from Basler see Section 4 4 BASLER A400k Configuring the Camera Downloading a Saved Bulk Data File from the Camera to a PC You can download an existing saved bulk data file from the camera s non volatile memory to your host PC As an example assume that the camera has an existing saved configuration set file named UserSet02 and that you want to download this file from the camera to your host PC To do so you would follow this procedure 1 Use a binary write command to write the file name UserSet02 to the Name field of the configuration set bulk data CSR 2 Use binary read command to read the Size field of the configuration set bulk data CSR If the file exists this field will tell you the file size If the file does not exist this field will be O 3 Use a binary write command to set the value of the Control field in the configuration set bulk data CSR to 0x02 Setting the value to 0x02 places the camera in read mode 4 Use a binary command to do a bulk data read from the camera The binary command must have the following characteristics OpCode 0x05 This OpCode makes the binary command a bulk data read DataLen the number of bytes to be read Max is 255 characters Address 0x281B Base address for the configuration set bulk data CSR plus the offset for the Data field Data none 5 You receive a bulk data res
148. kc second 26 pin female MDR connector data Power Require ments 12 VDC 10 Max 6 5 W 12 VDC 12 VDC 10 Max 7 0 W 12 VDC 12 VDC 10 Max 7 5 W 12 VDC Lens Adapter F mount Housing Size L x W x H Including Connec tors Without lens adapter 53 8 mm x 90 mm x 90 mm With F mount adapter 85 3 mm x 90 mm x 90 mm Weight without lens 500g 510g 510g adapter 605 g 615g 615g with F mount adapter Conformity CE FCC Table 1 2 A400k Performance Specifications BASLER A400k 1 3 Introduction 1 3 Spectral Response a A o N Quantum Efficiency wo e Cc 400 500 600 700 Wavelength nm 800 900 1000 Figure 1 1 Quantum Efficiency for 400 Cameras peak at 46 at 620 nm MY 40 COLOR Quantum Efficiency 5 c D ka c m 5 lt Figure 1 2 Color Quantum Efficiencies for 400 Cameras 450 500 550 600 Wavelength nm 650 700 BASLER A400k Introduction The spectral response curves exclude lens characteristics and light source characteristics To obtain best performance regarding the camera s blooming smearing and dark signal non uniformity characteristics use of a dielectric IR cut off filter is recommended The filte
149. l modifications are written to the camera but they do not become active The camera continues to operate under the control of the old settings The modifications will only become active after the parameter set cache feature is disabled again When the parameter set cache feature is disabled again all modifications become active simultaneously after the last valid frame that used the old settings time control mode exposure time frame period area of interest and test image only Modifications to other parameter settings will become active immediately even if pa rameter set cache is enabled Parameter set cache is effective for modifications to the video data format exposure To avoid rejections see Section 3 15 make sure that your order of modifications produces valid combinations after every modification For example to change the area of interest from starting column 861 width 512 to full resolution set the start ing column to 1 first and only afterwards the width to 2 352 see Section 3 8 Setting the width first would cause the modification to be rejected by the camera 3 14 1 Enabling Disabling Parameter Set Cache You can enable disable the parameter set cache feature by using the Camera Configuration Tool Plus CCT or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the CCT With the CCT see Section 4 1 you use the Par
150. lained ee eee 55 3 5 Q quantum efficiency 1 2 1 4 R read command error checking 4 49 a 4 50 explained 2 2 4 46 rolling shutter explained oee DEDERE LER 3 8 BASLER A400k sensor sensor imaging 1 serial communication serial connection see RS 644 serial connection serial number viewing with binary commands serial port setting with binary commands shading correction generating with binary commands shading correction mode specifications CAMEL AR iure ur eR CREME stamp setting with binary commands synchronization T taps explained 5 rie ers temperature temperature requirements meee ees CK ET test image test image mode setting with binary commands troubleshooting chart interfacing noimage poor quality image RS 232 serial communication vendor information viewing with binary commands vent
151. lash window of the camera see Figure 3 9 The flash window opens when exposure is started in the last pixel line within the area of interest AOI and it closes when readout is started in the first pixel line within the AOI The width of the flash window is calculated using the below formula Flash window width us Exposure time us AOI Height x 4 56 us A400k cameras output a flash trigger signal that can be used to trigger flash exposure The flash trigger signal can be programmed to be high as long as the flash window is open that is all pixel lines are exposed to light and the flash should occur see Section 2 5 8 on page 2 32 BASLER A400k 3 9 Basic Operation and Features To effectively use the flash exposure the guidelines below must be observed The flash must occur while the flash window is open that is the flash trigger signal is high The exposure time setting on the camera and the duration of the flash must be equal to or higher than the minimum flash exposure time required The minimum flash exposure time required is calculated using the below formula Minimum flash exposure 4 56 us x AOI Height 1 Trash where is the time it takes to trigger the flash Examples A The height of the area of interest AOI is 1726 lines full resolution Minimum flash exposure 4 56 ys x 1726 1 Exposure time 7866 Us B The height of the area of interest AOI is only 200 lines Minimu
152. ld are interpreted as 16 bit signed integer Byte 1 Low byte of the maximum raw value Byte 2 High byte of the maximum raw value BASLER A400k 4 21 Configuring the Camera Offset CSR Note The offset can be set by writing a floating point value to the Absolute Offset field or by writing an integer value to the Raw Offset field Refer to Section 4 2 2 1 for an explanation of the difference between these two fields Register Base Address 0x0F00 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 7 The register is not available 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Absolute Offset Offset 0x0001 Size 4 Bytes Read Write Description Writing a floating point value to this field sets the offset in For example if the value in this field is set to 20 the offset would be 20 The offset can normally range from 0 to 100 in increments of 1 The actual available range may be limited by the way any related parameters are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber See Section 3 5 for more information about offset Field Name Absolute Min Offset 0x0005 Size 4 Bytes Type Read only Description Minimum allowed floating point value
153. le Field Name Main FPGA Firmware Version Offset 0 0001 Size 3 Bytes Type Read only Description The value in this field indicates the firmware version of the camera s FPGA field program mable gate array that is used on the processing board The bytes in the field are inter preted as follows Byte 1 Low byte of the firmware version BCD coded Byte 2 High byte of the firmware version BCD coded Byte 3 Register layout ID BCD coded BASLER A400k 4 7 Configuring the Camera 4 8 Sensor Board s FPGA Firmware Version Inquiry Register Base Address 0x0900 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Sensor FPGA Firmware Version Offset 0x0001 Size 3 Bytes Type Read only Description The value in this field indicates the firmware version of the camera s FPGA field program mable gate array that is used on the sensor board The bytes in the field are interpreted as follows Byte 1 Low byte of the firmware version BCD coded Byte 2 High byte of the firmware version BCD coded Byte 3 Register layout ID BCD coded Camera Temperature Inquiry Register Base Address 0x2600 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The intege
154. lt in poor image quality When you generate the DSNU and PRNU shading tables correction values will be calcu lated for the pixels in the current area of interest only If you change the AOI settings you need to generate new shading values BASLER A400k 3 19 Basic Operation and Features 3 7 Digital Shift The digital shift feature lets you change the group of bits that is output from the ADC Using the digital shift feature will effectively multiply the output of the CMOS sensor by 2 times or 4 times Section 3 7 1 describes how digital shift works when the camera is operating in 10 bit output mode and Section 3 7 2 describes how digital shift works when the camera is operating in 8 bit output mode Before you use digital shift also observe the precautions described in Section 3 7 3 3 7 1 Digital Shift in 10 Bit Output Mode No Shift As mentioned in Section 3 1 the A400k uses 10 bit ADCs to digitize the output from the CMOS sensor When the camera is operating in 10 bit output mode by default the camera transmits the 10 bits that are output from each ADC Shift Once When the camera is set to shift once the output from the camera will include bit 8 through bit 0 from each ADC along with a zero as an LSB The result of shifting once is that the output of the camera is effectively doubled For example assume that the camera is set for no shift that it is viewing a uniform white target and that under these
155. lue in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Control Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field selects a bulk data control function 0x00 Enumerate 0x01 ENext 0x02 Read 0x03 Write 0x05 Activate 0x06 Create Field Name Info Offset 0x0002 Size 1 Byte Read only Description If you are performing a bulk data read or write operation this field will indicate when no more data exits 0x00 More data exists 0x01 No more data exists 0x04 No more data exists and this is an activated file Field Name File Name Offset 0x0003 Size 20 Bytes Type Read Write Description Character string indicating the name of a bulk data file The field contains 20 characters left aligned zero padded Field Name Size Offset 0x0017 Size 4 Bytes Type Read only Description If the file name refers to an already existing bulk data file this field will contain the file size in bytes Otherwise the field contains zeros Field Name Data Offset 0x001B Size Byte Type Read Write Description Byte sized register that is used to sequentially write to or read from a bulk data file You can save up to four configuration set files in the non volatile memory
156. lue of the Control field in the configuration set bulk data CSR to 0x02 Setting the value to 0x02 places the camera in read mode and closes the file Up to 255 characters can be read with a single binary bulk data read command If the file is larger than 255 characters repeated binary bulk data read commands are required When repeated bulk data read commands are required the file is read sequentially with each write command starting where the previous write stopped This procedure would upload the data in the file to the camera If you wanted to upload existing DSNU or PRNU shading value bulk data files stored in the camera PRNU shading correction available in monochrome versions only you would use a similar procedure but you would write to and read from the DSNU or PRNU shading table bulk data CSR instead If you wanted to upload existing AOI list bulk data files stored in the camera you would use a similar procedure but you would write to and read from the AOI list bulk data CSR instead Sample code that illustrates how to download bulk data files is available from Basler see Section 4 4 BASLER A400k Configuring the Camera 4 2 3 2 Bulk Data Control and Status Register Details Configuration Set CSR See Section 4 2 3 1 for information about using bulk data control registers Register Base Address 0x2800 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer va
157. lues Before you can use column FPN shading correction you must generate a column FPN shading correction table To create the table perform the following steps 1 As column FPN varies depending on the temperature make sure that the camera has reached its operating temperature 2 Cover the camera lens close the iris in the camera lens or darken the room so that the camera will be capturing frames in complete darkness 3 Signal the camera to generate a set of column FPN shading correction values You can start the generation of a set of column FPN shading correction values by using the Camera Configuration Tool Plus see Section 4 1 With the you use the Shading Value Generate parameter in the Column FPN Shading Correction parameters group to start the generation of a set of column FPN shading correction values b You can also start the generation of the column FPN shading correction table by using a binary write command see Section 4 3 to write a value to the Generate field of the Column FPN Shading Value Generate CSR see page 4 23 After you signalled the start of column FPN shading correction value generation generation is a fully automated process and requires no ExSync signal When column FPN shading cor rection value generation is started the camera stops image capture and data output During generation 4 seconds the camera loads a special set of parameters no image is cap tured and no data is output from t
158. lues from the activated file will be loaded into volatile memory of the camera and actively used by the camera As an example assume that the camera already has a saved configuration set file named UserSet01 and that you want to activate this file To do so you would follow this procedure 1 Use a binary write command to write the file name UserSet01 to the Name field of the configuration set bulk data CSR see page 4 41 2 Use a binary write command to set the value of the Control field in the configuration set bulk data CSR to 0x05 Setting the value to 0x05 initiates an activate function This procedure would find the UserSet01 file in the non volatile memory and would copy the values in the file into the camera s volatile memory It would also create a link to the file so that the values in the file would be loaded into volatile memory after a reset or a power up Sample code that illustrates how to activate a bulk data file is available from Basler see Section 4 4 If you want to activate the factory configuration set file use the procedure de scribed above and use FactorySet as the file name BASLER A400k 4 37 Configuring the Camera Enumerating Saved Bulk Data Files Bulk data file enumeration lets you look through a list of existing saved bulk data files As an example assume that you want to see a list of all of the existing saved configuration set files To do so you would follow this pr
159. m flash exposure 4 56 us x 200 1 Exposure time 907 4 us If the exposure time setting on the camera is lower than the minimum flash ex posure time required no flash trigger signal will be output The light intensity of the flash must be considerably higher than the light intensity in the scene when no flash is present Exposure of the next frame can be started while the previous frame is still being read out Q Q Reset
160. mera output to be non uniform even when the camera is capturing images of a uniform object A400k cameras are equipped with a shading correction feature that lets the camera correct the captured image for variations caused by optics lighting and sensor variations There are three types of shading correction available on 400 cameras column FPN shading correction DSNU shading correction and PRNU shading correction PRNU shading correction is available for monochrome camera versions only 3 6 1 Column FPN Shading Correction In theory when an area scan camera with a digital sensor captures an image of a uniform object under homogeneous illumination the pixels should output the same gray value throughout the entire image In practice slight variations in the pixel column amplifiers in the sensor will cause some variation from pixel column to pixel column This variation is known as column Fixed Pattern Noise column FPN Column FPN appears as vertical stripes in the image The camera s sensor contains special self calibrating circuitry that enables it to reduce column FPN before the analog pixel data enters the analog to digital converters The column FPN shading correction feature on 400 cameras can further correct for the variations caused by column FPN A column FPN shading correction overwrites the column FPN shading correction that is done by the sensor s self calibrating circuitry Generating a Set of Column FPN Shading Correction Va
161. n 4 1 you use the Video Data Output Mode setting in the Output parameter group to set the output mode By Setting CSRs You can select the video data output mode by writing a value to the Mode field of the Video Data Output Mode CSR see page 4 15 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands BASLER A400k 3 3 Basic Operation and Features 3 3 3 4 Exposure Time Control Modes 400 cameras can operate under the control of an external trigger signal ExSync signal or can operate in free run In free run the camera generates its own internal control signal and does not require an ExSync signal 3 3 1 ExSync Controlled Operation 3 3 1 1 Basics of ExSync Controlled Operation In ExSync operation the camera s frame rate and exposure time are controlled by an externally generated ExSync signal The ExSync signal is typically supplied to the camera by a frame grabber board You should refer to the manual supplied with your frame grabber board to determine how to set up the ExSync signal that is being supplied to the camera When the camera is operating under the control of an ExSync signal the length of the ExSync signal period determines the camera s frame rate Frame rate 1 Control signal period ExSync can be periodic or non periodic When the camera is operating with an ExSync signal it has three modes of exposure time control available edge contr
162. n enable DSNU shading correction with the Camera Configuration Tool Plus or by using binary read write commands from within your own application to set the camera s control and status registers CSRs With the CCT With the Camera Configuration Tool Plus see Section 4 1 you set the Shading Mode parameter in the Shading Correction parameters group to enable DSNU shading correction By Setting CSRs You can enable DSNU shading correction by writing a value to the Mode field of the DNSU and or PRNU Shading Correction Enable CSR see page 4 24 Section 4 2 2 explains CSRs Section 4 3 1 explains using read write commands Saving a Set of DSNU Shading Values to a File When you generate a set of DSNU shading correction values the values are placed in the camera s volatile memory and they overwrite any shading values that are already in the memory The current set of values in the volatile memory is used immediately by the camera Values placed in the camera s volatile memory are lost if the camera is reset or the camera power is switched off A400k cameras can save the current DSNU values in the volatile memory to a file in the camera s non volatile memory Files saved in the non volatile memory are not lost at reset or power off You can save only one set of DSNU values to file in the non volatile memory A save will take approximately two minutes You can save the current shading values to a file in the non volatile memory by usin
163. n line 1026 have a value of 2 and so on This pattern continues until line 1726 where the pixels have a value of 702 Figure 3 26 Test Image Four 10 bit BASLER A400k 3 3 Basic Operation and Features 3 11 5 Guidelines When Using Test Images When using a test image please take the following guidelines into account When a test image is active the gain offset and exposure time have no effect on the image DSNU and PRNU shading correction produce distortion in the test image Disable DSNU and PRNU shading correction before you enable a test image PRNU shading correction avail able for monochrome versions only Digital shift makes test images appear very light Disable digital shift when a test image is active Use of the area of interest feature will effect the appearance of test images f the camera is set for an exposure mode that uses an ExSync signal the ExSync signal must be present and must toggle in order for the camera to output test images If the camera is set for free run each cycle of the camera s internal sync signal will trigger the output of a test image 3 11 6 Enabling Disabling Test Images You can enable disable a test image by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the CCT With the CCT see Section 4 1 you use the Test Image setting in
164. n to set the camera s control and status registers CSRs With the With the Camera Configuration Tool Plus see Section 4 1 you use the Shading Value Generate parameter in the Column FPN Shading Correction parameters group to reset column FPN shading correction By Setting CSRs You can start a reset by writing a value to the Generate field of the Column FPN Shading Correction CSR see page 4 23 Section 4 2 2 explains CSRs Section 4 3 1 explains using read write commands Saving a Set of Column FPN Shading Values to a File When you generate a set of column FPN shading correction values the values are placed in the camera s volatile memory and they overwrite any shading values that are already in the memory The current set of values in the volatile memory is used immediately by the camera Values placed in the camera s volatile memory are lost if the camera is reset or the camera power is switched off 400 cameras can save the current column FPN values in the volatile memory to a file in the camera s non volatile memory Files saved in the non volatile memory are not lost at reset or power off You can save only one set of column FPN values to file in the non volatile memory A save will take four to five minutes You can save the current shading values to a file in the non volatile memory by using the Camera Configuration Tool Plus or by using binary read write commands from within your own application to
165. nabled the number of pixels transferred could be smaller Figure 2 8 A402k 2 Tap Output with Edge or Level Controlled Exposure end of e programmed exposure time max 7 89 ms 40 872 ms A80 ns 160 ns 23 52 us 0 us 0 Line Line 1 Line 2 Line 1726 Valid m s UUUUUUUUUUUUUUUUUUUUUUUUUL pe paa KEK X XX X SUM 99 T y Per Data COKE XOX EE OO TIMING DIAGRAMS DRAWN SCALE The diagram assumes that the area of interest feature is not being used With the area of interest feature enabled the number of pixels transferred could be smaller Figure 2 9 A402k 2 Tap Output with Programmable Exposure BASLER A400k 2 23 Camera Interface 2 5 6 Video Data Output for the A403k Depending on the video data output mode selected A403k cameras output pixel data in either a 4 tap 10 bit or a 4 tap 8 bit video data stream In 4 tap 10 bit mode on each clock cycle the camera transmits data for four pixels at 10 bit depth a frame valid bit and a line valid bit In 4 tap 8 bit mode on each clock cycle the camera transmits data for four pixels at 8 bit depth a frame valid bit and a line valid bit The assignment of the bits is shown in Tables 2 6 and 2 7 The pixel clock is used to time data sampling and transmission As shown in Figures 2 10 and 2 11 the camera samples and transmits data on each rising edge of the pixel clock The frame vali
166. nd Ground for the inner shield of the cable 26 2 YO Output Camera Link Data from Camera Link Transmitter LVDS 15 YO 3 Y1 Output Camera Link Data from Camera Link Transmitter LVDS 16 Y1 4 Y2 Output Camera Link Data from Camera Link Transmitter LVDS 17 Y2 6 Y3 Output Camera Link Data from Camera Link Transmitter LVDS 19 Y3 5 YCIk Output Camera Link Transmit Clock from Camera Link Transmitter LVDS 18 YClk 7 T Connected to T with 100R not used 20 T Connected to T with 100R not used 8 Z0 Output Camera Link Data from Camera Link Transmitter LVDS 21 20 9 Z1 Output Camera Link Data from Camera Link Transmitter LVDS 22 21 10 Z2 Output Camera Link Data from Camera Link Transmitter LVDS 23 Z2 12 Z3 Output Camera Link Data from Camera Link Transmitter LVDS 25 Z3 11 ZCIk Output Camera Link Transmit Clock from Camera Link Transmitter LVDS 24 2 1 Pins 1 13 14 and 26 are all tied together to Gnd inside of the camera Table 2 2 A403k and A404k Pin Assignments for the Second 26 Connector BASLER A400k Camera Interface 2 1 3 Pin Assignments for the 6 pin Micro Miniature Receptacle The power input connector is a 6 pin micro miniature push pull locking receptacle the Hirose HR 10A 7R 6PB The power supply should deliver 12 V at a minimum of 1 5 A with a voltage accuracy of 10 The pin assignment of the plug is given in Table 2 3 plane Direction Level Function
167. nd other parameter s Modifiable parameter settings and available commands appear in black while read only settings and unavailable commands appear in gray If you make a change to one of the parameter settings that change will immediately be transmitted from the to the camera s Work Set Because the parameters in the Work Set control the current operation of the camera you will see an immediate change in the camera s operation If the change limits the range of available settings for other parameters the available ranges will automatically be refreshed By default the also automatically updates the displayed settings every 5 seconds The feature behind this behavior is called Auto Refresh If auto refresh is not enabled the display will not update when a camera setting is changed using another tool when power to the camera is Switched off and on or when the connected camera is exchanged while the is displaying the camera settings To manually refresh the display you can use the Refresh button in the top right corner of the tool changes you make to the work set using the configuration tool will be lost when the camera is switched off To save changes you make to the work set save the modi fied work set to one of the camera s four user set files The user set files are stored in non volatile memory and will not be lost when the camera is switched off see Sec tion 3 13 Alternatively you can also save the W
168. ng to the area of interest settings in the AOI list that is the first image will be captured according to the area of interest settings in first position the next three images will be captured according to the area of interest settings in second position and so on The seventh image will be captured according to the area of interest settings in fifth position and then image capture will be stopped On the rising edge of the next ExSync signal the whole sequence will be done again and so on In this mode the delay time settings have an effect that is there will be the defined delay between the end of exposure of the previous image and the start of exposure of the next image Mode 3 Free run The list is started run and repeated non stop After the last position in the AOI list is done the sequence restarts with the first position and so on In this mode the delay time settings have an effect that is there will be the defined delay between the end of exposure of the previous image and the start of exposure of the next image You can set mode 1 2 3 or 4 by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the With the see Section 4 1 you use the AOI List Trigger Mode setting in the AOI List parameter group to set disable the use of the AOI list or select the trigger mode By S
169. not changed state for 5 seconds or longer If you are not supplying an ExSync signal to the camera this is a normal condition and should be ignored Otherwise check the cable and the ExSync generating device 9 lowest Table 6 1 Camera Status Indicators BASLER A400k Troubleshooting 6 2 Troubleshooting Charts The following pages contain several troubleshooting charts which can help you find the cause of problems that users sometimes encounter The charts assume that you are familiar with the camera s features and settings and with the settings for your frame grabber If you are not we suggest that you review the manuals for your camera and frame grabber before you troubleshoot a problem 6 2 1 No Image Use this chart if you see no image at all when you attempt to capture an image with your frame grabber in this situation you will usually get a message from the frame grabber such as time out If you see a poor quality image a completely black image or a completely white image use the chart in Section 6 2 2 Always switch off power to the system before making or breaking any connection Connect the power source to the camera and then check the LED on the back of the camera Use a voltmeter to check the power source for the camera The output must be 12 VDC 1 2 V Also make sure that the No It is power source meets the other __ No Replace the always out specs shown in Section 2 8 power sour
170. nt and to indicate an error condition if one is detected See Section 6 1 for details BASLER A400k Basic Operation and Features 3 18 Resetting the Camera A400k cameras let the user initiate a camera reset A reset is the equivalent of switching off power to the camera and switching power back on You can initiate a camera reset by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the With the CCT see Section 4 1 click on Camera in the menu at the top of the window and a drop down list will appear Click on Reset Camera in the drop down list to initiate a reset By Setting CSRs You can initiate a reset by writing a value to the Reset field of the Camera Reset CSR see page 4 34 See Section 4 2 2 for an explanation of CSRs See Section 4 3 1 for an explanation of using read write commands Whenever the camera is powered on or when a camera reset is performed your PC may receive some random characters on the serial interface We recommend clear ing the serial input buffers in your PC after a camera power on or reset BASLER A400k 3 47 Basic Operation and Features 3 48 BASLER A400k Configuring the Camera 4 Configuring the Camera A400k cameras come with a factory set of configuration parameters and they will work properly for most applications
171. number of lines included in the area of interest Height and the width of the area of interest AOI Width The fewer the number of lines in the area of interest and the smaller the width the higher the maximum frame rate To determine the maximum frame rate for a given AOI use your AOI settings to calculate a result in each of the two formulas below These formulas take your AOI size into account The formula that returns the lowest value will determine the maximum frame rate for the given AOI Formula 1 A402k Max frames per second approximated AOI Width 50 MHz 8 x AOI Height 1 A403k Max frames per second approximated AOI Width 20 MEE 8 x AOI Height 1 50 MHz A404k Max frames per second approximated E 7 x AOI Height 1 Formula 2 1 Maximum frames per second approximated AOI Height 2 x 4 56 us For example using the full height of 1726 lines the frame rate cannot be higher than 126 9 fps frames per second With an AOI height of 200 lines the frame rate cannot be higher than 1085 6 fps In some exposure modes you must set the frame period in us To convert the calculated frame rate frames per second into the frame period us use the following formula Frame period us Frame iei x 1 000 000 3 26 BASLER A400k Basic Operation and Features 3 8 4 Programmable AOI Sequencer The programmable area of interest sequencer feature lets the camera run
172. ocedure 1 2 3 4 5 Use a binary write command to set the value of the Control field in the configuration set bulk data CSR to 0x00 see page 4 41 Setting the value to 0x00 initiates an enumerate function Use a binary read command to read the Name field of the configuration set bulk data CSR Use a binary read command to read the value in the Info field of the configuration set bulk data CSR a If the value is 0x00 it means that the file exists and it is not an activated file Continue to step 4 b Ifthe value is Ox04 it means that the file exists and it is an activated file Continue to step 4 c Ifthe value is 0x01 no more saved configuration set files exist Exit the procedure Use a binary write command to set the value of the Control field in the configuration set bulk data CSR to 0x01 Setting the value to 0x01 initiates an enumerate next function Return to step 2 This procedure would list all of the configuration set bulk data files stored in the computer If you wanted to enumerate existing DSNU or PRNU shading table bulk data files stored in the camera PRNU shading correction available in monochrome versions only you would use a similar procedure but you would write to and read from the DSNU or PRNU shading table bulk data CSR instead If you wanted to enumerate the existing AOI list file stored in the camera you would use a similar procedure but you would write to and read from the AOI list bul
173. ocessing board FPGA Please contact Basler support 4 Repeated pattern of 6 slow pulses An erroneous parameter set has been loaded Load another parameter set and delete the erroneous set Repeated pattern of 5 slow pulses Parameter error For example an unavailable parameter setting has been made Repeated pattern of 4 slow pulses One of the following errors is present A byte time out has occurred see Section 4 3 1 1 Invalid opcode in a read or write command see Section 4 3 1 Incoming data has been discarded since no BFS was included see Section 4 3 1 Invalid BCC in a read or write command see Section 4 3 1 Invalid address in a read or write command see Section 4 3 1 Invalid data length in a read or write command see Section 4 3 1 An unknown error has occurred Please contact Basler support Repeated pattern of 3 slow pulses The last column FPN shading value generation has failed The column FPN shading value generation process can fail if the pixel values in the frames captured during the generation process are too high The process should be performed in darkness or in very low light conditions Check your setup and repeat generation see Section 3 6 1 Repeated pattern of 2 slow pulses One of the following errors is present The maximum allowed frame rate has been exceeded see Formula 1 and Formula 2 in Section 3 8 3 ExSync has
174. of 0x0x0101 the base address of 0x0100 plus an offset of 0x0001 By reading the data at address 0x0101 you can get information about the camera vendor s name Section 4 2 1 1 lists the inquiry registers in A400k cameras and shows detailed information about the use of each field within the registers 4 2 1 1 Inquiry Register Details Vendor Information Inquiry Register Base Address 0x0100 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Vendor Name Offset 0x0001 Size 20 Bytes Read only Description String containing the camera vendor s name The string is zero terminated if less than 20 bytes are needed and unterminated if all 20 bytes are needed Model Information Inquiry Register Base Address 0x0200 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Model Info Offset 0x0001 Size 20 Bytes Read only Description String containing the camera s model number The string is zero terminated if less than 20 bytes are needed and unterminated if all 20 bytes are needed BAS
175. of pixels transferred could be smaller Figure 2 11 A403k or A404k 4 Tap Output with Programmable Exposure BASLER A400k 2 27 Camera Interface 2 5 7 Video Data Output for the A404k Depending on the video data output mode selected A404k cameras output pixel data in either a 4 tap 10 bit a 4 tap 8 bit or an 8 tap 8 bit video data stream 2 5 7 1 4 Tap 10 Bit and 4 Tap 8 Bit Output Modes In 4 tap 10 bit mode on each clock cycle the camera transmits data for four pixels at 10 bit depth a frame valid bit and a line valid bit In 4 tap 8 bit mode on each clock cycle the camera transmits data for four pixels at 8 bit depth a frame valid bit and a line valid bit The assignment of the bits is shown in Tables 2 8 and 2 9 In 10 bit mode all bits of data output from each 10 bit ADC are transmitted In 8 bit mode the two least significant bits output from each ADC are dropped and the 8 most significant bits of data per pixel are transmitted The video data output sequence for an A404k camera operating in 4 tap 10 bit or 4 tap 8 bit output mode is similar to the output sequence of an A403k camera operating in 4 tap 10 bit or 4 tap 8 bit output mode Refer to Section 2 5 6 and Figures 2 10 and 2 11 for a description of the A403k video data output sequence 2 5 7 2 8 Tap 8 Bit Output Mode In 8 tap output mode on each clock cycle the camera transmits data for eight pixels at 8 bit depth a fr
176. of the Test Image CSR 0 15 isthe field See page 4 52 for instructions on calculating a BCC Note that the use of a BCC is optional In this example we assume that a BCC is used 0x03 isthe BFE The value in the BFE field is always 0x03 BASLER A400k Configuring the Camera 4 3 2 2 Write Command This section includes a text description the hex digits included in a command message used to write a value of 0x01 to the Mode field of the Test Image Mode CSR see page 4 32 The intent of this section is to give you a basic understanding of the elements included in a write command Section 4 4 includes actual samples of the code used to send a write command The hex digits included in the write command are 0x01 0x04 0x04 0x01 0x18 0x01 0x18 0x03 0x01 isthe BFS field The value in the BFS field is always 0x01 0x04 isthe FTF field The hex value of 0x04 in the FTF field converts to a binary value of 0600000100 Bits 7 through 3 of the binary value indicate the OpCode As shown in the table on page 4 47 an OpCode value of 0b00000 indicates that this is a write command frame Bit 2 indicates the presence or absence of a BCC in the frame As shown in the table on 4 47 when this bit is set to 0b1 it indicates that a BCC is present Bits 1 through 0 indicate the AddrLen As shown in the table on page 4 47 a value of 0b00 for the AddrLen indicates that the Address field in this frame contains a 16 bit
177. olled mode level controlled mode and programmable mode n ExSync edge controlled mode the pixels are exposed and charge is accumulated over the full period of the ExSync signal rising edge to rising edge The falling edge of the ExSync signal is irrelevant The frame is read out and transferred on the rising edge of ExSync see Figure 3 3 ExSync Period Exposure lt ExSync Frame Read Out Figure 3 3 ExSync Edge Controlled Mode n ExSync level controlled mode the exposure time is determined by the time between the falling edge of ExSync and the next rising edge The pixels are exposed and charge is accu mulated only when ExSync is low The frame is read out and transferred on the rising edge of the ExSync signal see Figure 3 4 ExSync Period Exposure ExSync M Frame Read Out Figure 3 4 ExSync Level controlled Mode BASLER A400k Basic Operation and Features n ExSync programmable mode the rising edge of ExSync triggers exposure and charge accumulation for a pre programmed period of time The frame is read out and transferred at the end of the pre programmed period The length of the pre programmed exposure period is determined by the exposure time setting The falling edge of ExSync is irrelevant see Figure 3 5 ExSync Period lt ExSync i Frame Read Out Figure 3 5 ExSync Programmable Mode 3 3 1 2 Guidelines Wh
178. ommand has been issued by the host the host can verify the write by issuing a corresponding read command and checking that the returned data is as expected unless the address is write only The host can read the Camera Status fields in the Camera Status inquiry register see page 4 9 and check the returned data to see if an error condition has been detected only data within a specified range or a specified group of values is valid If the data in a write command is not within the allowed range or specified group of allowed val ues the camera will not execute the write command For many of the write commands listed in the tables on pages 4 34 through 4 44 BASLER A400k 4 49 Configuring the Camera 4 3 2 Basic Read Write Command Explanations 4 3 2 1 Read Command This section includes a text description the hex digits included in a command message used to read the Status field of the Test Image Mode CSR see page 4 32 The intent of this section is to give you a basic understanding of the elements included in a read command Section 4 4 includes actual samples of the code used to send a read command The hex digits included in the read command are 0x01 OxOC 0x01 0x00 0x18 0x01 0x15 0x03 0x01 isthe BFS field The value in the BFS field is always 0x01 OxOC isthe FTF field The hex value of 0 0 in the FTF field converts to a binary value of 0600001100 Bits 7 through 3 of the binary value indicate
179. ons The camera is equipped with an undervoltage lockout An input voltage below 10 8 VDC will cause the camera to automatically switch off The camera has no overvoltage protection An input voltage higher than 13 2 VDC will damage the camera The camera is not protected for reverse voltage The polarity of the input power to the camera must be as shown in Table 2 3 If reverse voltage is applied to the camera while it is connected to a frame grabber in a PC the camera could be seriously damaged BASLER A400k 2 35 Camera Interface 2 36 BASLER A400k 3 1 Basic Operation and Features Basic Operation and Features Functional Description BASLER A400k area scan cameras employ a CMOS sensor chip which provides features such as an electronic rolling shutter and electronic exposure time control Exposure time is controlled either internally via an internal sync signal free run mode or externally via an external trigger ExSync signal The ExSync signal facilitates periodic or non periodic pixel readout In any free run mode the camera generates its own internal control signal and the internal signal is used to control exposure and charge readout When operating in free run the camera outputs frames continuously When exposure is controlled by an ExSync signal exposure time can be either level controlled or programmable In level controlled mode charge is accumulated when the ExSync signal is low The rising edge of Ex
180. or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the With the see Section 4 1 you use the Exposure Time Control Mode setting in the Exposure parameter group to select the free run edge controlled or free run programmable exposure time control mode If you select the free run programmable mode the will also let you enter an exposure time By Setting CSRs You can select the exposure time control mode by writing a value to the Mode field of the Exposure Time Control Mode CSR see page 4 15 You can set the frame period by writing a value to the Raw Frame Period field or to the Absolute Frame Period field of the Frame Period CSR see page 4 18 If you select the free run programmable mode you will also need to set the exposure time You can set the exposure time by writing a value to the Raw Exposure Time field or to the Absolute Exposure Time field of the Exposure Time CSR see page 4 16 Section 4 2 2 explains CSRs and the difference between using the raw field and the absolute field in a CSR Section 4 3 1 explains using read write commands BASLER A400k 3 7 Basic Operation and Features 3 4 Rolling Shutter 3 8 A rolling shutter is used to control the start and stop of exposure A rolling shutter requires less in pixel transistors than a nonrolling shutter This allows a larger photosensitive area per pixel that is
181. ork Set to the hard disk of your computer and load it from hard disk Keep in mind that the work set is stored in the camera s volatile memory Any 4 1 4 Configuration Tool Help The CCT includes a complete on line help file which explains how to change parameter settings It also explains how to copy the work set to a saved user set file and how to copy a saved user set file or the factory set file to the work set To access on line help press the F1 key whenever the configuration tool is active BASLER A400k 4 3 Configuring the Camera 4 2 4 4 Configuring the Camera By Setting Registers 400 cameras have blocks of mapped memory space known as registers By reading values from the registers you can determine basic information about the camera and information about the camera s current parameter settings By writing values to the registers you can set camera parameters and control how the camera s features will operate There are three types of registers in an A400k Inquiry Registers these registers provide basic information about the camera Section 4 2 1 explains inquiry registers in more detail lists the inquiry registers in the camera and describes the function of each register Feature Control and Status Registers these registers let you set the parameters associated with the camera s features Section 4 2 2 explains feature control and status registers in more detail lists the feature control
182. osure lt Internal Control Signal frame read out Figure 3 6 Free run Edge controlled Mode Infree run programmable mode the camera generates a continuous internal control signal based on two programmable parameters Exposure Time and Frame Period The Expo sure Time setting determines how long the internal control signal will remain low Pixels are exposed and charge is accumulated when the internal control signal is low The Frame Period setting determines the control signal period The frame is read out and transferred on the rising edge of the internal control signal See Figure 3 7 Control Signal Period Internal Exposure Control gt Signal Frame read out Figure 3 7 Free run Programmable Mode BASLER A400k Basic Operation and Features 3 3 2 2 Guidelines When Using Free run In free run programmable mode the minimum exposure time setting is 4 56 uis Due to the sensor design the exposure time can only be set in integer multiples of 4 56 us that is 4 56 us 9 12 us 13 68 us and so on In free run programmable mode also the following rule applies Exposure time setting lt Frame period setting 3 3 2 3 Selecting a Free run Exposure Mode Setting the Frame Period and Setting the Exposure Time You can select a free run exposure time control mode set the frame period and set the exposure time for the free run programmable mode by using the Camera Configuration Tool Plus CCT
183. ou can use a single rising edge of the signal to trigger the complete sequence The camera can also run the complete sequence non stop free run In free run no ExSync signal is required Before you can run a predefined sequence of areas of interest you must first create an AOI list Sections 3 8 4 1 and 3 8 4 2 The AOI list defines the areas of interest the order in which they will run and some other parameters When the AOI list is complete you upload the list to the camera Section 3 8 4 3 To actually run the camera according to the defined sequence you must finally enable the AOI sequencer feature by enabling one of three trigger modes Section 3 8 4 4 BASLER A400k 3 27 Basic Operation and Features 3 8 4 1 Setting Up an AOI List The list defines the areas of interest to be run For each area of interest you define an exposure time and delay time You also define the number of times you want to run the area of interest within the sequence and whether you want the flash trigger signal to be enabled The order in which the areas of interest are run is determined by their position in the list The area of interest in the first position is performed first the area of interest in second position is performed second and so on Up to 32 areas of interest can be defined After the last area of interest in the list has been run the sequence restarts with the first area of interest and so on Figure 3 13 shows an list that
184. ponse frame from the camera The amount of data in the response will be as specified by the DataLen in step 4 6 Use a binary read command to read the value in the Info field of the configuration set bulk data CSR a Ifthe value is 0x01 no more data exists in the file Exit the procedure b If the value is 0x00 more data exists and this is not an activated file Return to step 4 If the value is 0x04 more data exists and this is an activated file Return to step 4 Up to 255 characters can be read with a single binary bulk data read command If the file is larger than 255 characters repeated binary bulk data read commands are required When repeated bulk data read commands are required the file is read sequentially with each read command starting where the previous read stopped This procedure would download the data in the file to the host computer If you wanted to download an existing DSNU or PRNU shading value bulk data file to the host PC PRNU shading correction available in monochrome versions only you would use a similar procedure but you would write to and read from the DSNU or PRNU shading value bulk data CSR instead If you wanted to download an existing AOI list bulk data file to the host PC you would use a similar procedure but you would write to and read from the AOI list bulk data CSR instead Sample code that illustrates how to download bulk data files is available from Basler see Section 4 4 BASLER A400
185. ps in 8 tap mode progressive scan Table 1 2 A400k Performance Specifications BASLER A400k Introduction Specifications A402k A402kc 405 A403kc A404k A404kc Video Data Output Type Camera Link LVDS Base configuration RS 644 LVDS when used with the optional Basler Interface Con verter k BIC Camera Link LVDS Medium configuration Camera Link LVDS Medium configuration in 4 tap mode Camera Link LVDS Full configuration in 8 tap mode Video Data Output Mode s 2 taps 2 pixels clock cycle Selectable 8 or 10 bit depth 4 taps 4 pixels clock cycle Selectable 8 or 10 bit depth 4 taps 4 pixels clock cycle Selectable 8 or 10 bit depth 8 taps 8 pixels clock cycle 8 bit depth Output Data Rate 93 MB s 2 taps 8 bit depth 116 MB s 2 taps 10 bit depth 186 MB s 4 taps 8 bit depth 232 MB s 4 taps 10 bit depth 186 MB s 4 taps 8 bit depth 232 MB s 4 taps 10 bit depth 372 MB s 8 taps 8 bit depth Synchronization Via external ExSync signal or free run Exposure Time Con trol Edge controlled level controlled or programmable Gain and Offset Programmable via the frame grabber via a serial link Connectors All versions one 26 pin female MDR connector data one 6 pin Hirose HR connector power one 4 pin Hirose HR connector flash trigger A403k A403kc amp A404k A404
186. r pixel one in line one and data stream D1 will transmit data for pixel two in line one Depending on the video data output mode selected the pixel data will be at either 10 bit or 8 bit depth On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel three in line one and data stream D1 will transmit data for pixel four in line one BASLER A400k 2 21 Camera Interface On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel five in line one and data stream D1 will transmit data for pixel six in line one This pattern will continue until all of the pixel data for line one has been transmitted A total of 1176 cycles Line valid becomes low for eight pixel clocks On the pixel clock cycle where data transmission for line two begins the line valid bit will become high On this clock cycle data stream DO will transmit data for pixel one in line two and data stream D1 will transmit data for pixel two in line two On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel three in line two and data stream D1 will transmit data for pixel four in line two On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel five in line two
187. r should transmit in a range of 400 nm to 700 720 nm and it should cut off from 700 720 nm to 1100 nm BASLER A400k 1 5 Introduction 1 4 Environmental Requirements 1 4 1 Temperature and Humidity Housing temperature during operation 0 50 32 F 122 Humidity during operation 20 80 relative non condensing You can read out the camera s inner temperature via the temperature register 4 8 The maximum recommended inner temperature is 65 C 149 F Note that the camera components life time and the image quality are higher the lower the temperature of the camera 1 4 2 Ventilation Allow sufficient air circulation around the camera to prevent internal heat build up in your system and to keep the camera housing temperature during operation below the maximum shown above Provide additional cooling such as fans or heat sinks if necessary BASLER A400k Introduction 1 5 Precautions Power Caution Be sure that all power to your system is switched off before you make or break connections to the camera Making or breaking connections when power is on can result in damage to the camera If you can not switch off power be sure that the power supply connector is the last connector plugged when you make connections to the camera and the first connector unplugged when you break connections The camera is equipped with an undervoltage lockout
188. r the width setting The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value BASLER A400k 4 27 Configuring the Camera Area of Interest Starting Line CSR Register Base Address 0x1050 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range 0X81 The setting for the AOI starting line conflicts with the setting for the AOI height Field Name Starting Line Offset 0x0001 Size 2 Bytes Read Write Description Writing an integer value to this field sets the starting line for the area of interest AOI fea ture The value for the starting line can normally range from line 1 0x0001 to line 1725 0 06 0 The actual available range may be limited by the way any related parameters are set If the value is set to 1 the starting line of the AOI will be line 1 If the value is set to 2 the starting line of the AOI will be line 2 Etc The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the starting line value Byte 2 High byte of the starting line value See Section 3 8 for more information about the AOI feature Field Name Min Offset 0x0003 Size 2 B
189. r value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Camera Temperature Offset 0x0001 Size 1 Byte Type Read only Description The value in this field indicates the camera s inner temperature The result is given in C as 8 bit signed number BASLER A400k Configuring the Camera Camera Status Inquiry The camera has been programmed to detect several error conditions When an error condition is detected a flag is set The camera status inquiry register lets you read the error flags Register Base Address 0x0C00 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 7 The register is not available 0x01 The register is available Field Name Camera Status Offset 0x0001 Size 4 Bytes Read only Description Each bit in this field specifies an error condition see table below Bit O is the least signifi cant bit If a bit is set to 1 the error condition assigned to that bit is present If the bit is set to 0 the error is not present Bit Description 0 The camera is unlocked 1 The camera is booting or is busy performing an internal operation such as generating shading values 2 A reset has occurred This bit is auto cleared on read 3 Parameter error for example a parameter has b
190. rabber has dropped the first line from your image The stripes in the horizontal stripe test pattern are formed with a gradient that ranges from 0 to 255 8 bit mode or 0 to 1023 10 bit mode A full stripe is 256 lines 8 bit mode or 1024 lines 10 bit mode high As an exception the gray values of the first stripe range from 1 to 255 or from 1 to 1023 respectively The pixels in line one of the first stripe all have a value of 1 The pixels in line two of the first stripe all have a value of 2 the pixels in line three of the first stripe all have a value of 3 and so on This pattern continues until line 255 8 bit mode where the pixels Figure 3 25 Test Image Four 8 bit have a gray value of 255 or line 1023 10 bit mode where the pixels have a value of 1023 In 8 bit mode a second stripe begins in line 256 The pixels in line 256 have a gray value of 0 the pixels in line 257 have a value of 1 the pixels in line 258 have a value of 2 and so on This pattern continues until line 511 where the pixels have a gray value of 255 A third stripe begins in line 512 The pixels in line 512 have a gray value of 0 the pixels in line 513 have a value of 1 the pixels in line 514 have a value of 2 and so on This pattern continues until line 1726 where the pixels have a value of 190 In 10 bit mode a second stripe begins in line 1024 The pixels in line 1024 have a value of the pixels in line 1025 have a value of 1 the pixels i
191. rementally in multiples of 4 56 us Formula Exposure time N x 4 56 us where must be an integer and gt 0 Exposure time can range from 4 56 us to 19 12 s The runtime of the sensor reset and readout depends on the height of the area of interest AOI see page 3 24 The formula below can be used to calculate the runtime Reset runtime Readout runtime 4 56 ys x AOI Height 1 The formula below can be used to calculate the total time it takes to reset expose and read out a single frame Total frame exposure runtime 4 56 us x AOI Height 1 Exposure time Examples A The height of the area of interest AOI is 1726 lines full resolution Total runtime 4 56 us x 1726 1 Exposure time 7866 Exposure time B The height of the area of interest AOI is only 200 lines Total runtime 4 56 us x 200 1 Exposure time 907 4 us Exposure time maging of fast moving objects requires a flash exposure within the camera s flash window see Section 3 4 2 3 4 2 Flash Exposure for Fast Moving Objects Imaging of fast moving objects requires a flash exposure If flash exposure is not used image distortions will occur due to the exposure s 4 56 offset from one line to the next Due to the exposure s 4 56 us offset from one line to the next there is a limited time interval where all pixel lines are open that is all pixels are exposed to light simultaneously This time interval is called the f
192. rite to fields within a feature s CSR s you can change the parameter settings for the feature By using binary read commands you can determine the current setting for the parameters and get information about the feature s status The address for any field within a register is equal to the register base address plus the offset for the field Look at the Video Data Output Mode CSR on page 4 15 as an example The Mode field of this register has an address of 0x1701 the base address of 0x1700 plus the offset of 0 0001 By writing a value to this address you can select the video data output mode By reading the value at this address you can determine the current output mode setting The Video Data Output Mode CSR is a simple CSR with only two fields Most of the other feature CSRs have several read write fields that let you set the parameters associated with the feature They may also have read only fields that contain information about the minimum and maximum allowed setting for each parameter Section 4 2 2 2 lists the feature CSRs in A400k cameras and shows detailed information about the use of each field within the register 4 2 2 1 Raw Value Fields vs Absolute Value Fields As you look through the descriptions of the feature CSRs you will notice that some CSRs have a parameter that can be set by writing a value to a field or by writing a value to an absolute field You will find this to be true for the Exposure Time
193. roblem still present Yes If extra hardware is available try to locate the problem by substitution Substitute only one piece of hardware at a time and Exit this retry the system after each substitution chat After you finished making substitutions is the problem still present Yes Check the DCF configuration file that you are using with your frame grabber Make sure that it is the correct file for the Basler A400k model Be aware that sometimes different DCF files must be used depending on which of the camera s features you have enabled DCF 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 A400k models and we suggest that you use them if one is available for your type of frame grabber Exit this chart After you checked the DCF file is the problem still present Yes Contact Basler Technical Support The contact numbers appear after 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 You should also have a captured live image and a captured test image available Technical support will frequently request that you e mail copies of these captured images 6 6 BASLER A400k Troubleshooting 6 2 4 RS 644 Serial Communication Use the serial communication troubleshooting charts if you think that there is a problem with RS
194. rol register 0x00 7 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range 0X81 The setting for the AOI starting column conflicts with the setting for the AOI width Field Name Starting Column Offset 0x0001 Size 2 Bytes Read Write Description Writing an integer value to this field sets the starting column for the area of interest AOI feature The value for the starting column can normally range from column 1 0x0000 to column 2336 0x0920 Starting columns can only be selected in increments of 16 1 that is the starting column can be 1 17 33 and so on The actual available range may be lim ited by the way any related parameters are set If the value is set to 1 the starting column in the AOI will be column 1 If the value is set to 17 the starting column in the AOI will be column 17 Etc The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the starting column value Byte 2 High byte of the starting column value See Section 3 8 for more information about the AOI feature Field Name Min Offset 0x0003 Size 2 Bytes Read only Description Minimum allowed integer value for the starting column setting This field is updated to re flect limitations caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the min value
195. rt the list of parameter settings should appear chart Did the list of parameter settings appear Are you controlling the camera with an ExSync signal or is the camera Free run 3 in free run Did you set up free run using the Exposure Time Control Mode setting on the or with binary commands ExSync signal Binary sert Commands Check the setup on your frame grabber and make sure that the ExSync signal is not too short The period of the ExSync signal must not be lower than shown in Section 3 3 1 2 On many frame grabbers the period of the the ExSync signal is adjusted by settings changing a setting for the frame rate Your frame rate should not exceed the Check to make sure that The exposure time is set no lower than shown in Section 30 4 2 Correct Correct The frame period is set no the lower than shown in Section settings 3 3 2 2 Are the settings limit shown in Section 1 2 Is the ExSync period OK Yes Yes Check your exposure setting The exposure time must be Correct the Go to the setting Switch on the test image one interfacing Can the test image be seen troubleshooting chart less than the ExSync period Is the exposure OK Yes Yes Go to the Y Switch on test image one interfacing Can the test image be seen troubleshooting Replace the camera chart Yes Replace the camera 64 BASLER A40
196. s 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 Warranty Note Do not open the housing of the camera The warranty becomes void if the housing is opened material in this publication is subject to change without notice and is copyright Basler Vision Technologies Contacting Basler Support Worldwide Europe Basler AG An der 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 Business Park 04 15 17 German Centre Singapore 609916 Tel 65 6425 0472 Fax 65 6425 0473 vc support asia baslerweb com www basler vc com Table of Contents Table of Contents 1 Introduction 1 1 Camera 0 eere 1 1 1 2 Performance lt 1 2 1 3 Spectral Response ouium Rede eb pea abeo dais bs 1 4 1 4 Environmental Requirements
197. save the work set to a file Section 4 3 1 explains using read write commands BASLER A400k Basic Operation and Features 3 13 2 Activating a Saved User Set File As explained in Section 3 13 1 you can save configuration sets to files in the camera s non volatile memory These saved configuration sets are commonly referred to as user configuration sets or user sets If you have saved one or more user set files you can choose to activate one of the stored files When you activate a stored user set file two things happen The values from the stored user set file are copied into the work set in the camera s volatile memory The camera will now use the configuration values that were copied into the work set is created between the activated user set file and the camera s volatile memory The values in the activated user set file will now be automatically copied into the work set when ever the camera is powered up or reset Activating a Stored User Set File You can activate a stored user set file by using the Camera Configuration Tool Plus or by using binary read write commands from within your own application to set the camera s bulk data control and status registers CSRs With the CCT With the CCT see Section 4 1 you use the File Name Select parameter and the Activate User Set parameter in the User Set Files parameters group to activate a saved user set file By Setting CSRs You can activa
198. sed Not Used Strobe TxINCLK RxOUTCLK Pixel Clock Pixel Clock Table 2 6 Bit Assignments for Plug 1 Transmitter X in an A403k Medium Configuration BASLER A400k 405 Plug No 2 Transmitter Y Signal Port Camera 3 4 Tap 8 Bit 4 Tap 10 Bit Port DO TxINO RxOUTO D3 Bit 0 D3 Bit 0 Port D1 TXxIN1 RxOUT1 D3 Bit 1 D3 Bit 1 Port D2 TxIN2 RxOUT2 D3 Bit 2 D3 Bit 2 Port D3 TxIN3 RxOUT3 D3 Bit 3 D3 Bit 3 Port D4 TxIN4 RxOUT4 D3 Bit 4 D3 Bit 4 Port D5 TxIN6 RxOUT6 D3 Bit 5 D3 Bit 5 Port D6 TxIN27 RxOUT27 D3 Bit 6 D3 Bit 6 Port D7 TxIN5 RxOUT5 D3 Bit 7 MSB D3 Bit 7 Port EO TxIN7 RxOUT7 Not Used D2 Bit 0 Port E1 TxIN8 RxOUT8 Not Used D2 Bit 1 Port E2 TxIN9 RxOUT9 Not Used D2 Bit 2 Port E3 TxIN12 RxOUT12 Not Used D2 Bit 3 Port E4 TxIN13 RxOUT13 Not Used D2 Bit 4 Port E5 TxIN14 RxOUT14 Not Used D2 Bit 5 Port E6 TxIN10 RxOUT10 Not Used D2 Bit 6 Port E7 TxIN11 RxOUT11 Not Used D2 Bit 7 Port FO TxIN15 RxOUT15 Not Used D2 Bit 8 Port F1 TxIN18 RxOUT18 Not Used D2 Bit 9 MSB Port F2 TxIN19 RxOUT19 Not Used Not Used Port F3 TxIN20 RxOUT20 Not Used Not Used Port F4 TxIN21 RxOUT21 Not Used D3 Bit 8 Port F5 TxIN22 RxOUT22 Not Used D3 Bit 9 MSB Port F6 TxIN16 RxOUT16 Not Used Not Used Port F7 TxIN17 RxOUT17 Not Used Not Used LVAL TxIN24 RxOUT24 Line Valid Line Valid FVAL TXIN25 RxOUT25 Frame Valid Frame Valid DVAL TxIN26 RxOUT26
199. set the camera s control and status registers CSRs With the With the see Section 4 1 you use the Create Column FPN Shading Values File parameter in the Column FPN Shading Value File parameters group to save the column FPN shading set currently in the volatile memory to a file in the non volatile memory By Setting CSRs You can save the current shading correction values to a file in the non volatile memory by writing values to the bulk data CSR for column FPN shading values Section 4 2 3 explains the bulk data CSRs and explains how to use the CSRs to save the shading values to a file Section 4 3 1 explains using read write commands BASLER A400k Basic Operation and Features 3 6 2 DSNU Shading Correction In theory when an area scan camera with a digital sensor captures a frame in complete darkness all of the pixel values in the frame should be near zero and they should be equal In practice slight variations in the performance of the pixels in the sensor will cause some variation the pixel values output from the camera when the camera is capturing frames in darkness This variation is known as Dark Signal Non uniformity DSNU The DSNU shading correction feature on A400k cameras can correct for the variations caused by DSNU Generating a Set of DSNU Shading Correction Values Before you can use DSNU shading correction you must generate a set of DSNU shading correction values To generate a set of values p
200. ss 0x1E00 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Switching Mode Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field sets the switching of the flash trigger output signal 0x00 TTL 0x01 Open collector Low Side Switch 5 V max 0x02 High Side Switch 5 V 0x03 High impedance default See Section 2 5 8 for more information about the flash trigger signal BASLER A400k 4 31 Configuring the Camera Test Image Mode CSR Register Base Address 0x1800 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Mode Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field sets the test image mode 0x00 No test image 0x01 7 Test image one enabled vertical stripe pattern 0x02 Test image two enabled still diagonal stripe pattern 0x03 Test image three enabl
201. t 7 Capture several frames and examine the pixel values returned from the camera In each frame the values for the darkest pixels must not be less 1 2 of the values for the lightest pixels in the line If the values for the darkest pixels are less than 1 2 of the value for the lightest pixels the camera will not be able to fully correct for shading variations a Ifthe values for the darkest pixels are not less than 1 2 of the value for the lightest pixels go on to step 8 BASLER A400k 3 17 Basic Operation and Features b If the values for the darkest pixels are less than 1 2 of the value for the lightest pixels it usually indicates extreme variations in lighting or poor quality optics Make corrections as required 8 Signal the camera to generate a set of PRNU shading values You can start the generation of a set of PRNU shading values by using the Camera Configuration Tool Plus see Section 4 1 With the you set the Shading Value Generate parameter in the DSNU amp PRNU Shading Correction parameters group to start the generation of a set of PRNU shading values b You can also start the generation of the PRNU shading table by using a binary write command see Section 4 3 to write a value to the Generate field of the DSNU or PRNU Shading Value Generate CSR see page 4 24 9 The camera must capture at least eight frames to generate a set of PRNU shading correction values If your camera is set to control exposure
202. t 3 D1 Bit 3 D2 Bit 3 Port C4 TxIN21 RxOUT21 D2 Bit 4 D1 Bit 4 D2 Bit 4 Port C5 TxIN22 RxOUT22 D2 Bit 5 D1 Bit 5 D2 Bit 5 Port C6 TxIN16 RxOUT16 D2 Bit 6 D1 Bit 6 D2 Bit 6 Port C7 TxIN17 RxOUT17 D2 Bit 7 MSB D1 Bit 7 D2 Bit 7 MSB LVAL TxIN24 RxOUT24 Line Valid Line Valid Line Valid FVAL TxIN25 RxOUT25 Frame Valid Frame Valid Frame Valid DVAL TxIN26 RxOUT26 Not Used Not Used Not Used Spare TxIN23 RxOUT23 Not Used Not Used Not Used Strobe TxINCLK RxOUTCLK Pixel Clock Pixel Clock Pixel Clock Table 2 8 Bit Assignments for Plug 1 Transmitter X in an A404k Full Configuration BASLER A400k Camera Interface A404k Plug No 2 Transmitter Y Signal Port Camera x 4 Tap 8 Bit 4 Tap 10 Bit 8 Tap 8 Bit Port DO TxINO RxOUTO D3 Bit 0 D3 Bit 0 D3 Bit 0 Port D1 TxIN1 RxOUT1 D3 Bit 1 D3 Bit 1 D3 Bit 1 Port D2 TxIN2 RxOUT2 D3 Bit 2 D3 Bit 2 D3 Bit 2 Port D3 TxIN3 RxOUT3 D3 Bit 3 D3 Bit 3 D3 Bit 3 Port D4 TxIN4 RxOUT4 D3 Bit 4 D3 Bit 4 D3 Bit 4 Port D5 TxIN6 RxOUT6 D3 Bit 5 D3 Bit 5 D3 Bit 5 Port D6 TxIN27 RxOUT27 D3 Bit 6 D3 Bit 6 D3 Bit 6 Port D7 TxIN5 RxOUT5 D3 Bit 7 MSB D3 Bit 7 D3 Bit 7 MSB Port EO TxIN7 RxOUT7 Not Used D2 Bit 0 D4 Bit 0 Port E1 TxIN8 RxOUT8 Not Used D2 Bit 1 D4 Bit 1 Port E2 TxIN9 RxOUT9 Not Used D2 Bit 2 D4 Bit 2 Port E3 TxIN12 RxOUT12 Not Used D2 Bit 3 D4 Bit 3 Port E4 TxIN13 RxOUT13 Not Used D2
203. t 8 bit or 10 bit depth For the A404k on each Pixel Clock signal four pixels are transmitted at 8 bit or 10 bit depth when the camera is set for 4 tap output When an A404k is set for 8 tap output eight pixels at a depth of 8 bits are transmitted on each Pixel Clock signal 2 5 2 Line Valid Bit As shown in Figures 2 9 through 2 13 the line valid bit indicates that a valid line is being transmitted Pixel data is only valid when this bit is high On the A402k 1176 pixel clocks are required to transmit one full line On the A403k 588 pixel clocks are required to transmit one full line On the A404k 588 pixel clocks are required to transmit one full line when the camera is set for 4 tap output and 294 pixel clocks are required when the camera is set for 8 tap output On the A402k line valid is assigned to the line valid port on Camera Link transmitter X as defined in the Camera Link standard On the A403k line valid is assigned to the line valid ports on Camera link transmitters X and Y as defined in the standard On the A404k line valid is assigned to the line valid ports on transmitters X Y and Z as defined in the standard see Tables 2 5 through 2 10 2 5 3 Frame Valid Bit As shown in Figures 2 9 through 2 13 the frame valid bit indicates that a valid frame is being transmitted Pixel data is only valid when the frame valid bit and the line valid bit are both high One frame can contain 2 to 1726 Line Valid signals On the A402k
204. t Used D6 Bit 5 Port G6 TxIN27 RxOUT27 Not Used Not Used D6 Bit 6 Port G7 TxIN5 RxOUT5 Not Used Not Used D6 Bit 7 MSB Port HO TxIN7 RxOUT7 Not Used Not Used D7 Bit 0 Port H1 TxIN8 RxOUT8 Not Used Not Used 07 Bit 1 Port H2 TxIN9 RxOUT9 Not Used Not Used D7 Bit 2 Port H3 TxIN12 RxOUT12 Not Used Not Used D7 Bit 3 Port H4 TxIN13 RxOUT13 Not Used Not Used D7 Bit 4 Port H5 TxIN14 RxOUT14 Not Used Not Used 07 Bit 5 Port H6 TxIN10 RxOUT10 Not Used Not Used 07 Bit 6 Port H7 TxIN11 RxOUT11 Not Used Not Used 07 Bit 7 MSB Spare TxIN15 RxOUT15 Not Used Not Used Not Used Spare TxIN18 RxOUT18 Not Used Not Used Not Used Spare TxIN19 RxOUT19 Not Used Not Used Not Used Spare TxIN20 RxOUT20 Not Used Not Used Not Used Spare TxIN21 RxOUT21 Not Used Not Used Not Used Spare TxIN22 RxOUT22 Not Used Not Used Not Used Spare TxIN16 RxOUT16 Not Used Not Used Not Used Spare TXIN17 RxOUT17 Not Used Not Used Not Used LVAL TxIN24 RxOUT24 Line Valid Line Valid Line Valid FVAL TxIN25 RxOUT25 Frame Valid Frame Valid Frame Valid DVAL TxIN26 RxOUT26 Not Used Not Used Not Used Spare TxIN23 RxOUT23 Not Used Not Used Not Used Strobe TxINCLK RxOUTCLK Pixel Clock Pixel Clock Pixel Clock Table 2 10 Bit Assignments for Plug 2 Transmitter Z in an A404k Full Configuration 2 20 BASLER A400k Camera Interface 2 5 5 Video Data Output for the A402k Depending on the video data output mode selected A402k cameras output pixel data in either a 2 tap 10 bit or a 2 tap 8 bit
205. t used Field Name Raw Max Offset 0x0015 Size 4 Bytes Read only Description Maximum allowed integer value for the raw exposure time setting This field is updated to reflect limitations caused by the way any related features are set The 4 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value Byte 3 High byte of the max value Byte 4 Always 0x00 not used BASLER A400k 4 17 Configuring the Camera Frame Period CSR Note The frame period can be set by writing a floating point value to the Absolute Frame Period field or by writing an integer value to the Raw Frame Period field Refer to Section 4 2 2 1 for an explanation of the difference between these two fields Register Base Address 0x1680 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this control register 0x00 7 The register is not available 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Absolute Frame Period Offset 0x0001 Size 4 Bytes Read Write Description Writing a floating point value to this field sets the frame period in us For example if the value in this field is set to 71 1 the frame period would be 71 1 us The range of possible settings depends on the area of interest AOI
206. te a stored user set file by writing values to the bulk data CSR for configuration sets The bulk data activate process is used to activate a file Section 4 2 3 explains bulk data CSRs and using the bulk data activate process Section 4 3 1 explains using read write commands 3 13 3 Activating the Factory Set File As explained on page 3 42 a factory configuration set containing an optimized set of parameters is created when the camera is manufactured The factory set is saved in a permanent file in the camera s non volatile memory The factory set file can not be altered or deleted and is not lost when the camera is switched off You can activate the factory set file in a manner that is similar to activating one of your saved user set files Activating the factory set file is a good way to return the camera to normal operation if you have severely misadjusted some of the camera s parameters and you are not sure how to recover When you activate the factory set two things happen The values from the factory set file are copied into the work set in the camera s volatile mem ory The camera will now use the factory set values that were copied into the work set Alink is created between the factory set file and the camera s volatile memory The values in the factory set will now be automatically copied into the work set whenever the camera is powered up or reset BASLER A400k 3 43 Basic Operation and Features Activa
207. te of the minimum raw value 4 22 BASLER A400k Configuring the Camera Field Name Raw Max Offset 0 000 Size 2 Bytes Read only Description Maximum allowed integer value for the raw offset setting This field is updated to reflect lim itations caused by the way any related features are set The 2 bytes in this field are interpreted as 16 bit signed integer Byte 1 Low byte of the maximum raw value Byte 2 High byte of the maximum raw value Column FPN Shading Correction CSR Register Base Address 0x2180 Field Name Register Status Offset 0x0000 Size 1 Byte Type Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range 0x82 The generation process failed Field Name Generate Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field will either begin the routine that makes the camera gen erate a set of column FPN shading correction values or make the ADCs in the sensor self calibrate so the FPN shading correction values are reset to their original values 0x00 Do nothing 0x01 Generate and use column FPN correction values 0x02 Reset column FPN correction values See Section 3 6 for more information about shading correction BASLER A4
208. teger value to the Raw Gain field Refer to Section 4 2 2 1 for an explanation of the difference between these two fields Register Base Address 0x0E00 Field Name Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Absolute Gain Offset 0x0001 Size 4 Bytes Read Write Description Writing a floating point value to this field sets the gain in For example if the value in this field is set to 10 the gain would be 1096 The gain can normally range from 096 to 10096 in increments of 1 The actual available range may be limited by the way any related parameters are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber See Section 3 5 for more information about gain Field Name Absolute Min Offset 0x0005 Size 4 Bytes Type Read only Description Minimum allowed floating point value for the absolute gain setting This field is updated to reflect limitations caused by the way any related features are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Absolute Max Offset 0x0009 Size 4 Bytes Read only Description Maximum allo
209. the A402k 2 21 2 5 6 Video Data Output for the A403k 2 24 2 5 7 Video Data Output for the A404k 2 28 2 5 7 1 4 Tap 10 Bit and 4 Tap 8 Bit Output Modes 2 28 2 5 7 2 8 Tap 8 Bit Output Mode 2 28 2 5 8 Flash Trigger Signal Jere nra deaa ell eran 2 32 2 5 8 1 Setting the Flash Trigger 2 32 2 6 RS 644 Serial Communication 2 33 2 6 1 Making the Serial 2 33 2 7 Converting Camera Link Output to RS 644 with a k BIC A402k Only 2 34 2 9 DG a Rode bett Y ep rb Ud es Reed ute bed 2 34 BASLER A400k i Table of Contents 3 Basic Operation and Features 3 1 Functional llli 3 1 3 2 Video Data Output Modes 3 3 3 2 1 Setting the Video Data Output Mode 3 3 3 3 Exposure Time Control Modes 3 4 3 3 1 ExSync Controlled Operation 3 4 3 3 1 1 Basics of ExSync Controlled 3 4 3 3 1 2 Guidelines When Using an ExSync Signal 3 5 3 3 1 3 Selecting an ExSync Exposure Mode amp Setting the Exposure Time 3 5 Oi
210. the data sheet for the re ceiver that you are using for specific timing information Video Data Sequence for the A403k When the camera is not transmitting valid data the frame valid and line valid bits sent on each cycle of the pixel clock will be low The camera can begin capturing a new frame while it is sending data for a previously captured frame It can also capture a frame and then send it before beginning capture of a new frame When frame valid becomes high the camera starts to send valid data On the pixel clock cycle where frame data transmission begins the frame valid bit will become high 24 pixel clocks 480 ns later the line valid bit will become high On the pixel clock cycle where data transmission for line one begins the line valid bit will become high Four data streams DO D1 D2 and D3 are transmitted in parallel during this clock cycle On this clock cycle data stream DO will transmit data for pixel one in line one Data stream D1 will transmit data for pixel two in line one Data stream D2 will transmit data for pixel three in line one And data stream D3 will transmit data for pixel four in line one Depending on the video data output mode selected the pixel data will be at either 10 bit or 8 bit depth On the next cycle of the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel five in line one Data stream D1 will transmit data for BASL
211. the pixel clock the line valid bit will be high On this clock cycle data stream DO will transmit data for pixel nine in line two Data stream D1 will transmit data for pixel ten in line two Data stream D2 will transmit data for pixel eleven in line two Data stream D3 will transmit data for pixel twelve in line two Data stream D4 will transmit data for pixel thirteen in line two Data stream D5 will transmit data for pixel fourteen in line two Data stream D6 will transmit data for pixel fifteen in line two Data stream D7 will transmit data for pixel sixteen in line two This pattern will continue until all of the pixel data for line two has been transmitted A total of 294 cycles After all of the pixels in line two have been transmitted the line valid bit will become low for eight cycles indicating that valid data for line two is no longer being transmitted The camera will continue to transmit pixel data for each line as described above until all of the lines in the frame have been transmitted After all of the lines have been transmitted the frame valid bit and the line valid will become low indicating that a valid frame is no longer being transmitted Figure 2 12 shows the data sequence when the camera is operating in edge controlled or level controlled exposure mode and figure 2 13 shows the data sequence when the camera is operating in programmable exposure mode BASLER A400k 2 29 Camera Interface ExSync Signal I ma
212. the slope of the response curve and results in a lower camera output for a given amount of light Increasing gain also increases noise The signal to noise ratio decreases as gain is increased 3 5 1 1 Setting the Gain Basic Operation and Features 255 192 0 dB Camera Output in dbi 128 mode 64 0 Low Medium High Light Level 255 6 192 Output in d bi 128 mode 64 0 Low Medium High Light Level Figure 3 10 Response at Various Gain Settings You can set the gain by using the Camera Configuration Tool Plus or by using binary write commands from within your own application to set the camera s control and status registers CSRs With the With the see Section 4 1 you use the Gain setting in the Gain amp Offset parameter group to set the gain By Setting CSRs You can set the gain by writing a value to the Raw Gain field or to the Absolute Gain field of the Gain CSR see page 4 20 Section 4 2 2 explains CSRs and the difference between using the raw field and the absolute field in a CSR Section 4 3 1 explains using read write commands BASLER A400k 3 11 Basic Operation and Features 3 5 2 Offset Offset on A400k cameras is adjustable within a range from 096 to 10096 where 096 correspond to an offset of 0 gray values and 100 correspond to an offset of approximately 32 gray values 8 bit output mode or 128 gray values 10 bit output mode Incre
213. tics of the port must comply with the Camera Link standard and the DLL called In order for the Camera Configuration Tool Plus to detect and use the port the char for in the standard must be present When the camera is powered on or when a camera reset is performed your PC may receive some random characters on the serial interface We recommend clearing the serial input buffers in your PC after a camera power on or reset If you are configuring the camera using binary commands from within your application software your software must be able to access the frame grabber serial port and to determine the appropriate settings so that it can open and use the port Please consult your frame grabber s documentation to determine the port access method and the port characteristics BASLER A400k 2 33 Camera Interface 2 7 2 8 Converting Camera Link Output to RS 644 with a k BIC A402k Only On the A400k video data is output from the camera in Camera Link LVDS format and parameter change commands are issued to the camera using RS 644 serial communication via the frame grabber On older cameras video data was output using an RS 644 LVDS format and commands were issued using RS 232 serial communication via the host PC The output from A402k 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 A402k with a Camera Lin
214. ting the Factory Set File You can activate the factory set file with the Camera Configuration Tool Plus or by using binary read write commands from within your own application to set the camera s bulk data control and status registers CSRs With the With the CCT see Section 4 1 you use the File Name Select parameter and the Activate User Set parameter in the User Set Files parameters group to activate the factory set file By Setting CSRs You can activate the factory set file by writing values to the bulk data CSR for configuration sets The bulk data activate process is used to activate the factory set file Section 4 2 3 explains bulk data CSRs and using the bulk data activate process Section 4 3 1 explains using read write commands 3 13 4 Which Configuration Set File Will Load at Startup or at Reset On the initial wake up after delivery the camera copies the factory set into the work set At each subsequent power on or reset the configuration set file that was last activated is copied into the work set If there is no activated file the factory set file will be copied into the work set 3 13 5 Saving a User Set to PC Loading a User Set from PC You can save a user set to the hard disk of your computer and load a user set from hard disk into your camera This is useful if you wish to use this user set on another camera of the same type Saving a User Set to PC or Loading a User Set from PC You c
215. tion Tool Plus or by using binary read write commands from within your own application to set the camera s control and status registers CSRs With the With the Camera Configuration Tool Plus see Section 4 1 you set the Shading Mode parameter in the Shading Correction parameters group to enable PRNU shading correction By Setting CSRs You can enable PRNU shading correction by writing a value to the Mode field of the DSNU and or PRNU Shading Correction Enable CSR see page 4 24 Section 4 2 2 explains CSRs Section 4 3 1 explains using read write commands BASLER A400k Basic Operation and Features Saving a Set of Shading Values to a File When you generate a set of PRNU shading correction values the values are placed in the camera s volatile memory and they overwrite any shading values that are already in the memory The current set of values in the volatile memory is used immediately by the camera Values placed in the camera s volatile memory are lost if the camera is reset or the camera power is switched off A400k cameras can save the current PRNU values in the volatile memory to a file in the camera s non volatile memory Files saved in the non volatile memory are not lost at reset or power off You can save only one set of PRNU values to file in the non volatile memory A save will take approximately two minutes You can save the current shading values to a file in the non volatile memory by using the Camer
216. to the camera to perform a pre defined sequence of areas of interest 400 cameras have a file system similar to the file system used on PCs A400k cameras can store blocks of bulk data such as configuration sets a set of shading values or an AOI list named files within the camera s non volatile memory The camera s bulk data control and status registers CSRs are used to save blocks of bulk data to files in the non volatile memory For example you can use the configuration set bulk data control register to create a named file in the camera and to store the settings from the current work configuration set in that file In the case of the A400k there are three types of bulk data configuration sets a set of shading values and an AOI list There is a separate bulk data control and status register for each type of bulk data The configuration set bulk data CSR is used to work with configuration sets the shading value CSR is used to work with a set of shading values and the AOI list CSR is used to upload an AOI list By writing to fields within a bulk data CSR you can do things such as saving a block of bulk data to a file in the non volatile memory copying a saved bulk data file from the camera to a PC and creating a list of existing saved bulk data files Section 4 2 3 2 lists the bulk data CSRs in A400k cameras and provides a general description of the use of each field within the registers The best way to understand the use of the bulk
217. u read the error flags Register Base Address 0x0C20 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this inquiry register 0x00 The register is not available 0x01 The register is available Field Name Sensor FPGA Status Offset 0x0001 Size 1 Byte Type Read only Description Each bit in this field specifies an error condition see table below Bit O is the least signifi cant bit If a bit is setto 1 the error condition assigned to that bit is present If the bit is set to 0 the error is not present Bit Description 0 No FPGA firmware available 1 FPGA firmware is available but the firmware has failed to load 2 The camera s maximum frame rate has been exceeded 3 There is no ExSync signal 4 The last shading value generation process failed 5 The FPGA is not ready 6 Parameter error for example a parameter has been set to a value that is out of range or not allowed or in conflict with other settings 7 Reserved BASLER A400k 4 11 Configuring the Camera 4 12 Binary Command Protocol Status Inquiry The camera has been programmed to detect several error conditions When a protocol error is detected a flag is set The protocol status inquiry register lets you read the error flags Register Base Address 0x0C30 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Descript
218. unctions exported by the DLL receive some random characters on the serial interface We recommend clearing the When the camera is powered on or when a camera reset is performed your PC may serial input buffers in your PC after a camera power on or reset If you are using your camera with an optional Basler Interface Converter k BIC you can use binary commands to configure the camera via the RS 232 serial connection between your PC and the k BIC BASLER A400k 4 45 Configuring the Camera 4 3 1 The Binary Read Write Command Protocol With the binary read write command protocol data is placed into a frame and sent to the camera When the frame is received it is checked for validity If valid the data is extracted from the frame and the command is executed This section describes the basic layout of a binary command frame Figure 4 2 shows a graphical representation of the fields within a binary command frame The text below the graphic describes each field of the command frame in detail 1 Transmit BFS DataLen Address DATA BCC BFE 8 bits 8 bits 8 bits Length specified RTF Length specified in DataLen 8 bits 8 bits Response ease Figure 4 2 Representation of a Command Frame and Response BFS Binary Frame Start field Identifies the start of a binary frame Size 1 byte The value of the BFS byte is always 0x01 FTF Frame T
219. up reset Parameter Set Cache CSR Register Base Address 0x3000 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Mode Offset 0x0001 Size 4 Bytes Read Write Description Writing an integer value to this field enables disables parameter set cache 0x00 Parameter set cache disabled 0x01 Parameter set cache enabled See Section 3 14 for more information about parameter set cache 4 34 BASLER A400k Configuring the Camera 4 2 3 Bulk Data and the Bulk Data Control and Status Registers The term bulk data refers to a collection of values used by the camera as a block A configuration Set see Section 3 13 is an example of one type of bulk data A single configuration set contains values for all of the normal parameters needed to configure the camera and the values within a configuration set are used by the camera as a block On A400k cameras a set shading values see Section 3 6 is an example of another type of bulk data A set of shading values contains all of the values needed to do column FPN DSNU and PSNU shading correction Another example of a type of bulk data is the programmable list that is uploaded
220. ure to make note of the camera settings and the frame grabber settings you are using You should also have a captured live image and a captured test image available Technical support will frequently request that you e mail copies of these captured images BASLER A400k Troubleshooting 6 2 3 Interfacing Use the interfacing troubleshooting charts if you think that there is a problem with the cables between your devices or if you have been directed here from another chart Interfacing Chart Always switch off power to the system before making or breaking any connection If you have not already done so use a voltmeter to check the power Source for the camera The output must be 12 VDC x 1 2 V Also make Replace the sure that the power source meets the other specs shown in Section 2 8 No power source Is the power source OK Yes Reseat the cable connections at the camera and the frame grabber em After you reseated the connections is the problem still present No Yes Check all of the cables in the system Check Section 2 2 of this manual and make sure that you are using a cable that has the right characteristics and is not too long It is extremely important to use the proper cables when you are working with Camera Link based cameras No Exit this Use an ohm meter to check each wire to see if it is broken or shorted to any of the other chart wires in the cable After you checked the cables is the p
221. wed floating point value for the absolute gain setting This field is updated to reflect any limitations caused by the way any related features are set The value in this field is a standard IEEE 754 single precision 32 bits floating point num ber Field Name Raw Gain Offset 0x0000D Size 2 Bytes Type Read Write Description Writing an integer value to this field sets the gain The value can normally range from 096 0x00 to 10096 0x64 in increments of 1 The ac tual available range may be limited by the way any related parameters are set The 2 bytes in this field are interpreted as 16 bit signed integer Byte 1 Low byte of the raw value Byte 2 High byte of the raw value See Section 3 5 for more information about gain Field Name Raw Min Offset 0 000 Size 2 Bytes Read only Description Minimum allowed integer value for the raw gain setting This field is updated to reflect lim itations caused by the way any related features are set The 2 bytes in this field are interpreted as 16 bit signed integer Byte 1 Low byte of the minimum raw value Byte 2 High byte of the minimum raw value 4 20 BASLER A400k Configuring the Camera Field Name Raw Max Offset 0 000 Size 2 Bytes Read only Description Maximum allowed integer value for the raw gain setting This field is updated to reflect lim itations caused by the way any related features are set The 2 bytes in this fie
222. with only minor changes to the configuration For normal operation the following parameters are usually configured by the user Video data output mode Exposure time control mode Exposure time for ExSync programmable mode or free run programmable mode Frame period for ExSync programmable mode or free run programmable mode To customize operation for your particular application the following parameters can also be configured Gain Offset Shading Correction Digital Shift Area of Interest AOI Stamp Programmable Sequencer Flash Trigger Parameter Set Cache The camera is programmable via the RS 644 serial connection in the Camera Link interface between the frame grabber and the camera Two methods can be used to change the camera s parameters The first and easier approach is to change the parameters using the Camera Configuration Tool Plus See Section 4 1 for instructions on using the configuration tool You can also change the parameters directly from your application by using binary read write commands to set the camera s registers see Section 4 2 BASLER A400k 4 1 Configuring the Camera 4 1 4 2 Configuring the Camera with the Camera Configuration Tool Plus The Camera Configuration Tool Plus is a Windows based program used to easily change the camera s parameter settings The tool communicates via the RS 644 serial connection in the Camera Link int
223. x 7 89 ms 10 391 ms E D Frame Valid H 4l 460 ns 140 ns 5 88 us 0 0 nga OOOO OO DO ODOM DOODOOOOEOD veges OOOO XEM e OOOO OOD OODOONMDOODOONO EDD on ges OOOO OOD OOOO OO XO XXX G9 CO on ges OOOO OOD OODOONMDOODOONO GOD OOOO OOD OOOOON DOODOON OD OOOO OO DO OOO DDO OXX TIMING DIAGRAMS ARE NOT DRAWN TO SCALE 0 c Uu 0 v 0 v The diagram assumes that the area of interest feature is not being used With the area of interest feature enabled the number of pixels transferred could be smaller Figure 2 12 A404k 8 Tap Output with Edge or Level Controlled Exposure 2 30 BASLER A400k BASLER A400k Camera Interface end of e programmed exposure time I max 7 89 ms 10 391 ms 1 1H 1L 1L Frame Valid 4l 460 ns 140 ns 5 88 ps ond uf 7 Line Line 1 Line 2 Line 1726 Valid _ 4 UU Pigs COGO CX OO XO CX OOXOCOXGXDE apis Pixel paa x X E x 1 Pixel paa x X Xa X KX gt Pixel id d X X X 14 X 2342 X 2350X X X X X X X 2350X X X X X X 14 X 2342 2350X X 8 bits Pixel 556 X X X 15 X X 2343 2351X X X X X
224. x01 2 tap 8 bit output A402k 0x03 2 tap 10 bit output A402k 0x10 4 tap 8 bit output A403k and A404k 0x12 4 tap 10 bit output A403k and A404k 0x11 8 tap 8 bit output A404k See Sections 2 5 5 A402k 2 5 6 A403k and 2 5 7 A404k for descriptions of the video data output modes Exposure Time Control Mode CSR Register Base Address 0x1400 Field Name Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available related settings are OK 0x80 A value in this register is set out of range Field Name Mode Offset 0x0001 Size 1 Byte Type Read Write Description Writing an integer value to this field sets the exposure time control mode 0x00 Free run programmable 0x02 Free run edge controlled 0x04 ExSync level controlled 0x05 ExSync programmable 0x06 ExSync edge controlled See Section 3 3 for descriptions of the exposure time control modes BASLER A400k 4 15 Configuring the Camera Exposure Time CSR Note The exposure time can be set by writing a floating point value to the Absolute Exposure Time field or by writing an integer value to the Raw Exposure Time field Refer to Section 4 2 2 1 for an explanation of the difference between these two fields Register Base Address 0x1500 Field Name Regist
225. x14 115200 bps 1800 bps OxOB 2400 bps When changing a setting for serial communication use the following procedure 1 Issue the write command with the new setting 2 Wait one second 3 Change the setting on the serial port that the camera is using a If you are using a Camera Link frame grabber change the setting on the frame grabber s RS 644 serial port b If you are using the camera with a k BIC change the bit rate on your PC s RS 232 serial port A402k only 4 Resume communication 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 At reset or power off on the camera returns to the 9600 bps setting BASLER A400k 4 33 Configuring the Camera Camera Reset CSR Register Base Address 0x0B00 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range Field Name Reset Offset 0x0000 Size 1 Byte Type Write only Description Writing an integer value of 1 0x01 to this field will initiate a camera reset The reset be havior is similar to a power
226. you select either rising edge or falling edge sampling Please consult the data sheet for the re ceiver that you are using for specific timing information BASLER A400k Camera Interface Video Data Sequence for the A404k in an 8 Tap Output Mode When the camera is not transmitting valid data the frame valid and line valid bits sent on each cycle of the pixel clock will be low The camera can begin capturing a new frame while it is sending data for a previously captured frame It can also capture a frame and then send it before beginning capture of a new frame When frame valid becomes high the camera starts to send valid data On the pixel clock cycle where frame data transmission begins the frame valid bit will become high 23 pixel clocks 460 ns later the line valid bit will become high On the pixel clock cycle where data transmission for line one begins the line valid bit will become high Eight data streams DO through D7 are transmitted in parallel during this clock cycle On this clock cycle data stream DO will transmit data for pixel one in line one Data stream D1 will transmit data for pixel two in line one Data stream D2 will transmit data for pixel three in line one Data stream D3 will transmit data for pixel four in line one Data stream 04 will transmit data for pixel five in line one Data stream D5 will transmit data for pixel six in line one Data stream D6 will transmit data for pixel seven in line one Dat
227. ype and Format field Identifies the frame type and format Size 1 byte The bits in the FTF field are assigned as follows 7 6 5 4 3 2 1 0 OpCode BCC AddrLen Code The MSB of the FTF field is on the left highest bit of the opcode and the LSB of the field is on the right lowest bit of the address length 4 46 BASLER A400k Configuring the Camera The value in the OpCode portion of the FTF field defines the function of the binary com mand that is whether it is a read command or a write command The following OpCodes are available OpCode Function 0b00000 This is a write command used to write a single setting to the camera 0600001 This is read command used to read a single setting from the camera 0b00010 This is a read response frame without an address field The AddrLen bits are don t care 0b00100 This is a bulk write command used to upload a file into the camera 0b00101 This is a bulk read command used to download a file from the camera 0b00110 This is a bulk read response frame without an address field The AddrLen bits are don t care The BCC Code portion of the FTF field indicates the presence of a Block Check Character BCC the use of a BCC is optional BCC Code Function 050 This frame and also the response frame contains field 061 This frame and also the response frame contains field The
228. ytes Read only Description Minimum allowed integer value for the starting line setting This field is updated to reflect limitations caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the min value Byte 2 High byte of the min value Field Name Max Offset 0x0005 Size 2 Bytes Read only Description Maximum allowed integer value for the starting line setting This field is updated to reflect limitations caused by the way any related features are set The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value Field Name Increment Offset 0x0007 Size 2 Bytes Read only Description An integer value indicating the increment for the starting line setting The 2 bytes in this field are interpreted as follows Byte 1 Low byte of the max value Byte 2 Mid byte of the max value 4 28 BASLER A400k Configuring the Camera Area of Interest Height in Lines CSR Register Base Address 0x1030 Field Name Register Status Offset 0x0000 Size 1 Byte Read only Description The integer value in this field indicates the status of this control register 0x00 The register is not available 0x01 The register is available All related settings are OK 0x80 A value in this register is set out of range 0X81 The setting for the AOI starting line
Download Pdf Manuals
Related Search
Related Contents
User Manual - MAX Smart Home ViraBind™ Adenovirus Purification Kit Silex technology Server SX-500-1402 User's Manual Student Guide to the University Library 14.03.07 救助袋の取扱い訓練時における安全管理の徹底について PDH2100 Part8 By Mary Ann Richardson Nouveau temple de l`art - Mairie d`Aix-en Manuel d`instructions VP-20-HA Copyright © All rights reserved.
Failed to retrieve file