04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 8. Operation<br />

Table 87. DNP3 Implementation — Data Types Required to Store<br />

Data in Public Tables for Object Groups<br />

Data Type Group Description<br />

Boolean 1 Binary input<br />

2 Binary input change<br />

10 Binary output<br />

12 Control block<br />

Long 30 Analog input<br />

32 Analog change event<br />

40 Analog output status<br />

41 Analog output block<br />

50 Time and date<br />

51 Time and date CTO<br />

8.6.1.2.2 CRBasic Instructions<br />

Complete descriptions and options of commands are available in CRBasic Editor<br />

Help.<br />

DNP()<br />

Sets the <strong>CR1000</strong> as a DNP slave (outstation/server) with an address and DNP3‐<br />

dedicated COM port. Normally resides between BeginProg and Scan(), so it is<br />

executed only once. Example at CRBasic example Implementation of DNP3 (p. 366),<br />

line 20.<br />

Syntax<br />

DNP(ComPort, BaudRate, DNPSlaveAddr)<br />

DNPVariable()<br />

Associates a particular variable array with a DNP object group. When the master<br />

polls the <strong>CR1000</strong>, it returns all the variables specified along with their specific<br />

groups. Also used to set up event data, which is sent to the master whenever the<br />

value in the variable changes. Example at CRBasic example Implementation of<br />

DNP3 (p. 366), line 24.<br />

Syntax<br />

DNPVariable(Source, Swath, DNPObject, DNPVariation, DNPClass,<br />

DNPFlag, DNPEvent, DNPNumEvents)<br />

DNPUpdate()<br />

Determines when DNP slave (outstation/server) will update its arrays of DNP<br />

elements. Specifies the address of the DNP master to which are sent unsolicited<br />

responses (event data). Must be included once within a Scan() / NextScan for the<br />

DNP slave to update its arrays. Typically placed in a program after the elements<br />

in the array are updated. The <strong>CR1000</strong> will respond to any DNP master regardless<br />

of its address.<br />

365

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!