RF: add logging and return state to ecat conversion
NF: adding setup_petdir_long
BF: name error
NF: finished adding setup_petdir_long