Timer/Counter blocks > Counter function block

Counter function block parameters

The following table lists the system parameters for the Counter function block:

Table: Counter function block system parameters

Parameter

Units

Description

COUNT

None

The count value.

COUNTER_TYPE

None

Specifies the type of counter (False [0] = increment counter, True [1] = decrement counter).

DETECT_TYPE

None

Specifies the transition count type (False = counts when IN_D transitions from False to True [rising edge], True = counts when IN_D is True).

IN_D

None

The discrete input value and status.

OUT_D

None

The discrete output value and status. A True value indicates the counter has hit a trip condition.

PRESET

None

The starting or trip value for the counter.

RESET_IN

None

Discrete input that resets the counter and sets OUT_D False.

Note

Default values and data type information for the parameters are available by expanding the Parameter View window.