RM/TM-4200GE Series
56
Configuring the Camera
5.9.5
Counters
The General Purpose Counter lets you maintain a count between 0 and 2
32
-1 (long integer). You can use
different inputs to increment, decrement, or clear the counter value.
The General Purpose Counter outputs two separate signals that indicate when the count is equal to and greater
than the compare value that you set: Counter1Gt and Counter1Eq. These signals are available on the Input lines
in the Signal Routing Block.
CounterSelector:
selects which counter to configure. There is only 1 counter called Counter1.
CounterDecrementEventSource:
selects the events that will decrement the counter. This signal comes from the
Q16 pin of the PLC LUT.
Available options:
•
Off: no decrement events
•
PLC_Q16_RisingEdge: decrement when the signal goes from Low to High
•
PLC_Q16_FallingEdge: decrement when the signal goes from High to Low.
•
PLC_Q16_AnyEdge: decrement on any Falling or Rising Edge.
•
PLC_Q16_LevelHigh: decrement when the signal is at the High section.
•
PLC_Q16_LevelLow: decrement when the signal is at the Low section.
CounterDuration:
sets the value that the CounterValue will be compared to. When the CounterValue and
CounterDuration are equal, the Counter1Eq signal will go high and stay high as long as the values are equal.
When the CounterValue is greater than CounterDuration, the Counter1Gt signal will go high.
CounterEventSource:
selects the signal event type that will increment the counter. This signal comes from the
Q17 pin of the PLC LUT.
Available options:
•
Off: no increment events
•
PLC_Q17_RisingEdge: increment when the signal goes from Low to High
•
PLC_Q17_FallingEdge: increment when the signal goes from High to Low.
•
PLC_Q17_AnyEdge: increment on any Falling or Rising Edge.
•
PLC_Q17_LevelHigh: increment when the signal is at the High section.