|
<< Click to Display Table of Contents >> Navigation: Components > Control, logic & time > Counter |
This function counts the input signals. There are several output values available for this purpose.
Data points of the component
Name |
Type |
function |
|---|---|---|
Disable |
Input |
Here the component can be deactivated with an "on" signal. A "Off" signal reactivates the counter. |
Input |
Input |
Here only on / off values are counted. These are not added to "Meter reading values". All input formats are counted as 1 here when creating. The output varies depending on the formatting. For example, when entering a text, the output "count of any command" is incremented by 1; When a switching pulse is input, we additionally count "counter status of switching edge" and "counter status of switching cycles". |
Threshold - On time reached |
Output |
Switches from off to on when the set time has been reached. |
Value Input |
Input |
Here, the entered numerical values are added to the output meter reading values. |
Counter cycles |
Output |
Returns the counterValue On for which an arbitrarily formatted signal has been created at the input. |
Counter stateless |
Output |
Returns the number of switching edges. Which edge is counted can be selected in the settings. |
Counter switching edges |
Output |
The number of times the value input has been delivered |
Counter Values |
Output |
Returns the current CountValue Off. This corresponds to an addition of all input values. |
Reset |
Input |
Sets all outputs of the counter to 0 |
Time On |
Output |
Returns the time in which the "on" signal is present at the input. The output in e.g. The value-dependent text component must be formatted accordingly. e.g. % H:% M or% H:% M:% S |
Time On [s] |
Output |
Returns the time in second, in which the "on" signal is present at the input. |
Time Off |
Output |
Returns the time in which the signal "Off" is present at the input. The output in e.g. The value-dependent text component must be formatted accordingly. e.g. % H:% M or% H:% M:% S |
Time Off [s] |
Output |
Returns the time in second, in which the signal "Off" is present at the input. |
Properties
Name |
|
function |
|---|---|---|
Counter direction - On to Off |
|
If the parameter is not set, circuits are counted from on to off. If this was set, the flank is counted from off to on. |
Threshold - On time(h) |
0 |
Defining the threshold value for the switching state An in hours |
Trigger interval (ms) |
60000 |
Sampling rate in milliseconds (min. 1000) Tip: If changes are made, the project must be reloaded in the editor for the simulation to work. |
Tip: When using the "Value-dependent text" component, the output of the counter readings is undefined.