The moisture content and water dew point of natural gas are keys to its pipeline transportation. At present, the conversion software within natural gas moisture and dew point instrument has low accuracy. In order to solve this problem, an instrument of conversion for natural gas moisture content/water dew point based on OPC communication has been designed and developed. The experiment showed that the instrument could run real-time online and had good computational accuracy and efficiency.