RS485-RS232 through code

Thank you for your advice, I'll get back when I have results. This may take quite a while since there is a whole lot of other things to be done in the project, but I think it will work one way or another.