Counters
Up/Down Counter
Description Counter that can be incremented or decremented based on the Rising Edge of Up Clock or Down Clock.

Preset Enable allows for signed 16-bit integer to be set as the Preset Value.

Power Up Preload can be used to set the values of Count and Output when device is power cycled.

Setting Clear High (1) will set Count and Output equal to zero. Clear has the highest priority over Preset, Up Clock, and Down Clock.
Availability
  • Requires library: Process Control (option -05)
  • Firmware versions 0x1022 and later
savvy-SFD Graphic upDownCounter
Graphic with Parameters upDownCounter

Parameters

Up Clock Input, Read-write, Boolean (signed 16-bit integer)

Positive-edge triggered.
0 = Low
1 = High
Down Clock Input, Read-write, Boolean (signed 16-bit integer)

Positive-edge triggered
0 = Low
1 = High
Enable Input, Read-write, Boolean (signed 16-bit integer)
0 = Disable
1 = Enable
Clear Input, Read-write, Boolean (signed 16-bit integer)

The clear input is dominant over both preset and the clock inputs
0 = Inactive
1 = Clear
Preset Enable Input, Read-write, Boolean (signed 16-bit integer)

The preset is dominant over the clocks, but not over clear
0 = Inactive
1 = Preset
Preset Value Input, Read-write, Analog (signed 16-bit integer)
-32767 to 32767
Maximum Count Input, Read-write, Analog (signed 16-bit integer)
-32767 to 32767
Minimum Count Input, Read-write, Analog (signed 16-bit integer)
-32767 to 32767
High Compare Value Input, Read-write, Analog (signed 16-bit integer)
-32767 to 32767
Low Compare Value Input, Read-write, Analog (signed 16-bit integer)
-32767 to 32767
Count Internal Parameter, Read-only, Analog (signed 16-bit integer)
-32767 to 32767
Output Output, Read-only, Analog (signed 16-bit integer)
-327.67 % to 327.67 %
High Compare Output Output, Read-only, Boolean (signed 16-bit integer)
0 = Low
1 = High
Low Compare Output Output, Read-only, Boolean (signed 16-bit integer)
0 = Low
1 = High
Power Up Preload Internal Parameter, Read-write, Enumerated (signed 16-bit integer)

Sets the value that is loaded on power up.
0 = Clear
1 = Preset
2 = Persistent