16-Bit Up/Down Counter

The Function Block CD522_16BIT_CNT: CD522_16BIT_CNT

The module CD522 can be used in 12 different configurable operating modes. The operating mode is configured in PLC Configuration using module parameters. After that, it is activated during the initialization phase (power-on, cold start, warm start).

The data exchange from and to the user program is performed using input and output operands. These necessary operands are created and reserved automatically, when one module CD522 is added into the I/O-Bus configuration.

In order to configure and use the function counter of module CD522, different operating modes are available. The Function Block CD522_16BIT_CNT should be used with one of these operating modes:

Operating Mode 8 “Up/Down with release (B), 0 cross detection”
Should be specified in PLC Configuration; parameter “mode counter” in order to use one up/down 16 bit counter (in range of -32768 to 32767) with enable input and zero crossover detection (CF). Counting is valid when input B is TRUE. With set and reset input operation and touch/catch value.

The module CD522 provides 2 Up/Down 16 bit counter functions. A signal used for pulse count is identified by A0 for counter 0 and A1 for counter 1. Another signal used for enable or dynamic set is identified by B0 for counter 0 and B1 for counter 1.