Hi Prakash,
Can you try putting the set-rs485 call inside the python script after you open the tty like this:
import minimalmodbus
import os
instrument = minimalmodbus.Instrument('/dev/ttyAP2', 1)
os.system('set-rs485 /dev/ttyAP2 1')
reading = instrument.read_register(40605, 4)