E_MBus_Error

Error massage.

TYPE E_MBus_Error :
(
  eMBUS_no_error                           := 0,
  eMBUS_busy                               := 1,
  eMBUS_Disabled                           := 3,
  eMBUS_FBKL6781_Disabled                  := 4,

  eMBUSERROR_CIField_wrong_72hex_expected  := 101,
  eMBUSERROR_no_data_received              := 102,
  eMBUSERROR_error_checksum                := 103,
  eMBUSERROR_error_in_head_data            := 104,
  eMBUSERROR_usiAddress_over_250           := 105,
  eMBUSERROR_send_error                    := 106,
  eMBUSERROR_received_address_wrong        := 108,
  eMBUSERROR_cMBUS_MaxCom_below_1          := 109,
  eMBUSERROR_iComId_over_cMBUS_MaxCom      := 110,
  eMBUSERROR_manufacturer_sign_wrong       := 111,
  eMBUSERROR_baudrate_wrong                := 112,
  eMBUSERROR_ReceiveBufferFull             := 113,
  eMBUSERROR_E5hex_no_received             := 114,
  eMBUSERROR_no_stop_character             := 115,
  eMBUSERROR_length_wrong                  := 116,
  eMBUSERROR_wrong_terminal                := 117,
  eMBUSERROR_Terminal_is_not_initialized   := 118,
  eMBUSERROR_stSecAdr_udiIdNumber_wrong    := 119,
  eMBUSERROR_missing_parts_telegram        := 120,
  eMBUSERROR_no_stop_character_received    := 121,
  eMBUSERROR_too_many_characters           := 122,
  eMBUSERROR_TimeOut_FB_KL6781             := 123,
  eMBUSERROR_TimeOut_MeterFB               := 124,

  eMBUSERROR_COM_PARAMETERCHANGED          := 201,
  eMBUSERROR_COM_TXBUFFOVERRUN             := 202,
  eMBUSERROR_COM_STRINGOVERRUN             := 210,
  eMBUSERROR_COM_ZEROCHARINVALID           := 211,
  eMBUSERROR_COM_INVALIDPOINTER            := 220,
  eMBUSERROR_COM_INVALIDRXPOINTER          := 221,
  eMBUSERROR_COM_INVALIDRXLENGTH           := 222,
  eMBUSERROR_COM_DATASIZEOVERRUN           := 223,
  eMBUSERROR_COM_INVALIDBAUDRATE           := 16#1001,
  eMBUSERROR_COM_INVALIDNUMDATABITS        := 16#1002,
  eMBUSERROR_COM_INVALIDNUMSTOPBITS        := 16#1003,
  eMBUSERROR_COM_INVALIDPARITY             := 16#1004,
  eMBUSERROR_COM_INVALIDHANDSHAKE          := 16#1005,
  eMBUSERROR_COM_INVALIDNUMREGISTERS       := 16#1006,
  eMBUSERROR_COM_INVALIDREGISTER           := 16#1007,
  eMBUSERROR_COM_TIMEOUT                   := 16#1008
)
END_TYPE

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

eMBUS_busy: The block is querying a meter.

eMBUS_Disabled: FB is disabled.

eMBUS_FBKL6781_Disabled: Function block FB_MBUSKL6781() is disabled.

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.

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

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).

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

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.

eMBUSERROR_send_error: Error message for error during sending.

eMBUSERROR_received_address_wrong: Received address does not match the sent address.

eMBUSERROR_cMBUS_MaxCom_below_1: Reserve.

eMBUSERROR_iComId_over_cMBUS_MaxCom: Reserve.

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.

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

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.

eMBUSERROR_E5hex_no_received: E5 no received.

eMBUSERROR_no_stop_character: No stop character.

eMBUSERROR_length_wrong: Data lenght wrong.

eMBUSERROR_wrong_terminal: Wrong terminal.

eMBUSERROR_Terminal_is_not_initialized: Terminal is not initilalized.

eMBUSERROR_stSecAdr_udiIdNumber_wrong: The input variable stSecAdr.udiIdNumber is not used.

eMBUSERROR_missing_parts_telegram: Values (bytes) are missing.

eMBUSERROR_no_stop_character_received: Stop sign was not received (16hex).

eMBUSERROR_too_many_characters: Too many characters have been received.

eMBUSERROR_TimeOut_FB_KL6781: Timeout FB_KL6781.

eMBUSERROR_TimeOut_MeterFB: Timeout meter function block.

eMBUSERROR_COM_PARAMETERCHANGED: Input parameters changed during reception.

eMBUSERROR_COM_TXBUFFOVERRUN: String > transmit buffer.

eMBUSERROR_COM_STRINGOVERRUN: End of string.

eMBUSERROR_COM_ZEROCHARINVALID: String cannot receive zero characters.

eMBUSERROR_COM_INVALIDPOINTER: Invalid data pointer, e. g. zero.

eMBUSERROR_COM_INVALIDRXPOINTER: Invalid data pointer for ReceiveData.

eMBUSERROR_COM_INVALIDRXLENGTH: Invalid length for ReceiveData, e. g. zero

eMBUSERROR_COM_DATASIZEOVERRUN: End of data block.

eMBUSERROR_COM_INVALIDBAUDRATE: Invalid baudrate.

eMBUSERROR_COM_INVALIDNUMDATABITS: Invalid data bits.

eMBUSERROR_COM_INVALIDNUMSTOPBITS: Invalid stop bits.

eMBUSERROR_COM_INVALIDPARITY: Invalid parity.

eMBUSERROR_COM_INVALIDHANDSHAKE: Invalid handshake.

eMBUSERROR_COM_INVALIDNUMREGISTERS: Invalid numregister.

eMBUSERROR_COM_INVALIDREGISTER: Invalid register.

eMBUSERROR_COM_TIMEOUT: COM timeout.