Counter/Posi2 5V, Counter 2 5V
Kendrion Kuhnke Automation GmbH
38
17 May 2021
Term2_EnableReferencing_1:=FALSE;
Step:=0;
(*Restart referencing at next revolution.*)
END_IF
END_CASE
END_IF
Capture Mode (Capture)
A falling edge of digital input 1 can be used to trigger writing the current counter reading.
Status bit "Captured_1" indicates the capture event. Use "ResetCaptured_1" to reset and enable
"Captured_1" to indicate the next capture event.
Term2_Input_0_1;
(*State of input 1*)
Term2_Select_1:=4;
(*Show captured value in Term2_SelectedValue_1*)
Term2_Selected_1;
(* =4 when captured value is in Term2_SelectedValue_1*)
Term2_SelectedValue_1;
(*Use to read the captured value*)
Term2_Captured_1;
(*A capture event has occurred*)
Term2_ResetCaptured_1;
(*Reset Term2_Captured_1*)
Digital Inputs (Input_0_x)
Use variable "Input_0_x" to poll the state of the digital inputs.
Permanent extra function:
Upon a falling edge of input one the current counter reading is written to the capture register.
Term2_Input_0_0;
(*State of input 0*)
Term2_Input_0_1;
(*State of input 1*)
Term2_Input_0_2;
(*State of input 2*)
Term2_Input_0_3;
(*State of input 3*)
Analogue Outputs (Counter/Posi2.5V only)
Variables "AnalogOutput _x" contain the output values of the analogue outputs.
Term2_ AnalogOutput_1:= 16#7FFF;
(*10V to analogue output 1*)
Term2_ AnalogOutput_2:= 16#8000;
(*Output -10V to analogue output 2*)
Output values: See section Analogue Outputs (Counter/Posi2.5V only)