![Pepperl+Fuchs SmartRunner Detector Скачать руководство пользователя страница 20](http://html1.mh-extra.com/html/pepperl-fuchs/smartrunner-detector/smartrunner-detector_manual_1527551020.webp)
Commissioning
2
0
1
7
-0
4
21
4
Commissioning
4.1
Configuration Mode
To adjust the sensor, it must be in configuration mode.
The command to put the sensor in this mode is 0xA8 0x57. After successfully changing mode,
the sensor responds with an Acknowledge (0x81 0xAC 0x00 0x2D). After an error when
converting the configuration, the sensor responds with a No Acknowledge (0x81 0x53 0xXX
0xYY, where XX = error code and YY = checksum). To check whether the sensor is in
configuration mode, the command Is_In_Config_Mode (0x00 0xFE 0xFE) can be sent. If the
sensor is in configuration mode, it responds with an Acknowledge, otherwise there is no
response.
Error codes with "No Acknowledge":
0x00 = everything OK
0x01 = checksum incorrect
0x04 = parameter has a different length than that transferred
0x05 = internal error
0x06 = parameter index is unknown
0x07 = read/write access, although not allowed
0x09 = parameter value range is violated
0x0B = other error
0x0E = configuration command too long/short
In configuration mode, messages are sent according to the extended protocol:
Description of Messages
Byte/
bit
8
7
6
5
4
3
2
1
0
1
Parity R/W
Length6
Length5
Length4
Length3
Length2
Length1
Length0
2
Parity Index7
Index6
Index5
Index4
Index3
Index2
Index1
Index0
3
Parity Data 1.7
Data 1.6
Data 1.5
Data 1.4
Data 1.3
Data 1.2
Data 1.1
Data 1.0
...
Parity ...
...
...
...
...
...
...
...
n
Parity
Data (n-2).7 Data (n-2).6 Data (n-2).5 Data (n-2).4 Data (n-2).3 Data (n-2).2 Data (n-2).1 Data (n-2).0
n+1
Parity
xor
B1.7...B(n).7
xor
B1.6...B(n).6
xor
B1.5...B(n).5
xor
B1.4...B(n).4
xor
B1.3...B(n).3
xor
B1.2...B(n).2
xor
B1.1...B(n).1
xor
B1.0...B(n).0
Table 4.1
R/W:
0: write
1: read/command
Length: row data length (Data1 ... Data(n-2) )
Index
Parameter name
Data
Length/bytes
Read/write
Description
0x01
VendorName
Variable
R
String containing
"Fuchs"
0x02
VendorHomepage
Variable
R
String containing the
Fuchs homepage
0x03
ProductName
Variable
R
String containing the
product name
0x07
SoftwareVersionDSP Variable
R
String containing the
version information
0x64
Trigger
-
W
Triggers an image capture
with evaluation
0xE0
GetImage
-
W
Loads the current image
from the sensor