BECKHOFF CX51x0 User Manual
Page 80
Error handling and diagnostics
Kbus state
The Kbus status is saved in the state byte (see fig. Kbus interface “1”). If the value is 0 the Kbus is
operating synchronously and without errors. If the value is <> ”0” there may be a fault, or it may only be an
indication that the Kbus cycle is longer than the task, in which case it would no longer by synchronous with
the task. The task time should be faster than 100 ms. We recommend a task time of less than 50 ms. The K
bus update time typically lies between one and five ms.
Bit 0 = KBus error
Bit 1 = terminal configuration has changed since the start
Bit 2 = process image lengths do not match
Bit 8 = no valid inputs (yet)
Bit 9 = Kbus input update not yet complete
Bit 10 = Kbus output update not yet complete
Bit 11 = watchdog
Bit 15 = acyclic Kbus function active (e.g. Kbus reset)
If there is a Kbus error, this can be reset via the IOF_DeviceReset function block (in the TcIoFunctions.lib).
CX51x0
80
Version 1.0