
TRIANGULATION LASER SENSORS, RF603 Series
Rev. F (14.09.2009)
RIFTEK
, Republic of Belarus, Minsk, tel./fax: +375-17-281-35-13 Е-mail: [email protected], http:// www.riftek.com Page 9/25
25h 1st byte of standard identifier
26h 2nd byte of extended identifier
27h 3rd byte of standard identifier
identifier CAN
28h CAN interface identifier 1 — extended identifier;
0 — standard identifier .
NOTE:
1) All values are given in binary form.
2) Base distance and range are given in millimeters.
3) The value of the result transmitted by a sensor (D) is so normalized that 4000h (16384) corre-
sponds to a full range of the sensor (S in mm), therefore, the result in millimeters is obtained by the
following formula:
X=D*S/4000h (mm). (1)
4) On special inquiry (05h), the current result can be latched in the output buffer where it
will be stored unchanged up to the moment of arrival of request for data transfer. This inquiry can
be sent simultaneously to all sensors in the net in the broadcast mode in order to synchronize data
pickup from all sensors.
5) When working with the parameters, it should be borne in mind that when power is OFF
the parameter values are stored in nonvolatile FLASH-memory of the sensor. When power is ON,
the parameter values are read out to RAM of the sensor. In order to retain these changes for the next
power-up state, a special command for saving current parameter values in the FLASH-memory
(04h) must be run.
6) Parameters with the size of more than one byte should be saved starting
from the high-order byte and finishing with the low-order byte
9.11. Examples of communication sessions:
1) Condition: request for device identification. Device address —1, inquiry code – 01h, device type
—61h, modification —00h, serial number —0402 (0192h), base distance —80 mm (0050h),
range —50 mm (0032h), burst number —1.
The ‘inquiry’ format:
INC0(7:0),INC1(7:0) = 0,ADR(6:0),1,0,0,0,COD(3:0), [MSG]. (SEE 7.5)
Inquiry (‘master’) — 01h;81h (INC0(7:0)=0,ADR=0000001,INC1(7:0)=1,0,0,0,COD=0001)
The following is the format of two ‘answer’ data bursts for transmission of byte DAT(7:0) (SEE
7.6):
Dt0(7:0);Dt1(7:0) = 1,CNT(2:0),DAT(3:0);1,CNT(2:0),DAT(7:4)
Answer (‘slave’) — 91h, 96h (device type), 90h, 90h (modification), 92h, 99h, 91h, 90h (serial
number), 90h, 95h, 90h, 90h (base distance), 92h, 93h, 90h, 90h (range)
(note: as bust number =1, then CNT=1)
2) Condition: request for reading of parameter. Device address —1, inquiry code – 02h; parameter
code —05h, parameter value —04h, burst number —2.
Inquiry (‘master’) — 01h, 82h;
Message (‘master’) — 85h, 80h;
Answer (‘slave’) — A4h, A0h
3) Condition: request for result, device address —1, inquiry code – 06h, result value —02A5h,
burst number —3.
Inquiry (‘master’) — 01h, 86h;
Answer (‘slave’) — B5h, BAh, B2h, B0h
The displacement (mm) is equal (for example, range of the sensor = 50 mm):