Counter Clear by External Input

The counter is cleared to zero by the Z-phase input.
The operation is the same as when "Angle" is selected for the scale type in the initial setting utility of API-SMC(98/PC).
Hardware connection and driver settings are required.

[Hardware connection]
By connecting the Z-phase output of the rotary encoder (or any signal that is input at the timing you want to clear) to the IN4/LTC or IN6/CLR terminal and setting the software, it is possible to clear the counter by asserting the Z-phase signal.
The input specifications of IN4/LTC or IN6/CLR are photocoupler input (compatible with current sink output), so an open collector output type rotary encoder can be connected.
An input ON current of 2.0mA or more is required.
Also, when using the input terminals of this board, it is necessary to connect the positive common terminal of this board to the external power supply (+12 to +24V) positive terminal, and the GND terminal to the external power supply negative terminal.

[Driver setting]
For SMC-2/4/8DL series
・Using LTC signal
  Set IN4 to LTC with the SmcWSetCtrlTypeIn function.
  If bit 4 (LTC) of argument CtrlIn is not turned ON in this function, it is not recognized as an LTC signal.
  Function setting is performed by the SmcWSetCounterMode function.
  Please select the counter you want to clear in the argument ClearCntLtc.
  To clear the counter with the LTC signal, the counter must be latched.
  Therefore, if the above settings are made, the setting on the argument LtcMode side will automatically change to the corresponding setting.

For SMC-4/8DF series
・Using LTC signal
  Similar to the SMC-2/4/8DL series, but you cannot select which counter to latch.
  Therefore, if the argument LtcMode is set to latch ON, the other bit will also be set to ON.
・Using CLR signal
  Set IN6 to CLR with the SmcWSetCtrlTypeIn function.
  If bit 6 (CLR) of the argument CtrlIn is not turned ON in this function, it will not be recognized as a CLR signal.
  Function setting is performed by the SmcWSetCounterMode function.
  Please select the counter you want to clear in the argument ClearCntClr.