EasyManuals Logo

Campbell CR1000 User Manual

Campbell CR1000
678 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #410 background imageLoading...
Page #410 background image
Section 8. Operation
Syntax
DNPUpdate (DNPSlaveAddr,DNPMasterAddr)
8.6.1.2.3 Programming for DNP3 Data Acquisition
As shown in CRBasic example Implementation of DNP3 (p. 410), program the
CR1000 to return data when polled by the DNP3 master using the following three
actions:
1. Place DNP() at the beginning of the program between BeginProg and Scan().
Set COM port, baud rate, and DNP3 address.
2. Setup the variables to be sent to the master using DNPVariable(). Dual
instructions cover static (current values) and event (previous ten records) data.
o For analog measurements:
DNPVariable(Variable_Name,Swath,30,2,0,&B00000000,0,0)
DNPVariable(Variable_Name,Swath,32,2,3,&B00000000,0,10)
o For digital measurements (control ports):
DNPVariable(Variable_Name,Swath,1,2,0,&B00000000,0,0)
DNPVariable(Variable_Name,Swath,32,2,3,&B00000000,0,10)
3. Place DNPUpdate() after Scan(), inside the main scan. The DNP3 master is
notified of any change in data each time DNPUpdate() runs; e.g., for a 10
second scan, the master is notified every 10 seconds.
CRBasic Example 66. Implementation of DNP3
'This program example demonstrates a basic implementation of DNP3 in the CR1000. The CR1000
'is programmed to return data over IP when polled by the DNP3 master. Essential elements
'of the program are as follows:
' 1. DNP() instruction is placed at the beginning of the program between BeginProg
' and Scan(). COM port, baud rate, and DNP3 address are set.
' 2. Variables are set up to be sent to the master using DNPVariable(). Dual instructions
' cover static data (current values) and event data (previous ten records). Following
' are the sets of dual instructions for analog and digital measurements:
' 'For analog measurements:
' 'DNPVariable(Variable_Name,Swath,30,2,0,&B00000000,0,0)
' 'DNPVariable(Variable_Name,Swath,32,2,3,&B00000000,0,10)
' 'For digital measurements (control ports):
' 'DNPVariable(Variable_Name,Swath,1,2,0,&B00000000,0,0)
' 'DNPVariable(Variable_Name,Swath,32,2,3,&B00000000,0,10)
' 3. DNPUpdate() is placed after Scan(), inside the main scan. The DNP3 master is
' notified of any change in data each time DNPUpdate() runs. For example, for a 10
' second scan, the master is notified every 10 seconds.
410

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Campbell CR1000 and is the answer not in the manual?

Campbell CR1000 Specifications

General IconGeneral
Power Requirements9.6 to 16 VDC
Data Logger Operating SystemCRBasic
Memory4 MB
Analog Inputs16 single-ended or 8 differential
Analog Input Resolution13 bits
Analog Input Range+/-2.5V
Digital I/O8
Pulse Counters2
Communication PortsRS-232
Operating Temperature-25°C to +50°C
Pulse Channels4

Related product manuals