Kendrion Kuhnke Automation GmbH
Counter2, Counter/Posi2
215
17 May 2021
Counter 1 State
The status variables indicate the state of the counter. This applies to
events and
notifications that settings are being applied.
Variable
Data type Explanation
Counting_1
BOOL
Counter enabled
Referenced_1
BOOL
Reference function has been run.
Use ResetReferenced_1 to reset
Clockwise_1
BOOL
Up-counting
Compared_1
BOOL
Reference value function has been run.
Use ResetCompared_1 to reset
Captured_1
BOOL
Capture function has been run.
Use ResetCaptured_1 to reset
CounterSet_1
BOOL
Counter set to preset value
CompareSet_1
BOOL
Reference value has been set
PresetSet_1
BOOL
Preset value has been set
MaxSet_1
BOOL
Final counter value has been set
OptionsSet_1
BOOL
Counter 1 options accepted
OutputsOnErrorOff_1
BOOL
Error switches off the outputs (release 3 or higher)
Counter 1 Error
Use these variables to indicate error states.
Variable
Data type Explanation
OutputsForcedOff_1
BOOL
Outputs set to 0 after a module error auf 0 (release 3 or
higher)
Err_Reserved_1_x
BOOL
Reserved error bits
Readings of Counter 1
Counter 1 Set-points
The counter can be preset to various set-points. Use variable "SetValue_1" and the following control bits of
group "Counter 1 Control" to transfer the value of the variable to the relevant registers.
Variable
Explanation
SetCounter_1
Accepts value as actual counter reading
SetCompare_1
Accepts value as the reference value
SetPreset_1
Accepts value as the preset value
SetMax_1
Accepts value as the final counter value
Check variable "SelectedValue" to find the actual counter readings currently used as presets.
Use variable "Select_1" to choose the value you wish to see in variable "SelectedValue".