Stopwatch (0BA7 and later versions only)

Short description

The stopwatch records the time elapsed since it was enabled.

Connection

Description

Input En

En (Enable) is the monitoring input. LOGO! sets the current elapsed time to 0 and begins counting elapsed time when En transitions from 0 to 1. When En transitions from 1 to 0, the elapsed time is frozen.

Input Lap

A positive edge (0 to 1 transition) at input Lap pauses the stopwatch, and sets output to lap time. A negative edge (1 to 0 transition) at input Lap resumes the stopwatch, and set the output to current elapsed time.

Input R

A signal at input R (Reset) clears the current elapsed time and lap time.

Parameter

Time base for elapsed time, which you can set to hours, minutes, seconds, or 1/100ths of seconds.

Output AQ

The output AQ outputs value of the current elapsed time when it is a negative edge (1 to 0 transition) at the input Lap, and outputs value of the Lap time when it is a positive edge (0 to 1 transition) at the input Lap.

A positive edge (0 to 1 transition) resets the value at output AQ to 0.

Parameters Time base

You can configure the time base for the analog output:

The time base for the elapsed time can be in hours, minutes, seconds, or 1/100ths of seconds (units of 10 milliseconds). The smallest time base, and therefore the resolution, is 10 milliseconds, or 1/100ths of seconds.

Timing diagram

Description of the function

When En = 1, the current time increases.

When En = 0, the current time counting pauses.

When En = 1 and Lap = 0, the output AQ outputs the value of the current elapsed time.

When En = 1 and Lap = 1, the current time continue increasing, but the output AQ outputs the value of the Lap time.

When En = 0 and Lap =1, the output AQ outputs the value of the Lap time.

When En = 0 and Lap = 0, the output AQ outputs the value of the latest current time.

When R = 1, both the current time and the Lap time are reset.

Overview