Fast Counters in AC500-eCo (Onboard I/O in PM55x and PM56x)

Note

For AC500 devices the function “fast counters” is available in S500 I/O modules as of firmware version V1.3.

For AC500-eCo devices the function “fast counters” is available in onboard I/Os of PM55x and PM56x.

In Processor Modules with onboard I/Os (AC500-eCo) fast counter functionality can be activated within the onboard I/O configuration. A Processor Module with onboard I/Os contains up to 2 fast counters (channel 0 and 1) according to the operating mode .

The fast counter can work in normal counter mode and A/B track counter mode. The normal counter detects the rising edge of the counter input. It will increase or decrease the count value at every rising edge. The A/B track counter is used to count the signal from a motion sensor. The counter can count with single phase, double phases or quad phases. In the following the behavior of the A/B track counter is described.

Note

The fast counters cannot be used together with interrupt inputs at the same time.

Configuring the Fast Counters

The configuration of the fast counters is described in the chapter Configuration: Fast Counters

Counting modes of the Fast Counters

The counting modes of the fast counters is described in the chapter Configuration: Fast Counters

Operating the Fast Counters with the User Program

The following function blocks can be used to operate the fast counter with help of user program:

Counter_AC500_V<>.lib: Counter Library
Group:

CNT_IO: CNT_IO

CNT_IO_EXT: CNT_IO_EXT

High-speed counter of digital S500 I/O devices
OnBoardIO_AC500_V<>.lib: Onboard IO Library
Group: Counter_OBIO
ONB_IO_CNT: ONB_IO_CNT Handle High-speed counter on onboard I/Os