CD522_32BIT_CNT

../_images/6200a6ebe389aeac0a33139000eba54e
Parameter Value
Library_File_Name CD522_AC500_V13.lib
Available from CD522 firmware V2.1
Available from PLC runtime system: V1.0.2
Available from S500 I/O modules (DC551/DC505) firmware V1.11
Type Type_Function_Block_History

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_32BIT_CNT should be used with one of these operating modes:

Operating Mode 1 “Up/Down counter (A)”
Should be specified in PLC Configuration, parameter “mode counter” in order to use one up/down 32 bit counter on input A (dynamic changes) with set and reset input operation, end value reached indicator, touch/catch value and overflow flag.
Operating Mode 2 “Up/Down counter with release input (B)”
Should be specified in PLC Configuration; parameter “mode counter” in order to use one up/down 32 bit counter with enable input. Counting is valid when input B is TRUE. Dynamic up/down count possibility, with set and reset input operation, end value reached indicator, touch/catch value and overflow flag.
Operating Mode 5 “Up/Down dynamic set (B)/rising edge”
Should be specified in PLC Configuration; parameter “mode counter” in order to use one up/down 32 bit counter with set and reset input, end value reached indicator, touch/catch value and overflow flag. Additional function to mode 1 is the dynamic set input (B) on rising edge of physical.
Operating Mode 6 “Up/Down dynamic set (B)/falling edge”
Should be specified in PLC Configuration; parameter “mode counter” in order to use one up/down 32 bit counter with set and reset input, end value reached indicator, touch/catch value and overflow flag. Additional function to mode 1 is the dynamic set input (B) on falling edge of physical.

The module CD522 provides 2 Up/Down 32 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.