You are correct in that the CTRIO keeps a running total of the pulses from the encoder connected to its inputs when its inputs are configured as counters (single-ended or quadrature). It automatically maps this information in V-memory where you tell it according to mapping. The total will most certainly roll over. It is a double-word 2's complement number (range -2,147,483,648 to 2,147,483,647; i.e. +/- 2.1 billion). It will roll over if not reset. You can reset the count using the Software Reset bit, or you can configure another CTRIO input to reset the count on an external pulse.
For example, you could:
- Configure CTRIO Channel 1 Input A as Counter and hook your incremental encoder to that.
- Configure CTRIO Channel 1 Input C as Reset Fn 1.
- Configure CTRIO I/O Mapping:
Input Map: V2000-2025
Output Map: V2030-2061
If you did this, then:
- The current encoder count would show up in V2000-2001.
- The count could be reset by a positive edge on the CTRIO Channel 1 Input C.
- The count could be reset by setting bit V2054.1
Mapping is shown in the I/O Map in CTRIO Workbench and the manual.