background image

Transmission of Scanner Commands 

MP150

 

Protocol 

Rev. B4  Aug 2019

 

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

 7.1

 and the [Sector] is described in section 

5.2

. 

 

The  frame  (composed  of  SOH,  EOT  and  BCC)  may  be  left  out,  but  should  be  used  in  the  RS485 
connection to avoid communication errors. (The predecessor MP50 did require the frame.) 
If  a  command  was  sent  with  the  frame,  then  the  scanner  will  answer  with  the  frame.  The  decision 
with/without frame is made at the first sign (SOH or not SOH). 
 
These  ASCII  control  characters  used  in  the  protocol  with  their  associated  decimal  and  hexadecimal 
values are the following: 
 

Control character 

 

decimal 

hexadecimal 

SOH   

„start of heading”

 

01D 

01H 

STX   

„start of text”

 

02D 

02H 

EOT   

„end of transmission”

 

04D 

04H 

ACK   

„acknowledge”

 

06D 

06H 

NAK   

„negative acknowledge”

 

21D 

15H 

SYN   

„synchronous idle”

 

22D 

16H 

EOF   

„end of file”

 

26D 

1AH 

ETB   

„end of transmission block”

 

23D 

17H 

ESC   

„escape”

 

27D 

1BH 

 
During  command  and  parameter  transmission,  transmission  reliability  is  checked  with  a  Block 
Character Checksum (BCC). 
 
The BCC is transmitted as the last byte of the command or parameter string. The BCC is a modulo 256 
sum of all previously transmitted characters and bitwise OR-ed with 80H or 128D (to set the highest bit 
of the BCC).  
 

Example

 (send the command 

AR

): 

SOH  

01H 

”A” 

 

41H 

”R” 

 

52H 

+  EOT 

04H 

BCC = 98H 

and afterwards, bitwise OR-

ed with 80H yields (which, in this case, does not change the byte’s value): 

BCC = 98H 

Summary of Contents for LineScanner MP150

Page 1: ...MP150 Linescanner Protocol Manual Rev B4 Aug 2019 51101...

Page 2: ......

Page 3: ...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 including repair...

Page 4: ...nufacturer or its subsidiaries 5 To forfeit this manual upon the manufacturer s request 6 WARRANTY The protocol manual is provided AS IS without representation or warranty of any kind Seller makes no...

Page 5: ...do with the Surplus Pixel PMX 14 4 4 LINE COMPOSITION LINEMODE LM 14 4 4 1 A Line with Frame in Burst Mode 14 4 4 2 The Lines with Frame in Snapshot Mode 14 4 4 3 The Checksum of a Line or Snapshot 1...

Page 6: ...VX 28 5 8 SWITCHING THE LASER 29 5 9 FIELD OF VIEW CONSIDERATIONS 29 5 9 1 Why the Field of View Command does not send a NAK 29 5 10 RESPONSE AND EXPOSURE TIME 30 5 11 AMBIENT TEMPERATURE COMPENSATION...

Page 7: ...velopment of the scanner deviations from this manual may occur However it is the manufacturer s intent to maintain forward compatibility with newer versions As the scanner rarely checks commands it is...

Page 8: ...e last data packet sent simple ACKs are not considered data and the first keepalive probe after the connection is marked to need keepalive this counter is not used any further tcp_keepalive_intvl the...

Page 9: ...irst sign SOH or not SOH These ASCII control characters used in the protocol with their associated decimal and hexadecimal values are the following Control character decimal hexadecimal SOH start of h...

Page 10: ...OH G Operation Code Sector EOT BCC The method of defining the operation code for retrieval of parameters is similar to the setting of the parameters The operation code is prefixed by a G for Get For s...

Page 11: ...wing errors are defined and can be asked for using the GES command Bit positions of multiple errors are or ed up in the answer as described below the table error bit hexadecimal representation Descrip...

Page 12: ...smission may be delayed several seconds if the averaging value is high If the scanner receives an ESC its data transmitting is halted and the scanner s internal data buffer is cleared Then the scanner...

Page 13: ...yte first They give the temperature in C This mode is compatible to the MP50 Example 13hex 02hex 531 C 4 2 3 Word Mode 2 for Temperature DMWT2 In this mode the pixel data contains temperatures which a...

Page 14: ...ode This is the format of data sent from the scanner to the PC in Burst Mode SYN Line with Line Line Line Line Line FrameStart Pixeldata TempIntern Sektorinfos Triggerbyte Checksum SYN 16hex 22dec Fra...

Page 15: ...he communication via RS485 Unlike Ethernet the RS232 itself has no mechanism against communication errors 4 4 6 MP150 Line Modes 4 4 6 1 Line Mode 11hex LM 11hex the six bytes of the traditional secto...

