Configuration of the Main Type in Modulo-loop Mode
Step |
Action |
---|---|
1 |
Double-click Embedded Functions > HSC. |
2 |
Select the HSC• tab. |
3 |
Set the value of the HSC > HSC0• > Type parameter to Main. |
4 |
Set the value of the HSC > HSC0• > Parameter > Mode parameter to Modulo-loop. |
5 |
Enter the value of the HSC > HSC0• > Parameter > Preset/Modulo parameter. |
6 |
Select the value of the HSC > HSC0• > Clock Inputs > Input mode parameter. |
7 |
Select the value of the HSC > HSC0• > Clock Inputs > A Filter parameter. If necessary, select the value of the HSC > HSC0• > Clock Inputs > B Filter parameter. |
8 |
Optionnally, you can enable these functions: |
NOTE: The IO Summary window displays the DM72F• I/O mapping. You can see the I/O used by expert function.
The filtering value on the Main type input determines the counter maximum frequency as shown in this table:
Input |
Filter value |
Maximum counter frequency |
---|---|---|
A, B |
0.004 ms (default value) |
100 kHz |
0.4 ms |
1 kHz |
|
1.2 ms |
350 Hz |
|
4 ms |
100 Hz |
The value of the Input mode parameter determines the counting behavior:
Parameter Value |
Description |
---|---|
A Single Phase |
The counter increments on A. |
A=UP, B=DOWN |
The counter increments on A and decrements on B. |
A=Pulse, B=Direction |
oIf there is a rising edge on A and B = True, the counter decrements. oIf there is a rising edge on A and B = False, the counter increments. |
Normal Quadrature X1 |
oA physical encoder always provides 2 signals 90° shift that first allows the counter to count pulses and detect direction o1 count by encoder cycle |
Normal Quadrature X2 |
oA physical encoder always provides 2 signals 90° shift that first allows the counter to count pulses and detect direction o2 counts by encoder cycle |
Normal Quadrature X4 |
oA physical encoder always provides 2 signals 90° shift that first allows the counter to count pulses and detect direction o4 counts by encoder cycle |
Reverse Quadrature X1 |
oA physical encoder always provides 2 signals 90° shift that first allows the counter to count pulses and detect direction o1 count by encoder cycle |
Reverse Quadrature X2 |
oA physical encoder always provides 2 signals 90° shift that first allows the counter to count pulses and detect direction o2 counts by encoder cycle |
Reverse Quadrature X4 |
oA physical encoder always provides 2 signals 90° shift that first allows the counter to count pulses and detect direction o4 counts by encoder cycle |