TsctlDIOCountDesc
From embeddedTS Manuals
Returns the number of DIOs in the object. All DIOs in the object are numbered sequential, starting at 0 and ending at one less than the count returned
Unlike other functions (besides Lock), the DIO object does not need to be locked when this function is called.