Example codes Arduino with RS485 Module to Serial module https://www.thaieasyelec.com/rs485-to-serial-uart-module.html
How to connect Arduino Uno with RS485 to Serial UART Module (Use SoftwareSerial)
How to connect Arduino Mega 2560 with RS485 to Serial UART Module (Use HardwareSerial2 )