The object value of a DNP statement can be used to provide information about how that driver is running by accessing public variables. These public variables are:
|
Counts |
the number of successful communications since starting. |
|
TimeStamp |
the time of the last successful communication, in seconds since midnight. |
|
DateStamp |
the date of the last successful communication, in days since January 1 1970. |
|
Error |
the error code number of the current communication attempt |
|
ErrorCounts |
the number of errors encountered since starting. |
|
ErrorDate |
the date of the last error encountered in any communication attempt, in days since January 1 1970. |
|
ErrorTime |
the time of the last error encountered in any communication attempt, in seconds since midnight. |
|
ErrorStation |
is the address of the station which encountered the most recent error. |
|
ErrorPointAddr |
is the point address of the point causing the last error |
|
ErrorOwner |
is an object variable which holds the object value of the read or write statement which encountered the most recent error. |
|
LastError |
the error code number of the last error encountered by any communication attempt. |
|
DTR |
is the current setting of the port DTR line. When set to its default value of 1, the DTR line on the serial port will be set to its active state at all times. Setting DTR to 0 causes the DTR line to go to its inactive state. |
|
dT |
the time difference between the last two good messages. |