def createDt(name, sizeOfArray=32):
    """Takes in a name of a data type and creates a structure of given size.
    Returns a string that can be copied easily to a plc IDE."""
    txt = f'TYPE {name}{sizeOfArray} : \n'
    txt += '\tSTRUCT\n'
    for i in range(sizeOfArray):
        txt += f'\t\tix{str(i).zfill(2)} : {name}; (*Index {str(i).zfill(2)} of struct array *)\n'
    txt += '\tEND_STRUCT\n'
    txt += 'END_TYPE\n'
    return txt