CRBasic Example 1: CR1000X program that measures the MS-80M
SerialOpen
(ComC5,19200,2,0,50,4)
Scan
(1, Sec, 0, 0)
'MS-80M
ModbusMaster
(ModbusResult_1,ComC5,19200,65,3,ModbusMS80_1,22,2,1,100,0)
MS80M_Irradiance = ModbusMS80_1(1)
MS80M_InternalTemp = ModbusMS80_1(2)
CallTable
OneMin
NextScan
EndProg
MS-80M Secondary Standard Pyranometer with RS-485 Modbus Communication
13