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()
SetstheCR800asaDNPslave(outstation/server)withanaddressandDNP3‐
dedicatedCOMport.NormallyresidesbetweenBeginProgandScan(),soitis
executedonlyonce.ExampleatCRBasicexampleImplementationofDNP3
(p.349),
line20.
Syntax
DNP(ComPort, BaudRate, DNPSlaveAddr)
DNPVariable()
AssociatesaparticularvariablearraywithaDNPobjectgroup.Whenthemaster
pollstheCR800,itreturnsallthevariablesspecifiedalongwiththeirspecific
groups.Alsousedtosetupeventdata,whichissenttothemasterwheneverthe
valueinthevariablechanges.ExampleatCRBasicexampleImplementationof
DNP3
(p.349),line24.
Syntax
DNPVariable(Source, Swath, DNPObject, DNPVariation, DNPClass,
DNPFlag, DNPEvent, DNPNumEvents)
DNPUpdate()
DetermineswhenDNPslave(outstation/server)willupdateitsarraysofDNP
elements.SpecifiestheaddressoftheDNPmastertowhicharesentunsolicited
responses(eventdata).MustbeincludedoncewithinaScan()/NextScanforthe
DNPslavetoupdateitsarrays.Typicallyplacedinaprogramafterth
eelements
inthearrayareupdated.TheCR800willrespondtoanyDNPmasterregardless
ofitsaddress.