![MEL M2-iLAN Series Скачать руководство пользователя страница 18](http://html1.mh-extra.com/html/mel/m2-ilan-series/m2-ilan-series_user-manual_1766769018.webp)
M2i-LAN Laser-Scanner manual
HB-M2-iLAN-UDP-E.doc
page 18 of 44
MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany
www.MELSensor.de
1 = read Eprom
2 = write Eprom data into Ram (1Byte = 7 Bit)
3 = read Eprom data (1 Byte = 8 Bit)
4 = erase Eprom data
5 = program Eprom
0x2A 42
6..0
Eprom Data
512 k must be written. Data is sliced to 7 Bit, which are
reconciled in the sensor to 8 Bit
0x7F 127
Dummy
Register
No
operation
* each access to the register triggers the function. It is not required, and it makes no sense to write any value to the
register. Simply calling the register address makes the necessary function work.
The register 0x11 selects the content of the status register. The status register has the parameters temperature of
sensor head, register contents, version of electronic system and camera, operating hours counter, on counter, digital
inputs, version of EPROM Firmware and 32 Bytes EPROM data, serial umber, scan range geometry. This method is
valid for Ethernet Scanners, ISA board and i-Control.
Special register 0x18 (24)
The special register 0x18 allows to query sensor data direct. When a value smaller than 127 is written to the register,
the read out of the FiFO is stopped and the register is put to the data bus. The number of the register is the content of
the special register. Data will remain on the bus as long as the special register is written again with 127. Then normal
image transfer is possible again.
Register
Bit
Function
Meaning
0 - 30
6..0
7
Control register
NC
Shows the content of all control registers. Except
Registers which act as „impulse switch“ like „Reset
Sensor“ - unused Registers and Bits give back a “0”
31
7..0 Status Register
Status messages are selected with Register 17
123
7..0 FIFO number of Bytes 1
Bit 7..0
124
7..0 FIFO number of Bytes 2
Bit 15..8
125 2..0
7..3
FIFO number of Bytes 3
NC
Bit 18..16
126
*
Save values for Register 123 - 125
D
D
a
a
t
t
a
a
f
f
o
o
r
r
m
m
a
a
t
t
S
S
y
y
n
n
c
c
s
s
i
i
g
g
n
n
a
a
l
l
a
a
n
n
d
d
S
S
t
t
a
a
t
t
u
u
s
s
i
i
n
n
f
f
o
o
,
,
e
e
n
n
c
c
o
o
d
d
e
e
r
r
i
i
n
n
f
f
o
o
r
r
m
m
a
a
t
t
i
i
o
o
n
n
(
(
p
p
r
r
o
o
t
t
o
o
c
c
o
o
l
l
v
v
e
e
r
r
s
s
i
i
o
o
n
n
3
3
)
)
Byte Nr
Value
Bit Nr. Meaning
52 .. 59
0
8 times 0x00 for Synchronization
60
Version number
7...0
Version des Scan-Data format
0
0=not linear, 1=linear
6...1
Content of Register 17
61
Status Byte 1
7 Always
0
62
Image number
Continuously counting from 0..253
63
Status Byte 2
The content of status register_2 is selected by Register 0x11
all values made of more than 1 Byte, always the Bit 7 is 0. Per Byte
only 7 Bit were transferred.
64, 65
Reserved
66 ...X
Image data
Data format Vers.1: 4 x 283 = 1132 Bytes *
Data format Vers. 2+3: 5 x (Reg.34 ;35 (Rev.4=291)) = 1455 Bytes
X+1..X+9
0
8 times 0x00 for Synchronization
Version number
7...0
Version of Data format (3)
Position encoder Reg.1
6..0
Position encoder Bit 6..0 Two’s complement
Position encoder Reg.2
6..0
Position encoder Bit 13..7
Position encoder Reg.3
6..0
Position encoder Bit 20..14
Position encoder Reg.4
5..0
6
Position encoder Bit 26..21
Direction of Position encoder
… 2040
Fill
[ ... ]
Fill bytes
2041.2042
Pixel number horizontal
2 Bytes
Typ. = 290
2043.2044 Pixel number vertical
2 Bytes
Typ. = 752
2045..47
FiFO
3 Bytes
FiFO-fill status
The Data packet has
always
the length of 2048 Bytes. * iLAN Scanner supports
only data format 3
.