RS485-RS232 through code

The controllers have about four D-sub connectors of different sizes, it has CAN bus, RS485, RS422 and more. However, only the RS485 can be used for PC configuration. The encoder signals I mentioned in the first post are transmitted on RS422 levels, but i do not believe it can transmit any data.