Other Parts Discussed in Thread: C2000WARE
Tool/software:
Dear expert,
My customer is using TTL encoder for testing motor speed. They find two issues:
1. The motor is found to rotate at a constant speed, QEPSTS[QDF] will be mutated from 1 to 0, after a pulse returns to normal. The QPOSCNT increases normally, does not decrease, and the AB change of the TTL encoder corresponds to a positive rotation. Please see figure 1.
2. In the process of motor acceleration and constant speed, the QCPRD will be inaccurate, the time mutation is large. Please see figure2.
figure1:
figure2:
[0]: AB
[1]: Speed
[2]: QEPSTS register
[3]: QPOSCNT