Reference | I/O Devices Control Outputs Via the General Control Block (GCB), the supervision of the finalization of the different process images is handled. The control bits related to the error detection are described below. TwinCAT 2 139 Version: 1.7 Variable Description DeviceState General status, assumes values 0 (o.k.) and 1 (error) only DeviceIioFunc Number of function at which error occurred (see C1220 manual also) DeviceIioFuncArg Function argument (see C1220 manual also) BoxWithError Number of box at which error has occurred ErrorCounter General Error Counter (DPRAM offset 0xEE0) The Lightbus interface card has several error counters implemented for detection of I/O problems.
These counters are accessible from DPRAM starting at offset 0xEE0 as 16-bit values. There is no overflow handling or reset of these counters implemented by the C1220/FC200x firmware. The counter, who reflects the errors detected by the internal address check (0xEEA) doesn't increment the ErrorCounter. ErrCntRec1 Error detected by Receiver 1 Received address and/or control bytes unequal the corresponding sent bytes. Receiver 1 alternates with Receiver 2 to compensate the execution time spend for the handling of the interrupt service routines (ISR).
ErrCntRec1 and ErrCntRec2 both increment the sum ErrorCounter (see above) ErrCntRec2 Error detected by Receiver 2 Received address and/or control bytes unequal the corresponding sent bytes. Receiver 2 alternates with Receiver 1 to compensate the execution time spend for the handling of the interrupt service routines (ISR). ErrCntRec1 and ErrCntRec2 both increment the sum ErrorCounter (see above) ErrCntTimeout Timeout during telegram receiving ErrCntParity Telegram received with CRC error AddressCheckErrCnt Error at internal address check (DPRAM offset 0xEEA).
If this counter increments, an address check and count telegram with logically wrong content has been received (AD D3) AddressCheckModule If inside the C1220/FC200x error mask bit 1 is set, this cell contains the module address of the box which caused the error. Variable Description GCB-C0 If this bit is set (default), the address check is active. For detection of parity errors, this bit must be active GCB-C1 If this bit is set, the address check is even active at LWL errors (problems related to the fiber- optical conductor)