def numeric_to_binary(data):
    """ Convert numeric to binary """
    if not data:
        return ''
    if not data.isdigit():
        raise Exception('Numeric mode support only 0..9 characters!')
    result = ''
    for i in range(0, len(data), 3):
        bin_val = bin(int(data[i:i + 3], 10))[2:]
        if len(data[i:i + 3]) == 3:
            result += bin_val.zfill(10)
        elif len(data[i:i + 3]) == 2:
            result += bin_val.zfill(7)
        else:
            result += bin_val.zfill(4)
    return result