Home

Single Point DLS2000 Sensor User Manual

image

Contents

1. Laser WARNING DO NOT look directly into the laser beam OEM Safety Responsibilities Laser Measurement International has filed a report with the US Food and Drug Administration FDA to assist OEM s in achieving certification of their own applications by referencing the report accession number The following paragraphs outline areas that are not covered by Laser Measurement International submission and need to be specifically addressed by the OEM Laser Warning Sign Format Laser warning signs must be located in the vicinity of the sensors such that they will be readily observed Refer to the following diagram for an example of the laser warning sign Different warning signs are required for different laser classifications These are specified in the CFR Title 21 Section 1040 An example is shown below for a Class IIIa sensor VISIBLE LASER RADIATION AVOID DIRECT EXPOSURE TO BEAM PEAK POWER lt 5 mW WAVELENGTH 600 710 nM CLASS Illa LASER PRODUCT Laser Emission Warning Indicators As specified by the US Food and Drug Administration Department of Health and Human Services Code of Federal Regulations 21 Section 1040 CFR 21 1040 the controls which operate the single point sensors must incorporate a visible or audible signal when the lasers of the sensors are active Typically this consists of a warning lamp which is illuminated when power is supplied to the sensor Additionally CFR 21 1040 standards require that
2. To put sensors to specific baud to match the RS 485 serial input and output ports baud rate command Baud Command 1Byte 92 Baud 1Byte 0 9600 1 19200 2 38400 3 57600 ifusing CRC Command Command Byte 92 Success 0 Fail If using ChkSum None 135 GET BAUD RATE OF THE SENSOR Read Sensors Baud setting command Baud Command 1 Byte 135 Baud 1 Byte 77 SET ERROR CHECHING TO CRC CHECKSUM Change sensor s error check from CRC to Checksum or vice versa command Mode Command 1 Byte TI Mode 1 Byte 0 CRC 1 Chksum ifusing CRC Command Command Byte TI Success 0 Fail If using ChkSum None 24 Command Purpose Command Format Response Format Command Purpose Command Format Response Format Command Purpose Command Format Response Format 25 66 SET TO DEFAULTS Sets all sensor parameters to Factory Defaults command Command 1 Byte 66 if using CRC Command Command Byte 66 Success 0 Fail If using ChkSum None 93 WRITE MINIMUM ANALOG RANGE Sets sensor s minimum range for targets closer than this range sensor will output Out of range value FFFF command Min Range Command 1 Byte 93 Min Range 1 Word 0 12000 if using CRC Command Command Byte 93 Success 0 Fail If using ChkSum None 140 GET MINIMUM ANALOG RANGE Returns the sensor s minimum range Command Command 1Byte 140 Command Min Range
3. e aprogram that reads requests and receives character data byte stream using the Packet Format described in the previous paragraphs e By writing an application in the host computer you can e request data from the sensor e read and process data values returned from the sensor 22 Commands Command Purpose Command Format Response Format Command Purpose Command Format Response Format Command Purpose Command Format Response Format 23 12 GET RANGE Returns the current range reading Command Command 1 Byte 12 Command Range Command 1 Byte 12 Range 1 Word 18 SET SERIAL ADDRESS OF THE SENSOR Assigns a specific address to the sensor identified by the serial number This command can be broadcasted to all sensors packet Adders is zero Each sensor checks the serial and if it matches the serial stamped on the face if the sensor the address is set This address is then used to send commands to a specific sensor Command Serial 8 Bytes Address ifusing CRC Command Command Byte 18 Success 0 Fail If using ChkSum None 132 GET SERIAL ADDRESS OF THE SENSOR Read the sensor s serial address command command Address Command 1 Byte 132 Address 1 Byte 23 Command Purpose Command Format Response Format Command Response Response Format Command Purpose Command Format Response Format 24 92 SET BAUD RATE OF THE SENSOR
4. 5 2 tiere te tee E He Fiere re re HOP See ERR ev p I HU een 39 WELCOME TO THE DLS2000 The DLS2000 is a member of the DynaVision family of laser based ranging sensors These sensors employ a laser and the triangulation principle to make precise measurements of range as shown in Figure 1 UNPACKING Upon receipt unpack and visually inspect the sensor The sensor is a single metal enclosure with a connector on one side and with laser and sensor viewing windows on the opposite side Ensure there is no damage to the enclosure connector or view windows The enclosed diskette contains DLS2000 Demo Program DLS2000 Setup Utility EXE SAFETY Laser Safety DynaVision scanners employ one or more lasers that illuminate the measurement surface This requires that specific safety precautions be taken when servicing the optimizer system The DLS2000 is classed by the U S Food and Drug Administration FDA Code of Federal Regulations CFR 21 Part 1040 as Class IIIa This classification is clearly marked on the DLS2000 Caution Use of controls or adjustments or performance of procedures other than those specified herein may result in hazardous radiation exposure WARNING The DLS2000 is a Class IIIa type laser device Regardless of the power rating or whether or not the laser is visible the laser should not be viewed directly or through a mirror as it may result in severe damage to the eyes Laser a Sensor
5. Figure 4 Calibration of the DLS2000 is relative to the reference face of the sensor The minimum distance the target can be from the reference face of the sensor is the standoff distance see Figures 2 amp 3 Any movement or vibration of the sensor relative to the object being measured will result in measurement errors The surface the sensor is mounted to must be flat within 0 030 0 76mm between the three mounting points 10 Model 4 12 Specifications Mechanical Dimensions 184 4mm x 98 6mm x 38 4mm Electrical Power Supply Voltage 15 VDC 30 VDC 250mA Analog Output Programmable Maximum Analog Output Load 0 VDC 10 VDC 4mA 20mA 5509 using current output gt 2000Q using voltage output Laser Visible Laser RED Wave Length 655 nm Laser Power lt 5 mw Performance Standoff 4 528 115mm Range 12 000 304 8mm Resolution Digital 0 001 0 025mm Resolution Analog 0 003 0 075mm Scan Rate 1869Hz Environmental Ambient Temperature Operating Storage Relative Humidity Housing MIN 0 C 32 F MAX 50 C 122 F MIN 30 C 22 F MAX 470 C 158 F 95 Maximum Non Condensing at 40 C 104 F Gasket aluminum enclosure 11 Model 10 24 Specifications Mechanical Dimensions 184 4mm x 98 6mm x 38 4mm Electrical Power Supply Voltage 15 VDC 30 VDC 250mA Analog Output Programmable Maximum Analog Output Load 0 VDC 10 VDC 4mA 20mA 5509 usi
6. Max Laser Power Min Laser Power Threshold Min Range Max Range Volt Min Volt amp Max Volt OutR During automatic laser power adjustment this limits the maximum power The power can be adjusted from 1 254 the lower the value the higher the laser power Together with Min Laser Power you can setup the Laser Power range in which the sensor will operate To change the maximum laser power enter the new power setting and click on Max Laser Power The recommended value for Max Laser Power is 2 During automatic laser power adjustment this limits the minimum power The power can be adjusted from 1 254 the higher the value the lower the laser power Together with Max Laser Power you can setup the Laser Power range in which the sensor will operate To change the minimum laser power enter the new power setting and click on Min Laser Power The recommended Factory Defaults value for Min Laser Power is 240 This refers to the A to D converted threshold for detecting the laser spot and filtering it through the background light The threshold can be adjusted from 0 255 The lower the value the more sensitive camera becomes to laser light but also becomes more sensitive to background ambient light Recommended value for threshold is 48 Sets the sensor s range at which the analog output is at the volt min For any range less than this value sensor will output the analog reading of volt OutOfRan
7. Sum 2EE0 12000 MAINTENANCE Since the DynaVision scanner heads operate optically the primary maintenance procedure is keeping the heads and especially optical surfaces clean of sawdust oil and pitch Do not immerse the unit in fluids or use a high pressure spray to clean The sensor contains optical and electronic components and under no circumstances should the enclosure be opened The following maintenance tasks should be preformed regularly to keep the scanner heads in good working order e Using clean air pressure system blow air over the laser and sensor glass surfaces to prevent dust particles from settling It is important that the air be clean and free from oil and water e It is recommended that the face of the sensor be inspected and cleaned with isopropyl alcohol on a regular basis Commercial glass cleaners should not be used many have chemicals that leave a residue on the glass which can affect optical performance 36 37 Welding DynaVision scanners are optical apparatus and care must be taken to ensure that nothing affects their optical performance The camera used inside each DLS2000 sensor head can be damaged by very intense light Additionally the debris generated while welding is normally hot enough to mar or imbed itself in the surface of the glass lenses covering the lasers and camera Therefore it is recommended that the sensor heads be shielded before any welding takes place in close proximity of
8. 4 Laser Sate iati oet iot eR Uma m a a erc a a a a E A 4 OEM Safety Responsibilities pinnien edite a A A E E a tu ii ette eave 5 Laser Warhimg Sign Formatera niian oet temet E seeded sa cab A Uit ospite vi cad 5 Laser Emission Warning IndiCatots 2 ox Uia beth raa 3 Beam Attenuators s oc inpet eto Ui et in libet tte Pete A A isst rod n EH trt brc 3 USING THE DLS20Q eee ee ener enean ratae tosta enata sa tasa to soa tasto tutto ss to seats ses an tns sete stato seta ao taoa 6 Standolt Range ese RUNURISe UE ss Sk a Sea mesi etat tuac niet Redes dolet ttes 6 How do laser triangulation sensors work Dest Zenice esee enne en nennen enne en tene ede nne A 7 DoT needa computer to use the DIES 2000 iet eese tereti tied estet E etd eet RR 7 61 0j EM CERCHI HELULOLLEPRERREREOERREECRRORRRRIENERNETERERTDOENUEREPURBORNQEURRININUREEERRER RR 9 Necessary Equipment 0 epo RARE OUR SORDIDE DE eR 9 MECHANICAL MOUNTING erento SCONO EOS tata Oia 10 Model 4 12 Specifications 2 o np hore EU REP PEDE ERO FREE EEG DECR the E Ehe rie teeth 11 Model 10 24 Specifications 5 3 nae HG Rp Dp REI Rr ERE D rep Peiper ei eredi 12 Connector Pin Ot nre am ERU Or n ROO ped Ore ee 13 NIUNNIONEON TM VEV E COUEERERERERRERERRRERRERERRRRRRERERRERERRRERRERERRRERRRERRRRRRRRRRRRRERRRERR 14 APPLICATION PROGRAMMING erret rent rnnt rnnt natns vtto tiorro s totns ns tasa sons VROES NESNE 14 General Overview i oi
9. configuration and or cabling is incorrect If the voltage output does NOT change check your wiring again Behavior 37 38 No data comes from sensor s analogue output What to do 1 n 9o c4 OV EA Bd Check cabling and ensure that power and signals are wired correctly Make sure you have an RS 232 to RS 485 converter Check to see that the laser is on The DLS2000 uses a visible red laser Do not look into the laser exit window Check to see that the camera s field of view is not obstructed and that the window is clean Connect an LED with a 3 3K ohm resistor in series across Pins 5 Out of Range and 12 Place a target within the sensor s range The LED should be lit Block the path between the camera and the laser The LED should go out Connect the serial port of the sensor to a host computer using an RS 232 to RS 485 converter Move the target back and forth Observe the displayed range value on your computer It should change as the target is moved If the values change and there is still no analogue output the analogue signals are probably incorrectly wired Behavior In a multi drop configuration one or more sensors do not respond and do not provide data to the serial interface What to do 1 2 Connect the offending sensor by itself see previous to see if it operates correctly in a non multi drop environment If the sensor behaves correctly in 1 the problem may be that the sensor is incorrectl
10. nennen entem ennn enter enn entente enne 21 What if the sensor detects an error aenieei er ene anei ee Area SEERE ES tenete trennen trennen rennen enne enn eterne 21 Re Synchronizin g Timing ere tert Re geehrt etie ste eb tae pb nee RARE ERE 21 Start of Transmission ST X sees ce mee Ire IR bebe e eese esee eee EN SNERRE 22 How do I make sure the host and sensor are synchronized ceseceesseceseeeesseceeneecaeceeeeecsaeceeneecaeceeeeecsaeeeeees 22 Nun A M 22 What if transmission time exceeds 50 ms sessionens SEEST SSR STEKES EES Kokov enne ener enne 22 pnr E PRESSER aes i i a Bien ES AE Re A Oe Se 22 What if the complete packet is not received in 500 ms ooo eee eee ese cseeceeeeeeeeeeeeeeeeesecseeaecsaecsaecsaeeaeeeaeeeas 22 DynaVision APPLICATION PROGRAMMING INTERFACE eene nene eene 22 COMMANAG errereersrrerserersersersrsersersrserserersersesersessesersessesessessesessessesessessesessessesessessesessessesessessesessessessesessessssesserers 23 Pseudo Code oe RE RU E ERR ERR ine A OR A A A oe a oe 33 Reading Streaming D ta 2 eee onines band hte eN roae EKE Ober EAE S EE A ASRS er 36 MAINTENANCE RERO irai eet tee ete pisei REIR ei teat alee 36 hi EE Eee 37 TROUBLESHOOTING rie ni ith o thee e rU HERE ee Ee IR e EE Pe de rcp ees ev ne t Hee ee men 37 GETTING FURTHER HERD
11. sensor is quite simple You can use it either as a stand alone device or interfaced to a personal computer through the serial communication port 1 Place the sensor onto a table or flat surface Be sure that the pathway between target and the laser window round hole and the camera elongated window is not obstructed 2 Connect the DLS2000 in one of the following ways a Stand alone device connect the enclosed cable to a suitable power supply a voltage or current measurement device e g a DVM With the power supply OFF connect the cable to the DLS2000 If you are using the analog output only turn on your voltage measurement device Go to step 3 OR b Interfaced to a computer connect the enclosed cable to e a suitable power supply a voltage or current measurement device e g a DVM optional the serial port of a computer With the power supply OFF connect the cable to the DLS2000 Start the DLS2000 Setup Utility EXE application on the computer Set the software to use the correct serial port settings This is located under the connections tab Go to step 3 The DLS2000 can be connected to both a computer and a voltage current measuring device at the same time NOTE Do not look directly into the laser output window nor point it in the direction of another person see Safety 3 Position a suitable target e g a cardboard box or wood block within the measurement Range of the DLS2000 see Figures 2 amp 3 4 Turn on t
12. the indicator be clearly visible through protective eyewear designed specifically for the wavelengths of the emitted laser radiation Beam Attenuators CFR 21 1040 standards also specify that a permanently attached method of preventing human access to the laser radiation other than switches power connectors or key control must be employed None of the items mentioned above are supplied with the DLS2000 and are the responsibility of the OEM to supply when incorporating the DLS2000 into their system or product USING THE DLS2000 The DLS2000 can be used in a wide variety of measurement applications including Object profiling Thickness measurement Parts inspection Object alignment Range measurement On line quality control The DLS2000 is a smart sensor incorporating an internal processor to handle calibration scaling and data conversion The DLS2000 provides programmable analog outputs 0 10 VDC and 4 20mA and a digital serial output RS 485 57 6kBaud Triangulation Principle Object A Detected here eo Object B Detected here iiitiitiitn DLS2000 L CCD Array LASER oc s Lens Laser Beam As the distance from the sensor to the object changes T m a the light from the object is Object at Position A detected at a different pixel on the CCD array Object at Position B Figure 1 Standoff Range The distance from the reference face of the sens
13. Command 1 Byte 140 Min Range 1 Word 25 Command Purpose Command Format Response Format Command Purpose Command Format Response Format Command Purpose Command Format Response Format 26 94 WRITE MAXIMUM ANALOG RANGE Sets sensor s maximum range for targets further than this range sensor will output Out of range value FFFF command Mode Command 1 Byte 94 Max Range 1 Word 0 12000 if using CRC Command Command Byte 94 Success 0 Fail If using ChkSum None 141 GET MAXIMUM ANALOG RANGE Returns the sensor s maximum range Command Command 1 Byte 141 Command Max Range Command 1 Byte 141 Max Range 1 Word 90 WRITE MINIMUM ANALOG VALUE Sets the minimum voltage settings This is the output when target is detected at the closest point MIN Range command Min Da Out Command 1 Byte 90 Min Da Out 1 Word 0 9999 if using CRC Command Command Byte 90 Success 0 Fail If using ChkSum None 26 Command Purpose Command Format Response Format Command Purpose Command Format Response Format Command Purpose Command Format Response Format 27 142 GET MINIMUM ANALOG VALUE Returns the minimum voltage setting Command Command 1 Byte 142 Command Min DAOut Command 1 Byte 142 Min_Da_Out 1 Word 91 WRITE MAXIMUM ANALOG VALUE Sets the maximum voltage settings This is the output when target is detec
14. DynaVision Single Point DLS2000 Sensor Models 4 12 amp 10 24 User Manual by LMI Technologies Inc Version B PROPRIETARY This document submitted in confidence contains proprietary information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission of LMI Technologies Inc LMI Technologies Inc Trademarks and Restrictions 1673 Cliveden Ave Delta BC V3M 6V5 Canada Telephone 604 636 1011 Fax 604 516 8368 www lmint com DynaVision is a registered trademark of LMI Technologies Inc This product is designated for use solely as a component and as such it does not comply with the standards relating to laser products specified in U S FDA CFR Title 21 Part 1040 Windows 3 1 Windows 956 Windows 98 and Windows NT are registered trademarks of Microsoft Corporation No part of this publication may be copied photocopied reproduced transmitted transcribed or reduced to any electronic medium or machine readable form without prior written consent of LMI Technologies Inc Printed in Canada TABLE OF CONTENTS WELCOME TO THE DLS2000 csvsssssvsscssssssescssevessssvescessessosssssvessssvesssssessossessessossvesssssessesssssossossvessssvesseses 4 UNPACKING iia ats tian is Sse o eaS oni cb sas sence S86 SECES sat da C US Sota T sash LNV e a Sees ISOS 4 DAE b E E A T AEE TN EAA AT E AAE
15. ce Address Command Size Command read NUMERIC FORMATS The following describes the format of numbers contained within a packet Byte Always an unsigned 8 bit number 0 255 Words All words used in commands data streams are signed 16 bit numbers When using CRC MSB of the data word is sent first When using Checksum LSB of the data word is sent first Decimal points are assumed depending on data content Example If the data were 12345 this would represent 12 345 inch COMMUNICATIONS ERROR HANDLING This section describes the error handling of the serial communications The validity of the data in all packets transmitted to and from the sensor is checked using the last byte of the packet as a Checksum or CRC How do I process a received data packet When receiving a data packet from the sensor the host application should verify the validity of the Checksum or CRC byte Additionally the application should ensure that the command value returned matches the one sent in the request packet sent to the sensor What is the structure of a command packet Each command packet has the same structure as a data packet see Packet Example This means you must terminate each command packet with a Checksum or CRC What if the sensor detects an error If the sensor detects an error in the transmission it will ignore the command and not respond If there is no response from the sensor within 20 ms then the host application should assume an error oc
16. curred and retransmit the original command Re Synchronizing Timing This section describes the method of synchronizing the serial transmission between the host and the sensor 21 22 Start of Transmission STX Transmission of packets is initiated by the STX Start of Transmission character How do I make sure the host and sensor are synchronized Allow a period of 20 ms to pass without a response from the sensor BEFORE initiating a retransmission of the request to ensure synchronization Sensor Upon receipt of an STX character the sensor will allow a maximum of 50 ms for the next byte to be transmitted by the host What if transmission time exceeds 50 ms The sensor will abort receiving the packet and start looking for another STX character To guarantee resynchronization of all sensors on a serial line the host application should stop all transmission for 200ms After this time all sensors on the serial line will be waiting to receive an STX character Host Upon receipt of an STX character the host should allow a maximum of 500 ms for the complete response packet to be transmitted from the sensor What if the complete packet is not received in 500 ms The host application should abort the command and start looking for another STX character DynaVision amp APPLICATION PROGRAMMING INTERFACE Development of application programs for the DLS2000 is a simple task Requirements are e a suitable serial interface driver
17. ge and digital reading of 65535 FFFFh Sets the sensor s range at which the analog output is at the volt at max For any range greater than this value sensor will output the analog reading of volt OutOfRange and digital reading of 65535 FFFF Analog output when the object sensed is at the nearest point Min Range of the sensor s range Analog output when the object sensed is at the furthest point Max Range of the sensor s range Voltage output when the object sensed is outside the defined min range and max range 18 19 View Ranges Spot Info Allows the user to view range spot information DLS2000 Setup Utility je x LOLS 2000 ME a 1 09R D 5 uy s go Press START to continuously display spot Information Press STOP to end continuous display If Show Al is not Checked then only Range reading is displayed 19 20 COMMUNICATIONS PROTOCOL This section describes the contents of the packet used to transmit commands and data between a host computer and a DLS2000 sensor General Packet Protocol An asynchronous RS 485 serial communication link serves as the hardware interface between the host and the sensor s The software protocol describes the packet or group of information that is transmitted Generally this consists of e an address a command e e optional data e achecksum CRC Packet Description A packet consists of a string
18. he power supply to the DLS2000 The DLS2000 does not have a power switch so turning on the power supply will activate the DLS2000 You should now see a red laser spot on the target and a display of the range readings on the computer screen and or a voltage current reading on the voltage current measurement device Analog outputs by default are configured as 0 to 10V and 4 to 20 mA over full 12 000 or 24 00 range however this can be easily changed using DLS2000 Setup DlsSetup exe program You can redefine Max Min DA 0 9 999V and Max Min DA Range 0 12 000 values to set the analog output for desired configuration Min DA Analog output reading when target is at minimum range Max DA Analog output reading when target is at maximum range Min DA Range Range in inches at which analog output is minimum Min DA Max DA Range Range in inches at which analog output is maximum Max DA Note e For the range values Max DA Range must be greater than Min DA Range e For the voltage values the order of Min DA and Max DA determines the analog output If Min DA is greater than Max DA the analog output is reversed i e as the target moves further away form the face of the sensor the analog output voltage decreases MECHANICAL MOUNTING The sensor enclosure contains a mounting plate with three pre drilled mounting holes see Figure 4 The accuracy of the sensor is dependent on a secure mechanical mounting
19. low you to set the address of each DLS2000 unit Interconnect Specification Transmit and Receive lines are connected to the serial I O port of a host computer This serial I O port must be configured as follows Asynchronous 57600 baud 8 Data Bits One Stop Bit No Parity Multi Drop Configurations DLS2000 sensors can be wired in a multi drop configuration The serial communication must be wired as full duplex meaning four wires are required to complete the hardware connection as follows Tx of all the DLS2000 sensors are connected to the Rx Tx of all the DLS2000 sensors are connected to the Rx Rx of all the DLS2000 sensors are connected to the Tx Rx of all the DLS2000 sensors are connected to the Tx A 1200 termination resistor must be connected across the Tx and Tx and the Rx and Rx at the end farthest away from the host computer A utility is supplied DLS2000 Setup DlsSetup exe from which you can set the address of each DLS2000 Remember that this program only works in Microsoft Windows environments 15 16 Using DLS2000 Setup Utility Connecting to the Sensor DLS2000 Setup Utility 0152000 at Select the proper COM Port Baud Rate 57600 Factory Defaults Rate the unit address and click on Connect button If the unit address is not known use global address to communicate with sensor Note Do not use Global Addressing in multi drop configuration All sensors have default add
20. mmand Purpose Command Format Response Format 31 134 START STREAMING Puts the senor to streaming data mode command Command 1 Byte 134 147 END STREAMING Stop the sensor from streaming data mode command Command 1 Byte 147 21 GET SPOT Returns a variety of values in relation to current spot Command Command 1 Byte 21 Command Data Data Command 1 Byte 21 BasePix 1 Word SumPixel 1 Word NumPixel 1 Word SubPix 1 Word Range 1 Word 31 Command Summary Command 12 18 21 66 TI 142 143 145 146 147 32 32 Description Current Position Set Sensor s Serial Address Read Laser Spot data Sets To Defaults CRC CheckSum mode Write Threshold Set Maximum Laser Power Set Minimum Laser Power Set Minimum Analog Output value Set Maximum Analog Output value Set Sensor s Baud Rate Set Minimum Sensor Range Set Maximum Sensor Range Get Maximum Laser Power Get Minimum Laser Power Get Threshold Get sensor s serial Address Start Streaming Get Baud Rate of the sensor Get Minimum Sensor Analog Range Get Maximum Sensor Analog Range Get Minimum Analog Output value Get Maximum Analog Output value Get OutofRange Analog Output Set OutofRange Analog Output End Streaming 33 The Pseudo Code below describes a simple application program Pseudo Code MainLoop We ll talk to any attached sensor so we broadcast to sensor address 0 We want to
21. ng current output gt 2000Q using voltage output Laser Visible Laser RED Wave Length 655 nm Laser Power lt 5 mw Performance Standoff 10 000 254 0mm Range 24 000 609 6mm Resolution Digital 0 002 0 05 1mm Resolution Analog 0 006 0 152mm Scan Rate 1869Hz Environmental Ambient Temperature Operating Storage Relative Humidity Housing MIN 0 C 32 F MAX 50 C 122 F MIN 30 C 22 F MAX 470 C 158 F 95 Maximum Non Condensing at 40 C 104 F Gasket aluminum enclosure 12 Connector Pin Out The following diagram shows the connector pin out on the sensor as it is viewed facing the sensor The table details pin assignments for the Sensor Connector Pin Signal Rx Receive Tx Transmit 3 Tx Transmit Out Rng 5 6 Analog 1 Out 0 10V 7 Analog 1 Common 8 Analog 2 Common 9 Analog 2 Out 4 20mA 10 Sync 11 GND 12 POWER Optional Supplied Cable Pin Out Pin ba 2 ba 4 5 A 7 X 9 10 11 12 Front View of Connector of Sensor Pin out for the DLS2000 Signal Rx Rx De TX Out RNG 10VDC Common Common 4 20 Sync Front View of connector GND Power X Indicates a twisted pair 13 SENSOR ORIENTATION Refer to the following diagram locating the light beam and viewing angles The light beam is projected perpendicular to the face of the sensor Incorrect Correct AM E am
22. o the queue IF BufferPtr 2 Is this the Length byte RevLength ByteIn 3 Calc how many bytes we ll get BufferPtr BufferPtr 1 Update our pointer ENDIF ENDIF CRC ReadSensorRange MsgReceivedFlag XmitBuffer 4 CRC FALSE WHILE NOT TimeOut AND MsgReceivedFlag lt TRUE IF ByteRcvd IF FirstByteFlag TRUE IF ByteIn STX FirtsByteFlag TRUE BufferPtr 0 FirstByteFlag FALSE RevBuffer BufferPtr ByteIn BufferPtr BufferPtr 1 ELSE RevBuffer BufferPtr ByteIn IF BufferPtr 2 RcvLength ByteIn 3 BufferPtr BufferPtr 1 IF BufferPtr gt RcvLength Got the Full Message StopTimeOutTimer l Yes Stop the Timeout Timer MsgReceivedFlag TRUE ENDWHILE IF MsgReceivedFlag TRUE RcvAddr RcvBuffer 1 RcvCmd RcvBuffer 3 RevLen length RcvBuffer 2 RcvCRC Chksum Last one or two bytes of RcvBuffer Calculate CRC or Checksum IF RcvCRC CheckSum lt gt CalcCRC CheckSum CRCError TRUE ELSE IF RevCmd lt gt CmdB yte CommandError TRUE ELSE SensorRange WORD RcvBuffer 4 34 35 ELSE TimeOutError TRUE IF BufferPtr gt RcvLength Got the Full Message StopTimeOutTimer Yes Stop the Timeout Timer MsgReceivedFlag TRUE Set the status flag We re done ENDIF ENDWHILE IF MsgReceivedFlag TRUE Packet received or Timeout RcvChecksum 0 Packet received Then validate it RcvAddr RcvBuffer 1 RcvCmd Re
23. of bytes The same format is used to transmit from the host to the sensor and back What is a packet s maximum size The maximum size of any single packet is 259 bytes If the data block to be transmitted exceeds 259 bytes then the total data block must be transmitted with more than one packet For example if the total data consists of 700 bytes then this will take a total of 3 packets of data to be sent PACKET FORMAT STX Address Length Command Data Checksum or CRC STX 1 byte Start transmission character 02 Address 1 byte O broadcast to all sensors 1 255 addressing a specific sensor Note This byte identifies the sender when received by the host Length 1 byte When using Checksum for error checking this is the number of bytes from command to the last data byte When using CRC for error checking this is the number of data bytes only Command 1 byte 1 255 See command descriptions Data XX bytes Number of bytes is command dependent Checksum 1 byte 2s Complement sum of all bytes inclusive of STX and last data byte OR CRC 2 byte 16 bit CRC of all bytes inclusive of STX and last data byte 20 21 PACKET EXAMPLE To request the current range value from the sensor the host computer program should send the following message packet If using Checksum 02 address 1 12 Checksum 1Byte STX Character Device Address Command Size Command read If using CRC 02 address 0 12 CRC 2 Bytes STX Character Devi
24. or to the sensor s first measurement is the Standoff The sensor cannot make any measurements before the Standoff If a target is placed within this area the analog output would read zero voltage output 4mA current output and the digital output will return a 65535 indicates out of range The distance from the sensors standoff to the sensors maximum measurement point for which it has been calibrated is the Range In between these two points the sensor will return a valid reading indicating how far the measurement surface is away from the standoff What is the maximum distance an object can be placed from the sensor s reference point The Standoff distance plus the Range distance is the maximum distance an object can be placed away from the face of the sensor Stand offf 4 528 115mm L Range 12 304 6mm Figure 2 Model 4 12 Stand off 10 254mm Range 24 609 6mm Figure 3 Model 10 24 Standoff distance Range distance Object s Maximum Distance If the object distance from the face of the sensor is greater than the Object s Maximum Distance the sensors analog output will read zero volts and the digital output will return a 65535 indicating out of range Object Distance gt Standoff Range Out of Range How do laser triangulation sensors work best Laser triangulation sensors work best when the measurement surface is a diffuse reflector such as the surface of a piece of paper wood or non shiny metal and plas
25. ose Command Format Response Format Command Purpose Command Format Response Format 29 130 GET MINIMUM LASER POWER Returns the minimum laser power setting Command Command 1 Byte 130 Command Min Power Command 1 Byte 130 Min Power 1 Byte 83 WRITE MAXIMUM LASER POWER Sets the maximum laser power This is actually the OFF time of the laser power PWM so lower the value higher the laser power command Max Power Command 1 Byte 83 Max Power 1 Byte 1 254 if using CRC Command Command Byte 83 Success 0 Fail If using ChkSum None 129 GET MAXIMUM LASER POWER Returns the maximum laser power setting Command Command 1 Byte 129 Command Max Power Command 1 Byte 129 Max Power 1 Byte 29 Command Purpose Command Format Response Format Command Purpose Command Format Response Format 30 82 WRITE THRESHOLD This refers to the A to D converted threshold for detecting the laser spot and filtering it lower the value the more sensitive camera becomes command Threshold Command 1 Byte 82 Threshold 1 Byte 0 255 if using CRC Command Command Byte 82 Success 0 Fail If using ChkSum None 131 GET THRESHOLD Returns the threshold value Command Command 1 Byte 131 Command Threshold Command 1 Byte 131 Threshold 1 Byte 30 Command Purpose Command Format Command Purpose Command Format Co
26. p 7 e DynaVision y 1 Non reflective materials If the surface of the material being measured is non reflective e g wood non shiny metal the sensor should be mounted so the beam is projected perpendicular to the surface Semi reflective materials If the surface of the material being measured is semi reflective e g glossy painted surface the sensor should be rotated counter clock wise to reduce the direct reflection of the beam back to the sensor APPLICATION PROGRAMMING General Overview All communication between the host computer and the sensor is via an RS 485 serial interface All commands are initiated from the host computer to the sensor with the sensor responding to the commands Communications Specifications The DLS2000 is designed to use the RS 422 485 standard for its serial communication This is a differential driver receiver pair It is capable of transmitting up to 4000 feet 14 The serial ports of most personal computers are based on the two wire RS 232 standard To use a personal computer as the host for a multi drop configuration you will need an RS 232 to RS 485 converter box The RS 485 option allows the sensor to be used in multi drop configurations This means that up to 32 units can be connected to the same serial line Each device must have a different address so that you are able to distinguish which unit you are talking to A standard utility is supplied to al
27. read the range Which is a command value of 12 and length 1 WHILE NOT Finished Until we re told to stop SendSensorCmd 0 1 12 Send the sensor our request ReadSensorRange Read what the sensor sent ENDWHILE SendSensorCmd SensorAddress CmdLength CmdByte XmitBuffer 0 STX 1 byte is always an STX char XmitBuffer 1 SensorAddress the Sensor Address XmitBuffer 2 CmdLength XmitBuffer 3 CmdB yte If using CheckSum or error checking then Checksum STX SensorAddress CmdLength CmdByte 1 XmitBuffer 4 Checksum put it at the end else for i 0 i lt length xmitBuffer i ch XmitBuffer i for shifter 0x80 shifter shifter gt gt 1 flag CRC amp 0x8000 CRC lt lt 1 CRC l shifter amp ch 1 0 if flag CRC 0x1021 XmitBuffer 4 CRC MSB Xmitbuffer 5 CRC LSB Write XmitBuffer COMPORT StartTimeOutTimer ReadSensorRange checksum MsgReceivedFlag FALSE Initialize status flags FirstB yteFlag TRUE WHILE NOT TimeOut AND MsgReceivedFlag FALSE IF ByteRcvd Got a byte IF FirstB yteFlag TRUE Yes Is it the 1 one IF ByteIn STX Yes Is it an STX BufferPtr 0 Yes Start storing the packet FirstByteFlag FALSE RcvBuffer BufferPtr ByteIn BufferPtr BufferPtr 1 33 34 ENDIF ELSE We ve already got an STX so RcvBuffer BufferPtr ByteIn add this byte t
28. ress of 1 In case of multi drop configuration ensure that each sensor has been assigned a unique address before being placed on single communication line Serial The number shown here is the sensor s serial number which is labeled on the side of the sensor enclosure Factory Programmed Firmware This is the firmware version of the sensor Factory Programmed Model This is the sensor s model number Factory Programmed FPGA This is the sensor s FPGA version of the sensor Factory Programmed 16 17 Setup Sensor Parameters DLS2000 Setup Utility Sete 52000197 Model DLS2000 Z Address Baud Rate Error Checking Set to Defaults The sensor address may range from 1 to 255 the maximum number of sensors that can be placed on a multi drop line Each sensor must have a different address To change the address of the sensor enter new address and click on Address button Note When changing the address only one sensor must be communicating with the host This is the sensor s Baud Rate that it uses to communicate to the Host To change Baud Rate select the Baud Rate from the list and click on Baud Rate button The Baud rate is preset at the factory to 57600 Baud Error checking method used by sensor to communicate with the Host Checksum Default or CRC To change select the method from the list and click on Error Checking button Sets all sensor parameters to factory defaults 17
29. t op POR RD OD ener SPP 14 Communications Specifications nier t nrbe P RP pe NE NNE rhe beoe ee o reb eb Te E petri oes 14 Interconnect Specification o m nop ar np RO EE RE DH IHRE Dee t espere repris 15 Mul Drop Config rations one eit RIP ne IRR e ERR seep REB DEEP orbe e EE Ope rie Pra 15 Using DLS2000 Setup Utility eene eren eere enne ttn nnn tne tnt tette tans enata en assa sa ne than snas LEES sn 16 Connecting to th Sensor eerte prec eee treiber da ieee eese AE sedeo Pepe eee eee heb ERE eene encode 16 Setup Sensor Parameters EET X M 17 View Ranges Spot Info br e RR ata Re ere ERI E VEe I ES IKER ES TS Pene Dee o PO 19 COMMUNICATIONS PROTOCOL eene enne tnt tht that tns tasse than tassa see eders ae tasse snas ed SEERE snae 20 General Packet Protocoles 2 tpe pd etre edt ren te tete E eere eee tr eee ee eds 20 NUMERIC EORMATTS ireiiodeisttas ta Lessons tse boca sod ara da setas ba Dea L Ded Une eae bna Rad Dean a eee Dae des be Ea saa ea eon e Dae cR eaa ana esi oai 21 COMMUNICATIONS ERROR HANDLING eese ettet entente etn natn theta snas Te se tasse taam snas sn aea 21 How do I process a received data packet 0 eeeessecssecesncecsseceencececeesneeceueeesneecuceseneecsaecesaeecsaeeeeaeecsueeeeaeecsaeeesnees 21 What is the structure of a command packet sessesssesseeeeeeseeeeee enne
30. ted at the Farthest point MAX Range command Max Da Out Command 1 Byte 91 Max Da Out 1 Word 0 9999 if using CRC Command Command Byte 91 Success 0 Fail If using ChkSum None 143 GET MAXIMUM ANALOG VALUE Returns the maximum voltage setting Command Command 1 Byte 143 Command Max DAOut Command 1 Byte 143 Max_Da_Out 1 Word 27 Command Purpose Command Format Response Format Command Purpose Command Format Response Format Command Purpose Command Format Response Format 28 146 WRITE OUT OF RANGE ANALOG VALUE Sets the Out Of Range analog value for the sensor This is the value that sensor outputs when target is out of the sensor s range command OutR_Da_Range Command 1 Byte 146 OutR_Da_Out 1 Word 0 9999 if using CRC Command Command Byte 146 Success 0 Fail If using ChkSum None 145 GET OUT_OF_RANGE ANALOG VALUE Returns Out_Of_Range analog value Command Command 1 Byte 145 Command OutR Da Out Command 1 Byte 145 OutR_Da_Out 1 Word 84 WRITE MINIMUM LASER POWER Sets the minimum laser power This is actually the OFF time of the laser power PWM so higher the value lower the laser power command Min_Power Command 1 Byte 84 Min_Power 1 Byte 1 254 if using CRC Command Command Byte 84 Success 0 Fail If using ChkSum None 28 Command Purpose Command Format Response Format Command Purp
31. the scanner frame TROUBLESHOOTING This section will help you with any difficulties you may have in operating the DLS2000 sensor Before following the suggestions be sure that you have e aclean and regulated power source e acalibrated voltage measurement device DVM Oscilloscope e acomputer optional Behavior Laser off When the laser is on a red light appears in the small circular window do not look at the laser What to do e Check to see if the power is turned on e Check cabling and ensure power is wired correctly Behavior No data comes from the sensor s serial port What to do 1 Check cabling and ensure that power and signals are wired correctly Make sure you have an RS 232 to RS 485 converter 2 Check to see that the laser is on The DLS2000 uses a visible red laser Do not look into the laser exit window 3 Check to see that the camera s field of view is not obstructed and that the window is clean 4 Connect an LED with a 3 3K ohm resistor in series across Pins 5 Out of Range and 12 5 Place a target within the sensor s range The LED should be lit 6 Block the path between the camera and the laser The LED should go out 7 Check the analogue output with an instrument capable of measuring DC voltage from 0 to 10 e g DVM VDC 8 Move the target back and forth Observe the analogue output It should change as the target is moved If the voltage changes it is likely that your serial port
32. tic Do I need a computer to use the DLS2000 No the DLS2000 can be used without a computer control system using the voltage or current and or with a computer using RS 485 serial communication Without a computer The DLS2000 can be employed as an analog sensor and does not require connection to an external computer Connect the cable to e a suitable power supply see Connections e a voltage measurement device or e a current measurement device With a computer The DLS2000 can be used in a computer based data acquisition or control system Commands requesting data are sent to the sensor and the sensor responds by providing range values Commands and data are exchanged with the DLS2000 using a simple serial protocol see Applications Programming To operate the sensor e Connect the cable see Multi Drop Configurations e Run the demonstration application DLS2000 Setup Utility EXE enclosed diskette This application will display the range readings from the DLS2000 in real time see Getting Started GETTING STARTED Necessary Equipment You will need a DC power supply 15VDC 30VDC 250mA an instrument capable of measuring zero 0 10 volts DC and or 4 20mA a flat surface Windows 3 1 Windows 95 or Windows NT if you are using the sensor with a computer an RS 232 to RS 485 converter Caution Always have the DC power supply turned OFF when connecting or disconnecting the cable to the DLS2000 Operating your DLS2000
33. vBuffer 3 FOR loopctr 0 TO RcvLength Calculate the checksum RevChecksum RcvChecksum RcvBuffer loopctr IF RcvChecksum lt gt 0 Is 1t valid ChecksumError TRUE No Indicate the error ELSE IF RcvCmd lt gt CmdByte Yes Does the response match CommandError TRUE No Indicate the error ELSE Otherwise get the range value SensorRange WORD RcvBuffer 4 ENDIF ENDIF ELSE TimeOutError TRUE Too much time passed ENDIF 35 36 Reading Streaming Data When sensor is in the stream mode it continuously sends out range values until host sends any character byte to the sensor to end the streaming mode To put sensor into the streaming mode send command 134 using above described Packet Format Stream data format Sensor sends out 16bit 14 bit range data 2 bit Sync bits data of the following format 1xxx XXXX OXXX Xxxx where MSB of each byte is used for synchronized the host software to the sensor MSB of 1 indicates upper byte MSByte and MSB Of 0 indicates Lower byte LSByte For ex Range 12 000 2EE0 Hex Sensor sends DD60 1101 1101 0110 0000 Now clear the MSB of each byte 0101 1101 0110 0000 split this word 2bytes into two words 0000 0000 0101 1101 upper word and 0000 0000 0110 0000 lower word shift upper word left by 7 and add it to the lower word 0010 1110 1000 0000 upper word shifted left by 7 0000 0000 0110 0000 lower word 0010 1110 1110 0000
34. y addressed when used in the multi drop configuration a Be sure you are using an RS 232 to RS 485 converter b Check that the wiring of the multi drop configuration is correct See Multi Drop Configurations C Check that the sensor addresses you are sending are correct Use the program DLS2000 EXE to reset any invalid sensor addresses 38 39 GETTING FURTHER HELP If you wish further help on the DLS2000 contact your distributor For more information on Safety and Laser classifications contact Center for Devices and Radiological Health FDA Office of Compliance HFZ 305 Attn Electronic Product Reports 2098 Gaither Road Rockville Maryland 20850 List of Agents Canada and the United States Call our offices at 1 604 636 1011 for the agent nearest you or visit our web site at www lmint com EUROPE LMI Selcom Inc Sweden phone 46 31 336 25 10 Box 250 8 433 25 fax 46 31 44 61 79 Ogardesvagen 19A Partille Sweden 39

Download Pdf Manuals

image

Related Search

Related Contents

Squad command interface for console  Page 1 Page 2 はじめに このたびは】 当社の工業用ス トリ ップチャー ト    2008 Fork Service Manual  Catalogo para PDF (2007)  IBM 6826 Personal Computer User Manual  ASUS G751JT User's Manual  Project Profile/Report  EE870 Fiche technique  VM VH User Manual V1.3 EN_DRM  

Copyright © All rights reserved.
Failed to retrieve file