Serial Communication
120
© SICK AG • Subject to change without notice. • 8017035/ZMO9/2017-06-08
Received command
Command
02
01
00
05
03
04
Description
STX
Length
Command
ETX
Sum
Tips: •
The settings willl be changed when the Profiler 2 receives the command.
However, the changed settings will be erased when the power is turned
off. To keep the settings, send the command to write them to EEPROM.
Reply when an error occurs
Function
Length
Command
(hex)
Data string
Cause of error
No corresponding
command
0
e001
—
The corresponding command could not be found.
Invalid parameter
0
e002
—
A parameter specified by the command was invalid.
Invalid packet or
time-out
0
e003
—
STX, ETX, or the packet length was invalid or a reception
time-out has occurred.
Checksum error
0
e004
—
A BCC calculation mismatch has occurred.
8-bit frame error
0
e005
—
The stop bit could not be detected.
Flash comparison
error
0
e006
—
A data mismatch has occurred during a flash writing
inspection.
Collision error
0
e007
—
The half-duplex communication procedure was not followed.
Execution error
0
e008
—
A command that cannot be executed was sent during
measurement.
8.5.2
Writing Settings to EEPROM
Function
Set or
acquire
Send
or
reply
Length Command
(hex)
Data string
Parameter
Send Param
Set
Send
1
0005
000a
a: Bank number
0-7, 15 (common settings)
Reply
1
000a
8.5.3
Camera Settings
Function
Set or
acquire
Send
or
reply
Length Command
(hex)
Data string
Parameter
Camera
mode
Set
Send
1
201b
000a
a: Output
a
Setting value
a
Setting value
0
Hi-res
2
HDR
1
Hi-spd
3
NR
Reply
0
—
Acquire Send
0
201c
—
Reply
1
000a