Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Get data from a SMP3-1 on a CR350 with modbus RS485


LoggerBV25 May 21, 2025 08:33 AM

Hi,

I can't figure how to retrieve data on a SMP3-1 Kipp & Zonen pyranometer, I have seen the instruction manual, the comlunication manual, and I'm working with CRBasic to make a simple program but, all value still zero.

 

'CR350 Series Datalogger
'Declare Public Variables 

Public PTemp, batt_volt,ModbusData(20),Result

'Define Data Tables
DataTable (Test,1,-1)
  DataInterval (0,30,Sec,10)
  Minimum (1,batt_volt,FP2,0,False)
  Sample (1,PTemp,FP2)
  Sample (1,ModbusData(),FP2)
EndTable

'Main Program
BeginProg
  Scan (5,Sec,0,0)
    PanelTemp (PTemp,50)
    Battery (batt_volt)

    'Retrieve Modbus Data
    ModbusClient (Result,Com2,19200,1,4,ModbusData(),5,20,3,100)   

    'Enter other measurement instructions
    'Call Output Tables
    CallTable Test
  NextScan
EndProg

 

I'm looking for the values 5, 6, 10 and 11 on the input registers.

(link of the pyranometer : https://www.kippzonen.com/Product/266/SMP3-Pyranometre)

Waht Am I missing ?

EDIT : I said a SMP3-1 (twice) but it's a SMP3-A for "amperage" because there also a 4-20mA ouput.

Log in or register to post/reply in the forum.