Counter sensors

Dewesoft offers counter sensor database which holds the list and the properties of the counter sensors which can be used in order tracking, combustion analysis, and angle sensor math. We can define encoders, Geartooth, and other angle sensors.

The Counter sensor editor can be accessed under Settings - Counter sensor editor.


When we enter the editor, the following window appears where we define the counter sensors:


Several predefined sensors are already in the editor list; these sensors are installed with Dewesoft. We can always add new ones, modify existing ones or delete the sensors. On the upper right side of the Counter sensor editor, the window common command icons appear:

Rename sensor - rename the default or pre-defined sensor.


Add sensor - button will add anew sensor. The sensor will be named ‘New sensor’, but we can rename it.


Remove sensor - button will remove the currently selected sensor.


Save and exit - button will save the counter sensor database and close the editor.


Exit - button will leave the editor without saving the data, so please be sure to use Save & Exit if you make any changes to the sensors or confirm you want to save the changes when you exit the editor.


In the counter sensor editor window, we can choose any sensor from the current sensor drop-down list for viewing and editing.


Settings and entered values for Counter sensor are divided into following sections:


  • Sensor type
  • Signal level
  • Encoder setup or Geartooth setup (depend on selected sensor type) 

Counter sensor type

There are several basic sensor types available which can be selected from the Sensor type drop-down list:


  • Encoder - Classic angle encoder with A, B and Z signals. The signal can be only digital.
  • Tacho - Sensor with one pulse per revolution. The signal can be either analog or digital.
  • Geartooth, CDM - Sensor with the defined number of pulses per revolution, but without any zero pulses.
  • Geartooth with zero, CDM + TRG - Sensor with the defined number of pulses per revolution with zero pulses.
  • Geartooth with missing teeth - A classic in-vehicle sensor with any number of pulses where one tooth is missing for zero pulse recognition. A typical example is 36+1 sensor.
  • Geartooth with double teeth - An in-vehicle sensor with any number of pulses per revolution with some double teeth missing. A typical example is the Geartooth with 60 teeth where two of them are missing, so in fact, there are 58 teeth and there is a gap between two teeth.
  • Linear encoder - Sensor measuring displacement with any number of pulses per millimeter and pulses per revolution.
  • Linear pulses sensor - A linear sensor, measuring displacement with any number of pulses per millimeter.
  • Tape sensor - An angle sensor with white tape and black stripes attached to the rotating disc.

Counter signal level


There are several signal level settings. From the drop-down list it can be selected:

Signal type


The encoder and Geartooth signal type can be only defined as digital (TTL level) and therefore used with counters while all other sensors can be also analog, which means that we need to define the trigger level.


Signal filter

The signal filter is a debounce filter, used to prevent glitches in the signal. A signal must be present for the defined amount of time before the logis accepts it as a valid signal. This also inserts a delay for the signals!


Signal edge

Signal edge can be either positive or negative.


Encoder setup


To prepare the encoder for the measurement, we have to define:


  • Number of pulses per revolution - Standard values are multiples of 2 (256, 512,1024). These sensors are mainly used for external clocking so that we can have the frequency spectrum as a direct multiple of the number of revolutions to easily see the harmonic components. Other standard values are related to degrees (360, 720, 1800, 3600) where the reason is a nice angle resolution.
  • Default encoder modes - Exact description of encoder modes can be found in the Dewesoft PRO training.

For additional help with  visit Dewesoft PRO training  ->Dewesoft Web page -> PRO Training -> Counters.

Tape sensor setup

Tape sensor settings

For these sensors we need to define the number of pulses per revolution (number of lines) and a gap. The last white line defines the start of the gap. For a tape sensor with 200 white lines and a gap which has two missing white lines the number of teeth is 199 (200-1) and the gap is 3 (1 + 2 missing teeth).

Geartooth sensor setup

Geartooth sensor settings

For these sensors, we need to define the number of pulses per revolution (number of teeth).


Geartooth with zero sensor settings

For these sensors, we need to define the number of pulses per revolution (number of teeth) and the direction of the zero pulse edge.


Geartooth with missing teeth sensor settings

For these sensors, we define the number of teeth (#Teeth) and the gap lengths (#Gap). The example in the picture below shows the settings for 60-2 geartooth (meaning, the geartooth has 58 teeth in succession and then 2 teeth missing for the gap). If the gap would not be there, the geartooth would have a total of 60 teeth, but two of them are missing to create a gap.

If we would like to enter the 60-2-2 sensor, we first need to click on + button above the sector grid. This adds a new “sector” to our geartooth definition. Next we change cells under #Teeth column to contain 28, so the sum of all the numbers is the total number of teeth.

Dewesoft also supports sensors with gaps asymmetrically (arbitrarily) spaced around the geartooth. To create such a sensor, simply create new sectors by clicking + button and filling out the #Teeth column with however many teeth appear in that specific sector. Picture below shows and example definition of a geartooth with 4 sectors: one with 34 teeth, then 29 teeth, then 30, and finally 31 teeth, each separated from the next with a gap of size of 2 teeth, for a total of 132 teeth.

The ordering of the sectors has to coincide with the actual physical geartooth. If we want to change the order of the sectors, we can select a row in the sector grid by clicking on it, and using up and down arrow buttons above the grid to move the row up or down respectively.

One of the sectors must be defined as the “zero pulse sector” - that is, the start of the first tooth in this sector is where the 0 degrees of the geartooth is. We can change the zero pulse sector by clicking on the cells under Angles column. The text in the cells specify the span of angles (in degrees) covered by the corresponding sector.

Above the geartooth sector grid, we can set the additional offset from the zero pulse. This can be useful if the actual zero is not located on the first tooth, but instead somewhere else on the geartooth (relative to the zero pulse sector). We can specify the offset in terms of either teeth, or degrees. So, for example, if geartooth has its actual 0 five degrees before the zero sector, we could enter “-5” and choose “Degrees” in the dropdown. As an alternative interpretation, this means that at the start of zero pulse sector the geartooth is rotated 5 degrees.

In case the geartooth is symmetrical, the “zero pulse sector” can only be one of the sectors within the first “supersector” that repeats on the geartooth. That is so because it is impossible to determine which “supersector” the geartooth starts rotating with at the start of measurement, so Dewesoft simply assumes it is always the first one. For example, geartooth 60-2-2-2 is such a symmetrical geartooth with “supersector” composed of just one sector with 18 teeth, and we can only select the first sector as the zero pulse sector. Another example would be a geartooth with 34, 32, 31, 34, 32, and 31 teeth, where “supersector” of sectors with 34, 32, and 31 teeth repeats twice over the entire geartooth. In this case we can select any one of the first three sectors as the zero pulse sector:

Geartooth with double teeth sensor settings

For these sensors, we define the number of teeth and the number of double teeth. The example below shows the settings for 36+1, a Geartooth with 36 teeth and one double tooth.