2 crbasic instructions, In public tables for object groups – Campbell Scientific CR3000 Micrologger User Manual
Page 370

Section 8. Operation
370
Table 90. 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 CR3000 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. 371),
line 20.
Syntax
DNP(ComPort, BaudRate, DNPSlaveAddr)
DNPVariable()
Associates a particular variable array with a DNP object group. When the master
polls the CR3000, 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. 371),
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 CR3000 will respond to any DNP master regardless
of its address.
Syntax
DNPUpdate (DNPSlaveAddr,DNPMasterAddr)