<!-- Source: https://docs.captron.com/trms/series4x/timer -->

# Timer

The timer functionality is designed for applications without IO-Link only. The **LED Control Mode** needs to be set to "Automatic Scene Selection" so the timer can be started by activation of the switch or the inputs E1/E2.

Activating a scene via IO-Link when "LED Control Mode" is set to "Scene controlled by IO-Link Process Data" will **not** activate the Timer. If you want to control a Timer via IO-Link, use the "LED Control Mode" "Advanced Control by IO-Link Process Data" and run the timer on the PLC and display the time.

:::note
Timer overwrites LED effect of the scene; LED effects with prefix "Timer" are synchronized with the timer.
:::

## Use Case Example 1

**The output signal shall come in the beginning, before the timer runs down/up.**

1. Set **Sensor Mode** to "Static" or "Dynamic"
2. Set **Timer Function** to "1 - count down" / "2 - count up"
3. Set **Trigger Timer** to "0 - when entering Scene 0"
4. Set **Timer timeout** to e.g. "10" s
5. Set **Output Minimum Impulse Time**
6. Set **LED Effect** for Timer

:::note
**Sensor Mode** needs to be "Static" or "Dynamic". If the sensor is in "Toggle" mode, the timer will start when the sensor is touched for a second time since it will be in "Scene 1" after the first touch and goes back to "Scene 0" after the second.
:::

## Use Case Example 2

**The output signal shall come at the end.**

1. Set **Sensor Mode** to "Static" or "Dynamic"
2. Set **Timer Function** to "1 - count down" / "2 - count up"
3. Set **Trigger Timer** to "1 - when entering Scene 1"
4. Set **Timer timeout** to e.g. "10" s
5. Set **Output Minimum Impulse Time** to e.g. "300" ms
6. Set **Output Activation Delay** to e.g. "9700" ms
7. Set **LED Effect** for Timer

:::note
**Sensor Mode** needs to be "Static" or "Dynamic".

**Output Activation Delay** = **Timer timeout** - **Output Minimum Impulse Time**.
:::

## Use Case Example 3

**The timer shall count infinitely (display up to 9999 s).**

1. Set **Sensor Mode** to "Toggle" (you will have an output signal as long as the timer counts)
2. Set **Timer Function** to "Count Up Infinite"
3. Set **Trigger Timer** to "1 - when entering Scene 1"
4. Set **Output Minimum Impulse Time** to e.g. "300" ms
5. Set **Output Activation Delay** to 0 ms
6. Set **LED Effect** for timer

:::note

- **Sensor Mode** needs to be "Toggle" to get a continuous output signal as long as the counter is active.
- The timer display / LED-ring stops counting up at 9999 s, the output signal stays until the switch is touched again.
- The timer can be ended if "Output Locking" is active and you put an input signal on one of the inputs.
  :::
