Test and analysis functions, Fibre-optic reset – BECKHOFF C1220 User Manual
Page 11

Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149
11
Software description of functions
Beckhoff Lightbus - PC interface card C1220
A function request is composed of a length entry, a function number and
the function arguments. The length entry refers to the number of following
bytes:
Byte ’Length’ + Byte ’Function number’ + Number of Bytes ’Argument
0’ to ’Argument n’
Test and analysis functions
Fibre-optic reset
The fibre-optic ring can be reinitialized by means of this function. Within the
scope of initialization, the number of modules in the ring is defined, the
module addresses are distributed and tested and the ring is checked with
regard to its attenuation reserve. Any existing fracture point is also
detected and located.
Argument
Channel
Length
Function
0
1
2
Comment
Request
02
0x01
Reply
05
0x01
00
00
nn
Function correctly executed
(nn modules in the fibre-optic ring)
05
0x01
01
01
00
Maximum number of send repetitions
exceeded
05
0x01
01
02
00
No address setting possible
05
0x01
0a
01
nn
Fracture point before nn-th module
before the receiver input of the C1220
05
0x01
0a
01
ff
Fracture point cannot be located
(Fracture point before receiver input)
05
0x01
07
01
nn
Test addresses:
Address error (module nn)
05
0x01
05
02
00
Attenuation test:
Error with high intensity
05
0x01
05
03
nn
Attenuation test:
Switch error with low intensity
(module nn)
05
0x01
05
04
nn
Attenuation test:
Error with data pattern 1
(pattern 00)(module nn)
05
0x01
05
05
nn
Attenuation test
Error with data pattern 2
(pattern FF) (module nn)
05
0x01
05
06
nn
Attenuation test :
Error with data pattern 3
(pattern AA) (module nn)
05
0x01
05
07
nn
Attenuation test :
Switch error with high intensity
(module nn)
The number of modules in the ring is communicated if the ring is initialized
without errors. If an error should have occurred, the error type (see table)
and the module address where the error occurred are returned.