- Posts: 17524
- Thank you received: 0
Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
4 months 1 day ago #347409
by PCW
Replied by PCW on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
What protocol does the pendant use?
Please Log in to join the conversation.
4 months 1 day ago #347413
by umerov
Replied by umerov on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
The remote uses the RS422 protocol with a baud rate of 57600, configured for 8 data bits, no parity, and 1 stop bit (8N1).
For testing, I wrote a Python module to communicate with the remote via a COM-to-RS422 adapter, though I suspect it’s not very reliable.
My idea is to create a custom real-time LinuxCNC component, similar to the mesa_modbus component, and possibly use the internal hostmot2 C-API functions (hm2_pktuart_send(), hm2_pktuart_read(), and hm2_pktuart_setup()) to directly push and pull byte arrays into the FPGA’s transmit and receive FIFOs during the real-time servo thread.
For testing, I wrote a Python module to communicate with the remote via a COM-to-RS422 adapter, though I suspect it’s not very reliable.
My idea is to create a custom real-time LinuxCNC component, similar to the mesa_modbus component, and possibly use the internal hostmot2 C-API functions (hm2_pktuart_send(), hm2_pktuart_read(), and hm2_pktuart_setup()) to directly push and pull byte arrays into the FPGA’s transmit and receive FIFOs during the real-time servo thread.
Please Log in to join the conversation.
Time to create page: 0.043 seconds
