Kendrion Kuhnke Automation GmbH
Counter/Posi2, Counter2
52
11/25/2016
4.13.3.3.3 Zähler 1 Status (Counter 1 State)
The status variables indicate the status of the counter. This concerns
•
the appearance of events and
•
the indication of the execution of settings.
Variable
Data type
Explanation
Counting_1
BOOL
Counter is enabled
Referenced_1
BOOL
Reference function was executed
Reset by ResetReferenced_1
Clockwise_1
BOOL
Counter counts up
Compared_1
BOOL
Compare function was executed
Reset by ResetCompared_1
Captured_1
BOOL
Capture function was executed
Reset by ResetCaptured_1
CounterSet_1
BOOL
Counter is set to preset value
CompareSet_1
BOOL
Compare value is set
PresetSet_1
BOOL
Preset value is set
MaxSet_1
BOOL
Maximum value is set
OptionsSet_1
BOOL
Options of counter 1 are set
OutputsOnErrorOff_1
BOOL
Outputs will be switched off in case of error
(since release 3)
4.13.3.3.4 Zähler 1 Fehler (Counter 1 Errors)
The variables are provided for the indication of error states.
Variable
Data type
Explanation
OutputsForcedOff_1
BOOL
Outputs have been forced to 0 because of a module
error (since version 3)
Err_Reserved_1_x
BOOL
reserved error bits
4.13.3.4 Counter values of Counter 1
4.13.3.4.1 Zähler 1 Sollwerte (Counter 1 Set Values)
The counter can be preset with different set values.
That is done by help of the variable "SetValue_1". After setting the following
control bits the contents of "SetValue_1" will be copied in the corresponding
register.
Variable
Explanation
SetCounter_1
Copy "SetValue_1" to the current counter value
SetCompare_1
Copy "SetValue_1" to the compare value register
SetPreset_1
Copy "SetValue_1" to the preset value register
SetMax_1
Copy "SetValue_1" to the maximum value register
The current set values can be read in the variable "SelectedValue" from the
"Zähleristwerte" (Counter current values) group.
•
Select by the variable "Select_1", which value you want to see in the
variable "SelectedValue".