Page 16: ...e voltage input 2 Bytes for error bits see section 3 4 Error Handling page 11 2 Bytes for result sector zone 0 2 Bytes for result sector zone 1 2 Bytes for result sector zone 2 2 Bytes for result sect...

Page 17: ...RAM Various protocol commands effect changes of these RAM based parameters When powering on the scanner parameters are transferred from Flash ROM into RAM Unless the PS command is issued powering off...

Page 18: ...3 Some of these commands are applicable to digital interface parameters The digital interface number is 0 Figure 1 5 2 1 Sector Position SL SR The position of a sector within each line gets defined wi...

Page 19: ...um value will be output If the parameter 3 is transmitted the average value will be output Parameter 4 will give the internal temperature information to the current output command SCn4 Therefore the s...

Page 20: ...o Current The current output is defined by the minimum temperature of the sector command SB the maximum temperature of the sector command ST the current corresponding to the minimum temperature comman...

Page 21: ...lowing 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 The follow state diagram shall show the function of...

Page 22: ...0 for the digital interface the LC value will determine the number of lines returned when an STX is sent The parameter 1 starts the zone with a timer for a cycle time given with command ZZ The parame...

Page 23: ...request is required as a reset condition before the zone start can be determined The delay time ZD for the digital interface zone will also be applied when digital zone mode 0 ZM00 is used This means...

Page 24: ...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...

Page 25: ...Zone It is distinguished between sectors and zones There are Sectors if the line count is set to 1 LC001 Zones if the line count is set greater as 1 Internally a sector is a zone of length 1 So a sect...

Page 26: ...9 MP150 Protocol 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 0 Zone 1 x1 y1 x2 y2 x3 y3 x4 y...

Page 27: ...voltage input using ERange overwrites all others above 5 5 1 The Emissivity Vector EMV It is possible to give every pixel its own emissivity using the command EMV The syntax of this command differs a...

Page 28: ...26 29 1 27 28 28 27 29 26 1 30 25 2 31 24 4 32 23 6 33 22 9 34 22 2 35 21 6 36 21 37 20 4 38 19 9 5 7 Averaging combining or condensing Lines AT AV AVX Using the commands AT averaging time or AV line...

Page 29: ...and outside the temperature range of 5 to 50 C 41 to 122 F 5 9 Field of View Considerations The field of view can be switched between 45 and 90 with the following limitations which are mainly caused b...

Page 30: ...e standard temperature calculation the background temperature is assumed to be equal to the internal temperature of the scanner The more the background temperature differs from the internal temperatur...

Page 31: ...erase write cycles writing takes place under the following conditions Every two hours If the internal temperature gets over 55 C 131 F With the set command Unfortunately there is the need to have a se...

Page 32: ...re 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 The MP150 is doing it li...

Page 33: ...bient compensation bottom Low range AL integer In case of AC2 this parameter defines the temperature that corresponds to 0 V at the voltage input min range 3 21 Ambient compensation top High range AH...

Page 34: ...last value d 1 set minimum d 2 set maximum 0 Emissivity Vector EMV d v d count of values in v v vector of emissivities see section 5 5 1 off Error Status Reset ES Reset of error status if possible Emi...

Page 35: ...mperature GIM Returns the maximal allowed internal temperature 60 3 22 MAC address GMAC Read only returns Hardware MAC address format xx xx xx xx xx xx where xx is hexnumber 00 FF returns 00 00 00 00...

Page 36: ...10 6 Line Count LC ddd Count of lines to send after STX ddd 1 768 1 Line Mode LM hexa LM 0 no Appendix to Line Transfer LM 1 Sector Values LM 2 Zone Values LM 5 Sector Values like LM 1 with bit 15 Sec...

Page 37: ...ult Ethernet gateway RO d d d d d 0 255 With 0 0 0 0 no route command is sent to the operating system of the scanner 0 0 0 0 Sector Bottom SB ndddd Temperature minimum of sector n 0 3 dddd temperature...

Page 38: ...emperature Range TR d d 1 standard temperature range d 2 extended temperature range 1 for MP50 only Temp Flow TF nd n 0 3 sector interface d 1 Starting with cross over ZT d 2 Starting with cross under...

Page 39: ...Zone Cycle in Zone Mode 1 n 0 3 dddd time in tenth of a second 0 7 2 Tetragon Zones In this table the commands are to be find which were introduced for the Tetragon Zones not necessarily rectangular...

Page 40: ...e Delay ZD ndddd Zone Start Delay Time Is not used at all and replaced by the ZP command It will give an answer for backward compatibility 0 Zone Width ZW ndddd Time of the Zone Is not used at all and...

Page 41: ...f Mode Trigger Mode TM nd n 0 3 sector interface 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 0 Trigge...

Page 42: ...er chA analog channel chD digital channel chA or chD 1 no output 1 1 Get the size of the Process Image GIO_PI returns AO AI DO DI AO analog out AI analog in DO digital out DI digital in Sector Bottom...

Reviews: