background image

 

 

 

 

SPR-02  

Intelligent Single Point Sensor 

USER MANUAL 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright LMI Technologies Inc. 2003 

Version A 

Содержание DynaVision S Series

Страница 1: ...SPR 02 Intelligent Single Point Sensor USER MANUAL Copyright LMI Technologies Inc 2003 Version A...

Страница 2: ...Copyright LMI Technologies Inc 2003...

Страница 3: ...nfigure and operate the DynaVision SPR 02 Intelligent Single Point Sensor This document submitted in confidence contains proprietary information which shall not be reproduced or transferred to other d...

Страница 4: ...IREMENTS 8 2 4 CONNECTOR AND INTERFACE REQUIREMENTS 10 2 4 1 CONNECTOR TYPE AND MANUFACTURERS 10 2 4 2 SENSOR CONNECTOR PIN OUT 10 2 4 3 CABLE FOR RS 485 11 2 4 4 CABLE CONNECTOR PIN OUT 11 2 4 5 CABL...

Страница 5: ...TION VARIABLES 29 4 3 6 SET BAUDRATE 30 4 3 7 SET ERROR CHENGING 31 4 3 8 SET TO DEFAULTS 31 4 4 READ CURRENT VALUES 36 4 4 1 READ CURRENT POSITION 36 4 4 2 READ CURRENT SENSOR SETUP 36 4 4 3 READ CUR...

Страница 6: ...49 7 1 PURPOSE 49 7 2 INTERFACE CABLE 49 7 3 USING SPR02 SETUP UTILITY 49 7 3 1 CONNECTING TO THE SENSOR 50 7 3 2 CHANGING VIEWING SENSOR PARAMETERS 50 7 3 2 1 VIEW EDIT SENOSR ID 51 7 3 2 2 VIEW EDI...

Страница 7: ...supplies power to the sensor and the communication link between itself and a host computer and 0 to 10 VDC and 4 to 20mA analog signal Communication with the host computer is via a standard RS 485 ser...

Страница 8: ...15 30 VOLTS DC 500MA Analog Output 0 10 VOLTS DC programmable 4 20mA programmable 1 3 2 COMMUNICATIONS TYPE RS 485 FULL DUPLEX Communications Rates 9600 19200 38400 57600 baud preset to 57600 baud Co...

Страница 9: ...e It should contain Sensor Manual Software diskette Cable cable supplied by LMI is DEMO CABLE for testing purposes only Visually inspect the sensor The sensor is a single metal enclosure with a connec...

Страница 10: ...s III type laser devices Regardless of the power rating or visibility of the laser do not view directly or through a mirror as it may result in severe damage to the eyes Laser Laser Sensor WARNING Do...

Страница 11: ...nated when power is supplied to the sensor If the sensors are mounted some distance from the controls it is recommended that warning indicators are placed at each location Warning indicators should no...

Страница 12: ...ted to ensure measurement accuracy Any movement or vibration of the sensor relative to the object being measured will result in measurement errors The mounting surface must be flat to within 0 030 0 7...

Страница 13: ...h the SPR 02 sensors If the surface of the material being measured is Diffused the sensor should be mounted so the beam is projected perpendicular to the surface If the surface of the material being m...

Страница 14: ...applies to the Model 16 32 5 sensors and may not accurately indicate the overlap areas for sensors of different ranges As the distance from the sensor increases the field of view increases Sensors ma...

Страница 15: ...iagram Option 2 The vertical mounting position of the adjacent sensors could be offset to alter the field of view Adjacent sensors should be offset from each other by 0 250 6 4mm or greater according...

Страница 16: ...utput signals for the sensor WARNING Always turn the power OFF before installing or removing the connector otherwise damage may occur 2 4 1 CONNECTOR TYPE AND MANUFACTURERS The sensor has a 10 pin mal...

Страница 17: ...sor 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 2 4 3 CABLE FOR RS 485 It is recommende...

Страница 18: ...rminating resistor 220 ohm should be installed on the end unit across TX TX and across RX RX to reduce noise WARNING DEMO Cable supplied by LMI communicates via RS232 protocol and has to be used for t...

Страница 19: ...checked once per month or as required to ensure that mechanical mounting is secure 2 5 2 CLEANING The glass surfaces must be kept clean from dirt and grease build up It is recommended that the face of...

Страница 20: ...l input and output ports must be configured as followed Asynchronous 9600 19200 38400 57600 baud to match the sensors 8 Data Bits One Stop Bit No Parity 3 2 2 MULTIDROP SPECIFICATION Up to 255 sensors...

Страница 21: ...iring diagram example for multidrop sensors Notes Ensure voltage at sensors are maintained between 15V and 30V Use sense wires on power supplies if long distances are involved A terminating resistor 1...

Страница 22: ...aximum 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 dat...

Страница 23: ...and 3 02 01 01 03 F9 where Length 1 1 command byte The validity of the data in all packets transmitted to and from the sensor is checked using the last byte of the packet checksum 2 s complement of th...

Страница 24: ...Address Command Size Command Start scan Example 1 Start scan command 3 02 01 00 03 76 40 where Length 0 no data send Example 2 Set Scan Interval command 5 Let set interval to 400 0190 02 01 02 05 01 9...

Страница 25: ...the sensor and the host 3 4 1 SENSOR AND HOST ERROR HANDLING Sensor Error Handling All packets transmitted to the sensor contains a Checksum or CRC as the last bytes The checksum is the 2s complement...

Страница 26: ...n error occurred and retransmit the original command Host Error Handling The host utilized checksum or CRC values in the same manner as the sensor following the same time out sequences 3 5 RE SYNCHRON...

Страница 27: ...me between two bytes exceeds 50ms the sensor will abort the command and start looking for another STX character To guarantee resynchronization of all sensors on a serial line the host will stop all tr...

Страница 28: ...a 1 byte command value 1 255 and a number of bytes or words 4 1 1 COMMAND 01 TURN LASER ON Purpose Sets time out value for laser in 4 msec increments Host must send this command before timer expires o...

Страница 29: ...apse between updates To store samples in the scan buffer use the commands START SCAN and STOP SCAN see following command descriptions Command Format command scan interval Command 1 byte 05 scan interv...

Страница 30: ...ches capacity samples will wrap around and begin storing new values at the beginning of the scan buffer overwriting samples 4 2 3 Command 04 Stop Scan PURPOSE Stops sampling and preserves the contents...

Страница 31: ...mples on either side of the original sample and creates a new value by adding percentage of the average to a percentage of the original The filter will smooth the scan with no phase shift Two filter f...

Страница 32: ...buffer Command Format COMMAND command 1 byte 10 Response Format response high value high scan low value low scan average response 1 byte 10 high value 1 word sensor range high scan 1 word 1 8192 low v...

Страница 33: ...ways 126 except for last packet sequence 1 NOTE The see section 4 4 3 Read Current Sensor Status command should be issued by the host to determine how many samples are in the buffer before reading it...

Страница 34: ...ement values are in inch or metric units accordingly COMMAND FORMAT COMMAND MODE command 1 byte 09 mode 1 word 0 00 000 32 000 1 00 000 32 000 2 0000 0 3200 0 mm 3 0000 0 3200 0 mm 4 000 00 320 00 5 0...

Страница 35: ...result in output Command Format COMMAND OFFSET COSINE MULTIPLIER COSOFFSET2 command 1 byte 08 offset 1 word sensor range cosine 1 word 0 0000 1 0000 cosine of mounting angle multiplier 1 word 0 0000...

Страница 36: ...values Command Format command Minvolt Minrange Maxvolt Maxrange offset Out of Range reserved d aoutput command 1 byte 26 minvolt 1 word 0 9 999 Volts minrange 1 word sensor range maxvolt 1 word 0 9 9...

Страница 37: ...command lasercfg laserpwr lointerval hiinterval reserved command 1 byte 33 lasercfg 1 word Reserved laserpwr 1 word 0 31744 period 2 words low word high word 60 120 180 x 0 01ms reserved 1 word 0 Resp...

Страница 38: ...the RS 485 serial input and output ports baud rate Command Format command Baud Command 1Byte 92 Baud 1Byte 0 9600 1 19200 2 38400 3 57600 Response Format if using CRC Command Command Byte 92 Success...

Страница 39: ...versa Command Format command Mode Command 1 Byte 77 Mode 1 Byte 0 CRC 1 Chksum Response Format if using CRC Command Command Byte 77 Success 0 Fail If using ChkSum None 4 3 8 Command 66 SET TO DEFAULTS...

Страница 40: ...so higher the value lower the laser power Command Format command Min_Power Command 1 Byte 84 Min_Power 1 Byte 1 254 Response Format if using CRC Command Command Byte 84 Success 0 Fail If using ChkSum...

Страница 41: ...so lower the value higher the laser power Command Format command Max_Power Command 1 Byte 83 Max_Power 1 Byte 1 254 Response Format if using CRC Command Command Byte 83 Success 0 Fail If using ChkSum...

Страница 42: ...ring it lower the value the more sensitive camera becomes Command Format command Threshold Command 1 Byte 82 Threshold 1 Byte 0 255 Response Format if using CRC Command Command Byte 82 Success 0 Fail...

Страница 43: ...or is continuosly sends out range values until host sends any character byte to the sensor to end the steaming mode Sensor start to send out 16 bit data of the following format MSB and LSB Command For...

Страница 44: ...depending on the sensor mode with offset added Command Format command command 1 byte 12 Response Format response position response 1 byte 12 position 1 word sensor range NOTE Sensor Range is dependent...

Страница 45: ...ge is dependent on the actual mode of operation Refer to section 4 3 1 SET MODE 4 4 3 COMMAND 21 READ CURRENT SENSOR STATUS Purpose Returns a variety of values relatin to current sensor status Command...

Страница 46: ...calbrat 1 word 5555 Hex Calibration OK illopc 1 word of illegal opcodes 4 4 5 COMMAND 27 READ ANALOG OUTPUT FACTORS Purpose Returns various new factors for analog output Command Format command command...

