Page 3
Contacts Fluke Process Instruments ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Americas Everett, WA USA Tel: +1 800 227 8074 (USA and Canada, only) +1 425 446 6300 solutions@flukeprocessinstruments.com EMEA Berlin, Germany Tel: +49 30 478 0080 info@flukeprocessinstruments.de China Beijing, China Tel: +86 10 6438 4691 info@flukeprocessinstruments.cn Worldwide Service Fluke Process Instruments offers services,...
Page 4
Note: By using this manual, you agree to the following: Not to sell competitive commercial products. Not to reverse-engineer manufacturer´s linescanner. Not to duplicate this manual. Any disputes will be settled in courts local to the manufacturer or its subsidiaries. To forfeit this manual upon the manufacturer´s request.
Content CONTENT ................................5 1 INTRODUCTION .............................. 7 2 COMMUNICATION INTERFACES ....................... 8 2.1 E ..............................8 THERNET 2.1.1 Keep Alive Time ............................ 8 2.1.2 BootP ..............................8 3 TRANSMISSION OF COMMANDS TO THE SCANNER ................9 3.1 C ..........................9 OMMAND STRUCTURE 3.2 A ..............................
Page 6
5.3.2 The Hold Commands in State Diagrams .................... 24 5.3.3 Examples ............................. 25 5.4 S ............................ 25 ECTOR AND 5.5 S ..........................27 ETTING THE MISSIVITY 5.5.1 The Emissivity Vector (EMV) ......................27 5.6 S ........................... 28 REQUENCY TEPS 5.7 A (AT, AV, AVX) ............
Introduction 1 Introduction For many applications, the scanner can be easily configured with the help of the factory distributed software. In other applications, it would be more useful to integrate the scanner into a larger system or customize it for specific measuring tasks. The scanner is programmed via its serial and the Ethernet interface to configure it to specific measurement applications.
Communication Interfaces 2 Communication Interfaces The MP150 scanner communicates via RS485 or the Ethernet interface. After scanner start-up, both interfaces will be active and will remain active. Though two interfaces are available only one should be used at a time. Using both interfaces at the same time may create undefined results! For more information about the Ethernet and RS485 interface, see the MP150 manual “Operating Instructions”! 2.1 Ethernet...
Transmission of Scanner Commands 3 Transmission of Scanner Commands Commands serve to setup functional modes and parameters in the scanner. 3.1 Command structure Commands are generally transmitted from the PC to the scanner, and have the following format: SOH Operation Code [Sector] [Parameter] EOT BCC The [Operation Code] and [Parameter] are to be find in section and the [Sector] is described in section 5.2.
Transmission of Scanner Commands 3.2 Answer After transmission of the BCC, the scanner will reply with either ACK, NAK or ETB. These replies have the following meanings: ACK - The command contains the proper syntax and is acknowledged by the scanner. NAK - There are syntax errors in the command, or the BCC is wrong–...
Transmission of Scanner Commands 3.4 Error Handling If the scanner, upon a command or a parameter request, answers ETB instead of ACK/NAK, an error in the scanner has occurred. After the acknowledgment signal ETB from the scanner, indicating an error, the scanner only accepts the error status parameter request: GES which it will respond as described in section 3.3: ES<error code>.
Transmission of Temperature Lines 4 Transmission of Temperature Lines A scanned line is composed of a count of temperature points which will be termed a ‘pixel.’ Depending on the point mode the data transmission can have lines of 64, 128, 256, 512 or 1024 pixels and, depending on the data mode, a pixel can be represented with 1 or 2 bytes.
Transmission of Temperature Lines In this mode no buffering takes place to cope with a slow transmission rate: Pending lines will be discarded. 4.2 The Data Mode (DM) The data mode defines the type of information that will be sent as a “pixel”. The following modes are defined: 4.2.1 Byte Mode for Temperature (DMB) In this mode the pixel data contains temperatures which are scaled to eight bits.
Transmission of Temperature Lines 4.3.1 What to do with the Surplus Pixel (PMX) The scanner hardware samples always: • 1024 pixel at scan frequencies lower than 40 Hz, • 512 pixel at scan frequencies lower than 80 Hz and • 256 pixel above.
Transmission of Temperature Lines 2 Bytes for current output 3 (LSB first!) Triggerbyte = one byte which is 1 if the external trigger pin is active, 0 otherwise Checksum = two-byte check sum (low, high), calculation starts after FrameStart 4.4.3 The Checksum of a Line or Snapshot The Checksum of a line or snapshot is calculated as the sum of all eight-bit-characters, starting after FrameStart.
Transmission of Temperature Lines • [snapshot/line counter]: counts the lines in burst mode and the snapshots in snapshot mode • [background temperature / voltage input]: If background temperature compensation via voltage input is configured then it contains the background temperature (as integer in °C) calculated from the voltage, otherwise it contains the voltage.
Dedicated Commands 5 Dedicated Commands Additional description to certain commands is given in the following section. A summary of all commands is to be found in a summarizing list of section 5.1 Start-up Parameter While the scanner is in operation, all parameters are hold in R .
Dedicated Commands 5.2 Sectors The idea of a sector is to be seen in Figure 1. The result of a sector (minimum, maximum or average of the pixels inside of a sector) is transferred as current to the analog outputs of the scanner. Special sector commands serve to configure the analog current outputs.
Dedicated Commands 5.2.2 Sector Emissivity (SE) For each sector, the emissivity may be defined for the infrared calculations with the SE command. If the sectors overlap, the emissivity of the larger sector number gets used for the overlapping area. In other words: The emissivity programmed for sector 0 (the digital interface) is only valid for the pixels that are not covered/overlapped by any of the analog sectors as the digital interface uses the analog output emissivities for the rest of the line.
Dedicated Commands To get the width from the result sent via Ethernet you must use the following formula: Width = result * (2 * Distance_Scanner_Object) / 8192 To get the width from the current output you must use the following formula: Width = (I –...
Dedicated Commands 5.2.7 Alarm Reset This command allows an overriding reset of the alarm. Without this command, the alarm will be switched off, as prescribed by the TM command, using a timer or an external trigger signal. 5.2.8 The Whole Alarm Story in State Diagrams The following set of commands defines the alarm behaviour: TM, TZ, TT, TB, AF, AR, EF, RC and SC to get the sector result which will be tested for the alarm limits.
Dedicated Commands 5.3 Zones A sector is calculated for each line; its result is bound to one line. If the result is calculated for multiple lines then the sector becomes a “Zone”, see Figure 4. Scanner Zone Intervall Zone Time Sector Delay Time Conveyor Belt...
Dedicated Commands The time duration of the zones is defined by the command ZW. After recognizing the zone start conditions, a delay time (before the zone actually starts) may be added. The delay time is given with the command ZD. Some of the commands can also be used for the digital interface where they serve to implement the snapshot function.
Dedicated Commands 5.3.2 The Hold Commands in State Diagrams The result of a section or zone can be hold using the following set of commands that defines the hold behaviour: HM, HV, HT, EF The follow state diagrams (Figure 6) shall show the function of each. Figure 6: The hold state machine MP150 Protocol Rev.
Dedicated Commands 5.3.3 Examples Send command ZM23 Set Sector 2 to be temperature actuated: Send command ZW20024 with a zone duration time of 2.4 s: Send command ZD20017 starting after a delay of 1.7 s: Send command TF21 after exceeding the setpoint: Send command ZT20123 temperature of 123°C: Send command LC100...
Page 26
Dedicated Commands Zones are defined in relation to zone 0, the complete snapshot (given by the pixel per line and the line count). The following figure illustrates this: Zone 1 Zone 2 90° field of view Zone 0 MP150 Protocol Rev.
Dedicated Commands 5.5 Setting the Emissivity There are the following ways to set the emissivity: • Setting the emissivity of sector 0, the “sector” for the digital interface. • Setting the emissivity of sector 1…3, the sectors for the analog interface. •...
Dedicated Commands 5.6 Scan Frequency Steps Due to the digital steps of the timer used to generate the reference frequency for the motor controller only the following steps for the scan frequency are available: TimerValue ScanFrequency [Hz] 151,5 126,2 108,2 94,7 84,1 75,7...
Dedicated Commands • Advanced Average: The maximum and the average of the pixels of the x consecutive lines will be calculated. An additional parameter y gives the threshold for the following selection: |max[pixel] – avg[pixel]| > y avg. then is taken, otherwise I y = 0 then the system will take its own threshold which bases on the estimated noise.
Dedicated Commands b) Ok we change the order. Let the list be: PM4, VF0 (512, 90°) and the scanner is at the moment configured to 45°, 256. Now the scanner would answer with a NAK after PM4 and we run into the same problem.
Dedicated Commands The command: CCali <count> <factoryTemperature > <customerTemperature > <factoryTemperature > <customerTemperature > count count If a customer adjustment should be reset it is done using the same command with: CCali 0 To ask if there is a customer adjustment in the device use the command: GCCali To store the adjustment permanent in the device use: PS 5.13 Service Commands The device will write down to the Flash-R...
Differences MP150 – MP50 6 Differences MP150 – MP50 • The PS command takes more time to return (max 3 sec.). • The MP50 did not send the trigger byte as described in the manual. With 5 V at the input it sends 0 and with 0 V it sends 1 - it is described opposite.
Appendix 7 Appendix 7.1 List of User Commands In this table the interface (sector) refers with n = 1…3 to the analog outputs and n = 0 to the digital interface output. Description Code Para- Explanation Factory Firmware meter default Revision Poll parameter G<code>...
Page 34
Appendix Description Code Para- Explanation Factory Firmware meter default Revision Baud Rate integer The following baud rates are supported: 9600 MP50: no 9600, 57600, 115200 (=115), 230400 support for (=230) 150, 300, It takes one second until the device will 600, 1200, answer on the new baud rate.
Page 35
Appendix Description Code Para- Explanation Factory Firmware meter default Revision bit-1: checksum error in the cali parameter section → %PS bit-2: checksum error in the temperature table section → %TTS bit-3: device in warm-up → wait some minutes bit-4: bias voltage out of range bit-5: checksum error in the service parameter section →...
Page 36
Appendix Description Code Para- Explanation Factory Firmware meter default Revision Hold Time ndddd Hold time in Hold Mode 1 with: n=1..3: sector/interface dddd: time in tenth of a second Hold Value n=1..3: sector/interface c=’P’: Hold peak value c=’V’: Hold valley value Internal Returns Returns the internal temperature in °C...
Page 37
Appendix Description Code Para- Explanation Factory Firmware meter default Revision Pixel Mode d = 1...5 pixel per line = 64 * 2 (256 pixel) (d – 1) (= 64, 128, 256, 512, 1024) Pixel Mode d = 1...5 (like for PM) pixel per line = 64 * 2 (d –...
Page 38
Appendix Description Code Para- Explanation Factory Firmware meter default Revision Sector Right nddd right end point of sector n as ddd 1/10° Sector Top ndddd Temperature maximum of sector result of GRF n = 0...3 command dddd: temperature in °C Sector Zero nddd minimum (reference) current for SB in mA...
Appendix Description Code Para- Explanation Factory Firmware meter default Revision Laser control Blinking with 0 = OFF, 1 = ON, 3.40 T = Trigger pin is used to switch the laser 0 = not blinking, 1 = blinking (<d> is new with version 3.40; <d> may be left off for backward compatibility) Zone Delay ndddd...
Page 40
Appendix Description Code Parameter Explanation Factory default Sector Top for an analog Temperature maximum of sector result of GRF output of the internal current n = 1…9: sector/zone number command output and the external n = 0: digital Interface modules d: temperature in °C Trigger Bottom Alarms when result is less than or equal...
Page 41
Appendix Description Code Parameter Explanation Factory default Turn Alarm Off Mode (Trigger n=0..3: sector/interface Mode) d=0: no Turn-Alarm-off (The alarm will stay as long as the alarm condition is true.) d=1: Turn off Alarm with Timer d=2: Turn off Alarm with Trigger Trigger Time ndddd Time for Holding Alarm in Mode 1 (TM)
Appendix 7.3 IO-Modules (Wago) In this table the commands are to be find, which were introduced for the Wago IO-modules. Description Code Parameter Explanation Factory default Add an entry for the BootP- BootPServer <MAC> <IP> <MAC> = m:m:m:m:m:m empty Server <IP>...
Need help?
Do you have a question about the LineScanner MP150 and is the answer not in the manual?
Questions and answers