User manual
IEC61131 User and Reference Manual 
April 22, 2008     
261 
dnpport 
Get DNP diagnostic data for a port 
Description 
This function block provides DNP diagnostic data for a specific communication port. 
Diagnostic information is totaled for all DNP connections on the selected communication 
port. 
dnpport
success
failTotal
failNew
formatErrors
fRcvd
fSent
mRcvd
mSent
iType
clear
Arguments 
Inputs 
Type 
Description 
iType 
Integer 
Communication interface. 
100 = Ethernet 
1 = com1 
2 = com2 
3 = com3 
4 = com4 
clear 
Boolean 
Set to TRUE to clear all counters for selected interface. 
Outputs 
Type 
Description 
success 
Integer 
Number of DNP command transactions initiated and 
successfully completed on this communication interface. 
failTotal 
Integer 
Number of DNP command transactions initiated and 
failed on this communication interface. 
failNew 
Integer 
Number of failed DNP command transactions since last 
successful DNP command transaction. 
formatErrors 
Integer 
Number of DNP messages received with formatting 
errors on this communication interface (including CRC 
errors and unrecognised commands). 
fRcvd 
Integer 
Number of DNP message frames received on this 
communication interface. 
fSent 
Integer 
Number of DNP message frames sent on this 
communication interface. 
mRcvd 
Integer 
Number of complete DNP messages received on this 
communication interface. 










