Two 16-Bit Up/Down Counters¶
The Function Block CD522_16BIT_2CNT: CD522_16BIT_2CNT
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_2CNT should be used with one of these operating modes:
Operating Mode 3 | “Up/Down counters (A,B)” |
Should be specified in PLC Configuration, parameter “mode counter” in order to use 2 Up/Down 16 bit counter (on rising edge count) functions, with separate up/down, reset operation and overflow flag. | |
Operating Mode 4 | “Up/Down (A, B on falling edges)” |
Should be specified in PLC Configuration, parameter mode counter in order to use two Up/Down 16 bit counter functions (with A on rising edge count and B on falling edge count), With separate up/down, reset operation and overflow flag. |
The module CD522 provides 4 Up/Down 16 bit counter functions. A signal used for pulse count is identified by A0 and B0 for counter A and A1 and B1 for counter B.