The Counter component will count boolean inactive to active transitions. It supports counting up, counting down, presetting,
and clearing. The Counter is available in the Util folder of the kitControl palette. The following sections provide more details:
The Counter component includes the following properties:
Facets
This is used to set the units and number precision of the Out property.
Propagate Flags
Specifies which status flags will propagate from the Count Up, Count Down, Preset In, and Clear In properties to the Out status flags.
Out
This is the current count output.
Count Up
This is a StatusBoolean input. When this input makes inactive to active transition the value of the Out property increments by the Count Increment value.
Count Down
This is a StatusBoolean input. When this input makes inactive to active transition the value of the Out property will be decremented by the Count Increment.
Preset In
This is a StatusBoolean input. When this input makes inactive to active transition the value of the Out property will be decremented by the Count Increment.
Clear In
This is a StatusBoolean input. When this input makes inactive to active transition the value of the Out property will be set to 0.0.
Preset Value
This defines the value that will be set in the Out property when the Preset In changes to active, or when the Preset action is invoked.
Count Increment
This is the value that the Out property will change for a single count up or count down active transition.
Preset
This action sets the Out property value to the Preset Value.
Clear
This action sets the Out property value to 0.
Figure 15 shows an example of a Counter component property sheet.
Figure 16 shows an example application that ramps between the RampMaxValue and the RampMinValue. The period of the MultiVibrator object sets how fast the ramp counts. The Clock input of the BooleanLatch object config flags is set to allow fan-in.
Figure 17 shows an example count from the RampMaxValue down to 0 and then reset back to RampMaxValue and repeat.
Copyright © 2000-2016 Tridium Inc. All rights reserved.