pipt_digpointers

This function retrieves the digital state code, digcode, which corresponds to a value of 0, and returns the number of digital states minus one, dignumb, for the point specified by pt.

C format

int32 pipt_digpointers(

int32 pt,

int32 PIPTR * digcode,

int32 PIPTR * dignumb );

Returns

>0

System error

0

Success

-1

Point does not exist

Arguments

pt (passed)

Point number

digcode (returned)

Starting digital state code

dignumb (returned)

Number of digital states minus one

Usage Notes

This call is only valid for digital tags.

Both digcode and dignumb are positive integers. To convert an offset to a digital state code, add the offset to the digcode and reverse the sign of the result. The negative result can then be used in putSnapshot calls.

Enabling Operational Intelligence