Divina LM2 User manual

DIVIINA® LM2
Line Scan Camera
1
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
DIVIINA LM2 Camera
User Manual

DIVIINA® LM2
Line Scan Camera
2
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
Summary
1
CAMERA OVERVIEW ............................................................................4
1.1 Features ....................................................................................................................................4
1.2 Key Specifications ....................................................................................................................4
1.3 Description ................................................................................................................................5
1.4 Typical Applications ..................................................................................................................5
1.5 Models & Part numbers.............................................................................................................5
2
IMAGE SENSOR.................................................................................6
2.1 Sensor Structure......................................................................................................................6
2.2 Response of the sensors...........................................................................................................6
3
CAMERA HARDWARE INTERFACE.............................................................7
3.1 Mechanical Drawings.................................................................................................................7
3.2 Input/output Connectors and LED...........................................................................................8
3.2.1 Power Connector.................................................................................................................................................................8
3.2.2 Camera Link Output Configuration.................................................................................................................................9
4
STANDARD CONFORMITY ................................................................... 10
4.1 CE Conformity .........................................................................................................................10
4.2 RoHs Conformity.....................................................................................................................10
5
GETTING STARTED........................................................................... 11
6
CAMERA SOFTWARE INTERFACE ........................................................... 12
6.1 Control and Interface.............................................................................................................12
6.2 Serial Protocol and Command Format ....................................................................................13
6.2.1 Syntax................................................................................................................................................................................. 13
6.2.2 Command Processing ........................................................................................................................................................13
6.3 Camera Commands...................................................................................................................14
6.3.1 Information .......................................................................................................................................................................14
6.3.2 Setup...................................................................................................................................................................................15
6.3.3 Exposure and Synchronization ......................................................................................................................................16
6.3.4 Gain and Offset............................................................................................................................................................... 20
6.3.5 Save & Restore Settings ................................................................................................................................................ 21
7
APPENDIX A: Test Patterns ................................................................. 22
7.1 1024 Pixels Camera .................................................................................................................22
7.2 2048 Pixels Camera.................................................................................................................22
7.3 4096 Pixels Camera.................................................................................................................22

DIVIINA® LM2
Line Scan Camera
3
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
8
APPENDIX B: Optical Mounts available ...................................................... 23
8.1 F-Mount ...................................................................................................................................23
8.2 C-Mount ...................................................................................................................................24
9
APPENDIX C : TROUBLESHOOTING ........................................................ 25
9.1 Camera .....................................................................................................................................25
9.2 CommCam Connection..............................................................................................................26
10
APPENDIX D : Command Summary ........................................................ 27
10.1 Information .............................................................................................................................27
10.2 Signal Source ..........................................................................................................................27
10.3 Exposure & Synchronisation...................................................................................................27
10.4 Gains & Offset ........................................................................................................................28
10.5 Save & Restore settings .........................................................................................................28
11
APPENDIX E: Revision History............................................................. 29

DIVIINA® LM2
Line Scan Camera
4
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
1CAMERA OVERVIEW
1.1
Features
Sensor:
1024 to
4096
pixels,
10
or
14
µm square
Data Rate : 40MPixels on two channels
Line
Rate
Up
to
35,5
KHz
Bit Depth : 8 bits
Camera
Link®
Interface
(Base)
Dimensions:
60
x
60
x
45
(w, h, l)
Anti-blooming
Cost effective and easy to use
Fully configurable with CommCam software.
1.2
Key Specifications
Characteristics Value Unit
Sensor Characteristics at Maximum Pixel Rate
Resolution
1024
2048
4096
Pixels
pixel size (square)
10 or 14
10 or 14
10 µm
Max line rate
35.7
18.1
9.5 kHz
Radiometric Performance at Maximum Pixel Rate and minimum camera gain
Bit depth 8Bits
Responsitivity (14µm pixels size) 9LSB/(nJ/cm²) 8bits
Responsivity (10µm pixels size) 3.5 LSB/(nJ/cm²) 8bits
Response non linearity < 1 %
PRNU +/- 10 %
Dynamic range 58 dB
Functionality (Programmable via Control Interface)
Gain Up to 36 dB
Offset Up to 16 LSB
Trigger Mode Free-run, external triggered

