![Kuhnke FIO (V2) Скачать руководство пользователя страница 51](http://html.mh-extra.com/html/kuhnke/fio-v2/fio-v2_manual_2009572051.webp)
Kendrion Kuhnke Automation GmbH
Counter/Posi2, Counter2
51
11/25/2016
4.13.3.3.1 Zähler 1 Optionen (Counter 1 Options)
The module offers you different options for the operation of Counter 1. The
options are set in the module with the help of the control bit "SetOptions_1"
(see also 4.13.3.3.2 Zähler 1 Kontrolle) and then valid up to the next setting
procedure.
•
At first select the options, please. For taking over send a rising edge to
the control bit "SetOptions_1". The module indicates the execution by
"OptionsSet_1=TRUE". When "SetOptions_1" becomes FALSE again,
the module responses by "OptionsSet_1=FALSE". So the module is
ready for the next setting process.
Variable
Data
type
Value Explanation
Enable_Compare_1
BOOL
0
Deactivate compare function
1
Activate compare function
SelectEncoder_1
BOOL
0
A, B, Ref with detection of direction
1
Event counter at A
B=0 down
B=1 up
SetResolution_1
BOOL
Only if SelectEncoder=1 (Event counter)
0
Rising and falling edges
1
Only rising edges
ControlOutput_1
BOOL
0
Output_0_0 is a regular digital output
1
Output_0_0 is controlled by the compare
function.
OnErrorForceOutputsOff_1
(since release 3 )
BOOL
0
In case of module error all digital and analog
outputs are continued to update.
1
In case of module error all digital and analog
outputs are forced to 0.
4.13.3.3.2 Zähler 1 Kontrolle (Counter 1 Control)
Enabling and disabling of counting and referencing are determined by the
state of the control variables.
Set and Reset functions are activated by setting of the appropriate variable.
The execution is indicated in the corresponding status variable.
If the control variable is reset, the counter module also resets the
corresponding status variable.
Variable
Data type Value Explanation
SetOptions_1
BOOL
0/1
Take over "Zähler 1 Optionen"
ResetReferenced_1
BOOL
0/1
Reset of status bit "Referenced_1"
ResetCompared_1
BOOL
0/1
Reset of status bit "Compared_1"
ResetCaptured_1
BOOL
0/1
Reset of status bit "Captured_1"
EnableCounter_1
BOOL
0
Disable counter
1
Enable counter
EnableReferencing_1
BOOL
0
Disable Referencing
1
Enable Referencing
SetCounter_1
BOOL
0/1
Set counter to preset value
SetCompare_1
BOOL
0/1
Set compare value register
SetPreset_1
BOOL
0/1
Set preset value register
SetMax_1
BOOL
0/1
Set maximum value register