Controller Firmware Revision 2.0.59 This manual describes the installation of the scanner hardware and the use of MEL demo and calibration software. The manual has been changed to the new version of hardware. With the transit to the revision 4 hardware, the electronic system has been equipped with M12 connectors.
Scanner to the PC use a cross-wired cable. Picture at the right side: Connecting a scanner with switch and PC. HB-M2-iLAN-UDP-E.doc page 4 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
The connector for the control cable is male. The controls & power cable has a female connector and at the other end is either with open leads for clamps or with a male connector. HB-M2-iLAN-UDP-E.doc page 5 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
IEEE 802.3af standard. Details are given in the TE-M2-iLAN-connection-E.pdf. Cables following this definition are available from MEL on request. * single cable attachment: connection with a single cable specified for use with robots.
57.600 Baud The RS 232 interface does not carry profile data or scanner control information. Software: the current release of the MEL „EthernerScanner.exe“ Demo- and configuration software is available as download from MEL FTP-Server: ftp://melsensor.de. Call MEL hotline for further details.
The Web Browser will then display a message to make you aware of the change. When you receive this message connect to the scanner with the new IP address. HB-M2-iLAN-UDP-E.doc page 9 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
This means, the scanner can communicate only with one PC at a time. Besides the communication over TCP at any time, from any other PC a http request (Web browser) could be made. HB-M2-iLAN-UDP-E.doc page 10 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
After the Start of the Scanner (switch on power), the configuration of the scanner is loaded from the internal EPROM to the micro controllers memory. The MEL demo software then shows the following information: TCP/IP Address, Port and MAC Address...
The effect of erasing reflections and unwanted profile noise is due to removing these data before creating the profile. This is a function of the FPGA processing inside the scanner head. HB-M2-iLAN-UDP-E.doc page 12 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
UDP mode and then click the command bar button below “activate new IP”. The system will reload and connect to the designated values and mode. HB-M2-iLAN-UDP-E.doc page 14 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
The last 3 Bytes before the end of the transmission block is the FiFO fill status data. Tipp: the protocol-Version is given in the Header, Byte 60. HB-M2-iLAN-UDP-E.doc page 15 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
0xxxxxxx 1xxxxxxx Tipp: if not otherwise stated: for registers Bit 7 is not used and always 0. for data, Bit 7 is always high. HB-M2-iLAN-UDP-E.doc page 16 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Not used Do not use! 0x28 Not used Do not use! 0x29 Eprom command Register MEL internal register – do not use! 0 = deactivated HB-M2-iLAN-UDP-E.doc page 17 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
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. HB-M2-iLAN-UDP-E.doc page 18 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Bit Nr. Meaning Digital input 1 Digital input 2 Bit for Sensor with a mirror ; „1“ = with mirror 7...3 NC always 0 HB-M2-iLAN-UDP-E.doc page 19 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
// Version x 10 = 3.6; Integer Status Register 14 2 // natural number = 1, 2, 3 … Integer Reg. value Bit Nr. Meaning 7 ... 0 always 0 HB-M2-iLAN-UDP-E.doc page 20 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
When no improvement is achieved, you should immediately set back default value = see page 17. HB-M2-iLAN-UDP-E.doc page 21 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
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. Linearized and not linearized Each field has the number of pixels = lines / 2 of the CCD.
Status, Serial number, Version of Hardware, Version of Software Version of Firmware, Version of Eproms MAC-address, Gateway Address Default IP-Address, working IP-Address, Subnet mask HB-M2-iLAN-UDP-E.doc page 23 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Page 24
ClientIP:192.168.123.129:1378 FiFo:0 0 0 The scanner continues sending “connection status messages” like in the last lines every second. These messages may show that the scanner is “alive”. HB-M2-iLAN-UDP-E.doc page 24 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
IP address. Tipp: the Web-Server provides a profile snapshot, when you click on the link Scan-Profile-View: see picture next page! HB-M2-iLAN-UDP-E.doc page 25 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
When the ping does not respond and the scanner is unreachable for the PC, check your network settings. Tipp: IP address set up can not be accessed while the scanner is in flashing operation mode. HB-M2-iLAN-UDP-E.doc page 26 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Before you rewrite the firmware, optionally you may use the startBackup.bat to read out the memory contents for diagnosis. StartBackup.bat creates a text file. Send this text file to MEL for diagnosis in case of problems! The Flash-Tool “Flashm16.exe” will be delivered from MEL on request together with the binary data file of the firmware.
Close Flash Tool Normal operation * The Prog. switch connects Sync-Out to Digital Input 1 A service adapter is available as special accessory from MEL, see page 7: M2-RS-232 ProgBox. The Controller-Firmware of the Scanners can be uploaded through the Ethernet connection.
Message: can not load programming mode switch, the correct firmware file firmware file then power up again holding the Prog switch for a second HB-M2-iLAN-UDP-E.doc page 29 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Disclaimer: MEL does not make warranty for correct function and completeness of the example code nor does MEL assume that code fragments are bug free. The use of the example code is at customers risk and with the sole responsibility of the customer’s software engineers. MEL can not take any responsibility, that the code provided is free from third party rights, pending software patents or bug free.
These examples have been taken from the M2Dmini.c. For use as a complete package, download M2Dmini.c and header file M2Dmini.h from the MEL FTP-Server. Please consider updates and bug fixes, when you have earlier versions of M2Dmini. [version = as of 2006-08-10]...
*fanz = cnt; *scanner = 0x18; *scanner = 1 | 0x80; For (y = 0; y < 31 ; y++) *scanner = y |0x80 ; HB-M2-iLAN-UDP-E.doc page 36 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Page 37
*scanner = 127 | 0x80; … Approximately 15 µsec of wait are necessary to make sure, that data is valid. This timing depends on the CPU. HB-M2-iLAN-UDP-E.doc page 37 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Ports are a part of the IP-address definition. When setting the working IP address, the port is defined accordingly. As a factory default setting at MEL, we always use port: 3000. You can use “any” port. Please consider, that some services use ports: Internet (http) = port : 80.
= TRUE; // get Socket for TCP=SOCK_STREAM sTCP = socket(AF_INET, SOCK_STREAM, 0); // socket-Error? if (sTCP == INVALID_SOCKET) sTCP = 0; bRunConnect = FALSE; TRACE("SocketError\n"); HB-M2-iLAN-UDP-E.doc page 39 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Page 40
Windows Socket functions and network programming can be found in the documentation of the Windows operating–system. the Scanner commands are listed in the register tables of this manual. HB-M2-iLAN-UDP-E.doc page 40 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Page 42
M2i-LAN Laser-Scanner manual Note: the UDP transmission protocol has been implemented in a new project of the MEL EthernetScanner demo software. Typical TCP functions have been dropped as for example TCPClientThread (global)and EthTCPClientXReceivedData (global). This function receives the raw data from the Scanner and checks if it is correct:...
The Laser output is marked with an arrow on the case. The yellow label indicates laser power and wavelength. The table on the following page lists the typical laser parameters. HB-M2-iLAN-UDP-E.doc page 43 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
– less sensitive to odd reflections Mar 2009 Flashing Controller Firmware over the network Dec 2009 Firmware Rev.2.0.59 / java applet Beta – current Beta rev. 2.0.64 HB-M2-iLAN-UDP-E.doc page 44 of 44 MEL Mikroelektronik GmbH, Breslauer Str. 2, 85386 Eching / Germany www.MELSensor.de...
Need help?
Do you have a question about the M2-iLAN Series and is the answer not in the manual?
Questions and answers