M2i-LAN Laser-Scanner manual
HB-M2-iLAN-UDP-E.doc
page 22 of 44
MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany
www.MELSensor.de
H
H
D
D
R
R
-
-
s
s
h
h
u
u
t
t
t
t
e
e
r
r
c
c
o
o
n
n
t
t
r
r
o
o
l
l
,
,
R
R
e
e
g
g
i
i
s
s
t
t
e
e
r
r
0
0
x
x
2
2
4
4
(
(
3
3
6
6
)
)
A command sequence can make the camera toggle laser intensity from one frame to the next. This feature
is meant for situations, where the object has highly shining and in the same time mat diffuse reflecting
surfaces. Bright and very dark regions on the object may be pictured with two settings each giving optimum
picture from parts, combining both will give a more complete picture. (HDR = high dynamic range).
The following code example shows the syntax of the command.
<24h> = command: The highest Bit is not set!
All following Bytes the highest Bit is set!
commands:
<24h><80h> = deactivate
<24h><81h> = activate
FieldSwitchMode:
<80h> = each field is captured with different shutter
FrameSwitchMode:
<81h> = each 2
nd
field is captured with different shutter
B1 = LaserIntensity 1; B2 = LaserIntensity 2
The scanner toggles between the two values at each field
example:
<24h><81h><80h><87h><D4h><80h><E5h>
→
B1=980 B2=101
syntax:
<24h><81h> = command "activate"
<80h> = definition "FieldSwitchMode"
<87h><D4h> = <Hi-Byte1><Lo-Byte1>
LaserIntensity -Hi-Byte: (X >> 0x07) | 0x80
LaserIntensity -Lo-Byte: (X & 0x7F) | 0x80
... This sends the value 980
<80h><E5h> = <Hi-Byte2><Lo-Byte2>
LaserIntensity -Hi-Byte: (X >> 0x07) | 0x80
LaserIntensity -Lo-Byte: (X & 0x7F) | 0x80
... this sends the value 101
For switching off, two Bytes are ok! „<24h><80h>“
Tipp:
for activating of the function, the command must be sent in complete length:
(<24h><81h><80h><87h><D4h><80h><E5h>) – never fragment the command sequence!
* In Photography the term HDR is used for a technique, when two pictures of the same object are shot with different
shutter time values. The first picture with high shutter time will show the high light situations, the second picture with
longer shutter time will reproduce the shadowed parts of the object in a better way. The combination of both pictures in
software will give a picture representing as well high light and shadows in the best way.
MEL now offers a HDR option for the M2-iLAN scanners.
M
M
2
2
D
D
F
F
/
/
L
L
A
A
N
N
-
-
S
S
t
t
r
r
u
u
c
c
t
t
u
u
r
r
e
e
o
o
f
f
I
I
m
m
a
a
g
g
e
e
D
D
a
a
t
t
a
a
Linearized and not linearized
Each field has the number of pixels = lines / 2 of the CCD.
For each line 5 Bytes with X and Z, and related Intensity value is given.
X and Z are given with 14 Bit, Intensity I is given with 8 Bit.
Byte
Nr. Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
1 0
X6 X5 X4 X3 X2 X1 X0
2 0
X13 X12 X11 X10 X9 X8 X7
3 0
Z6 Z5 Z4 Z3 Z2 Z1 Z0
4 0
Z13 Z12 Z11 Z10 Z9 Z8 Z7
5
I7 I6 I5 I4 I3 I2 I1 I0
not
linearized linearized
distance Z
Scan range X
Intensity I
0..number of pixels horizontal
0..number of pixels vertical/2
1..254
0…max.16383 according to linearization table
0…max.16383 according to linearization table
1..254
Byte value can never be bigger than 254.
Bytes = FF(Hex) are invalid. This may appear when FIFO is empty or busy.