32-Bit Up/Down Counter of Module DC541-CM

The 32 bit up/down counter functionality is provided by the Function Block DC541_32BIT_CNT: DC541_32BIT_CNT

The 32-bit counter is a count-up/count-down counter with a directional discriminator. The counter can be used in two counting modes:

  • EN_UD = FALSE: Encoder mode

    Connection of an incremental transmitter (track A / track B, offset by 90°)

    It is possible to count signals up to approx. 60 kHz. This corresponds to a motor with a rotational speed of 3.600 rpm and a transmitter with 1.000 pulses per rotation. Pulse multiplication (x2 or x4) is not used.

  • EN_UD = TRUE: Up / down mode

    Up-/down counter

    It is possible to count signals up to approx. 60 kHz. Count-up for signals on channel C1, count-down for signals on channel C0.

The counter always uses the channels C0…C3 of the DC541:

  • C0: Track A of the incremental transmitter.
  • C1: Track B of the incremental transmitter.
  • C2 and C3: Reference cam or touch trigger.

The counter can be used in two operating modes:

  • Infinite counter (endless mode)
  • Limiting counter (limit mode)

Function blocks for the most module functions of DC541-CM are contained in the library DC541_AC500_V11.lib. The library is automatically included into the project and is described in detail in the library documentation DC541_Library: DC541 Library