P310 RS485 communication sample code

Hi,

Can someone share a P310 RS485 Code sample to read a RS485 device.

Thanks

Pankajr