Need Modbus Reading code from Ardunio

Hi All,
I have Used Ardunio due for my project. my concept of the project is read data's from modbus rj485 connected device and send those data's to sd card . i have doubt on the modbus query format and how to program modbus query in to my ardino. thanx in advance