Counter up

<< Click to Display Table of Contents >>

Navigation:  Function block library > Logic >

Counter up

Previous pageReturn to chapter overviewNext page

counter_up

The counter counts the number of events at its Input connector

 

Inputs

Type

Default

Description

Input

bool

false

Counter input. Counter value is increased if the input changes from false to true and/or from true to false.

Initial value

int32

0

Counting starts with the value given here at sub-program start or if Reset is true.

Reset

bool

false

The counter is reset to its initial value if this input is true.





Outputs




Output

int32


Counter value