DIVIINA® LM2
Line Scan Camera
5
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
Mechanical and Electrical Interface
Size (w x h x l) 60 x 60 x 42 mm
Weight 210 g (without mount) g
Lens Mount M42 x 1 (by default)
F (Nikon) or C optional mounts
Sensor alignment ±200 µm
Sensor flatness ±30 µm
Power supply Single 12 to 24 V
Power dissipation < 5 W
General Features
Operating temperature 0 to 65 (front face) °C
Storage temperature -40 to 70 °C
Regulatory CE and RoHS compliant
1.3
Description
DiViiNA is a cost efficient CCD line scan camera family with Camera Link interface. Featuring e2v’s own high
performance linear CCD sensors from 1024 pixels up to 4096 pixels, as used in the world recognized AViiVA
cameras; DiViiNA cameras offer high image quality with user-friendly simplicity. DiViiNA is the perfect
candidate for mid range machine vision applications.
1.4
Typical Applications
•
Web Inspection (Wood, Paper, Metallurgy)
•
Part inspection and sorting (Cotton, Rice, Food)
•
General Machine Vision Inspection
1.5
Models & Part numbers
Table
5-1.
Ordering
Code
Part Number Sensor type (Resolution, Pixels size)
Description
Camera
EV50YLM2CL1010-BA0 1024 pixels, 10µm size DIViiNA LM2 CL 1010
EV50YLM2CL2010-BA0 2048 pixels, 10µm size DIViiNA LM2 CL 2010
EV50YLM2CL4010-BA0 4096 pixels, 10µm size DIViiNA LM2 CL 4010
EV50YLM2CL1014-BA0 1024 pixels, 14µm size DIViiNA LM2 CL 1014
EV50YLM2CL2014-BA0 2048 pixels, 14µm size DIViiNA LM2 CL 2014
Accessories
EV50-MOUNT-F F-Mount (Nikon)
EV50-MOUNT-C C-Mount

DIVIINA
®
LM2
6
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
2IMAGE SENSOR
2.1
Sensor Structure
The sensor has a odd/even structure in two taps as following :
2.2
Response of the sensors
.
0
1
2
3
4
5
6
7
8
9
200 300 400 500 600 700 800 900 1000 1100
Wavelength
LSB/nJ/cm2 8bits
14µm pixel
10µm pixel

