Example 1 - Polled

This example shows a scan device point for the polled request of a set of single-bit binary inputs, a set of 32-bit binary counters, and a set of 32-bit frozen analog input with time of freeze.

The first scan input record causes a message to be issued to the RTU to freeze all of the analog inputs.

The next message to the RTU will read the values specified in records one to twelve.

The first three binary inputs will be returned into the RTAP database as scalar logical values. The next five binary inputs will be returned into RTAP as an array.

The 32-bit binary counters will be returned into the RTAP database as scalar unsigned 32 bit integers. Note that the flag will be saved into the scan task buffer and can be put into the database using the following CE function:

SCAN ([DNP RTU 01.scan input(5)], [.flag])

The 32-bit analog values will be returned into the RTAP database as scalar signed 32 bit integers. Note that the flag and time stamp will be saved into the scan task buffer and can be put into the database using the following CE function:

SCAN_MSTB ([DNP RTU 01.scan input(9)], NULL, [.flag], [.freeze time])

Point Name - Rtu 01

Alias - DNP RTU 01

Residence = Ram

Categories = 00000000000000000000000000000001

CE Indicator = Enabled

CE Order = Natural

Attribute Name DE Type Value
device poll types rtBYTES4 (0x)00000004
device PRBX types rtBYTES4  
scan input control rtLOGICAL 1
scan input status rtUINT8  
failure threshold rtUINT8 3
scan input   (see below)
scan output control rtLOGICAL 0
scan output status rtUINT8  
scan output   (not used)
dev fail threshold rtUINT8 3
remote ID rtUINT16 35000
comm info    
comm optimization rtLOGICAL 1
message timeout rtUINT16 1000
message retries rtUINT8 0
debug level rtUINT8 0
clear stats rtLOGICAL 0
device stats rtUINT32  

point control poll type mask st buffer size # of elements RTAP DE type deadband type deadband
1 (0x)00000004 0 1 1 0 0
1 (0x)00000004 0 1 1 0 0
1 (0x)00000004 0 1 1 0 0
1 (0x)00000004 0 1 1 0 0
1 (0x)00000004 0 5 1 0 0
1 (0x)00000004 1 1 7 0 0
1 (0x)00000004 1 1 7 0 0
1 (0x)00000004 1 1 7 0 0
1 (0x)00000004 1 1 7 0 0
1 (0x)00000004 9 1 6 0 0
1 (0x)00000004 9 1 6 0 0
1 (0x)00000004 9 1 6 0 0
1 (0x)00000004 9 1 6 0 0

function code object code object variation qualifier range start range length bit count unsolicited
7 31 3 6 0 0 -1 0 0
1 1 1 0 0 1 -1 0 0
1 1 1 0 1 1 -1 0 0
1 1 1 0 2 1 -1 0 0
1 1 1 0 3 5 -1 0 0
1 20 1 0 0 1 -1 0 0
1 20 1 0 1 1 -1 0 0
1 20 1 0 2 1 -1 0 0
1 20 1 0 3 1 -1 0 0
1 31 3 0 0 1 -1 0 0
1 31 3 0 1 1 -1 0 0
1 31 3 0 2 1 -1 0 0
1 31 3 0 3 1 -1 0 0