
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()
SetstheCR3000asaDNPslave(outstation/server)withanaddressandDNP3‐
dedicatedCOMport.NormallyresidesbetweenBeginProgandScan(),soitis
executedonlyonce.ExampleatCRBasicexampleImplementationofDNP3
(p.371),
line20.
Syntax
DNP(ComPort, BaudRate, DNPSlaveAddr)
DNPVariable()
AssociatesaparticularvariablearraywithaDNPobjectgroup.Whenthemaster
pollstheCR3000,itreturnsallthevariablesspecifiedalongwiththeirspecific
groups.Alsousedtosetupeventdata,whichissenttothemasterwheneverthe
valueinthevariablechanges.ExampleatCRBasicexampleImplementationof
DNP3
(p.371),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.TheCR3000willrespondtoanyDNPmasterregardless
ofitsaddress.
Syntax
DNPUpdate (DNPSlaveAddr,DNPMasterAddr)
Comentários a estes Manuais