ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
More functions in the ecomatmobile controller
Counter functions for frequency and period measurement
211
NOTE
Depending on the further load on the unit the limit frequency might fall when "many" encoders are
evaluated.
If the load is too high the cycle time can get unacceptably long (
→
system resources,
→
Via PRESET_VALUE the counter can be set to a preset value. The value is adopted if PRESET is set
to TRUE. Afterwards, PRESET must be set to FALSE again for the counter to become active again.
The current counter value is available at the output COUNTER. The outputs UP and DOWN indicate
the current counting direction of the counter. The outputs are TRUE if the counter has counted in the
corresponding direction in the preceding program cycle. If the counter stops, the direction output in the
following program cycle is also reset.
On input RESOLUTION the resolution of the encoder can be evaluated in multiples:
1 = normal resolution (identical with the resolution of the encoder),
2 = double evaluation of the resolution,
4 = 4-fold evaluation of the resolution.
All other values on this input mean normal resolution.
RESOLUTION = 1
In the case of normal resolution only the falling
edge of the B-signal is evaluated.
RESOLUTION = 2
In the case of double resolution the falling and the
rising edges of the B-signal are evaluated.
A
B
+1
+1
+1
A
B
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
A
B
1
3
1
3
1
3
1
2
4
2
4
2
4
2
1
1
1
1
1
1
1
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
RESOLUTION = 4
In the case of 4-fold resolution the falling and the
rising edges of the A-signal and the B-signal are
evaluated.