![Kuhnke FIO (V2) Скачать руководство пользователя страница 62](http://html.mh-extra.com/html/kuhnke/fio-v2/fio-v2_manual_2009572062.webp)
Kendrion Kuhnke Automation GmbH
Counter/Posi2, Counter2
62
11/25/2016
4.13.4.10 Capture
A falling edge at the Digital Input 1can be used as trigger in order to save the
current counter value (capture).
You get a message in the status bit "Captured_1" that a capture event has
appeared.
You have to reset " Captured_1" by "ResetCaptured_1" that the next capture
event can be indicated.
Term2_Input_0_1;
(*Status of Input 1*)
Term2_Select_1:=4;
(*Copy capture register to Term2_SelectedValue_1*)
Term2_Selected_1;
(* =4, if capture value in Term2_SelectedValue_1*)
Term2_SelectedValue_1; (*Here you can read the capture value*)
Term2_Captured_1;
(*A capture event has appeared *)
Term2_ResetCaptured_1; (*Reset of Term2_Captured_1*)
4.13.4.11 Digital Inputs (Input_0_x)
The status of the digital inputs is indicated in the variables "Input_0_x".
Permanente additional function:
The current counter value is saved in the capture register when a falling
edge appears at Input_0_1.
Term2_Input_0_0;
(*Status of Input 0*)
Term2_Input_0_1;
(*Status of Input 1*)
Term2_Input_0_2;
(*Status of Input 2*)
Term2_Input_0_3;
(*Status of Input 3*)
4.13.4.12 Analog Outputs (Counter/Posi2 5V only)
The output values of the analog outputs are written into the variables
" AnalogOutput _x".
Term2_ AnalogOutput_1:= 16#7FFF;
(* Set AnalogOutput_1 to +10V *)
Term2_ AnalogOutput_2:= 16#8000;
(* Set AnalogOutput_2 to -10V *)
Output values: See Figure 50: Analog values voltage page 96