![Pepperl+Fuchs WCS DG310 Скачать руководство пользователя страница 18](http://html1.mh-extra.com/html/pepperl-fuchs/wcs-dg310/wcs-dg310_manual_1527703018.webp)
2
0
1
7
-1
2
18
Appendix
5.2
Meaning of F0
Diagnostic function F0=1
The WCS reader can be requested to perform a diagnosis of the photoelectrics by means of
the request byte. For this purpose, the WCS reader must be located outside of the code rail.
On the WCS2B and WCS3B readers, the degree of dirt accumulation on the photoelectrics is
monitored automatically during operation and the diagnostic bit (DB) set if dirt accumulation is
too high. Thus the request for diagnosis to the WCS reader via F0 in the request byte is no
longer necessary. For reasons of downward compatibility, this function is also supported by the
new WCS readers.
Diagnostic bit (DB)
Diagnostic bit (DB) displays the result of the integrated diagnostics of the WCS reader.
5.3
Data Format for Connected WCS Readers
In "only Position" operating mode, 4 bytes are reserved for each WCS reader.
In "Position and Speed" operating mode, 6 bytes are reserved for each WCS reader.
Pxx: position data, P00 = LSB
Sxx: speed (in multiples of 0.1 m/s), S00 = LSB
Example: Byte 5 = 00011011 = 27, corresponds to 2.7 m/s
A1, A0: reader address, 00 = WCS reader address #1
DB: pollution display, 1 = cleaning necessary
OUT: code rail loss, 0 = code rail recognized
ERR: error display, error code (LEDs). For more information on data bits.
F0
Function number for WCS reader
0
Send position value
1
Send diagnosis result
Bit
7
6
5
4
3
2
1
0
Byte 0
0
0
0
0
0
P18
P17
P16
Byte 1
P15
P14
P13
P12
P11
P10
P09
P08
Byte 2
P07
P06
P05
P04
P03
P02
P01
P00
Byte 3
0
0
0
DB
ERR
OUT
A1
A0
Table 5.1
Data format for each connected WCS reader in "only Position" operating mode, reader
address = 0...3
Bit
7
6
5
4
3
2
1
0
Byte 0
0
0
0
0
0
P18
P17
P16
Byte 1
P15
P14
P13
P12
P11
P10
P09
P08
Byte 2
P07
P06
P05
P04
P03
P02
P01
P00
Byte 3
0
0
0
DB
ERR
OUT
A1
A0
Byte 4
0
0
0
0
0
0
0
0
Byte 5
0
S06
S05
S04
S03
S02
S01
S00
Table 5.2
Data format for each connected WCS reader in "Position and Speed" operating mode,
reader address = 0...3