8017035/ZMO9/2017-06-08 • © SICK AG • Subject to change without notice.
113
Serial Communication
8.2
How to Acquire Measured Values
This section explains how to use communication to acquire measured values.
8.2.1
Commands for Acquiring Measured Values
Function
Set or
acquire
Send
or
reply
Length Command
(hex)
Data
string
Parameter
Acquire
measured
results
Acquire Send
1
a017
000a
a: Output
a
Setting value
a
Setting value
0
OUT1
2
OUT3
1
OUT2
3
OUTA
bbbbbbbb: Measured result
Reply
2
bbbbbbbb
Acquire
the output
status
Acquire Send
0
a010
—
a: Output status (ouput with bits)
b0: OUT1, b1: OUT2, b2: OUT3
Reply
1
000a
Tips:
[OUT] data add [AVERAGE] [HOLD] [SPAN] process from [AREA] data.
8.2.2
Communication Command Examples
Acquisition command
• When acquiring the measured value of OUT1
Sent command
Command
02
01
a0
17
00
00
03
B6
Description
STX
Length
Command
Output
ETX
Sum
Received command
Command
02
02
a0
17
00
00
5a
62
03
8D
Description
STX
Length
Command
Measured value
ETX
Sum
You can see that the measured value of OUT1 is 0x5a62 = 23138 (μm).