Страница 47: ...2 words low word high word reserved 1 word 0 NOTE For further explanation of each parameter see chapter 7 3 2 Change Sensor Parameters 4 5 HIGH SPEED POLLING MODE 4 5 1 GENERAL DESCRIPTION The SPR 02...

Страница 48: ...600 baud 4 5 2 COMMAND 35 PUT SENSOR IN HIGH SPEED MODE Purpose Puts the sensor in high speed polling mode and changes the data transfer protocol Command command command 1 byte 35 Response Format if u...

Страница 49: ...et Address 19 Read Current Sensor Setup 20 Read Current Error Status 21 Read Current Sensor Status 26 Set Analog Output Factors 27 Read Analog Output Factors 30 Read Version Number 32 Read Configurati...

Страница 50: ...he 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 configuration or cabling is incorrect 4 If the se...

Страница 51: ...ected Check for sources of electronic noise see above Average data in head or in software Make sure target is not highly reflective or black Optical sensors require diffused light to reflect back to t...

Страница 52: ...sensor our request ReadSensorRange Read what the sensor sent ENDWHILE SendSensorCmd SensorAddress CmdLength CmdByte XmitBuffer 0 STX 1st byte is always an STX char XmitBuffer 1 SensorAddress the Sens...

Страница 53: ...irstByteFlag TRUE WHILE NOT TimeOut AND MsgReceivedFlag FALSE IF ByteRcvd Got a byte IF FirstByteFlag TRUE Yes Is it the 1st one IF ByteIn STX Yes Is it an STX BufferPtr 0 Yes Start storing the packet...

Страница 54: ...T TimeOut AND MsgReceivedFlag TRUE IF ByteRcvd IF FirstByteFlag TRUE IF ByteIn STX FirtsByteFlag TRUE BufferPtr 0 FirstByteFlag FALSE RcvBuffer BufferPtr ByteIn BufferPtr BufferPtr 1 ELSE RcvBuffer Bu...

Страница 55: ...RcvCRC CheckSum CalcCRC CheckSum CRCError TRUE ELSE IF RcvCmd CmdByte CommandError TRUE ELSE SensorRange WORD RcvBuffer 4 ELSE TimeOutError TRUE IF BufferPtr RcvLength Got the Full Message StopTimeOut...

Страница 56: ...ecksum RcvChecksum RcvBuffer loopctr IF RcvChecksum 0 Is it valid ChecksumError TRUE No Indicate the error ELSE IF RcvCmd CmdByte Yes Does the response match CommandError TRUE No Indicate the error EL...

Страница 57: ...AT Serial DB25 FEM 9 pin connector 25 Pin connector Cable B RX A white 3 TX 3 GND C black 5 GND 7 TX D green 2 RX 2 4 4 6 5 8 9 6 8 20 Cable A F Black Power GND J red 15V 30V Cable C H white Analog 0...

Страница 58: ...nit address and click on Connect If the unit address is not known check the Use Global Address option Note Do not use Use Global Address option in multidrop configuration All sensors have default addr...

Страница 59: ...ntification purposes and cannot be changed Firmware This is the Firmware version of the sensor It is factory programmed and cannot be changed Sensor Address The sensor address may range from 1 to 255...

Страница 60: ...n Cosine Offset Cosine is the cosine of the mounting angle of the sensor To change the cosine of the mounting angle enter the new value in the edit box and click on the Set Offsets button This value i...

Страница 61: ...for a voltage offset in the output data Min Range Editing this item changes the digital to analog minimum range which affects two things First any reading less than this value will output the out of r...

Страница 62: ...are used to filter the data in the scan buffer Reasonable values for SMOOTH factor ORDER factor and DROPOUT count are 50 0 3 10 respectively Dropout Factor To change the dropout factor edit the value...

Страница 63: ...ults 0 X Moving average filter is off 30 0 5 Filtered Value 70 current value 30 Average of 5 samples A SMOOTH factor near 100 means the data buffer elements will be averaged heavily with adjacent elem...

Страница 64: ...es where on the camera array the spot is falling NumPix is the number of pixels wide the light spot is on the camera SumPix is the total area covered by the spot showing technicians the shape of the l...

Страница 65: ...59 Scan Count refers to the number of samples in the scan buffer Continuous range reading both Analog and Digital can be viewed by clicking on Start button Stop button will stop the Continuous displa...

Страница 66: ...g the scan buffer with range readings at rate specified by Interval Stop Scan Stops filling the scan buffer Filter Filters the scan buffer using specified filter factors and display high low and avera...

Страница 67: ...further investigation of the communications link is required Reset Count This count refers to the number of internal restarts the sensor has gone through caused by something other than the power going...

Страница 68: ...er for Devices and Radiological Health FDA Office of Compliance HFZ 305 Attn Electronic Product Reports 2098 Gaither Road Rockville Maryland 20850 8 1 LIST OF AGENTS CANADA AND THE UNITED STATES Call...

Отзывы: