K-bus
The power supply checks the connected bus terminals for errors. The red LED "K-BUS ERR" is off if no error is present. The red LED "K-BUS ERR" flashes if bus terminal errors are present.
Display | LED | Meaning |
---|---|---|
Us 24 V | Power supply for basic CPU module and terminal bus. The LED lights green if the power supply is correct. | |
Up 24 V | Power supply for power contacts. The LED lights green if the power supply is correct. | |
K-BUS RUN | Diagnostic K-bus. The green LED lights up to indicate error-free operation. Error-free means that the communication with the fieldbus system is also running. | |
K-BUS ERR | Diagnostic K-bus. The red LED flashes to indicate an error. The red LED flashes with two different frequencies. |
The frequency and number of the flashes can be used to determine the error code and the error argument. An error is indicated by the "K-BUS ERR" LED in a particular order.
Sequence | Meaning |
---|---|
Fast flashing | Starting the sequence |
First slow sequence | Error code |
No display | Pause, the LED is off |
Second slow sequence | Error argument |
Count how often the red LED K-BUS ERR flashes, in order to determine the error code and the error argument. In the error argument the number of pulses shows the position of the last bus terminal before the error. Passive bus terminals, such as a power supply terminal, are not included in the count.
Error code | Error argument | Description | Remedy |
---|---|---|---|
Persistent, continuous flashing |
| EMC problems. |
|
3 pulses | 0 | K-bus command error. |
|
4 pulses | 0 | K-bus data error, break behind the power supply unit. | Check whether the Bus End Terminal 9010 is connected. |
n | Break behind bus terminal n. | Check whether bus terminal n+1 after the power supply is connected correctly; replace if necessary. | |
5 pulses | n | K-bus error in register communication with bus terminal n. | Replace bus terminal at location n. |
6 pulses | 0 | Error at initialization. | Replace embedded PC. |
1 | Internal data error. | Hardware reset of the embedded PC (switch off and on again). | |
8 | Internal data error. | Hardware reset of the embedded PC (switch off and on again). | |
7 pulses | 0 | Process data lengths of the set and actual configurations do not correspond. | Check the configuration and the bus terminals for consistency. |
For some error the LED "K-BUS ERR" does not go out, even if the error was rectified. Switch the power supply off and on again to switch off the LED after the error has been rectified.
State variable
In TwinCAT there is a State variable under the bus coupler for K-bus diagnostics.

If the value is "0", the K-bus operates synchronous and without error. If the value is <> "0" there may be an error, or it may only be an indication that the K-bus cycle takes longer than the task used. In which case it would no longer be synchronous with the task. The task time should be faster than 100 ms. We recommend a task time of less than 50 ms. Typically, the K-bus update time is between one and five ms.
Bit | Description |
---|---|
Bit 0 | K-bus error. |
Bit 1 | Terminal configuration has changed since the start. |
Bit 2 | Process image lengths do not match. |
Bit 8 | (still) no valid inputs. |
Bit 9 | K-bus input update not yet complete. |
Bit 10 | K-bus output update not yet complete. |
Bit 11 | Watchdog. |
Bit 15 | Acyclic K-bus function active (e.g. K-bus reset). |
If there is a K-bus error, this can be reset via the IOF_DeviceReset function block (in the TcIoFunctions.lib).