Trích dẫn Gửi bởi CKD Xem bài viết
Dạ.. đọc xung là đọc từ encoder hoặc step rồi xử lý, xong mới phát xung lại ạ. Vì
- điều khiển trực tiếp vào driver thì phải step/dir hoặc CW/CCW, chứ không phải A/B Quadrature ạ.
- kết nối vào input mach3 thì phải là A/B Quadrature thì nó mới đếm được. Nếu dùng encoder thì cho vào trực tiếp, còn nếu dùng step thì phải có mạch đọc xung và chuyển về A/B ạ.

Mà nếu điều khiển trực tiếp, mach3 nó không kiểm soát được vị trí thì chán phèo. Cái này dùng cho mấy bác cả đời không biết điểm ome là gì thì được. Cứ vặn vặn, zero xong chạy

Ok với phương pháp này là chỉ cần con step bé tẹo, quay cả đời cũng khó mà hỏng.

Bà bác Gamo post clip gì mà click vào thấy Private.. chán
Thực ra xung step ra nó cũng có dạng Quadrature rùi bác ạ, chỉ thêm cái mạch triger và bảo vệ áp phía sau thôi, con này qua MCU nó làm thềm vài việc, cụ thể như này:
1. Quadrature: Outputs quadrature signal on A and B outputs. This type of signal is used for Mach3 and other
industrial control applications.
2. Step and Direction: Outputs step signal on A, direction signal on B. The direction pin changes state a split
second before the step pin does. This type of signal can be used to control a stepper motor controller, for
example.
3. Step A and Step B: Outputs one pulse per step on A when going one way, and one pulse per step on B when
going the other way. Some stepper motor controllers use this type of signal, and it may be handy for other
custom applications.
4. Asynchronous Serial Output: This signal is output only on A. The B output is not used in this mode. The
format of the data is non-inverted TTL, 9600 baud, 1 start bit, 8 data bits, 1 stop bit, no parity. A "+" character
is sent out for every step taken in one direction, and a "-" character is sent out for every step taken in the
opposite direction. This signal allows connecting Stepperature to a microcontroller, or to almost anything with
a USB port by using a USB-to-serial converter.