Bidirectional communication from RS-232 to half-duplex RS-485 using arduino nano

Well the first thing you need to do is buy an RS232 to RS485 converter so you can connect both devices together using RS485
Then you can start with this library