Read Encoder FlagsReads the encoder flags for the specified channels. These flags are not the interrupt flags but the contents of the encoder status register. Libraryqctools Description
The Read Encoder Flags block for the Q8 series of I/O cards provides a mechanism for reading the status registers associated with a set of encoder channels. Reading the status register allows all the information about a particular encoder channel, or set of encoder channels, to be read simultaneously, rather than using the interrupt flags, for which only two are available at one time. Also, more information is available from the status registers. Block OutputsBTThe borrow toggle flip-flop. This output toggles each time the counter underflows ie., whenever the count value cycles from 0 to 16777215 (0xffffff ), counting downward. CTThe carry toggle flip-flop. This output toggles each time the counter overflows ie., whenever the count value cycles from 16777215 (0xffffff ) to 0, counting upward. CPTThe compare toggle flip-flop. This output toggles each time the counter equals the preload value (the Initial Value setting of an Encoder Input block or Reset Value setting of an Encoder Reset block) SThe sign flag. This output reflects the sign bit of the 24-bit count value (bit 23 the most significant bit). EThe error flag. This output is set to 1 when excessive noise is present at the encoder inputs. U/DThe up/down flag. This output is set to 1 when the encoder is counting up and set to 0 when it is counting down. IDXThe index flag. This output is set to 1 when the index is valid. Note that this input is always 0 if the index is disabled (see the Encoder Input block's Enable Index option). Parameters and Dialog Box |
![]() |
![]() |
||