Serial Communication
116
© SICK AG • Subject to change without notice. • 8017035/ZMO9/2017-06-08
Each X and Y coordinate is a signed 16-bit value. Also, the value "0x7FFF"
indicates that measurement is not possible.
After you acquire 126 data points worth of data, specify the address 252
words (126 data points x 2 words) worth of data after the current address,
and then use the same procedure to acquire the next data. Repeat this oper-
ation until you have acquired all the data.
To draw the profile, plot the acquired X and Y coordinates in order.
Tips:
•
A thinning value is specified to speed up data communication by thinning the
profile data points.
For example, the commands shown below would perform thinning of at each
data point (which would reduce the data points acquired by half).
Send
02
03
00
02
03
06
20
04
7E
22
03
7C
STX
Length
Acquisition
command
Address
rlen
Thinning
ETX
Sum
* The value “03 4” is assigned to the address.
Reply
02
FF
00
02
03 06 20 04 CC F9 10 35 CD F2 …
…
…
03
04
STX
Length
Acquisition
command
Address
X0
Y0
X1
Y2
…
ETX
Sum
•
In this case, acquired coordinates are: 0, 2, 4, 6, etc.
A thinning value up to 2F (1/15 thinning) can be input.
8.4
Storage Data Acquisition Method
This section explains how to acquire data stored using the storage function.
8.4.1
Commands for Acquiring Storage Data
Use these commands to acquire storage data.
Function
Set or
acquire
Send
or
reply
Length Command
(hex)
Data string
Parameter
Acquire the
address
Acquire Send
0
C00D
—
aaaaaaaa: Measured value address
bbbbbbbb: Profile address
Reply
4
aaaaaaaabbbbbbbb
Acquire
number of
data item
Acquire Send
0
C010
—
aaaa: Number of data items
Reply
1
aaaa