2 crbasic instructions, Figure 104: flat map, Table 81. pakbus link-performance gage – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual
Page 348

Section 8. Operation
348
Table 83. DNP3 Implementation — Data Types Required to Store
Data in Public Tables for Object Groups
Data Type
Group
Description
Boolean 1
Binary
input
2
Binary input change
10
Binary
output
12
Control
block
Long 30
Analog
input
32
Analog change event
40
Analog output status
41
Analog output block
50
Time and date
51
Time and date CTO
8.6.1.2.2 CRBasic Instructions
Complete descriptions and options of commands are available in CRBasic Editor
Help.
DNP()
Sets the CR800 as a DNP slave (outstation/server) with an address and DNP3‐
dedicated COM port. Normally resides between BeginProg and Scan(), so it is
executed only once. Example at CRBasic example Implementation of DNP3
(p. 349),
line 20.
Syntax
DNP(ComPort, BaudRate, DNPSlaveAddr)
DNPVariable()
Associates a particular variable array with a DNP object group. When the master
polls the CR800, it returns all the variables specified along with their specific
groups. Also used to set up event data, which is sent to the master whenever the
value in the variable changes. Example at CRBasic example Implementation of
DNP3
(p. 349),
line 24.
Syntax
DNPVariable(Source, Swath, DNPObject, DNPVariation, DNPClass,
DNPFlag, DNPEvent, DNPNumEvents)
DNPUpdate()
Determines when DNP slave (outstation/server) will update its arrays of DNP
elements. Specifies the address of the DNP master to which are sent unsolicited
responses (event data). Must be included once within a Scan() / NextScan for the
DNP slave to update its arrays. Typically placed in a program after the elements
in the array are updated. The CR800 will respond to any DNP master regardless
of its address.