Ethernet
FS 12‐100‐1/2 M G8‐B8‐E Manual
di‐soric GmbH & Co. KG
Page 11
Commands
The commands consist of two ASCII characters and the termination character 'LF' (0x0A).
The following commands are available.
SO
This command returns the state of the switching outputs, a byte with status information as well as a life‐
counter. The data is ASCII hex coded. The exact partition of the response string is shown in Table 11.
Table 11: Response to the 'SO' command
Sign
Meaning
1
Life‐Counter, upper 4 Bit
2
Life‐Counter, lower 4 Bit
3
Status, upper 4 Bit
4
Status, lower 4 Bit
5
Reserved
6
Switching output 9 ... 12
7
Switching output 5 ... 8
8
Switching output 1 ... 4
The 8 bit status information have the following meanings.
Table 12: Meaning of the individual status bits
Bit
Name
Function
0
Trigger‐Ack
Toggle Bit for Trigger‐Mode
1
Stab‐Error
1 = Stabilization channel over or underdriven
2
Math‐Error
1 = Mathematical overdrive of the transformation function
3
Software‐Acc
1 = FS‐Tool software access on sensor
4
Reserved
For fatal error
5
Reserved
For fatal error
6
Reserved
For fatal error
7
Reserved
Not used
C1 and C2
The commands C1 and C2 returns the latest color values of the respective sensor channel.
The values are transferred as ASCII coded strings. Eight characters are transferred to one of three color values.
The space between the values is filled with zero character.
Example:
Latest color value:
a* = 65.9
b* = ‐25.5
L* = 56.1
Command:
<C1\CR\LF>
Response:
<65.9\00\00\00\00–25.5\00\00\0056.1\00\00\00\00\CR\LF>
I1 and I2
The commands I1 and I2 are used to read out the recognition result of the respective channel. The recognition
result consists of a table index of the detected color (0 if no color is detected), the current color distance and
the current lightness distance. The distances are calculated on the difference between the current color and a
stored color reference with a minimum distance.
For every single value within the sensor response, 8 signs are used.