Using the module
5.1 Using the technology module
Counting, measurement and position detection
Function Manual, 12/2017, A5E32009889-AG
187
Notes on the control bits
EN_CAPTURE Use this bit to enable the Capture function. Resetting this bit resets a set EVENT_CAP in the
EN_SYNC_DN Use this bit to enable the synchronization of the counter when counting in downward direction
with an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in
EN_SYNC_UP
Use this bit to enable the synchronization of the counter when counting in upward direction with
an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in the
RES_EVENT Use this bit to trigger the reset of the saved events in the EVENT_ZERO, EVENT_OFLW,
EVENT_UFLW, EVENT_CMP0, EVENT_CMP1 feedback bits.
Use this bit to trigger the reset of the saved error states LD_ERROR and ENC_ERROR .
SET_DIR Use this bit to specify the count direction for signal type "Pulse (A)".
0 means: Up
SET_DQ0 Use this bit to set digital output DQ0 when TM_CTRL_DQ0 is set to 0.
In the case of the function "After set command from CPU until comparison value",SET_DQ0 is
effective regardless of TM_CTRL_DQ0 as long as the counter value is not equal to the compar-
SET_DQ1 Use this bit to set digital output DQ1 when TM_CTRL_DQ1 is set to 0.
In the case of the function "After set command from CPU until comparison value",SET_DQ1 is
effective regardless of TM_CTRL_DQ1 as long as the counter value is not equal to the compar-
SW_GATE Use this bit to open and close the software gate when using an incremental encoder or pulse
encoder. Together, the software gate and the hardware gate form the internal gate. The tech-
nology module only counts when the internal gate is open.
0 means: Software gate closed
1 means: Software gate open
TM_CTRL_DQ0 Use this bit to enable the technological function of digital output DQ0.
0 means: SET_DQ0 defines the state of DQ0
1 means: assigned function defines the state of DQ0
TM_CTRL_DQ1 Use this bit to enable the technological function of digital output DQ1.
0 means: SET_DQ1 defines the state of DQ1
1 means: assigned function defines the state of DQ1