recording modbus data

hey there,
i am trying to communicate with an arduino mega using and rs-485 HAT and connected to the pc using a ttl to usb converter. my motive is to read hex data from generating from my modbus software on the pc and turn on various digital output dpending on the value. the exact guidance i need:
1)the modbus master sotware to use on pc!
2)the code to read the hex data
please its urgent can you help me, its for a project!