User Manual

12/06 AWB2724-1584GB
Incremental input
47
Incremental input
One incremental input is available. The incremental signals A and
B of the transmitter are sent to the external inputs I1 and I2, and
the reference signal that is generated by the transmitter with every
rotation is sent to input I3. The reference switch is connected to
input I4. When closed this forms the reference window in which
the reference signal is processed.
The incremental signals A and B are phase shifted by 90 degrees
in order to indicate the count direction. The rising and falling edges
are evaluated (quadrature decoding). The maximum input
frequency is 40 kHz. This results in a total frequency of 160 kHz.
The counter does not generate an interrupt.
You can control the counter and adapt it to the application with
the following signals. The signal inputs can be scanned and the
signal outputs set in the program. The signal designations are
provided in the PLC configuration.
Explanation of the input/output signals (I/Q)
Figure: 43: Inputs/outputs of the 16-bit counter 0 and 1
h
When the actual values equals the reference value, an
interrupt can be generated in order to activate a program
routine. To do this, you must activate the interrupt in the
task configuration and assign the program routine
a section “Interrupt processing”, page 52.
Figure: 44: Input/output signals of the incremental value counter
Signal I/Q Explanation
RefDone I Referencing completed
(feedback signal of SetRefWindow)
RefActive I Referencing activated
(feedback signal of SetRefWindow or I4)
Zero I Actual value through zero
Counter I Counter actual value
QuitZero Q Acknowledge ZERO signal
RefMode Q Number of reference checks
0 = once
1 = permanent
RefWindowMode Q Activation of reference window by
0 = external input I4
1 = with “SetRefWindow” in the program
SetRefWindow Q Activation of reference window when
“RefWindowMode” = 1
SetRefValue Q Reference value overwrites actual value
(Reset)
RefValue Q Reference value