DIVIINA
®
LM2
7
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
3CAMERA HARDWARE INTERFACE
3.1
Mechanical Drawings
Sensor size (pixels #) 1024 2048 4096
x with 14µm sensor (mm)
20.83 13.66 -
x with 10µm sensor (mm)
22.88 17.76 7.52
15
15
6
42
12
4 x 2 holes M4
(on the 4 sides)
60
60
Sensor
1st pixel
Y =
30±0.05
M42 x 1
z= 10.18
Optical sensor plane to front face
x
(
refer to the table below
)
Reference mounting
plane
Reference mounting
plane
Reference mounting
plane
X axis
Y axis
Z axis
X,Y plan
All dimensions in millimeters
Mechanical
reference point
4 x M3
52
52

DIVIINA
®
LM2
8
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
3.2
Input/output Connectors and LED
3.2.1 Power Connector
Camera connector type: Hirose HR10A-7R-6PB (male)
Cable connector type: Hirose HR10A-7P-6S (female)
Signal Pin Signal Pin
PWR 1 GND 4
PWR 2 GND 5
PWR 3 GND 6
Camera side description
Power supply from 12v to 24v
Base CameraLink
Connector
Power Connector :
Hirose 6pts
12v to 24v
Green Power on
LED

DIVIINA
®
LM2
9
0994D -Diviina LM2 01/10
e2v semiconductors SAS 2009
3.2.2 Camera Link Output Configuration
Port / Bit Output data
Port A0 A0
Port A1 A1
Port A2 A2
Port A3 A3
Port A4 A4
Port A5 A5
Port A6 A6
Port A7 A7
Port B0 B0
Port B1 B1
Port B2 B2
Port B3 B3
Port B4 B4
Port B5 B5
Port B6 B6
Port B7 B7

DIVIINA
®
LM2
10
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
4STANDARD CONFORMITY
The DIVIINA cameras have been tested using the following equipment:
¾
A shielded power supply cable
¾
A Camera Link data transfer cable ref. 14B26-SZLB-500-OLC (3M)
e2v recommends using the same configuration to ensure the compliance with the following standards.
4.1
CE Conformity
The DIVIINA cameras comply with the requirements of the EMC (European) directive 89/336/CEE (EN
50081-2, EN 61000-6-2).
4.2
RoHs Conformity
DIVIINA cameras comply with the requirements of the RoHS directive
Warning
: Changes or modifications to this unit not expressly approved by the party responsible
for compliance could void the user's authority to operate this equipment.

DIVIINA
®
LM2
11
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
FOV
Focal Plan
CCD
Plan
f
L
w
s
w
f
FOV L
=
5GETTING STARTED
There is no CDROM delivered with the Camera : Both User Manual (this document) and CommCam
control software have to be downloaded from the web site : This ensure you to have an up-to-
date version.
Main Camera page :
www.e2v.com/cameras
On the appropriate Camera Page (EM2 or EM4) you’ll find a download link
first version of CommCam compliant is indicated in the last Chapter
CommCam download requires a login/password :
¾
Login : commcam
¾
Password : chartreuse
Setting up in the system
Vocabulary :
w
= size of the sensor line (40,96mm for the 4k 10µm)
FOV
= Field Of View (width of the web inspected by the sensor line) in mm.
L
= Working distance (from the Lens to the Web) in mm.
f
= focal distance of the lens in mm.
S
= Speed of the web in mm/s
We have :
The ratio M = w/FOV is called Magnification.
The FOV is grabbed by 4096 pixels in the
width.
In order to get a ratio of 1 :1 in your image, at
the web speed of S, your line rate has to be
set :
Line Rate = (S/FOV) x 4096
Ex : if the FOV = 11 cm (110mm) and the speed
of the web is S= 0,3 m/s (300mm/s) the line
rate will be :
Line Rate = (300 /110) x 4096 = 11170 Lines/s.
If you use a 60mm lens, the working distance
will be : L = (60 x 110) / 40,96 = 161mm.
This will certainly require a macro lens.

DIVIINA
®
LM2
12
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
6CAMERA SOFTWARE INTERFACE
6.1
Control and Interface
As all the e2v Cameras, the DIVIINA is delivered with the friendly interface control software
COMMCAM.UCL (as “Ultimate Camera Link”) which is based on the GenICam standard
COMMCAM recognizes and detects automatically all the UCL Cameras connected on any transport layers
(Camera Link or COM ports) of your system.
Once connected to the Camera you have an easy access to all its features. The visibility of these
features can be associated to three types of users: Beginner, Expert or Guru. Then you can make life
easy for simple users.

DIVIINA
®
LM2
13
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
6.2
Serial Protocol and Command Format
The Camera Link interface provides two LVDS signal pairs for communication between the camera and
the frame grabber. This is an asynchronous serial communication based on RS-232 protocol.
The serial line configuration is:
¾
Full duplex/without handshaking
¾
9600 bauds, 8-bit data, no parity bit, 1 stop bit.
6.2.1 Syntax
Internal camera configurations are activated by write or readout commands.
The command syntax for write operation is:
w <command_name> <command_parameters><CR>
The command syntax for readout operation is:
r <command_name><CR>
6.2.2 Command Processing
Each command received by the camera is processed:
¾
The setting is implemented (if valid)
¾
The camera returns “>”<return code><CR>
We recommend to wait for the camera return code before sending a new command.
Table 5-1. Camera Returned Code
Returned code meaning
>0 (or “>OK”) : All right, the command will be implemented
>128 Command Error (Command not recognize or doesn't exist)
>129 Error: communication failure.
>130 Error: protocol failure.
>131 Error: parameters are out of range.
>132 Error: access failure.
>133 Error: access denied.
>134 Error: initialization failure.
>135 Error : Parameters conflict.

DIVIINA
®
LM2
14
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
6.3
Camera Commands
6.3.1 Information
These values allow to identify the Camera. They can be accessed through the CommCam software in the
“Info” section
All these values are fixed in factory except the Camera User ID which can be fixed by the Customer:
•Vendor name “e2v”
ÖRead function: “r vdnm”;
Return by the camera: “e2v” (string)
ÖCan not be written
•Model Name: Camera model name
ÖRead function: “r mdnm”;
return by the camera (string) : DiviinaLM2CL
ÖCan not be written
•Camera ID : part number, serial number of the Camera
ÖRead function : “r idnb”;
Return by the camera (string 50 bytes max) :
ex : EV50YLM2CL1014-BA0-0000000000-0908P0001-AA
with :
EV50YLM2CL1014-BA0 : Part number
0000000000 : Batch number (not used for Cameras)
0908P0001 : Serial number
•“09” : Year of manufacturing
•“08” : week in the year
•“P” as Proto, “M” as Manual, “A” as automatic : type of testing
•“0001” : Identification number
AA: Fab indice.
ÖCan not be written
•Firmware Version : Can be set by the Customer to identify the Camera
ÖRead function : “r dfwv”;
Return M.m.s :
•M : Major version
•m : minor version
•S : sub-minor version.
ÖCan not be written

DIVIINA
®
LM2
15
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
6.3.2 Setup
•Signal source : Defines if the data comes from the Sensor or the FPGA (test Pattern). This
command is available in the CommCam “Setup” section :
ÖRead function : “r srce”;
Return by the camera: “0” if Source from the Sensor and “1” if test pattern active
ÖWrite function : “w srce” <value> :
“0” to switch to CCD sensor image
“1” to switch to Test Pattern.
The Test pattern is a single ramp. The test pattern is generated in the FPGA : It’s used to point out
any interface problem with the Frame Grabber.
The test pattern is a 8bit width pattern composed with several ramps from 0 to 255 all along the
whole Camera definition. Then the number of ramps depends on the number of pixels of the Camera
Test patterns are detailed in Appendix A.
•Auto Tap Balance : Enables the Auto Tap balance. This command is available in the CommCam
“Setup” section :
ÖRead function : “r abal”;
Return by the camera: “0” if Tap balance disabled and “1” if enabled
ÖWrite function : “w abal” <value> :
“0” : Disable the auto Tap Balance
“1” : Enable the Tap balance.
How works the Automatic Tap Balance ?
The Auto Tap Balance is a Laplace filter which is applied in the FPGA. It automatically solve any
odd/even mismatch that can be visible in the image
¾Whatever the action you may have on the Odd/even Tap Gains to increase the mismatch
between the Taps, the filter will correct if enabled
¾The filter has to be disabled if the inspection is done at Nyquist frequency : Then the tap
balance has to be performed by using odd and even Tap Gains.
The Camera is delivered with the Auto Tap Balance enabled by default.

DIVIINA
®
LM2
16
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
6.3.3 Exposure and Synchronization
•Synchronisation Mode:Timed or Triggered, it defines how the grabbing is synchronized.This
command is available in the CommCam “Exposure” section :
ÖRead function : “r sync”;
Return by the camera:
•0 : Free Run or “Timed” mode
•1 : Ext Trig with Integration time set in the Camera
•2 : Ext ITC (Integration Time Controlled) : The same Trig signal defines the line period and
its low level defines the integration time
•3: Ext Trig with two trig signal : CC2 defines the start of the integration and CC1 defines
the Stop of the integration.
ÖWrite function : “w sync” <value>
Timing Specifications
This table is for all the synchronization modes.
Label Description Value
td CC1 rising to integration period start delay 350ns
tdr Integration period stop to readout 1,8µs
th CC1 hold time (pulse high duration) 100ns
td1 CC1/CC2 falling/rising to integration period start delay
350ns
td2 CC1/CC2 rising to integration period stop delay 1,3µs

DIVIINA
®
LM2
17
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
Exposure Mode Timed : Free Run
This mode doesn’t require an external trigger.
In this case, the line period (Lp) can be defined in the Camera (see below) but the real line period of the
camera depends also on the exposure time (tint) set:
¾If tint > tper, the line period is equal to tint
¾If tper > tint, the line period is equal to tint
Ext Trig with integration time set in the camera
This mode requires an external trigger ( via CC1) but the exposure time is the one defined in the Camera.
EXPOSURE N EXPOSURE
N+1
READOUT N-1 READOUT N
tdr
tint = t
p
er
LINE PERIOD LINE PERIOD
EXPOSURE
N
EXPOSURE
N+1
READOUT N-1 READOUT N
tdr
tint
LINE PERIOD LINE PERIOD
t
p
er
EXPOSURE
N
EXPOSURE N+1
READOUT N-1 READOUT N
tdr
tint
CC1
td th
t
p
er

DIVIINA
®
LM2
18
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
Ext Trig with Integration Time Controlled (ITC) with one Trig
This mode requires an external trigger ( via CC1). Both exposure time and line period are defined by this
Trig signal :
¾The exposure time during the low level of the Trig Signal
¾The line period between two rising edges of the Trig Signal
Ext Trig with Integration Time Controlled (ITC) with two Trigs
This mode requires two external triggers ( via CC1 and CC2):
¾CC2 controls the starting of the exposure time
¾CC1 controls the end of the exposure time.
The line period is defined by the one of the CC2 Trig signal.
If the line period of the Trig signal provided to the camera is bigger than the exposure
time set in the camera, the “short trig pulses” will be ignored : The exposure set in the
camera defines the minimum line period possible.
EXPOSURE
N
EXPOSURE
N+1
READOUT N-1
READOUT N
tdr
tint
td1 td2
t
p
er
CC1
EXPOSURE
N
EXPOSURE
N+1
READOUT N-1 READOUT N
td1 td2
tint
CC2
t
p
er
CC1
tdr

DIVIINA
®
LM2
19
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
•Exposure time:Defines the integration time when set in the Camera.This command is available in
the CommCam “Exposure” section :
ÖRead function : “r tint”;
Return by the camera : Integer from 4 to 65534µs (by step of 1µs)
ÖWrite function : “w tint” <value> ;
This value of integration time is taken in account only when the synchronisation mode is “free run” (0)
or “Ext Trig with Integration time set” (1). Otherwise it’s ignored.
•Line Period:Defines the Line Period of the Camera in Timed mode.This command is available in the
CommCam “Exposure” section :
ÖRead function : “r tper”;
Return by the camera : Integer from
Tpermin
to 65535 (by step of 1µs)
Tpermin
depends on the number of pixels on the sensor :
28µs for the 1K Pixels cameras (35,714kHz)
55µs for the 2K pixels cameras (18,182kHz)
105µs for the 4k pixels cameras (9,523 kHz)
ÖWrite function : “w tper” <value> ;
The Tper min value is not displayed in CommCam for each camera but any attempt to set to a lower
value then this will be refused by the camera.
In the same way, it’s impossible to set the line period at a lower value than the exposure time.
Note that if the exposure time is increased and set at a lower value than the line period, this last one
will be automatically adjusted at the value of the exposure time : This modification won’t appear in
CommCam without disconnect/reconnect

DIVIINA
®
LM2
20
0994D -Diviina LM2 01/10
e2v semiconductors
SAS 2009
6.3.4 Gain and Offset
•Analog Global Gain:Set the Amplification Gain.This command is available in the CommCam “Gain &
Offset” section :
The Value set is also copied in the both odd and even Gains.
ÖRead function : “r gain”;
Return by the camera: Value from 0 to 880 corresponding to a Gain range of 0 to 31dB by step of
0,0351dB
ÖWrite function : “w gain” <int> ;
•Analog odd/even Gains per Tap:A separate command for each sensor is also available for each
sensor Tap.These commands are available in the CommCam “Gain & Offset” section :
Gains Management and Auto Tap Balance
The Global Gain is a “virtual” global command which affects both Odd and Even Gains in the same time.
Each value set in the Global Gain erases Odd and Even Gain values.
This gain has to be used when the Auto Tap balance is activated as a “friendly” mode to set quickly the
gain level in the Camera without taking care of the Tap balance which is automatically done by the
Laplace filter.
¾The Value set for the Global Gain is copied in both Odd and Even Gains
¾The value set for the Odd Gain is copied in the Global Gain value
¾Whatever the action you may have on the Odd/even Tap Gains to increase the mismatch
between the Taps, the filter will correct if enabled. But an individual action on the Odd Gain
will increase the global gain in the same way.
¾In CommCam the odd/gains Values are not refreshed after the setting of the Global gain
command : You have to refresh them individually with a right click on the value.
Table of contents