Error codes

Value (hex)

Value (dec)

Value (enum)

Description

0x0000

0

eMBUS_no_error

No error is present at the block. The block is currently not querying a counter.

0x0001

1

eMBUS_busy

The block is querying a meter.

0x0003

3

eMBUS_Disabled

FB is disabled.

0x0004

4

eMBUS_FBKL6781_Disabled

Function block FB_MBUSKL6781() is disabled.

0x0065

101

eMBUSERROR_CIField_wrong_72hex_expected

The 7th byte in the response telegram contains the CI field. In this byte the hexadecimal number 72 is expected. It stands for variable data structure, low byte is sent first. Only this data structure is supported.

0x0066

102

eMBUSERROR_no_data_received

No data was received. This can different have causes, e.g. invalid address, invalid baud rate, incorrect wiring.

0x0067

103

eMBUSERROR_error_checksum

The response telegram includes a checksum (sum of all bytes from byte 5). The received checksum does not match the calculated checksum. This happens if the protocol was not received cleanly (e.g. in the event of interference on the cable or if the cable is too long).

0x0068

104

eMBUSERROR_error_in_head_data

The first 4 bytes are not included in the checksum. These 4 bytes are monitored separately.

0x0069

105

eMBUSERROR_usiAddress_over_250

Addresses higher than 250 are not permitted. The input usiAddress of the meter block was assigned a higher value than 250.

0x006A

106

eMBUSERROR_send_error

Error message for error during sending.

0x006C

108

eMBUSERROR_received_address_wrong

Received address does not match the sent address.

0x006D

109

eMBUSERROR_cMBUS_MaxCom_below_1

Reserve.

0x006E

110

eMBUSERROR_iComId_over_cMBUS_MaxCom

Reserve.

0x006F

111

eMBUSERROR_manufacturer_sign_wrong

The response telegram includes a manufacturer code. This code is allocated to the meter blocks. This message appears if the received manufacturer code does not match the block used.

0x0070

112

eMBUSERROR_baudrate_wrong

Eingang eBaudrate Input eBaudrate of the block was assigned invalid values. Only E_MBUS_Baudrate are allowed.

0x0071

113

eMBUSERROR_ReceiveBufferFull

The receive buffer of the serial interface is full. This may happen with long telegrams and/or long cycle times. The PLC is unable to read the data quick enough from the receive buffer, resulting in data loss. The situation may be resolved by reducing the cycle time.

0x0072

114

eMBUSERROR_E5hex_no_received

E5 no received.

0x0073

115

eMBUSERROR_no_stop_character

No stop character.

0x0074

116

eMBUSERROR_length_wrong

Data lenght wrong.

0x0075

117

eMBUSERROR_wrong_terminal

Wrong terminal.

0x0076

118

eMBUSERROR_Terminal_is_not_initialized

Terminal is not initilalized.

0x0077

119

eMBUSERROR_stSecAdr_udiIdNumber_wrong

The input variable stSecAdr.udiIdNumber is not used.

0x0078

120

eMBUSERROR_missing_parts_telegram

Values (bytes) are missing.

0x0079

121

eMBUSERROR_no_stop_character_received

Stop sign was not received (16hex).

0x007A

122

eMBUSERROR_too_many_characters

Too many characters have been received.

0x007B

123

eMBUSERROR_TimeOut_FB_KL6781

Timeout FB_KL6781.

0x007C

124

eMBUSERROR_TimeOut_MeterFB

Timeout meter function block.

0x00C9

201

eMBUSERROR_COM_PARAMETERCHANGED

Input parameters changed during reception.

0x00CA

202

eMBUSERROR_COM_TXBUFFOVERRUN

String > transmit buffer.

0x00D2

210

eMBUSERROR_COM_STRINGOVERRUN

End of string.

0x00D3

211

eMBUSERROR_COM_ZEROCHARINVALID

String cannot receive zero characters.

0x00DC

220

eMBUSERROR_COM_INVALIDPOINTER

Invalid data pointer, e. g. zero.

0x00DD

221

eMBUSERROR_COM_INVALIDRXPOINTER

Invalid data pointer for ReceiveData.

0x00DE

222

eMBUSERROR_COM_INVALIDRXLENGTH

Invalid length for ReceiveData, e. g. zero

0x00DF

223

eMBUSERROR_COM_DATASIZEOVERRUN

End of data block.

0x1001

4097

eMBUSERROR_COM_INVALIDBAUDRATE

Invalid baudrate.

0x1002

4098

eMBUSERROR_COM_INVALIDNUMDATABITS

Invalid data bits.

0x1003

4099

eMBUSERROR_COM_INVALIDNUMSTOPBITS

Invalid stop bits.

0x1004

4100

eMBUSERROR_COM_INVALIDPARITY

Invalid parity.

0x1005

4101

eMBUSERROR_COM_INVALIDHANDSHAKE

Invalid handshake.

0x1006

4102

eMBUSERROR_COM_INVALIDNUMREGISTERS

Invalid numregister.

0x1007

4103

eMBUSERROR_COM_INVALIDREGISTER

Invalid register.

0x1008

4109

eMBUSERROR_COM_TIMEOUT

COM timeout.