FC200x – PCI cards for Lightbus

Status and diagnostic inputs

The process image of the FC200x contains status registers and error counters, which are displayed in the TwinCAT System Manager.

 
 fc200x_tc_diagnosticinputs
TwinCAT System Manager – status and diagnostic inputs
 

Status register

The FC200x has input words for each optical fiber ring that describe the state of the Lightbus card and the optical fiber ring:

 
 

DeviceState

General status: contains the value 1 in the event of an error, otherwise the value 0 (device OK).

 
 

DeviceIioFunc

In the event of an error this contains the code of the function that has triggered the error, e.g.:

0x01 Optical fiber reset
0x02 Code word request
0x05 Optical fiber attenuation test (intensity check)
0x06 Count I/O modules (counting boxes)
0x07 Test I/O module addresses (address check)
0x09 Software reset
0x0A Optical fiber break test
0x0C Re-initialization of the CDL (CDL ReInit)
0x10 Configuration of the CDL (CDL Config)

 
 

DeviceIioFuncArg

In the event of an error this contains the code of the argument that was appended to the function that triggered the error.

 
 

BoxWithError

Contains the number of the I/O module (box) in the optical fiber ring at which the error occurred.

 
 

Error counter

For each optical fiber ring, the FC200x includes input words for error counters. The Lightbus card does not deal with overflow processing or resetting of the counters!

 
 

CdlErrorCount

Error in the CDL (DPRAM offset: 0xE30):
CdlErrorCount [0] .. [7] counts errors in each individual logical ring (CDL).

 
 

CdlErrorBit

The bit is set if CDL has an error (DPRAM offset: 0xE40):
this bit is cleared again if the CDL is successfully transmitted.

 
 

ErrorCounter

Sum error (DPRAM offset: 0xEE0):
Register for the sum of all error counters with the exception of AddressCheckErrCnt

 
 

ErrCntRec1

Counter for errors in receiver 1 (DPRAM offset: 0xEE2):
Received address or control byte not equal transmitted byte.

 
 

ErrCntRec2

Counter for errors in receiver 2 (DPRAM offset: 0xEE4):
Received address or control byte not equal transmitted byte.

 
 

ErrCntTimeout

Counter for timeout errors (DPRAM offset: 0xEE6):
Timeout during telegram reception

 
 

ErrCntParity

Counter for parity errors (DPRAM offset: 0xEE8):
Telegram with CRC error received

 
 

AddressCheckErrCnt

Counter for errors during internal address check (DPRAM offset: 0xEEA):
Telegram with logically incorrect content (AD not equal D3) received. This counter does not increment the checksum error!

 
 

AddressCheckModule

Module address for errors during internal address check (DPRAM offset: 0xEEC):
Contains the address of the I/O module (box) that caused the error.