PROFIBUS DP communication
BK3xx060 Version: 4.3.0
Error codes in the write response
Error_Code_1 Error_Code_2
0xBE Number of terminals
0xBF First faulty byte in the written data
5.2.3.4 K-bus status
The K-bus status can be read through DPV1. The data is transferred in Intel format (low byte first):
Slot number Index Byte Description
0 90 0-1 Bit 0: Fieldbus errors
Bit 1: K-bus error
Bit 2: Error on the Bus Terminal
Bit 3: Coupler error
2-3 In the presence of a coupler error: Error code
4-5 K-bus error = 0: Bit length of the K-bus
K-bus error = 1: K-bus error code (-> Diagnostic data [}64])
6-7 K-bus error = 0:
Number of terminals
K-bus error = 1:
Bus Terminal number following which the K-bus error is detected (->
Diagnostic data [}64])
5.2.3.5 Cycle Time Measuring
The duration of the process data cycle [}53] can be measured with DPV1.
The cycle time measurement is started or stopped using DPV1 Write:
Slot number Index Length Data Description
0 99 4 Byte 0: 0x04 Start the cycle time measurement
Byte 1: 0x01
Byte 2: 0x01
Byte 3: 0x00
0 99 4 Byte 0: 0x04 Stop the cycle time measurement
Byte 1: 0x01
Byte 2: 0x00
Byte 3: 0x00
The minimum, maximum, mean (of the last 200 cycles) and current cycle time can be read with DPV1 Read
and reset with DPV1 Write:
Slot number Index Length Data Description
0 98 8 Byte 0, 1 Minimum cycle time in µs (INTEL format, low byte first)
Byte 2, 3 Maximum cycle time in µs (INTEL format, low byte first)
Byte 4, 5 Mean cycle time in µs (INTEL format, low byte first)
Byte 6, 7 Current cycle time in µs (INTEL format, low byte first)