Communication Between Arduino and HMI with modbus

Hi I want to control a process with arduino instead of plc and pid and communication with HMI using modbus. How can I do this? Which methods should I follow? Thanks