![Campbell CR850 Operator'S Manual Download Page 350](http://html1.mh-extra.com/html/campbell/cr850/cr850_operators-manual_3829356350.webp)
Section 8. Operation
350
'Object group 30, variation 2 is used to return analog data when the CR800
'is polled. Flag is set to an empty 8 bit number(all zeros), DNPEvent is a
'reserved parameter and is currently always set to zero. Number of events is
'only used for event data.
DNPVariable
(IArray,4,32,2,3,&B00000000,0,10)
DNPVariable
(BArray,2,1,1,0,&B00000000,0,0)
DNPVariable
(BArray,2,2,1,1,&B00000000,0,1)
Scan
(1,Sec,1,0)
'Wind Speed & Direction Sensor measurements WS_ms and WindDir:
PulseCount
(WindSpd,1,1,1,3000,2,0)
IArray(1) = WindSpd * 100
BrHalf
(WindDir,1,mV2500,3,1,1,2500,True,0,_60Hz,355,0)
If WindDir>=360 Then WindDir=0
IArray(2) = WindDir * 100
'Default Datalogger Battery Voltage measurement Batt_Volt:
Battery
(Batt_Volt)
IArray(3) = Batt_Volt * 100
'Wiring Panel Temperature measurement PTemp_C:
PanelTemp
(PTemp_C,_60Hz)
IArray(1) =PTemp_C
PortGet
(Barray(1),5)
'Update DNP arrays and send unsolicited requests to DNP Master address 3
DNPUpdate
(2,3)
NextScan
EndProg
8.6.2 Modbus
8.6.2.1 Overview
Modbus is a widely used SCADA communication protocol that facilitates
exchange of information and data between computers / HMI software, instruments
(RTUs) and Modbus-compatible sensors. The CR800 communicates via Modbus
over RS-232, RS-485, and TCP.
Modbus systems consist of a master (PC), RTU / PLC slaves, field instruments
(sensors), and the communications-network hardware. The communications port,
baud rate, data bits, stop bits, and parity are set in the Modbus driver of the master
and / or the slaves. The Modbus standard has two communications modes, RTU
and ASCII. However, CR800s communicate in RTU mode exclusively.
Field instruments can be queried by the CR800. Because Modbus has a set
command structure, programming the CR800 to get data from field instruments is
much simpler than from serial sensors. Because Modbus uses a common bus and
addresses each node, field instruments are effectively multiplexed to a CR800
without additional hardware.
A CR800 goes into sleep mode after 40 seconds of communications inactivity.
Once asleep, two packets are required before the CR800 will respond. The first
packet awakens the CR800; the second packet is received as data. CR800s,
through
DevConfig
or the
Status
table (see the appendix
Status Table and Settings
(p. 505)
) can be set to keep communications ports open and awake, but at higher
power usage.
Summary of Contents for CR850
Page 2: ......
Page 4: ......
Page 6: ......
Page 26: ...Table of Contents 26...
Page 30: ...Section 2 Cautionary Statements 30...
Page 32: ...Section 3 Initial Inspection 32...
Page 35: ...Section 4 Quickstart Tutorial 35 Figure 2 Wiring panel...
Page 55: ...Section 4 Quickstart Tutorial 55 Figure 24 PC200W View data utility...
Page 78: ...Section 5 System Overview 78...
Page 80: ...Section 6 CR800 Specifications 80...
Page 267: ...Section 7 Installation 267 Figure 84 Running average signal attenuation...
Page 268: ...Section 7 Installation 268...
Page 384: ...Section 8 Operation 384 Figure 113 Using the keyboard display...
Page 387: ...Section 8 Operation 387 Figure 116 Real time custom...
Page 388: ...Section 8 Operation 388 8 8 1 3 Final Storage Tables Figure 117 Final storage tables...
Page 389: ...Section 8 Operation 389 8 8 2 Run Stop Program Figure 118 Run Stop Program...
Page 390: ...Section 8 Operation 390 8 8 3 File Display Figure 119 File display...
Page 396: ...Section 8 Operation 396...
Page 402: ...Section 9 Maintenance 402...
Page 450: ...Section 11 Glossary 450...
Page 504: ...Appendix A CRBasic Programming Instructions 504...
Page 526: ...Appendix B Status Table and Settings 526...
Page 530: ...Appendix C Serial Port Pinouts 530...
Page 536: ...Appendix E FP2 Data Format 536...
Page 550: ...Appendix F Other Campbell Scientific Products 550...
Page 565: ......