Table 9-1: Connections for example programs
Wire
colo
u
r
Function
RS-485 program
CR1000X connections
Analog
ue
program
CR1000X
connection
Green
RS485A
C5
N/C
White
RS485B
C6
N/C
Red
Power in (12 V)
12V
12V
Black
Power ground
G
G
Blue
Pyranometer signal high
N/C
1H
Pyranometer signal
reference
N/C
Jumper 1L to
⏚
with user-
supplied wire
Clear
Shield
⏚
(analog
ue
ground)
⏚
(analog
ue
ground)
CRBasic Example 1: CR1000X program using Modbus over RS-485 to measure the SR05
'CR1000X Series Datalogger
'Hukseflux SR2005 Pyranometer
'SR05 is an ISO 9060 Second Class pyranometer
'
Public
CheckSensorID As Boolean
Dim
SR05(15)
As Long
Public
SR05_IRR_TC '
Temperature compensated x 0.01 W/M^2
Public
SR05_IRR
'Uncompensated x 0.01 W/M^2
Public
SR05_BodyTemp As Float
Public
SR05_SerialNumber As Float
Public
SR05_CalDate
As Long
Public
SR05_Humidity
As Float
Public
SR05_ScaleFactor_IRR
As Long
Public
SR05_ScaleFactor_BodyTemp
As Long
Public
SR05_ElecResistance
As Long
Public
SR05_VoltageOut
As Float
Public
MBResult_IRR_TC
Public
MBResult_IRR
Public
MBResult_BodyTemp
Public
MBResult_SN
Public
MBResult_CalDate
Public
MBResult_Humidity
Public
MBResult_SFIRR
Public
MBResult_SRTemp
SR05 Second Class Pyranometer with Various Outputs
8